geg-2.0.9/0000755000175000017500000000000012735237431012471 5ustar georgeskgeorgeskgeg-2.0.9/acconfig.h0000644000175000017500000000003606564355305014416 0ustar georgeskgeorgesk#undef PACKAGE #undef VERSION geg-2.0.9/aclocal.m40000644000175000017500000017163312735031743014342 0ustar georgeskgeorgesk# generated automatically by aclocal 1.15 -*- Autoconf -*- # Copyright (C) 1996-2014 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.69],, [m4_warning([this file was generated for autoconf 2.69. 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'.])]) # 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_REQUIRE([PKG_PROG_PKG_CONFIG]) PKG_PROG_PKG_CONFIG([0.7]) 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; fclose (fopen ("conf.gtktest", "w")); /* 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 ]) dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- dnl serial 11 (pkg-config-0.29) dnl 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]) 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 # Copyright (C) 2002-2014 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.15' 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.15], [], [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.15])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-2014 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-2014 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-2014 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-2014 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. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2014 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 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_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([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 ]) 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-2014 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-2014 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])]) # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- # From Jim Meyering # Copyright (C) 1996-2014 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_MAINTAINER_MODE([DEFAULT-MODE]) # ---------------------------------- # Control maintainer-specific portions of Makefiles. # Default is to disable them, unless 'enable' is passed literally. # For symmetry, 'disable' may be passed as well. Anyway, the user # can override the default with the --enable/--disable switch. AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ] ) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2014 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 to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2014 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 case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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-2014 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 geg-2.0.9/src/0000755000175000017500000000000012735240064013254 5ustar georgeskgeorgeskgeg-2.0.9/src/scripts/0000755000175000017500000000000012675571425014756 5ustar georgeskgeorgeskgeg-2.0.9/src/scripts/eps2svg0000755000175000017500000000157612675570424016304 0ustar georgeskgeorgesk#!/bin/sh if test "$1" = "" then echo "Usage: eps2svg [ ]" exit 0 fi if ! [ -r "$1" ] then echo "$1" not found ! exit 1 fi # random name of intermediate PDF file PDF=__eps2svg__$USER__$RANDOM__.pdf while [ -r "$PDF" ] do PDF=__eps2svg__$USER__$RANDOM__.pdf done ps2pdf -dEPSCrop "$1" "$PDF" if ! [ -r "$PDF" ] then echo Creation of "$PDF" has failed ! exit 1 fi if test "$2" != "" then # SVG filename specified. Blindly overwrite any existing file SVG="$2" else RADIX=`echo "$1" | rev | cut -d"." -f 2- | rev` SVG="$RADIX".svg i=0; # In this case (no SVG filename specified), check whether output exists # and change name if there is any risk of overwriting a file while [ -r "$SVG" ] do i=$(($i+1)) SVG="$RADIX"_$i.svg done fi pdftocairo -svg "$PDF" "$SVG" rm -f "$PDF" exit 0 geg-2.0.9/src/ss.geg0000644000175000017500000000321712733025013014361 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -12.000000 xmax = 12.000000 ymin = -9.000000 ymax = 9.000000 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = cartesian zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 100 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas sin(x) cotan(x) geg-2.0.9/src/about.h0000644000175000017500000000021606564346213014544 0ustar georgeskgeorgesk#ifndef __ABOUT_H__ #define __ABOUT_H__ #include void about_event(GtkWidget *widget, gpointer data); #endif /* __ABOUT_H__ */ geg-2.0.9/src/parser.h0000644000175000017500000000107712716265265014737 0ustar georgeskgeorgesk#ifndef __PARSER_H__ #define __PARSER_H__ #include "tokeniser.h" #include struct _parse_node { gint type; struct _parse_node *left; struct _parse_node *right; }; typedef struct _parse_node parse_tree; typedef struct { void * ptr; gint n; gdouble c; gdouble A; } struct_integ; extern struct_integ integr[26]; extern parse_tree *make_parse_tree(token_list *list); extern gchar *check_tree(parse_tree *tree); extern void free_tree(parse_tree *tree); extern parse_tree *dup_tree(parse_tree *tree); extern double eval_tree(parse_tree *tree); #endif geg-2.0.9/src/localfunctions.c0000644000175000017500000000255312716312356016453 0ustar georgeskgeorgesk/* localfunctions.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "formulas.h" #include "localfunctions.h" #include #include #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ extern gdouble output; double l_sinc(double x) { if(x == 0) return 1; else return(sin(M_PI * x) / (M_PI * x)); } double l_floor(double x) { if (x < 0) return(-(int)(-x-0.00000000000001)-1); else return((int)x); } double l_char(double x) { return(x >= 0); } double l_sign(double x) { if (x > 0) return 1; if (x < 0) return -1; return 0; } double l_clip(double x) { if (x >= 0) return 1; else return(NAN); } double l_cut(double x) { if (x > 0) return 1; else return(NAN); } double l_acsc(double x) { if (x == 0) return(NAN); return(asin(1/x)); } double l_asec(double x) { if (x == 0) return(NAN); return(acos(1/x)); } double l_acot(double x) { if (x == 0) return(NAN); return(atan(1/x)); } double l_csc(double x) { if (x == 0) return(NAN); return(1/sin(x)); } double l_sec(double x) { gdouble y = cos(x); if (y == 0) return(NAN); return(1/y); } double l_cot(double x) { if (x == 0) return(NAN); return(1/tan(x)); } double l_phi(double x) { return(0.5 * erfc(-x * M_SQRT1_2)); } geg-2.0.9/src/formulas.c0000644000175000017500000001553612713574127015270 0ustar georgeskgeorgesk/* formulas.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "formulas.h" #include "log.h" #include "prefs.h" #include "colors.h" #include "i18n.h" #include #include /* global data */ extern struct_prefs prefs; /* locally global data */ static gchar **formulas = NULL; static int nformulas = 0; static GtkWidget *wi = NULL; static GtkStyle *style; static void close_event(GtkWidget *widget, gpointer data); static void remove_event(GtkWidget *widget, gpointer data); static void really_remove_event(gpointer data, gpointer user_data); void remove_all_event(GtkWidget *widget, gpointer data) { int i; for(i = 0; i < nformulas; i++) g_free(formulas[i]); if(formulas) g_free(formulas); formulas = NULL; nformulas = 0; } /* formula_foreach, calls the supplied function for each formula in the * array of formulas, called by go_event in app.c */ void formula_foreach(FormulaFunc func) { gint i; for(i = 0; i < nformulas; i++) { func(formulas[i], i); } } /* formula_forall, */ void formula_forall(FormulaAllFunc func, gdouble x1, gdouble x2, gdouble y1, gdouble y2) { func(formulas, nformulas, x1, x2, y1, y2); } /* formula_add */ gint formula_add(FormulaFunc func, gchar *formula) { if(*formula == '\0') /* check for a real formula */ return(FALSE); if(nformulas >= prefs.maxform) { write_log(_("Maximum reached")); return(FALSE); } if (formula[0] != '#') { addto_log("▶ "); write_log(formula); if(func && !func(formula, nformulas)) { write_log(_("Parse Error!")); return(FALSE); } } /* do not record evaluation requests */ if (*formula == '?') return(TRUE); /* add the formula or comment to the list */ formulas = (gchar **)g_realloc(formulas, ++nformulas * sizeof(gchar **)); formulas[nformulas - 1] = g_strdup(formula); return(TRUE); } /* formula_find */ gint formula_find(gchar *formula) { gint i; if (formula[0] == '#') return(FALSE); if (formula[0] == '&') return(FALSE); if (formula[0] == '?') return(FALSE); if (formula[0] == '=') return(FALSE); for (i=0; iwindow) { gtk_widget_map(wi); gdk_window_raise(wi->window); return; } refresh_graph = (GtkSignalFunc)data; wi = gtk_dialog_new(); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); gtk_window_set_wmclass(GTK_WINDOW(wi), "erase", "geg"); gtk_window_set_title(GTK_WINDOW(wi), _("Erase")); gtk_window_set_policy(GTK_WINDOW(wi), FALSE, TRUE, FALSE); gtk_window_position(GTK_WINDOW(wi), GTK_WIN_POS_MOUSE); gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(wi)->vbox), 5); /* the list to delete functions from */ fr = gtk_frame_new(_("Select functions to erase:")); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->vbox), fr, TRUE, TRUE, 0); li = gtk_clist_new(1); /* only want 1 column */ /* gtk_clist_set_reorderable(GTK_CLIST(li), TRUE); */ /* style stuff */ style = gtk_style_copy(gtk_widget_get_style(widget)); style->bg[GTK_STATE_PRELIGHT] = prefs.gdk_color[DEF_BACK_COLOR]; gtk_widget_set_style(li, style); gtk_clist_set_selection_mode(GTK_CLIST(li), GTK_SELECTION_MULTIPLE); /* add the formulas to the list */ j = 0; for(i = 0; i < nformulas; i++) { gtk_clist_append(GTK_CLIST(li), &formulas[i]); /* compute color, eliminate coord() calls */ if (strncasecmp(formulas[i], "coord(", 6)) { c = DEF_DEFAULT_COLOR + j % (prefs.n_colors - DEF_DEFAULT_COLOR); j++; } else c = 1; gtk_clist_set_foreground(GTK_CLIST(li), i, &prefs.gdk_color[c]); gtk_clist_set_background(GTK_CLIST(li), i, &prefs.gdk_color[DEF_BACK_COLOR]); } /* make the list a bit bigger than the default size */ gtk_widget_set_usize(li, 600, 450); gtk_container_add(GTK_CONTAINER(fr), li); gtk_widget_show(li); gtk_widget_show(fr); /* Ok button */ temp_bu = gtk_button_new_with_label(_("Ok")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(remove_event), li); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(close_event), NULL); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), temp_bu, TRUE, TRUE, 0); gtk_widget_show(temp_bu); /* Cancel button */ temp_bu = gtk_button_new_with_label(_("Cancel")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(close_event), NULL); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), temp_bu, TRUE, TRUE, 0); gtk_widget_show(temp_bu); gtk_grab_add(wi); gtk_widget_show(wi); /* how do I do this ? */ /* gdk_window_set_decorations(wi->window, GDK_DECOR_BORDER); */ } /* really_remove_event, called for each item in the glist in remove_event */ static void really_remove_event(gpointer data, gpointer user_data) { gint i = 0; gchar *text; gtk_clist_get_text((GtkCList *)user_data, (gint)(glong)data, 0, &text); while(strcmp(text, formulas[i++])); addto_log(_("Erase: ")); write_log(text); g_free(formulas[--i]); nformulas--; /* the next part shuffles the order if we didn't delete the last one */ /* this disturbs the order, ideally this should not happen... maybe later */ if(i != nformulas) formulas[i] = formulas[nformulas]; formulas = (gchar **)g_realloc(formulas, nformulas * sizeof(gchar **)); } /* remove_event, called from the 'ok' button in the 'erase' dialog. it * passes a pointer to the CList, which has selected entries which we * wish to delete */ static void remove_event(GtkWidget *widget, gpointer data) { GtkCList *clist; GList *glist; /* glib doubly linked list */ clist = GTK_CLIST((GtkWidget *)data); glist = clist->selection; g_list_foreach(glist, (GFunc)really_remove_event, clist); } geg-2.0.9/src/misc.h0000644000175000017500000000023006605123767014364 0ustar georgeskgeorgesk#ifndef __MISC_H__ #define __MISC_H__ #include gchar *ftoa(double f); gchar *ltoa(long l); gint sign(float f); #endif /* __MISC_H__ */ geg-2.0.9/src/colorsel.c0000644000175000017500000001006512677215011015243 0ustar georgeskgeorgesk/* colorsel.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include "colorsel.h" #include "prefs.h" #include "i18n.h" extern struct_prefs prefs; /* locally global data */ static GtkWidget *wi = NULL; static GtkColorSelectionDialog *di; static GtkColorSelection *cs; static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data); static void ok_event(GtkWidget *widget, gpointer data); static void cancel_event(GtkWidget *widget, gpointer data); /* delete_event, deletes the colorselection dialog window, called when */ /* dialog is closed by window manager */ static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { gtk_widget_destroy(wi); wi = NULL; return(TRUE); } /* cancel_event, much the same as delete_event, called by cancel button */ static void cancel_event(GtkWidget *widget, gpointer data) { gtk_widget_destroy(wi); wi = NULL; } /* ok_event, gets the color selection dialog's selected color and puts it in */ /* the preview widget, then it closes the dialog, it is the callback function*/ /* for the OK button */ static void ok_event(GtkWidget *widget, gpointer data) { GtkWidget *preview; GdkColor color; gdouble values[3]; preview = (GtkWidget *)data; gtk_color_selection_get_current_color(cs, &color); values[0] = color.red / 65535.0; values[1] = color.green / 65535.0; values[2] = color.blue / 65535.0; if (prefs.cur_color == DEF_GRAY_COLOR || prefs.cur_color == DEF_GRAY_COLOR + 1) { values[0] = (values[0] + values[1] + values[2]) / 3.0; values[2] = values[1] = values[0]; } show_color_in_preview(preview, values); gtk_widget_destroy(wi); wi = NULL; } /* colorsel_event, brings up a color selector dialog and sets the color */ /* to be the cuurent color */ /* called by the little "..." buttons to the left of the preview */ void colorsel_event(GtkWidget *widget, gpointer data) { GtkWidget *preview; if(wi) gtk_widget_destroy(wi); preview = (GtkWidget *)data; wi = gtk_color_selection_dialog_new(_("Select color")); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); /* setup window properties */ gtk_window_set_wmclass(GTK_WINDOW(wi), "color_selection", "Geg"); gtk_window_set_policy(GTK_WINDOW(wi), FALSE, FALSE, FALSE); gtk_window_position(GTK_WINDOW(wi), GTK_WIN_POS_NONE); di = GTK_COLOR_SELECTION_DIALOG(wi); cs = GTK_COLOR_SELECTION(di->colorsel); /* hide the help button as we wont be using it */ gtk_widget_hide(GTK_WIDGET(di->help_button)); gtk_signal_connect(GTK_OBJECT(di->ok_button), "clicked", GTK_SIGNAL_FUNC(ok_event), preview); gtk_signal_connect(GTK_OBJECT(di->cancel_button), "clicked", GTK_SIGNAL_FUNC(cancel_event), NULL); gtk_color_selection_set_color(cs, &prefs.rgb_value[3*prefs.cur_color]); gtk_widget_show(wi); gtk_grab_add(wi); } /* show_color_in_preview, paints the preview with the color specified by */ /* the values and stores the values as data in preview's object */ /* this function called explicitly when the user clicks OK in the color */ /* selection dialog, and when the preferences dialog is being constructed */ void show_color_in_preview(GtkWidget *preview, gdouble values[]) { gint i, j, k; gint width, height; guchar *row; width = preview->allocation.width; height = preview->allocation.height; row = (guchar *)g_malloc(3 * width * sizeof(guchar)); for(i = 0; i < height; i++) { for(j = 0, k = 0; j < width; j++) { row[k] = (guchar)(values[0] * 255); row[k + 1] = (guchar)(values[1] * 255); row[k + 2] = (guchar)(values[2] * 255); k += 3; } gtk_preview_draw_row(GTK_PREVIEW(preview), row, 0, i, width); } gtk_widget_queue_draw(preview); g_free(row); memcpy(&prefs.rgb_value[3*prefs.cur_color], values, 3 * sizeof(gdouble)); } geg-2.0.9/src/tokeniser.c0000644000175000017500000001652112716313031015422 0ustar georgeskgeorgesk/* tokeniser.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include "tokeniser.h" #include "localfunctions.h" #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ #define NUMBER(c) (((c) >= '0') && ((c) <= '9')) typedef struct { char *string; /* the identifier string in the equation */ gint type; /* eg NUM, FUN */ double value; /* used if it is a number or a constant */ Func func; /* the address of the unary function to call */ } token_db; static gint compare(token_db *a, gchar *b); /* these must be in descending order of string length */ static token_db tokens[] = { { "tgt_right",VAR|(29<<8),0, NULL }, { "tgt_left", VAR|(28<<8),0, NULL }, { "der_step", VAR|(27<<8),0, NULL }, { "int_step", VAR|(26<<8),0, NULL }, { "arcsin", FUN|(255<<8), 0, asin }, { "arccos", FUN|(255<<8), 0, acos }, { "arctan", FUN|(255<<8), 0, atan }, { "arccsc", FUN|(255<<8), 0, l_acsc }, { "arcsec", FUN|(255<<8), 0, l_asec }, { "arccot", FUN|(255<<8), 0, l_acot }, { "cotan", FUN|(255<<8), 0, l_cot, }, { "floor", FUN|(255<<8), 0, l_floor }, { "gamma", FUN|(255<<8), 0, tgamma }, { "color", VAR|(37<<8), 0, NULL }, { "ptrad", VAR|(38<<8), 0, NULL }, { "polar", FUN|(253<<8), 0, NULL }, { "param", FUN|(252<<8), 0, NULL }, { "sequ", FUN|(251<<8), 0, NULL }, { "cart", FUN|(254<<8), 0, NULL }, { "amin", VAR|(39<<8), 0, NULL }, { "amax", VAR|(40<<8), 0, NULL }, { "nmin", VAR|(41<<8), 0, NULL }, { "tmin", VAR|(41<<8), 0, NULL }, { "nmax", VAR|(42<<8), 0, NULL }, { "tmax", VAR|(42<<8), 0, NULL }, { "asin", FUN|(255<<8), 0, asin }, { "acos", FUN|(255<<8), 0, acos }, { "atan", FUN|(255<<8), 0, atan }, { "acsc", FUN|(255<<8), 0, l_acsc }, { "asec", FUN|(255<<8), 0, l_asec }, { "acot", FUN|(255<<8), 0, l_acot }, { "sinc", FUN|(255<<8), 0, l_sinc }, { "sinh", FUN|(255<<8), 0, sinh }, { "cosh", FUN|(255<<8), 0, cosh }, { "tanh", FUN|(255<<8), 0, tanh }, { "cbrt", FUN|(255<<8), 0, cbrt }, { "sqrt", FUN|(255<<8), 0, sqrt }, { "char", FUN|(255<<8), 0, l_char }, { "clip", FUN|(255<<8), 0, l_clip }, { "sign", FUN|(255<<8), 0, l_sign }, { "cut", FUN|(255<<8), 0, l_cut }, { "int", INT, 0, NULL }, { "tgt", TGT, 0, NULL }, { "nan", NUM, NAN, NULL }, { "out", NUM, NAN, NULL }, /* result, index 44 */ { "gap", VAR|(35<<8), 0, NULL }, { "sin", FUN|(255<<8), 0, sin, }, { "cos", FUN|(255<<8), 0, cos, }, { "tan", FUN|(255<<8), 0, tan, }, { "csc", FUN|(255<<8), 0, l_csc }, { "sec", FUN|(255<<8), 0, l_sec }, { "cot", FUN|(255<<8), 0, l_cot }, { "exp", FUN|(255<<8), 0, exp }, { "phi", FUN|(255<<8), 0, l_phi }, { "log", FUN|(255<<8), 0, log10 }, { "abs", FUN|(255<<8), 0, fabs }, { "ln", FUN|(255<<8), 0, log }, { "lw", VAR|(36<<8),0, NULL }, { "pi", NUM, M_PI, NULL }, { "fa", FUN|(0<<8), 0, NULL }, { "fb", FUN|(1<<8), 0, NULL }, { "fc", FUN|(2<<8), 0, NULL }, { "fd", FUN|(3<<8), 0, NULL }, { "fe", FUN|(4<<8), 0, NULL }, { "ff", FUN|(5<<8), 0, NULL }, { "fg", FUN|(6<<8), 0, NULL }, { "fh", FUN|(7<<8), 0, NULL }, { "fi", FUN|(8<<8), 0, NULL }, { "fj", FUN|(9<<8), 0, NULL }, { "fk", FUN|(10<<8), 0, NULL }, { "fl", FUN|(11<<8), 0, NULL }, { "fm", FUN|(12<<8), 0, NULL }, { "fn", FUN|(13<<8), 0, NULL }, { "fo", FUN|(14<<8), 0, NULL }, { "fp", FUN|(15<<8), 0, NULL }, { "fq", FUN|(16<<8), 0, NULL }, { "fr", FUN|(17<<8), 0, NULL }, { "fs", FUN|(18<<8), 0, NULL }, { "ft", FUN|(19<<8), 0, NULL }, { "fu", FUN|(20<<8), 0, NULL }, { "fv", FUN|(21<<8), 0, NULL }, { "fw", FUN|(22<<8), 0, NULL }, { "fx", FUN|(23<<8), 0, NULL }, { "fy", FUN|(24<<8), 0, NULL }, { "fz", FUN|(25<<8), 0, NULL }, { ";", SEP, 0, NULL }, { "=", EQU, 0, NULL }, { "+", ADD, 0, NULL }, { "-", SUB, 0, NULL }, { "*", MUL, 0, NULL }, { "/", DIV, 0, NULL }, { "^", POW, 0, NULL }, { "[", LSB, 0, NULL }, { "]", RSB, 0, NULL }, { "{", LCB, 0, NULL }, { "}", RCB, 0, NULL }, { "(", LB, 0, NULL }, { ")", RB, 0, NULL }, { "?", ASK, 0, NULL }, { "#", COM, 0, NULL }, { "&", DEF, 0, NULL }, { "'", DER, 0, NULL }, { "_", RES, 0, NULL }, { "a", VAR|(0<<8), 0, NULL }, { "b", VAR|(1<<8), 0, NULL }, { "c", VAR|(2<<8), 0, NULL }, { "d", VAR|(3<<8), 0, NULL }, { "e", VAR|(4<<8), 0, NULL }, { "f", VAR|(5<<8), 0, NULL }, { "g", VAR|(6<<8), 0, NULL }, { "h", VAR|(7<<8), 0, NULL }, { "i", VAR|(8<<8), 0, NULL }, { "j", VAR|(9<<8), 0, NULL }, { "k", VAR|(10<<8), 0, NULL }, { "l", VAR|(11<<8), 0, NULL }, { "m", VAR|(12<<8), 0, NULL }, { "n", VAR|(13<<8), 0, NULL }, { "o", VAR|(14<<8), 0, NULL }, { "p", VAR|(15<<8), 0, NULL }, { "q", VAR|(16<<8), 0, NULL }, { "r", VAR|(17<<8), 0, NULL }, { "s", VAR|(18<<8), 0, NULL }, { "t", VAR|(19<<8), 0, NULL }, { "u", VAR|(20<<8), 0, NULL }, { "v", VAR|(21<<8), 0, NULL }, { "w", VAR|(22<<8), 0, NULL }, { "x", VAR|(23<<8), 0, NULL }, { "y", VAR|(24<<8), 0, NULL }, { "z", VAR|(25<<8), 0, NULL }, { "", EOE, 0, NULL } }; /* output */ void set_output(gdouble x) { tokens[44].value = x; } /* compare, */ static gint compare(token_db *a, gchar *b) { if((*a->string == '\0') ^ (*b == '\0')) return(0); else return(!strncasecmp(a->string, b, strlen(a->string))); } /* make_token_list, this function builds a token list out of the equation */ token_list * make_token_list(gchar *equation) { gint i; token_list *list; list = (token_list *)g_new(token_list, 1); /* skip any whitespace */ while(*equation == ' ') equation++; /* check for the token in the token database */ for(i = 0; i < (sizeof(tokens) / sizeof(token_db)); i++) { if(compare(&tokens[i], equation)) { list->type = tokens[i].type; list->value = tokens[i].value; list->func = tokens[i].func; equation += strlen(tokens[i].string); if(list->type != EOE) list->next = make_token_list(equation); else list->next = NULL; return(list); } } /* if it wasn't in the token database, it's either a number, or the token */ /* can't be recognised and is therefore an error */ if(NUMBER(*equation)) { list->type = NUM; list->value = 0; while(NUMBER(*equation)) { list->value = list->value * 10 + *equation++ - '0'; } if(*equation == '.') { /* a real number */ equation++; i = 0; /* use i to count the decimal places */ while(NUMBER(*equation)) list->value += (*equation++ - '0') * pow(10, --i); } list->next = make_token_list(equation); return(list); } else { /* it's an error .. */ list->type = ERR; list->value = 0; list->next = NULL; return(list); } } /* free_list, a recursive list freeing algorithm */ void free_list(token_list *list) { if(list->next != NULL) free_list(list->next); g_free(list); } geg-2.0.9/src/i18n.h0000644000175000017500000000015712671354404014212 0ustar georgeskgeorgesk// internationalisation #ifndef I18N_H #define I18N_H #include #define _(x) gettext (x) #endif geg-2.0.9/src/pixmaps/0000755000175000017500000000000012735240064014735 5ustar georgeskgeorgeskgeg-2.0.9/src/pixmaps/pi.xpm0000644000175000017500000000270512673467130016105 0ustar georgeskgeorgesk/* XPM */ static char * pi_xpm[] = { "35 35 3 1", " c None s None", ". c #3D3D9191C0C0", "X c #C2C20A0A1D1D", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", " . ", "...................................", " . ", " . ", " . XXXXXXXXX ", " . X X ", " . X X ", " . X X ", " . X X ", " . X X ", " . X X ", " . X X ", " . ", " . ", " . ", " . ", " . ", " . ", " . "}; geg-2.0.9/src/pixmaps/fint.xbm0000644000175000017500000000070507002017604016400 0ustar georgeskgeorgesk/* Made with Gimp */ #define fint_width 17 #define fint_height 19 static char fint_bits[] = { 0x0f, 0x00, 0x00, 0x03, 0x00, 0x00, 0x05, 0x00, 0x00, 0x09, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x97, 0x92, 0x01, 0x91, 0x56, 0x00, 0x91, 0x5e, 0x00, 0x93, 0x5a, 0x00, 0x91, 0x52, 0x00, 0x61, 0x92, 0x01, 0x00, 0x00, 0x00, 0xa5, 0x03, 0x00, 0x2d, 0x01, 0x00, 0x2d, 0x01, 0x00, 0x35, 0x01, 0x00, 0x35, 0x01, 0x00, 0x25, 0x01, 0x00 }; geg-2.0.9/src/pixmaps/in.xpm0000644000175000017500000000272006572017670016101 0ustar georgeskgeorgesk/* XPM */ static char * in_xpm[] = { "35 35 5 1", " c None", ". c #000000", "+ c #787C78", "@ c #F8FCF8", "# c #000078", " ", " ", " ", " ", " .. ", " .. ", " .. ", " .. ", " .. ", " ............ ", " ............ ", " .... ............ ", " .. .. .. ", " .+@@@ ++. .. ", " .@@ +. .. ", " . @ . .. ", " . @ . .. ", " . . ", " . . ", " .+ @@. ", " .++ @@+.+ ", " .. @+### ", " ....# ### ", " # ### ", " # ### ", " # ## ", " ## ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/pixmaps/prefs.xpm0000644000175000017500000000276106572017670016617 0ustar georgeskgeorgesk/* XPM */ static char * prefs_xpm[] = { "35 35 7 1", " c None", ". c #020204", "+ c #189740", "@ c #968EB4", "# c #266437", "$ c #D3F4D9", "% c #1EEE54", " ", " #+++# ", " #%%+++# ", "+%%%%.++# ", "#$%%%%.++# ", "#$$#%%%.++# ", "+%$$#%%%.++# ", " #%$$#%%%.++# ", " #%$$#%%%.++# ", " #%$$#%%%.++# ", " #%$$#%%%.++# ", " #%$$#%%%.++# ", " #%$$#%%%.+#. ", " #%$$#%%%+#.# ", " #%$$#%%+.++# ", " #%$$#+.+++# ", " #%$%++%%++ ", " ##%%$%%+. ", " #$$$+... ", " #%$%..@# ", " ### #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@# ", " #$@@ ", " #$$@ ", " @@$$@ ", " @@$$@", " @@@"}; geg-2.0.9/src/pixmaps/print.xpm0000644000175000017500000001637212671366224016636 0ustar georgeskgeorgesk/* XPM */ static char * print_xpm[] = { "35 35 217 2", ". c None s None", " c #FFFFFFFFFFFF", "X c #767677777979", "o c #919193939595", "O c #8D8D8F8F9191", "+ c #E1E1E2E2E3E3", "@ c #E3E3E4E4E4E4", "# c #E4E4E5E5E6E6", "$ c #E6E6E7E7E7E7", "% c #E8E8E8E8E9E9", "& c #E9E9EAEAEAEA", "* c #EBEBEBEBECEC", "= c #ECECEDEDEDED", "- c #EEEEEEEEEEEE", "; c #EFEFEFEFF0F0", ": c #F1F1F1F1F1F1", "> c #F2F2F2F2F3F3", ", c #F4F4F4F4F4F4", "< c #F5F5F5F5F5F5", "1 c #888889898B8B", "2 c #E9E9E9E9EAEA", "3 c #EAEAEBEBEBEB", "4 c #ECECECECEDED", "5 c #EDEDEEEEEEEE", "6 c #F6F6F6F6F6F6", "7 c #F7F7F7F7F7F7", "8 c #828283838585", "9 c #F0F0F1F1F1F1", "0 c #F2F2F2F2F2F2", "q c #F3F3F4F4F4F4", "w c #7C7C7D7D7F7F", "e c #F2F2F3F3F3F3", "r c #F1F1F1F1F2F2", "t c #F0F0F0F0F0F0", "y c #EFEFEFEFEFEF", "u c #8A8A8C8C8E8E", "i c #B1B1B3B3B5B5", "p c #F6F6F6F6F7F7", "a c #F4F4F5F5F5F5", "s c #F3F3F3F3F3F3", "d c #F0F0F0F0F1F1", "f c #ECECECECECEC", "g c #EAEAEAEAEBEB", "h c #E8E8E9E9E9E9", "j c #ABABADADAFAF", "k c #707071717373", "l c #E9E9E9E9E9E9", "z c #E7E7E7E7E7E7", "x c #E5E5E5E5E5E5", "c c #E2E2E3E3E3E3", "v c #E0E0E0E0E1E1", "b c #DDDDDEDEDFDF", "n c #DBDBDBDBDCDC", "m c #79797A7A7C7C", "M c #A5A5A7A7A9A9", "N c #6B6B6B6B6D6D", "B c #EBEBEBEBEBEB", "V c #E7E7E7E7E8E8", "C c #E5E5E5E5E6E6", "Z c #E3E3E3E3E4E4", "A c #E0E0E1E1E1E1", "S c #DEDEDEDEDFDF", "D c #DBDBDCDCDCDC", "F c #D8D8D9D9DADA", "G c #D5D5D6D6D7D7", "H c #D3D3D3D3D4D4", "J c #CFCFD0D0D1D1", "K c #CCCCCDCDCECE", "L c #717172727474", "P c #9F9FA0A0A3A3", "I c #656565656767", "U c #E1E1E1E1E2E2", "Y c #DEDEDFDFDFDF", "T c #DCDCDCDCDDDD", "R c #D9D9DADADADA", "E c #D6D6D7D7D7D7", "W c #D3D3D4D4D5D5", "Q c #D0D0D1D1D1D1", "! c #C9C9CACACBCB", "~ c #C6C6C7C7C8C8", "^ c #C2C2C3C3C4C4", "/ c #BEBEBFBFC0C0", "( c #BABABBBBBCBC", ") c #05059797D7D7", "_ c #43439D9DC5C5", "` c #53539F9FC1C1", "' c #686869696B6B", "] c #99999A9A9D9D", "[ c #5F5F5F5F6161", "{ c #C1C1C1C1C2C2", "} c #BEBEBFBFBFBF", "| c #BBBBBCBCBCBC", " . c #B8B8B9B9BABA", ".. c #B5B5B6B6B7B7", "X. c #B2B2B3B3B4B4", "o. c #AEAEB0B0B1B1", "O. c #ABABACACADAD", "+. c #A8A8A8A8AAAA", "@. c #A4A4A5A5A6A6", "#. c #A0A0A1A1A2A2", "$. c #9C9C9D9D9F9F", "%. c #989899999B9B", "&. c #939395959797", "*. c #42429C9CC4C4", "=. c #6363B1B1D3D3", "-. c #7A7AC4C4E4E4", ";. c #99999A9A9C9C", ":. c #9C9C9D9DA0A0", ">. c #929293939696", ",. c #7777C3C3E4E4", "<. c #6262B1B1D2D2", "1. c #41419A9AC2C2", "2. c #6363B0B0D3D3", "3. c #9191D2D2EFEF", "4. c #B6B6E1E1F4F4", "5. c #B0B0B1B1B4B4", "6. c #B1B1DFDFF3F3", "7. c #8B8BD0D0EEEE", "8. c #6060AFAFD1D1", "9. c #4E4E9A9ABCBC", "0. c #6969C2C2E9E9", "q. c #9A9AD6D6F0F0", "w. c #C9C9E9E9F7F7", "e. c #929293939595", "r. c #C5C5E7E7F6F6", "t. c #9090D2D2EEEE", "y. c #6464C0C0E8E8", "u. c #4C4C9898BABA", "i. c #6C6CC3C3E9E9", "p. c #8E8ED0D0EDED", "a. c #B6B6E1E1F3F3", "s. c #8A8A9A9AA2A2", "d. c #6A6A6A6A6C6C", "f. c #B5B5E0E0F3F3", "g. c #8888CECEECEC", "h. c #6868C1C1E8E8", "j. c #48489292B4B4", "k. c #6767BFBFE5E5", "l. c #7C7CC7C7E8E8", "z. c #8E8ECFCFECEC", "x. c #A2A2D7D7EFEF", "c. c #A6A6D9D9EFEF", "v. c #7777C5C5E7E7", "b. c #6464BDBDE4E4", "n. c #44448C8CACAC", "m. c #6060B9B9E0E0", "M. c #6565BBBBE0E0", "N. c #6E6EBFBFE2E2", "B. c #6161B9B9DFDF", "V. c #5D5DB7B7DEDE", "C. c #40408686A5A5", "Z. c #5858B2B2D9D9", "A. c #4D4DADADD7D7", "S. c #5353AFAFD8D8", "D. c #4949ABABD5D5", "F. c #5656B1B1D9D9", "G. c #3D3D80809E9E", "H. c #5050ABABD3D3", "J. c #35359E9ECCCC", "K. c #3939A0A0CDCD", "L. c #32329D9DCBCB", "P. c #4F4FABABD3D3", "I. c #39397A7A9797", "U. c #4949A5A5CDCD", "Y. c #1C1C8E8EC0C0", "T. c #1F1F9090C2C2", "R. c #1F1F7D7DA6A6", "E. c #20207A7AA1A1", "W. c #1C1C7C7CA6A6", "Q. c #4848A4A4CDCD", "!. c #363674749090", "~. c #41419D9DC5C5", "^. c #05057E7EB3B3", "/. c #06067F7FB4B4", "(. c #060667679292", "). c #B1B18C8C6060", "_. c #A9A97C7C4242", "`. c #050566669191", "'. c #41419D9DC6C6", "]. c #32326F6F8989", "[. c #40409999C0C0", "{. c #00007777ABAB", "}. c #000064649090", "|. c #00005F5F8989", " X c #2F2F68688383", ".X c #3F3F9595BABA", "XX c #0C0C7979A9A9", "oX c #00007272A4A4", "OX c #000045456363", "+X c #262669698888", "@X c #40407E7E9A9A", "#X c #3F3F9191B5B5", "$X c #3F3F71718686", "%X c #757575757676", "&X c #ACACACACACAC", "*X c #08088D8DC7C7", "=X c #242465658383", "-X c #28285E5E7676", ";X c #292954546868", ":X c #292942424F4F", ">X c #4D4D4E4E4F4F", ",X c #79797A7A7A7A", " , < O . . . . . . . . . ", ". . . . . . . . . . 1 2 3 4 5 ; : > , < 6 7 7 7 7 1 . . . . . . . . . ", ". . . . . . . . . . 8 9 0 q < 6 7 7 7 7 7 6 6 < , 8 . . . . . . . . . ", ". . . . . . . . X o w 7 7 7 7 7 6 6 < , , e r t y w o X . . . . . . . ", ". . . . . . . . u i X p 6 < a , s 0 d y - f g h $ X i u . . . . . . . ", ". . . . . . . . 8 j k s 0 9 ; - 4 3 l z x c v b n k j 8 . . . . . . . ", ". . . . . . . . m M N = B 2 V C Z A S D F G H J K N M m . . . . . . . ", ". . . . . . . . L P I @ U Y T R E W Q K ! ~ ^ / ( I P L . . . . . . . ", ". . . . . ) _ ` ' ] [ { } | ...X.o.O.+.@.#.$.%.&.[ ] ' ` _ ) . . . . ", ". . . . ) *.=.-.;.:.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.>.:.;.,.<.*.) . . . ", ". . . . 1.2.3.4.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.5.6.7.8.1.. . . ", ". . . . 9.0.q.w.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.r.t.y.9.. . . ", ". . . . u.i.p.a.s.d.d.d.d.d.d.d.d.d.d.d.d.d.d.d.d.d.d.s.f.g.h.u.. . . ", ". . . . j.k.l.z.x.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.x.z.v.b.j.. . . ", ". . . . n.m.M.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.N.B.V.n.. . . ", ". . . . C.Z.A.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.S.D.F.C.. . . ", ". . . . G.H.J.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.K.L.P.G.. . . ", ". . . . I.U.Y.T.T.T.T.T.T.T.T.T.T.T.T.T.T.T.T.T.T.T.R.E.E.W.Q.I.. . . ", ". . . . !.~.^./././././././././././././././././././.(.)._.`.'.!.. . . ", ". . . . ].[.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.{.}.|.|.}.[.].. . . ", ". . . . X.XXXoXoXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXOXoXoXXX.X X. . . ", ". . . . +X@X#X#X#X$X%X&X&X&X&X&X&X&X&X&X&X&X&X&X&X%X$X#X#X#X@X+X. . . ", ". . . . *X=X-X-X;X:X>X,X,X,X,X,X,X,X,X,X,X,X,X,X,X>X:X;X-X-X=X*X. . . ", ". . . . . . . tQ lm!B,cY^'ɮW 7exg7!0(QqSF9n=FrJ$h(7@wvvM*@Ե;S^F;Ro /FEAiqBej5a c&pxC|lnR*D2L$s'B߭q]%#^^7Ufi\?^7iձHNxW2HEO( #J^e~2/I2X%"IENDB`geg-2.0.9/src/pixmaps/zoom.xpm0000644000175000017500000000272212674025763016463 0ustar georgeskgeorgesk/* XPM */ static char * zoom_xpm[] = { "35 35 5 1", " c None", ". c #000000", "+ c #787C78", "@ c #F8FCF8", "# c #000078", " ", " ", " ", " ...... ", " ........ ", " .. .. ", " .. .. ", " .. .. ", " .. ", " .. ", " .. ", " .... .. ", " .. .. .. ", " .+@@@ ++. .. ", " .@@ +. ", " . @ . ", " . @ . .. ", " . . .. ", " . . ", " .+ @@. ", " .++ @@+.+ ", " .. @+### ", " ....# ### ", " # ### ", " # ### ", " # ## ", " ## ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/pixmaps/aint_m.xbm0000644000175000017500000000052607002017305016706 0ustar georgeskgeorgesk/* Made with Gimp */ #define aint_m_width 16 #define aint_m_height 19 static char aint_m_bits[] = { 0xf0, 0xff, 0xfc, 0xff, 0xfa, 0xff, 0xf6, 0xff, 0xef, 0xff, 0xff, 0xff, 0xd9, 0x9a, 0xb6, 0x6a, 0x36, 0xeb, 0x30, 0x9b, 0x56, 0x7b, 0xd6, 0x8a, 0xff, 0xff, 0x5a, 0xfc, 0xd2, 0xfe, 0xd2, 0xfe, 0xca, 0xfe, 0xca, 0xfe, 0xda, 0xfe }; geg-2.0.9/src/pixmaps/Makefile.am0000644000175000017500000000037512677664251017013 0ustar georgeskgeorgeskEXTRA_DIST = \ aint.xbm \ aint_m.xbm \ erase.xpm \ edit.xpm \ exit.xpm \ fint.xbm \ fint_m.xbm \ in.xpm \ line.xpm \ new.xpm \ out.xpm \ pi.xpm \ prefs.xpm \ print.xpm \ sine.xpm \ xy.xpm \ zoom0.xpm \ zoom.xbm \ zoom_m.xbm geg-2.0.9/src/pixmaps/exit.xpm0000644000175000017500000000276006572017670016450 0ustar georgeskgeorgesk/* XPM */ static char * exit_xpm[] = { "35 35 7 1", " c None", ". c #144B4B", "+ c #68A2A4", "@ c #FBAFAF", "# c #EE8D91", "$ c #0F888E", "% c #FBD8D8", " ", " ", " ", " ", " ", " ", " ", " %%%%% ", " %%%@@@@ ", " %%%%%% %%%%@@@@%% ", " %%%%%%%%% %%%@@@@%%%% ", " %%%%%%%%%%% %%%%@@%%%%%@@ ", " %%%%%%%%%%% %%%%@%%%%@@@@ ", " %%%%%%%%%%% @%@%%@%%%%@@@%% ", " @@@@@@@%%%%%%%%%@%%%%@%%%@@@%%%@ ", " ####@@%%%%%%%%%@@%@@@%%@@%%@@@ ", " ##%%%%%%%%%%@@@%%%%@%%@@@@@ ", " @%%%%%%%%%%%%%%%@@%%@@@@@ ", " %%%%%%%%%%%%@@%@@%%@##@@ ", " %%%%%%%%%%%%%@@#%%@@##@ ", " %%%%%%%%%%%%%%%@@@##@@ ", " %%%%%%%%%%%%%%%#@##@@# ", " %%%%%%%%%%%%%%%%@@@@# ", " %%%%%%%%%%%%%@@@@@# ", " %%%%%%@@@@@@@@@@### ", " %%%@@@@@@@@@@@## ", " %%@@@@@@@@#@## ", " %%#@@#@#### ", " %%@@@@## ", " %%%@@@# ", " %%%%%@@# ", " $$$$ %%%%%@@# ", " +$$$$$$++@%@@# ", " $$%$$$$$...##. ", " +$+$$$$.......... "}; geg-2.0.9/src/pixmaps/zoom0.xpm0000644000175000017500000000501512677663726016553 0ustar georgeskgeorgesk/* XPM */ static char * zoom0_xpm[] = { "35 35 55 1", " c None s None", ". c #A2A2A2A2A2A2", "X c #232323232323", "o c #070707070707", "O c #292929292929", "+ c #999999999999", "@ c #DFDFDFDFDFDF", "# c #272727272727", "$ c #BBBBBBBBBBBB", "% c #F1F1F1F1F1F1", "& c #B9B9B9B9B9B9", "* c #141414141414", "= c #C0C0C0C0C0C0", "- c #818181818181", "; c #A9A9A9A9A9A9", ": c #989898989898", "> c #6E6E6E6E6E6E", ", c #414141414141", "< c #DBDBDBDBDBDB", "1 c #D6D6D6D6D6D6", "2 c #363636363636", "3 c #191919191919", "4 c #F4F4F4F4F4F4", "5 c #121212121212", "6 c #080808080808", "7 c #FDFDFDFDFDFD", "8 c #FBFBFBFBFBFB", "9 c #050505050505", "0 c #060606060606", "q c #FCFCFCFCFCFC", "w c #090909090909", "e c #000000000000", "r c #181818181818", "t c #F2F2F2F2F2F2", "y c #1A1A1A1A1A1A", "u c #444444444444", "i c #DADADADADADA", "p c #D9D9D9D9D9D9", "a c #424242424242", "s c #7A7A7A7A7A7A", "d c #FAFAFAFAFAFA", "f c #8C8C8C8C8C8C", "g c #A3A3A3A3A3A3", "h c #A1A1A1A1A1A1", "j c #EBEBEBEBEBEB", "k c #2F2F2F2F2F2F", "l c #BEBEBEBEBEBE", "z c #F3F3F3F3F3F3", "x c #BDBDBDBDBDBD", "c c #E0E0E0E0E0E0", "v c #ADADADADADAD", "b c #1E1E1E1E1E1E", "n c #040404040404", "m c #A5A5A5A5A5A5", "M c #0D0D0D0D0D0D", " ", " ", " ", " ", " .XoO+ ", " @#$%&*= ", " -; :> ", " ,< 12 ", " 34 %5 ", " 67 89 ", " 0q qw ", " eeee r4 ty ", " ee ee ui pa ", " esddd sse fg h- ", " edd se jklzxXc ", " e d e vbnXm ", " e d e ", " e e ", " e e ", " es dde ", " ess ddses ", " ee dsMMM ", " eeeeM MMM ", " M MMM ", " M MMM ", " M MM ", " MM ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/pixmaps/erase.xpm0000644000175000017500000000272306572017670016575 0ustar georgeskgeorgesk/* XPM */ static char * erase_xpm[] = { "35 35 5 1", " c None", ". c #4D5D77", "+ c #0E19ED", "@ c #000000", "# c #FFFFFF", " ", " ", " ", " ", " ", " ", " ", " ", " ........... ", " .+++++++++.. ", " .+@+@++@++.+. ", " .+@+@++@++.++. ", " .+++@+@@++.+++. ", " .++@+++@++.++++. ", " .++@@@@@++.++++. ", " .+++++++++.++++. ", " ...........++++. ", " .########..+++. ", " .########.#.++. ", " .########.##.+. ", " ..........###.. ", " .#########.###. ", " .#########.##. ", " .#########.#. ", " .#########.. ", " ........... ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/pixmaps/restart.xpm0000644000175000017500000000304112703373022017141 0ustar georgeskgeorgesk/* XPM */ static char *restart_xpm[] = { /* columns rows colors chars-per-pixel */ "32 32 20 1 ", " c #009F3C", ". c #019F3C", "X c #019F3D", "o c #029F3D", "O c #02A03E", "+ c #03A03E", "@ c #04A03F", "# c #05A03F", "$ c #05A040", "% c #05A140", "& c #06A140", "* c #06A141", "= c #07A141", "- c #07A142", "; c #08A242", ": c #09A242", "> c #09A243", ", c #0AA344", "< c #0BA345", "1 c None s None", /* pixels */ "11111111111111111111111111111111", "1111111111111==@=O==111111111111", "1111111111; ;111111111", "11111111; 11111111", "1111111O O =111111", "111111 =1111== @11111", "11111 1111111111= @1111", "1111@ =1111111111111O ;111", "111; @111111111111111O 111", "111 =11111111111111111 @11", "11; 1111111111111111111 11", "11 ;1111111111111111111@ ;1", "11 111111111111111111111 o1", "11 o111111111111111111111 1", "1; =111111111111111111111 1", "1<=;;1111111111111111111111; 1", "111111111111111111111111111= 1", "111111111111111111111111111 1", "1111111111=,111111111111111 1", "11 =11111111111111; =1", "1; =111111111111111O ;1", "1; =1111111111111111 11", "1= ;1111111111111111 =11", "1; ;111111111111111O 111", "1O =1111111111111o ;111", "1= 1111111111; =1111", "1O 11 ;1111;= @11111", "1= 1111 =111111", "1@111111= 11111111", "1111111111= O O;111111111", "1111111111111==OO===111111111111", "11111111111111111111111111111111" }; geg-2.0.9/src/pixmaps/edit.xpm0000644000175000017500000000444512671561171016423 0ustar georgeskgeorgesk/* XPM */ static char * edit_xpm[] = { "35 35 44 1", " c None s None", ". c #F9F9F9F9F9F9", "X c #A5A5A5A5A5A5", "o c #7B7B7B7B7B7B", "O c #AEAEAEAEAEAE", "+ c #E7E7E7E7E7E7", "@ c #2D2D2D2D2D2D", "# c #000000000000", "$ c #4E4E4E4E4E4E", "% c #F6F6F6F6F6F6", "& c #272727272727", "* c #7E7E7E7E7E7E", "= c #181818181818", "- c #484848484848", "; c #2A2A2A2A2A2A", ": c #EAEAEAEAEAEA", "> c #D5D5D5D5D5D5", ", c #151515151515", "< c #454545454545", "1 c #8A8A8A8A8A8A", "2 c #D2D2D2D2D2D2", "3 c #9F9F9F9F9F9F", "4 c #1B1B1B1B1B1B", "5 c #999999999999", "6 c #6F6F6F6F6F6F", "7 c #969696969696", "8 c #242424242424", "9 c #939393939393", "0 c #F3F3F3F3F3F3", "q c #909090909090", "w c #878787878787", "e c #636363636363", "r c #060606060606", "t c #E1E1E1E1E1E1", "y c #787878787878", "u c #FCFCFCFCFCFC", "i c #121212121212", "p c #DEDEDEDEDEDE", "a c #B7B7B7B7B7B7", "s c #212121212121", "d c #1E1E1E1E1E1E", "f c #666666666666", "g c #B4B4B4B4B4B4", "h c #757575757575", " .XoO ", " +@###$% ", " +&#&*=#-% ", " +;#;: >,#<% ", " +;#@: >,#<.", " +;##1 2,#3", " +;#4##5 1#6", " +;##17##5 +8#5", " +;#4##59##5 :;#@0", " +;#@:7##5q##w@#;: ", " :;#@: q##5q###;: ", " :;#@: +4##w4#@: ", " :;#@: +;#4###@: ", " :;#@: +;#@24#@: ", " :;#@: :;#@2;#@: ", " :;#@: :;#@2;#@: ", " :;#@: :;#@2;#@: ", " :;#@: :;#@2;#@: ", " :@#@: :;#@2;#@: ", " :@#@: :@#@2;#@: ", " :@#@: :@#@2;#@: ", " :@#@: :@#@2;#@: ", " :@#@: :@#@2;#@: ", " :@#@: :@#@2&#@: ", " e#rt y#@2&#@: ", " ui##<% pw>&#@: ", " a#s=#<% +&#@: ", " e#w>=#<% +&#@: ", " ui#w >=#-p&#@: ", " a###5 >=#r#@: ", " e####wod##@: ", "ui#######,f: ", "g#####,ea ", "h##,ea ", "poa "}; geg-2.0.9/src/pixmaps/fint_m.xbm0000644000175000017500000000071307002017643016716 0ustar georgeskgeorgesk/* Made with Gimp */ #define fint_m_width 17 #define fint_m_height 19 static char fint_m_bits[] = { 0xf0, 0xff, 0x01, 0xfc, 0xff, 0x01, 0xfa, 0xff, 0x01, 0xf6, 0xff, 0x01, 0xef, 0xff, 0x01, 0xff, 0xff, 0x01, 0x68, 0x6d, 0x00, 0x6e, 0xa9, 0x01, 0x6e, 0xa1, 0x01, 0x6c, 0xa5, 0x01, 0x6e, 0xad, 0x01, 0x9e, 0x6d, 0x00, 0xff, 0xff, 0x01, 0x5a, 0xfc, 0x01, 0xd2, 0xfe, 0x01, 0xd2, 0xfe, 0x01, 0xca, 0xfe, 0x01, 0xca, 0xfe, 0x01, 0xda, 0xfe, 0x01 }; geg-2.0.9/src/pixmaps/new.xpm0000644000175000017500000000270206572017670016264 0ustar georgeskgeorgesk/* XPM */ static char * new_xpm[] = { "35 35 4 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #9C999C", " ", " ", " ", " ", " ", " ", " ", " ", " .......... ", " .++++++++.. ", " .++++++++.@. ", " .++++++++.@@. ", " .++++++++..... ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .++++++++++++. ", " .............. ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/pixmaps/sine.xpm0000644000175000017500000000266406572017670016440 0ustar georgeskgeorgesk/* XPM */ static char * sine_xpm[] = { "35 35 3 1", " c None", ". c #C20A1D", "+ c #3D91C0", " + ", " + ", " + ", " . + . ", " . + . . ", " . + . . ", " . + . . ", " . + . . ", " . + . . ", " . + . . ", " . + . . ", " . + . . ", " . +. . ", " . +. . ", " . +. .. ", " . +. . ", " . . . ", "++++++.++++++++++.++++++++++.++++++", " . . . ", " . . . ", " . .+ . ", " . .+ . ", " . .+ . ", " . .+ . ", " . .+ . ", " . . + . ", " . . + . ", " . . + . ", " . . + . ", " . . + . ", " . . + . ", " .. + ..", " + ", " + ", " + "}; geg-2.0.9/src/pixmaps/sequence.xpm0000644000175000017500000000271312712204110017261 0ustar georgeskgeorgesk/* XPM */ static char * sequence_xpm[] = { "35 35 3 1", " c None s None", ". c #3D3D9191C0C0", "X c #FFFF00000000", " . ", " . ", " . X ", " . XXX ", " X . X ", " XXX . ", " X . ", " . X ", " . XXX ", " X . X X ", " XXX . XXX ", " X . X ", " . ", " . ", " . ", " . ", " . ", "...................................", " . ", " . ", " X . ", " XXX . X ", " X X . XXX ", " XXX . X ", " X . ", " . ", " . ", " . ", " X . X ", " XXX . XXX ", " X . X ", " . ", " . ", " . ", " . "}; geg-2.0.9/src/pixmaps/aint.xbm0000644000175000017500000000052007002017401016361 0ustar georgeskgeorgesk/* Made with Gimp */ #define aint_width 16 #define aint_height 19 static char aint_bits[] = { 0x0f, 0x00, 0x03, 0x00, 0x05, 0x00, 0x09, 0x00, 0x10, 0x00, 0x00, 0x00, 0x26, 0x65, 0x49, 0x95, 0xc9, 0x14, 0xcf, 0x64, 0xa9, 0x84, 0x29, 0x75, 0x00, 0x00, 0xa5, 0x03, 0x2d, 0x01, 0x2d, 0x01, 0x35, 0x01, 0x35, 0x01, 0x25, 0x01 }; geg-2.0.9/src/pixmaps/out.xpm0000644000175000017500000000272106572223157016302 0ustar georgeskgeorgesk/* XPM */ static char * out_xpm[] = { "35 35 5 1", " c None", ". c #000000", "+ c #787C78", "@ c #F8FCF8", "# c #000078", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ............ ", " ............ ", " .... ............ ", " .. .. ", " .+@@@ ++. ", " .@@ +. ", " . @ . ", " . @ . ", " . . ", " . . ", " .+ @@. ", " .++ @@+.+ ", " .. @+### ", " ....# ### ", " # ### ", " # ### ", " # ## ", " ## ", " ", " ", " ", " ", " ", " ", " ", " "}; geg-2.0.9/src/parser.c0000644000175000017500000005256412716431347014735 0ustar georgeskgeorgesk/* parser.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ /* * Corrected grammar * Kris Jurka 27/7/1999 */ /* * Corrected more grammar * Torsten Landschoff 24/11/1999 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "parser.h" #include "prefs.h" #include "tokeniser.h" #include "log.h" #include "i18n.h" /* #define DEBUG 1 */ /* * * EBNF: * ::= +|- { +|- } * ::= { *|/ } * ::= { ^ } * ::= | | () * ::= | x * ::= () */ static parse_tree *split(void); static parse_tree *expr(void); static parse_tree *term(void); static parse_tree *factor(void); static parse_tree *product(void); static token_list *list_g; /* global list, makes life easier */ static gint parse_error; /* flag this when a parse error occurs */ /* Coefficients of Gauss-Legendre method */ #define ORDER 5 static double gauss_x[ORDER] = { 0.046910077030668, 0.23076534494715845, 0.5, 0.76923465505284155, 0.953089922969332 }; static double gauss_y[ORDER] = { 0.11846344252809454, 0.23931433524968324, 0.28444444444444444, 0.23931433524968324, 0.11846344252809454 }; /* main variables a-z */ extern gdouble var[ENDVARIABLES]; extern parse_tree *fun[26]; extern struct_ranges ranges; extern void set_mode(gint i); /* some convenience functions follow, these stop seg faults and other stuff, * when the user enters un-parsable equations. * There is probably a fair bit of redundancy in the NULL pointer checking * but leave it there for now. */ static gint token_type_is(gint type) { if(!list_g) return(FALSE); return((list_g->type & 255) == type); } static gint token_subtype() { if(!list_g) return(-1); return(list_g->type >> 8); } static gint token_type(void) { if(!list_g) return(EOE); return(list_g->type); } static gdouble token_value(void) { if(!list_g) return(0); return(list_g->value); } static void get_next_token(void) { if(list_g) list_g = list_g->next; } static void skip_token(gint type) { if(!list_g) { parse_error = TRUE; return; } else if((list_g->type & 255)!= type) parse_error = TRUE; list_g = list_g->next; } /* end of convenience functions */ /* split all semicolon separated expressions */ static parse_tree * split(void) { parse_tree *tree = NULL, *temp_tree; while(!token_type_is(EOE)) { if (token_type_is(SEP)) { temp_tree = tree; tree = g_new(parse_tree, 1); tree->left = temp_tree; tree->type = token_type(); get_next_token(); if (!list_g) { tree->right = NULL; break; } tree->right = expr(); if (!tree->right) break; } else { tree = expr(); if (!tree) break; } } return(tree); } /* expr, starting non-terminal for generating parse tree */ static parse_tree * expr(void) { parse_tree *tree = NULL, *temp_tree; #if DEBUG fprintf(stderr, "expr %d\n", token_type()); #endif if(token_type_is(DEF)) { get_next_token(); if (token_type_is(EQU)) { tree = g_new(parse_tree, 1); tree->left = NULL; tree->type = token_type(); get_next_token(); tree->right = expr(); return(tree); } else { parse_error = TRUE; return(NULL); } } if(token_type_is(NUM) || token_type_is(VAR) || token_type_is(FUN) || token_type_is(SUB) || /* negate, (not minus) */ token_type_is(LB) || token_type_is(LCB) || token_type_is(LSB)) { tree = term(); } else { parse_error = TRUE; return(NULL); } while(token_type_is(ADD) || token_type_is(SUB)) { temp_tree = tree; /* save the old tree */ tree = g_new(parse_tree, 1); tree->type = token_type(); tree->left = temp_tree; /* push old tree down a 'left branch' */ get_next_token(); tree->right = term(); /* 'right branch' */ } if((tree == NULL) || (token_type_is(ERR))) parse_error = TRUE; return(tree); } /* term, non-terminal */ static parse_tree * term(void) { parse_tree *tree = NULL, *temp_tree; #if DEBUG fprintf(stderr, "term %d\n", token_type()); #endif if(token_type_is(NUM) || token_type_is(VAR) || token_type_is(FUN) || token_type_is(SUB) || /* negate, (not minus) */ token_type_is(LB) || token_type_is(LCB) || token_type_is(LSB)) { if(token_type_is(SUB)) { /* negate */ tree = g_new(parse_tree, 1); tree->type = SUB; /* token_type(); */ tree->left = g_new(parse_tree, 1); tree->left->type = NUM; tree->left->left = NULL; tree->left->right = NULL; get_next_token(); /* skip the minus-sign */ tree->right = product(); } else { tree = product(); } } else { parse_error = TRUE; return(NULL); } while(token_type_is(MUL) || token_type_is(DIV) || token_type_is(VAR) || token_type_is(FUN) || token_type_is(LB) || token_type_is(LCB) || token_type_is(LSB)) { if(token_type_is(VAR) || /* assume multiplication */ token_type_is(FUN) || token_type_is(LB) || token_type_is(LCB) || token_type_is(LSB)) { temp_tree = tree; tree = g_new(parse_tree, 1); tree->type = MUL; /* set multiplication */ tree->left = temp_tree; tree->right = term(); } else { temp_tree = tree; tree = g_new(parse_tree, 1); tree->type = token_type(); tree->left = temp_tree; get_next_token(); tree->right = term(); } } if(tree == NULL) parse_error = TRUE; return(tree); } /* product, non-terminal */ static parse_tree * product(void) { parse_tree *tree = NULL, *temp_tree; #if DEBUG fprintf(stderr, "prod %d\n", token_type()); #endif if(token_type_is(NUM) || token_type_is(VAR) || token_type_is(FUN) || token_type_is(LB) || token_type_is(LCB) || token_type_is(LSB)) { tree = factor(); } else { parse_error = TRUE; return(NULL); } while(token_type_is(POW)) { temp_tree = tree; tree = g_new(parse_tree, 1); tree->type = token_type(); tree->left = temp_tree; get_next_token(); tree->right = product(); } if(tree == NULL) parse_error = TRUE; return(tree); } /* factor, non-terminal * negation is a bit of a hack, if we get a negator, we create a left tree, * with number=0, and a negation node, and continue down the right tree.... * ie, we subtract the following factor from 0 */ static parse_tree * factor(void) { parse_tree *tree; gdouble *val; #if DEBUG fprintf(stderr, "factor %d\n", token_type()); #endif if(token_type_is(NUM) || token_type_is(VAR)) { tree = g_new(parse_tree, 1); tree->right = NULL; tree->type = token_type(); if (token_type_is(NUM)) { /* use left field as pointer to value */ val = g_new(double, 1); *val = token_value(); tree->left = (parse_tree *)val; } else tree->left = NULL; get_next_token(); return(tree); } else if(token_type_is(FUN)) { tree = g_new(parse_tree, 1); tree->left = (parse_tree *)list_g->func; tree->type = token_type(); skip_token(FUN); if(token_type_is(LB)) { skip_token(LB); tree->right = expr(); skip_token(RB); } else if(token_type_is(LSB)) { skip_token(LSB); tree->right = expr(); skip_token(RSB); } else { skip_token(LCB); tree->right = expr(); skip_token(RCB); } return(tree); } else if(token_type_is(LB)) { skip_token(LB); tree = expr(); skip_token(RB); return(tree); } else if(token_type_is(LSB)) { skip_token(LSB); tree = expr(); skip_token(RSB); return(tree); } else if(token_type_is(LCB)) { skip_token(LCB); tree = expr(); skip_token(RCB); return(tree); } else { parse_error = TRUE; return(NULL); } } static gint fix_equal() { token_list *list, *listp = NULL, *listpp; list = list_g; while(1) { /* search for x = ? tokens, and set variable to appropriate value from previous token if it is a VAR preceded by a SEP, otherwise do parse error */ listpp = listp; listp = list; list = list->next; if (!list) break; if (list->type == EQU) { if (listpp && ((listpp->type & 255) != SEP)) { return(parse_error = TRUE); } if ((listp->type & 255) != VAR) { return(parse_error = TRUE); } /* attach assigned variable to = operator */ list->type |= listp->type & 0xff00; listp->type = DEF; } } return parse_error; } static parse_tree * def_tree(glong i, parse_tree *tree) { parse_tree *temp_tree; temp_tree = g_new(parse_tree, 1); temp_tree->type = DEF; temp_tree->left = (parse_tree *) i; temp_tree->right = tree; return(temp_tree); } static parse_tree * directive(void) { token_list *list; parse_tree *tree = NULL, *temp_tree = NULL; gint t, u, v, w; if (token_type_is(VAR)) { /* assignment of variable */ /* &z=... */ list = list_g; get_next_token(); if (!token_type_is(EQU)) return(NULL); tree = make_parse_tree(list); if (!tree) return(NULL); return(def_tree(1, tree)); } if (!token_type_is(FUN)) return(NULL); v = token_subtype(); /* predefined functions not allowed */ if (v == 255) return(NULL); if (v >= 251 && v <= 254) { /* cart, polar, param, sequ and nothing more */ list = list_g; get_next_token(); if (token_type_is(EOE)) { set_mode(254 - v); return(def_tree(0, NULL)); } return(NULL); } /* assignment of user defined function ? */ /* &fa... */ if (token_type_is(FUN) && v >= 0 && v <= 25) get_next_token(); else return(NULL); if (!token_type_is(EQU)) { if (token_type_is(LB)) get_next_token(); else return(NULL); /* syntax should be &fa(p)=... */ if (token_type_is(VAR)) { w = token_subtype(); get_next_token(); } else return(NULL); if (token_type_is(RB)) get_next_token(); else return(NULL); if (token_type_is(EQU)) get_next_token(); else return(NULL); if (token_type_is(EOE)) return(NULL); if (fix_equal()) return(NULL); temp_tree = split(); if((parse_error)||(!token_type_is(EOE))) { if (temp_tree) free_tree(temp_tree); return(NULL); } if (fun[v]) free_tree(fun[v]); tree = g_new(parse_tree, 1); tree->type = FUN | (v << 8) | (w << 16); tree->left = NULL; tree->right = temp_tree; fun[v] = tree; return(def_tree(0, NULL)); } /* so token type is EQU */ /* &fa=... */ get_next_token(); if (token_type_is(FUN)) { /* &fa=fb... or &fa= */ w = token_subtype(); list = list_g; get_next_token(); if (!token_type_is(DER)) return NULL; get_next_token(); if (!token_type_is(EOE)) return(NULL); if (fun[v]) { free_tree(fun[v]); fun[v] = NULL; } if (w == 255) { /* derivative of predefined function */ tree = g_new(parse_tree, 1); tree->type = FUN | (v << 8) | (26 << 16); tree->left = (parse_tree *) list->func; tree->right = NULL; fun[v] = tree; return(def_tree(0, NULL)); } else if (w >= 0 && w <= 25) { /* derivative of user defined function */ tree = g_new(parse_tree, 1); tree->type = FUN | (v << 8) | ((27+w) << 16); tree->left = NULL; tree->right = NULL; fun[v] = tree; return(def_tree(0, NULL)); } return(NULL); } if (token_type_is(INT) || token_type_is(TGT)) { /* &fa=tgt_c_function */ t = (token_type_is(INT))? 81 : 54; get_next_token(); if(!token_type_is(RES)) return(NULL); get_next_token(); if (!token_type_is(VAR)) return(NULL); u = list_g->type >> 8; get_next_token(); if (!token_type_is(RES)) return(NULL); get_next_token(); if(!token_type_is(FUN)) return(NULL); w = token_subtype(); list = list_g; get_next_token(); if (!token_type_is(EOE)) return(NULL); if (w == 255) { /* tangent/integral of predefined function */ if (fun[v]) { free_tree(fun[v]); fun[v] = NULL; } tree = g_new(parse_tree, 1); tree->type = FUN | (v << 8) | ((t-1) << 16) | (u << 24); tree->left = (parse_tree *) list->func; tree->right = NULL; fun[v] = tree; return(def_tree(0, NULL)); } else if (w >= 0 && w <= 25) { /* tangent/integral of user defined function */ tree = g_new(parse_tree, 1); tree->type = FUN | (v << 8) | ((t+w) << 16) | (u << 24); tree->left = NULL; tree->right = NULL; fun[v] = tree; return(def_tree(0, NULL)); } } return(NULL); } /* make_parse_tree, creates a parse tree from a list of tokens */ parse_tree * make_parse_tree(token_list *list) { parse_tree *tree = NULL, *temp_tree; parse_error = FALSE; list_g = list; /* assign global list */ /* Check if initial token is #, ?, = or & */ if (token_type_is(COM)) { /* comment */ tree = g_new(parse_tree, 1); tree->left = NULL; tree->right = NULL; tree->type = COM; return(tree); } else if (token_type_is(ASK)) { /* evaluation request */ get_next_token(); if (fix_equal()) return(NULL); temp_tree = split(); if((!temp_tree) || (parse_error) || (!token_type_is(EOE))) return(NULL); tree = g_new(parse_tree, 1); tree->left = NULL; tree->right = temp_tree; tree->type = ASK; return(tree); } else if (token_type_is(EQU)) { /* solving equation */ get_next_token(); if (fix_equal()) return(NULL); temp_tree = split(); if((!temp_tree) || (parse_error) || (!token_type_is(EOE))) return(NULL); tree = g_new(parse_tree, 1); tree->left = NULL; tree->right = temp_tree; tree->type = SOL; return(tree); } else if (token_type_is(DEF)) { /* directive : change of coordinates or definition of function */ get_next_token(); tree = directive(); return(tree); } if (fix_equal()) return(NULL); tree = split(); if((parse_error)||(!token_type_is(EOE))) return(NULL); return(tree); } /* free_tree, frees the memory allocated to the tree using a recursive * algorithm */ void free_tree(parse_tree *tree) { gint i; #if DEBUG printf("tree = %d type = %d %d left = %d right = %d\n", tree, tree->type & 255, tree->type >> 8, tree->left, tree->right); #endif if(tree->left) { i = tree->type & 255; if (i == NUM || i == VAR) g_free(tree->left); else if (i != DEF && i != FUN) free_tree(tree->left); } if(tree->right) free_tree(tree->right); g_free(tree); } #if 0 /* dup_tree, duplicates the tree using a recursive algorithm */ parse_tree * dup_tree(parse_tree *tree) { gint i; parse_tree * new_tree; new_tree = g_new(parse_tree, 1); new_tree->type = tree->type; new_tree->right = (tree->right)? dup_tree(tree->right) : NULL; if (tree->left) { i = tree->type & 255; if (i == NUM || i == VAR) { new_tree->left = (parse_tree *)g_new(gdouble, 1); *(gdouble *)new_tree->left = *(gdouble *)tree->left; } else if (i != DEF && i != FUN) new_tree->left = dup_tree(tree->left); } else new_tree->left = NULL; return(new_tree); } #endif gint tan_check(gdouble x) { if (!isnan(var[TGTR]) && x > var[TGTR]) return 1; if (!isnan(var[TGTL]) && x < var[TGTL]) return 1; return 0; } static gdouble eval_function(gint v, gdouble x) { gdouble A, c, y, h, s, t; gint k, l, m, n, w; Func func; if (v < 0 || v > 25) return(NAN); if (!fun[v]) return(NAN); w = ((fun[v]->type) >> 16) & 255; if (w >= 0 && w <= 25) { s = var[w]; var[w] = x; y = eval_tree(fun[v]->right); var[w] = s; return(y); } w -= 27; /* derivative function */ if (w >= 0 && w <= 25) { /* derivative of user defined function */ y = eval_function(w, x + 0.5 * var[INCR]); y = 8.0 * (y - eval_function(w, x - 0.5 * var[INCR])); y = y - eval_function(w, x + var[INCR]); y = var[MULT] * (y + eval_function(w, x - var[INCR])); return(y); } if (w == -1) { /* derivative of predefined function */ func = (Func)(fun[v]->left); if (!func) return(NAN); y = var[MULT] * ( 8.0 * (func(x + 0.5 * var[INCR]) - func(x - 0.5 * var[INCR])) -(func(x + var[INCR]) - func(x - var[INCR]))); return(y); } w -= 27; /* tangent function */ if (w >= 0 && w <= 25) { /* tangent of user defined function */ k = (fun[v]->type) >> 24; if (k > 25) return(NAN); c = var[k]; if (var[ACTV] && tan_check(x - c)) return(NAN); y = eval_function(w, c + 0.5 * var[INCR]); y = 8.0 * (y - eval_function(w, c - 0.5 * var[INCR])); y = y - eval_function(w, c + var[INCR]); y = var[MULT] * (y + eval_function(w, c - var[INCR])); y = eval_function(w, c) + (x - c) * y; return(y); } if (w == -1) { /* tangent of predefined function */ k = (fun[v]->type) >> 24; if (k > 25) return(NAN); c = var[k]; if (var[ACTV] && tan_check(x - c)) return(NAN); func = (Func)(fun[v]->left); if (!func) return(NAN); y = var[MULT] * ( 8.0 * (func(c + 0.5 * var[INCR]) - func(c - 0.5 * var[INCR])) -(func(c + var[INCR]) - func(c - var[INCR]))); y = func(c) + (x - c) * y; return(y); } w -= 27; /* indefinite integral */ if (w >= 0 && w <= 25) { /* integral of user defined function */ k = (fun[v]->type) >> 24; if (k > 25) return(NAN); c = var[k]; if (fun[v] == integr[v].ptr && fabs(x-integr[v].c) < fabs(x-c)) { c = integr[v].c; A = integr[v].A; } else { A = 0; } m = (int) (fabs(x - c) / var[INTSTEP]) + 1; h = (x - c) / m; y = 0; /* Gauss-Legendre method */ for (l = 0; l < m; l++) { for (n = 0; n < ORDER; n++) { t = eval_function(w, c + gauss_x[n] * h); if (!isfinite(t)) return(NAN); y = y + gauss_y[n] * t; } c = c + h; } A = A + h * y; integr[v].ptr = fun[v]; integr[v].c = x; integr[v].A = A; return(A); } if (w == -1) { /* indefinite integral of predefined function */ k = (fun[v]->type) >> 24; if (k > 25) return(NAN); func = (Func)(fun[v]->left); if (!func) return(NAN); c = var[k]; if (fun[v] == integr[v].ptr && fabs(x-integr[v].c) < fabs(x-c)) { c = integr[v].c; A = integr[v].A; } else { A = 0; } m = (int) (fabs(x - c) / var[INTSTEP]) + 1; h = (x - c) / m; y = 0; /* Gauss-Legendre method */ for (l = 0; l < m; l++) { for(n = 0; n < ORDER; n++) { t = func(c + gauss_x[n] * h); if (!isfinite(t)) return(NAN); y = y + gauss_y[n] * t; } c = c + h; } A = A + h * y; integr[v].ptr = fun[v]; integr[v].c = x; integr[v].A = A; return(A); } return(NAN); } /* eval_tree, this function recursively evaluates the parse tree using * LRN notation. Currently only unary functions are supported, where the * argument to the function is assumed to be the left child branch of the * function node.... in the future binary functions might exist, like mod, * where the arguments are the children branches from left to right */ double eval_tree(parse_tree *tree) { static gint v; static gdouble x, y; static Func func; /* printf("Tree[%d,%d,%d] = %d left = %d right = %d\n", tree->token.type & 255, (tree->token.type >> 8) & 255, (tree->token.type >> 16) & 255, tree, tree->left, tree->right); */ switch(tree->type & 255) { case ADD: return(eval_tree(tree->left) + eval_tree(tree->right)); case SUB: return(eval_tree(tree->left) - eval_tree(tree->right)); case MUL: return(eval_tree(tree->left) * eval_tree(tree->right)); case DIV: x = eval_tree(tree->left) ; y = eval_tree(tree->right); if (y == 0) return(NAN); return(x / y); case POW: return(pow(eval_tree(tree->left) , eval_tree(tree->right))); case SEP: (void) eval_tree(tree->left); return(eval_tree(tree->right)); case FUN: v = (tree->type >> 8) & 255; if (v == 255) { /* predefined function */ func = (Func) tree->left; return(func(eval_tree(tree->right))); } return(eval_function(v, eval_tree(tree->right))); case NUM: if (tree->left) return(*(gdouble *)tree->left); else return(0); case VAR: return(var[tree->type>>8]); case EQU: v = tree->type>>8; if (v < ENDVARIABLES) return(var[v] = eval_tree(tree->right)); default: write_log(_("Eval Error")); return(0); } } geg-2.0.9/src/main.c0000644000175000017500000000133112677707545014363 0ustar georgeskgeorgesk/* main.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "app.h" #include #include #include #include "i18n.h" extern void initialize_prefs(); int main(int argc, char *argv[]) { initialize_prefs(); parse_command_line(argc, argv); parse_input_file(); bindtextdomain ("geg", "/usr/share/locale"); textdomain ("geg"); bind_textdomain_codeset ("geg", "UTF-8"); gtk_set_locale(); gtk_init(&argc, &argv); // important : the rcfile must be with a standard LC_NUMERIC locale setlocale (LC_NUMERIC, "C"); if(app()) g_error(_("error initialising")); gtk_main(); return(0); } geg-2.0.9/src/colors.c0000644000175000017500000000173312700767346014736 0ustar georgeskgeorgesk/* colors.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "colors.h" #include "prefs.h" extern struct_prefs prefs; /* alloc_color, convenience function to allocate a color from vals */ void alloc_color(GdkColor *color, gdouble *vals, GdkColormap *colormap) { color->red = (gushort)(65535 * vals[0]); color->green = (gushort)(65535 * vals[1]); color->blue = (gushort)(65535 * vals[2]); g_assert(colormap != NULL); g_assert(gdk_color_alloc(colormap, color) != 0); } /* alloc_func_colors, allocates the colors to be used for the functions */ void alloc_func_colors(GdkColormap *colormap) { int i; for(i = 0; i < prefs.n_colors; i++) alloc_color(&prefs.gdk_color[i], &prefs.rgb_value[3*i], colormap); } void color_print(FILE *fd, int i) { fprintf(fd, "%f %f %f\n", prefs.rgb_value[3*i], prefs.rgb_value[3*i+1], prefs.rgb_value[3*i+2]); } geg-2.0.9/src/Makefile.am0000644000175000017500000000157112675433352015323 0ustar georgeskgeorgesk## Process this file with automake to produce Makefile.in scriptdata = SUBDIRS = \ pixmaps bin_PROGRAMS = geg geg_SOURCES = \ about.c \ about.h \ app.c \ app.h \ colors.h \ colors.c \ colorsel.c \ colorsel.h \ formulas.c \ formulas.h \ help.c \ help.h \ localfunctions.c \ localfunctions.h \ log.c \ log.h \ main.c \ misc.c \ misc.h \ parser.c \ parser.h \ prefs.c \ prefs.h \ tokeniser.c \ tokeniser.h AM_CPPFLAGS = \ $(GTK_CFLAGS) geg_LDADD = \ $(GTK_LIBS) podir=../po XGETTEXT=xgettext messages: LIST=`find . -name \*.h -o -name \*.hh -o -name \*.H -o -name \*.hxx -o -name \*.hpp -o -name \*.cpp -o -name \*.cc -o -name \*.cxx -o -name \*.ecpp -o -name \*.C`; \ if test -n "$$LIST"; then \ $(XGETTEXT) $$LIST -j -o $(podir)/geg.pot; \ fi install-data-am: install -c -m 755 scripts/eps2svg $(DESTDIR)/usr/bingeg-2.0.9/src/tokeniser.h0000644000175000017500000000260712714624207015437 0ustar georgeskgeorgesk#ifndef __TOKEN_H__ #define __TOKEN_H__ #include /* token types */ #define NUM 0x01 /* this is meant for constants, e.g. pi */ #define EQU 0x02 /* = */ #define ADD 0x03 /* + */ #define SUB 0x04 /* - */ #define MUL 0x05 /* * */ #define DIV 0x06 /* / */ #define LB 0x07 /* ( */ #define RB 0x08 /* ) */ #define VAR 0x09 /* variables a-z and other parameters */ #define POW 0x0a /* ^ */ #define FUN 0x0b /* functions, predefined or user defined */ #define LSB 0x0c /* [ */ #define RSB 0x0d /* ] */ #define LCB 0x0e /* { */ #define RCB 0x0f /* } */ #define SEP 0x10 /* ; */ #define INT 0x11 /* int */ #define TGT 0x12 /* tgt */ #define DER 0x13 /* ' */ #define RES 0x14 /* _ */ #define DEF 0x15 /* & */ #define COM 0x16 /* # */ /* comments */ #define ASK 0x17 /* ? */ #define SOL 0x18 /* = as initial character */ #define EOE 0x80 /* end of entry */ #define ERR 0xff /* error */ typedef double (*Func) (double); struct _token_info { gint type; double value; Func func; struct _token_info *next; }; typedef struct _token_info token_list; typedef struct _token_info token_node; extern token_list *make_token_list(gchar *equation); extern void free_list(token_list *list); extern void set_output(gdouble x); #endif /* __TOKEN_H__ */ geg-2.0.9/src/misc.c0000644000175000017500000000110706605123725014355 0ustar georgeskgeorgesk/* misc.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "misc.h" #include #include #include /* locally global data */ static char buf[100]; /* ftoa */ gchar *ftoa(double f) { char buf2[100]; sprintf(buf2, "%%0.%df", MAX(5 - MAX((gint)log10(fabs(f)), 0), 0)); sprintf(buf, buf2, f); return(buf); } /* ltoa */ gchar *ltoa(long l) { sprintf(buf, "%li", l); return(buf); } /* sign */ gint sign(float f) { if(f < 0) return -1; return 1; } geg-2.0.9/src/localfunctions.h0000644000175000017500000000103312716312546016451 0ustar georgeskgeorgesk#ifndef __LOCALFUNCTIONS_H__ #define __LOCALFUNCTIONS_H__ extern double l_sinc(double x); extern double l_floor(double x); extern double l_char(double x); extern double l_clip(double x); extern double l_sign(double x); extern double l_cut(double x); extern double l_out(double x); extern double l_acsc(double x); extern double l_asec(double x); extern double l_acot(double x); extern double l_csc(double x); extern double l_sec(double x); extern double l_cot(double x); extern double l_phi(double x); #endif /* __LOCAL_FUNCTIONS_H__ */ geg-2.0.9/src/prefs.h0000644000175000017500000001073012716263711014550 0ustar georgeskgeorgesk#ifndef __PREFS_H__ #define __PREFS_H__ #include extern void free_prefs_allocs(); extern void initialize_prefs(); extern void prefs_to_widgets(void); extern void widgets_to_prefs(GtkWidget *widget, gpointer data); extern void prefs_event(GtkWidget *widget, gpointer data); extern GtkWidget * get_prefs_widget(); extern FILE* prefs_rc_parse(gchar *filename, gint rc); extern FILE* prefs_rc_write(gchar *filename, gint rc); /* default utilities */ #define DEF_EDITOR "emacs" #define DEF_EPS_TO_PDF "ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress" #define DEF_EPS_VIEWER "evince" #define DEF_PDF_VIEWER "evince" #define DEF_SVG_VIEWER "inkscape" #define DEF_EPS_TO_SVG "eps2svg" /* rc defines */ #define GEG_RC_TOOLBAR 0 #define GEG_RC_TOOLTIPS 1 #define GEG_RC_XMIN 2 #define GEG_RC_XMAX 3 #define GEG_RC_YMIN 4 #define GEG_RC_YMAX 5 #define GEG_RC_TMIN 6 #define GEG_RC_TMAX 7 #define GEG_RC_AMIN 8 #define GEG_RC_AMAX 9 #define GEG_RC_GRAPH_WIDTH 10 #define GEG_RC_GRAPH_HEIGHT 11 #define GEG_RC_COORD_TYPE 12 #define GEG_RC_MODE_TYPE 13 #define GEG_RC_ZOOM_FACTOR 14 #define GEG_RC_NOTCH_SPACING 15 #define GEG_RC_MINIMUM_RESOLUTION 16 #define GEG_RC_MAXIMUM_RESOLUTION 17 #define GEG_RC_INTERPOLATION_FACTOR 18 #define GEG_RC_MAXIMUM_FORMULAS 19 #define GEG_RC_BACKGROUND 20 #define GEG_RC_NUMBERS 21 #define GEG_RC_AXES 22 #define GEG_RC_SELECTION 23 #define GEG_RC_PICTURES_AND_TEXT 24 #define GEG_RC_PICTURES_ONLY 25 #define GEG_RC_TEXT_ONLY 26 #define GEG_RC_ON 27 #define GEG_RC_OFF 28 #define GEG_RC_EPS 0 #define GEG_RC_PDF 1 #define GEG_RC_SVG 2 /* defaults */ #define DEF_RC_INIT 1 #define DEF_RC_FILE 0 /* toolbar stuff */ #define DEF_TB GEG_RC_PICTURES_AND_TEXT #define DEF_TT GEG_RC_ON #define DEF_PRINT GEG_RC_PDF /* startup stuff */ #define DEF_XMIN -12 #define DEF_XMAX +12 #define DEF_YMIN -9 #define DEF_YMAX +9 #define DEF_TMIN 0 #define DEF_TMAX 1 #define DEF_AMIN 0 #define DEF_AMAX 6.28318530717958647692 #define DEF_WIDTH 1024 #define DEF_HEIGHT 768 /* resolution stuff */ #define DEF_ZOOM 0.1 #define DEF_SPACE 45 #define DEF_MINRES 0.0001 #define DEF_MAXRES 10000.0 #define DEF_GAP 2.0 #define DEF_AXES_LW 0.4 #define DEF_GRID_LW 0.3 #define DEF_BOX_LW 0.4 #define DEF_CURVES_LW 0.5 #define DEF_POINT_RADIUS 1.0 #define DEF_INTERP 4 #define DEF_MAXFORM 100 #define DEF_DECIMAL 0 #define DEF_RADIAN 1 #define DEF_CARTESIAN 0 #define DEF_POLAR 1 #define DEF_PARAMETRIC 2 #define DEF_SEQUENCE 3 /* drawing */ #define DEF_DO_OX 1 #define DEF_DO_OY 1 #define DEF_DO_XVAL 1 #define DEF_DO_YVAL 1 #define DEF_DO_COLOR 1 #define DEF_DO_BOX 0 #define DEF_DO_GRID 0 #define DEF_BACK_COLOR 0 #define DEF_NUMB_COLOR 1 #define DEF_AXES_COLOR 2 #define DEF_GRID_COLOR 3 #define DEF_SEL_COLOR 4 #define DEF_GRAY_COLOR 5 #define DEF_DEFAULT_COLOR 7 #define DEF_TEXT_POSITION 2 #define DEF_ZOOM_XY 3 #define DEF_NUMBER_SIZE 12 #define DEF_FORMULA_SIZE 20 /* font stuff */ /* this is not selectable in the prefs yet */ #define DEF_NUMB_FONT "-*-symbol-*-*-*-*-*-*-*-*-*-*-*-*" #define DEF_TEXT_FONT "-*-helvetica-medium-r-*-*-*-*-*-*-*-*-*-*" #define INTSTEP 26 #define RINCR 27 #define RTGTL 28 #define RTGTR 29 #define MULT 30 #define INCR 31 #define TGTL 32 #define TGTR 33 #define ACTV 34 #define GAP 35 #define LINEWIDTH 36 #define COLOR 37 #define POINTRADIUS 38 #define AMIN 39 #define AMAX 40 #define TMIN 41 #define TMAX 42 #define VIRTUAL 43 #define ENDVARIABLES 44 typedef struct { gdouble xmin; gdouble xmax; gdouble ymin; gdouble ymax; gdouble tmin; gdouble tmax; gdouble amin; gdouble amax; gint width; gint height; gint radian; gint mode; } struct_ranges; typedef struct { /* toolbar stuff */ gint tb; gint tt; gint print; /* startup stuff */ struct_ranges ranges; /* drawing */ gint do_Ox, do_Oy; gint do_xval, do_yval; gint do_color, do_box, do_grid; gint text_position; gint zoom_xy; gdouble number_size; gdouble formula_size; /* resolution stuff */ gdouble zoom; gint space; gdouble minres; gdouble maxres; gdouble axes_linewidth; gdouble grid_linewidth; gdouble box_linewidth; gdouble curves_linewidth; gdouble point_radius; gint interp; gint maxform; /* colors */ guint n_colors; guint cur_color; gdouble *rgb_value; GdkColor *gdk_color; /* fonts */ gchar *text_font; gchar *numb_font; gchar *editor; gchar *eps_viewer; gchar *pdf_viewer; gchar *svg_viewer; gchar *eps_to_pdf; gchar *eps_to_svg; } struct_prefs; extern struct_prefs prefs; extern gchar rc_file[256]; #endif /* __PREFS_H__ */ geg-2.0.9/src/help.h0000644000175000017500000000023412675551620014362 0ustar georgeskgeorgesk#ifndef __HELP_H__ #define __HELP_H__ #include void print_help(); void help_event(GtkWidget *widget, gpointer data); #endif /* __HELP_H__ */ geg-2.0.9/src/about.c0000644000175000017500000000341712671354404014542 0ustar georgeskgeorgesk/* about.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "about.h" #include "i18n.h" static GtkWidget *wi = NULL; static void ok_event(GtkWidget *widget, gpointer data) { gtk_widget_destroy(wi); wi = NULL; } static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { gtk_widget_destroy(wi); wi = NULL; return(TRUE); } void about_event(GtkWidget *widget, gpointer data) { GtkWidget *la, *bu; if(wi && wi->window) { gtk_widget_map(wi); gdk_window_raise(wi->window); return; } wi = gtk_dialog_new(); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); gtk_window_set_wmclass(GTK_WINDOW(wi), _("about"), "Geg"); gtk_window_set_title(GTK_WINDOW(wi), _("About geg")); gtk_window_set_policy(GTK_WINDOW(wi), FALSE, FALSE, FALSE); gtk_window_position(GTK_WINDOW(wi), GTK_WIN_POS_CENTER); gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(wi)->vbox), 5); /* ok button */ bu = gtk_button_new_with_label(_("Ok")); gtk_signal_connect(GTK_OBJECT(bu), "clicked", GTK_SIGNAL_FUNC(ok_event), NULL); GTK_WIDGET_SET_FLAGS(bu, GTK_CAN_DEFAULT); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), bu, TRUE, TRUE, 0); gtk_widget_grab_default(bu); gtk_widget_show(bu); /* about label */ la = gtk_label_new("geg\n" "A GTK+ Equation Grapher\n" #ifdef VERSION "Version "VERSION"\n" #endif /* VERSION */ "By David Bryant 1999\n" "daveb@acres.com.au"); gtk_misc_set_padding(GTK_MISC(la), 40, 40); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->vbox), la, TRUE, TRUE, 0); gtk_widget_show(la); gtk_widget_show(wi); } geg-2.0.9/src/prefs.c0000644000175000017500000013310112713457142014541 0ustar georgeskgeorgesk/* prefs.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include #include #include #include #include #include "prefs.h" #include "colorsel.h" #include "misc.h" #include "i18n.h" /* Default 14 color values */ static gdouble default_rgb_values[] = { 1.00, 1.00, 1.00, /* background */ 0.50, 0.60, 0.70, /* numbers */ 0.80, 0.70, 0.60, /* axes */ 0.80, 0.80, 0.80, /* grid */ 0.20, 0.80, 0.40, /* selection */ 0.50, 0.50, 0.50, /* gray */ 0.00, 0.00, 0.00, /* default */ 0.80, 0.00, 0.00, /* curves ... */ 0.00, 0.00, 0.80, 0.00, 0.80, 0.00, 0.80, 0.80, 0.00, 0.80, 0.00, 0.80, 0.00, 0.80, 0.80, 0.40, 0.40, 0.40, 0.00, 0.00, 0.00 }; /* Default preferences */ struct_prefs default_prefs = { /* toolbar stuff */ DEF_TB, DEF_TT, DEF_PRINT, /* startup stuff */ { DEF_XMIN, DEF_XMAX, DEF_YMIN, DEF_YMAX, DEF_TMIN, DEF_TMAX, DEF_AMIN, DEF_AMAX, DEF_WIDTH, DEF_HEIGHT, DEF_DECIMAL, DEF_CARTESIAN }, /* drawing stuff */ DEF_DO_OX, DEF_DO_OY, DEF_DO_XVAL, DEF_DO_YVAL, DEF_DO_COLOR, DEF_DO_BOX, DEF_DO_GRID, DEF_TEXT_POSITION, DEF_ZOOM_XY, DEF_NUMBER_SIZE, DEF_FORMULA_SIZE, /* resolution stuff */ DEF_ZOOM, DEF_SPACE, DEF_MINRES, DEF_MAXRES, DEF_AXES_LW, DEF_GRID_LW, DEF_BOX_LW, DEF_CURVES_LW, DEF_POINT_RADIUS, DEF_INTERP, DEF_MAXFORM, /* color stuff */ sizeof(default_rgb_values) / (3*sizeof(double)), /* n_colors */ 0, /* cur_color */ NULL, /* rgb_value */ NULL, /* gdk_color */ /* font stuff */ NULL, /* text_font */ NULL, /* numb_font */ /* utilities */ NULL, /* editor */ NULL, /* eps_viewer */ NULL, /* pdf_viewer */ NULL, /* svg_viewer */ NULL, /* eps_to_pdf */ NULL /* eps_to_svg */ }; struct_prefs prefs; gchar rc_file[256]; /* locally global data */ static GtkWidget *wi = NULL; static GtkWidget *pt_bu, *po_bu, *to_bu, *tt_bu, *eps_bu, *pdf_bu, *svg_bu; static GtkWidget *xmin_en, *xmax_en, *ymin_en, *ymax_en; static GtkWidget *tmin_en, *tmax_en, *amin_en, *amax_en; static GtkWidget *formula_en, *editor_en; static GtkWidget *formula_size_en, *number_size_en; static GtkWidget *axes_linewidth_en, *grid_linewidth_en, *box_linewidth_en; static GtkWidget *curves_linewidth_en, *point_radius_en; static GtkWidget *pdf_viewer_en, *eps_viewer_en, *svg_viewer_en; static GtkWidget *eps_to_pdf_en, *eps_to_svg_en; static GtkWidget *width_en, *height_en; static GtkWidget *zoom_en, *space_en, *interp_en; static GtkWidget *minres_en, *maxres_en, *maxform_en; static GtkWidget *maxcolors_en, *current_color_en, *meaning_color_en; static GtkWidget *sel_pr; static GtkWidget *dec_bu, *rad_bu, *cart_bu, *polar_bu, *param_bu; static GtkWidget *ox_bu, *oy_bu, *xt_bu, *yt_bu, *sb_bu, *sf_bu; static GtkWidget *co_bu, *gr_bu; static int skip_equals(char **buf); static gint atov(gchar *buf); static void set_current_color(guint *n); static void change_event(GtkWidget *widget, gpointer data); static void ok_event(GtkWidget *widget, gpointer data); static void save_event(GtkWidget *widget, gpointer data); static void cancel_event(GtkWidget *widget, gpointer data); static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data); static void compound_entry(gchar *title, GtkWidget **entry, GtkWidget *vbox); static void compound_spin(gchar *title, GtkWidget **sb, GtkWidget *vbox, gint min, gint max); static void compound_preview(gchar *title, GtkWidget **preview, GtkWidget *vbox, GtkSignalFunc callback); extern void realize_preferences(GtkWidget *widget, gpointer data); /* Initialization of preferences */ void free_prefs_allocs() { if (prefs.rgb_value) { g_free(prefs.rgb_value); prefs.rgb_value = NULL; } if (prefs.gdk_color) { g_free(prefs.gdk_color); prefs.gdk_color = NULL; } if (prefs.text_font) { g_free(prefs.text_font); prefs.text_font = NULL; } if (prefs.numb_font) { g_free(prefs.numb_font); prefs.numb_font = NULL; } if (prefs.editor) { g_free(prefs.editor); prefs.editor = NULL; } if (prefs.eps_viewer) { g_free(prefs.eps_viewer); prefs.eps_viewer = NULL; } if (prefs.pdf_viewer) { g_free(prefs.pdf_viewer); prefs.pdf_viewer = NULL; } if (prefs.svg_viewer) { g_free(prefs.svg_viewer); prefs.svg_viewer = NULL; } if (prefs.eps_to_pdf) { g_free(prefs.eps_to_pdf); prefs.eps_to_pdf = NULL; } if (prefs.eps_to_svg) { g_free(prefs.eps_to_svg); prefs.eps_to_svg = NULL; } } void initialize_prefs() { guint i; memcpy(&prefs, &default_prefs, sizeof(struct_prefs)); prefs.text_font = g_strdup(DEF_TEXT_FONT); prefs.numb_font = g_strdup(DEF_NUMB_FONT); prefs.editor = g_strdup(DEF_EDITOR); prefs.eps_viewer = g_strdup(DEF_EPS_VIEWER); prefs.pdf_viewer = g_strdup(DEF_PDF_VIEWER); prefs.svg_viewer = g_strdup(DEF_SVG_VIEWER); prefs.eps_to_pdf = g_strdup(DEF_EPS_TO_PDF); prefs.eps_to_svg = g_strdup(DEF_EPS_TO_SVG); prefs.rgb_value = (gdouble *)malloc(3 * prefs.n_colors * sizeof(double)); for(i = 0; i < 3 * prefs.n_colors; i++) prefs.rgb_value[i] = default_rgb_values[i]; prefs.gdk_color = (GdkColor *)malloc(prefs.n_colors * sizeof(GdkColor)); } /* trivial string utility */ GtkWidget * get_prefs_widget() { return wi; } /* trivial string utility */ static void realloc_string(gchar **str, gchar *data) { if (*str) g_free(*str); *str = g_strdup(data); data = *str; while (*data) { if (*data == '\n') *data = '\0'; ++data; } } static void set_current_color(guint *n) { guint i, j; char buf[32]; i = *n; j = 0; if (i >= prefs.n_colors) { *n = i = prefs.n_colors - 1; j = 1; gtk_entry_set_text(GTK_ENTRY(current_color_en), ltoa(*n)); } prefs.cur_color = i; if (i < DEF_DEFAULT_COLOR) switch(i) { case 0: strcpy(buf, _("background")); break; case 1: strcpy(buf, _("numbers")); break; case 2: strcpy(buf, _("axes")); break; case 3: strcpy(buf, _("grid")); break; case 4: strcpy(buf, _("selection")); break; case 5: strcpy(buf, _("gray")); break; case 6: strcpy(buf, _("default")); break; } else sprintf(buf, "%s[%d mod %d]", _("curve"), *n - DEF_DEFAULT_COLOR, prefs.n_colors - DEF_DEFAULT_COLOR); gtk_entry_set_text(GTK_ENTRY(meaning_color_en), buf); if (j) return; show_color_in_preview(sel_pr, &prefs.rgb_value[3*i]); } /* change_event, called by some spin buttons */ static void change_event(GtkWidget *widget, gpointer data) { guint i, j; if(!strncmp((gchar *)data, "max",3)) { i = atol(gtk_entry_get_text(GTK_ENTRY(maxcolors_en))); if (i < prefs.n_colors) { j = atol(gtk_entry_get_text(GTK_ENTRY(current_color_en))); prefs.n_colors = i; if (j > i) gtk_entry_set_text(GTK_ENTRY(current_color_en), ltoa(i)); } else if (i > prefs.n_colors) { prefs.rgb_value = (gdouble *) realloc(prefs.rgb_value, 3 * i * sizeof(double)); prefs.gdk_color = (GdkColor *) realloc(prefs.gdk_color, i * sizeof(GdkColor)); for (j = 3*prefs.n_colors; j < 3*i; j++) prefs.rgb_value[j] = prefs.rgb_value[15+j%3]; for (j = prefs.n_colors; j < i; j++) prefs.gdk_color[j] = prefs.gdk_color[5]; prefs.n_colors = i; } return; } if(!strncmp((gchar *)data, "index",5)) { i = atol(gtk_entry_get_text(GTK_ENTRY(current_color_en))); set_current_color(&i); return; } } /* ok_event, called by the ok button, realizes the prefs and closes dialog */ static void ok_event(GtkWidget *widget, gpointer data) { widgets_to_prefs(widget, data); realize_preferences(widget, NULL); gdk_window_hide(wi->window); } /* save_event, called by the save button, saves the preferences to file */ static void save_event(GtkWidget *widget, gpointer data) { prefs_rc_write(rc_file, 1); } /* cancel_event, called by cancel button, closes the preferences dialog */ static void cancel_event(GtkWidget *widget, gpointer data) { gdk_window_hide(wi->window); } /* delete_event, internal event, not sure if it is correct GTK+ way */ static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { gdk_window_hide(wi->window); return(TRUE); } /* prefs_event, called by preferences button in toolbar */ void prefs_event(GtkWidget *widget, gpointer data) { GtkWidget *temp_bu; GtkWidget *tb_hb, *tb_vb; GtkWidget *su_hb, *su_vb; GtkWidget *re_hb, *re_vb; GtkWidget *dr_hb, *dr_vb; GtkWidget *co_hb, *co_vb; GtkWidget *ut_hb, *ut_vb; GtkWidget *nb; GtkWidget *temp_la; GtkWidget *tb_fr, *su_fr, *re_fr, *dr_fr, *co_fr, *ut_fr; if(wi) { prefs_to_widgets(); gdk_window_show_unraised(wi->window); return; } wi = gtk_dialog_new(); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), wi); /* setup window properties */ gtk_window_set_wmclass(GTK_WINDOW(wi), "preferences", "Geg"); gtk_window_set_title(GTK_WINDOW(wi), _("Preferences")); gtk_window_set_policy(GTK_WINDOW(wi), FALSE, FALSE, FALSE); gtk_window_position(GTK_WINDOW(wi), GTK_WIN_POS_NONE); gtk_container_border_width(GTK_CONTAINER(GTK_DIALOG(wi)->vbox), 5); nb = gtk_notebook_new(); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(nb), GTK_POS_TOP); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->vbox), nb, TRUE, TRUE, 0); gtk_widget_show(nb); /* toolbar */ tb_fr = gtk_frame_new(_("Toolbar options:")); gtk_container_set_border_width(GTK_CONTAINER(tb_fr), 15); gtk_widget_show(tb_fr); temp_la = gtk_label_new(_("Toolbar")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), tb_fr, temp_la); /* startup */ su_fr = gtk_frame_new(_("Default ranges and dimensions:")); gtk_container_set_border_width(GTK_CONTAINER(su_fr), 15); gtk_widget_show(su_fr); temp_la = gtk_label_new(_("Ranges")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), su_fr, temp_la); /* resolution */ re_fr = gtk_frame_new(_("Resolution options:")); gtk_container_set_border_width(GTK_CONTAINER(re_fr), 15); gtk_widget_show(re_fr); temp_la = gtk_label_new(_("Resolution")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), re_fr, temp_la); /* drawing */ dr_fr = gtk_frame_new(_("Drawing options:")); gtk_container_set_border_width(GTK_CONTAINER(dr_fr), 15); gtk_widget_show(dr_fr); temp_la = gtk_label_new(_("Drawing")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), dr_fr, temp_la); /* color */ co_fr = gtk_frame_new(_("Color options:")); gtk_widget_show(co_fr); temp_la = gtk_label_new(_("Colors")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), co_fr, temp_la); ut_fr = gtk_frame_new(_("External utility programs:")); gtk_container_set_border_width(GTK_CONTAINER(ut_fr), 15); gtk_widget_show(ut_fr); temp_la = gtk_label_new(_("Utilities")); gtk_notebook_append_page(GTK_NOTEBOOK(nb), ut_fr, temp_la); /* tool(bar/tips) stuff */ tb_hb = gtk_hbox_new(TRUE, 0); tb_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(tb_vb), 15); gtk_container_add(GTK_CONTAINER(tb_fr), tb_hb); gtk_box_pack_start(GTK_BOX(tb_hb), tb_vb, TRUE, TRUE, 0); gtk_widget_show(tb_vb); /* toolbar radio buttons (p&t, ponly, tonly) */ pt_bu = gtk_radio_button_new_with_label_from_widget(NULL, _("Show Pictures and Text")); po_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(pt_bu), _("Show Pictures Only")); to_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(pt_bu), _("Show Text Only")); tt_bu = gtk_check_button_new_with_label(_("Show Tooltips")); gtk_box_pack_start(GTK_BOX(tb_vb), pt_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), po_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), to_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), tt_bu, TRUE, TRUE, 0); gtk_widget_show(pt_bu); gtk_widget_show(po_bu); gtk_widget_show(to_bu); gtk_widget_show(tb_vb); /* toolbar check button (tooltips on/off) */ tb_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(tb_vb), 15); gtk_box_pack_start(GTK_BOX(tb_hb), tb_vb, TRUE, TRUE, 0); eps_bu = gtk_radio_button_new_with_label_from_widget(NULL, _("Print as EPS")); pdf_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(eps_bu), _("Print as PDF")); svg_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(eps_bu), _("Print as SVG")); gtk_box_pack_start(GTK_BOX(tb_vb), eps_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), pdf_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), svg_bu, TRUE, TRUE, 0); gtk_widget_show(tt_bu); gtk_widget_show(eps_bu); gtk_widget_show(pdf_bu); gtk_widget_show(svg_bu); gtk_widget_show(tb_vb); tb_vb = gtk_vbox_new(TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_hb), tb_vb, TRUE, TRUE, 40); dec_bu = gtk_radio_button_new_with_label_from_widget(NULL, _("Decimal x coordinates")); rad_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(dec_bu), _("Radian x coordinates")); cart_bu = gtk_radio_button_new_with_label_from_widget(NULL, _("Cartesian mode")); polar_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(cart_bu), _("Polar mode")); param_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(cart_bu), _("Parametric mode")); gtk_box_pack_start(GTK_BOX(tb_vb), dec_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), rad_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), cart_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), polar_bu, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(tb_vb), param_bu, TRUE, TRUE, 0); gtk_widget_show(dec_bu); gtk_widget_show(rad_bu); gtk_widget_show(cart_bu); gtk_widget_show(polar_bu); gtk_widget_show(param_bu); gtk_widget_show(tb_vb); gtk_widget_show(tb_hb); /* startup stuff */ su_hb = gtk_hbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(su_fr), su_hb); su_vb = gtk_vbox_new(TRUE, 10); gtk_container_set_border_width(GTK_CONTAINER(su_vb), 15); gtk_box_pack_start(GTK_BOX(su_hb), su_vb, FALSE, FALSE, 0); compound_entry(_("Xmin:"), &xmin_en, su_vb); compound_entry(_("Xmax:"), &xmax_en, su_vb); compound_entry(_("Ymin:"), &ymin_en, su_vb); compound_entry(_("Ymax:"), &ymax_en, su_vb); gtk_widget_show(su_vb); su_vb = gtk_vbox_new(TRUE, 10); gtk_container_set_border_width(GTK_CONTAINER(su_vb), 15); gtk_box_pack_start(GTK_BOX(su_hb), su_vb, FALSE, FALSE, 0); compound_entry(_("Tmin:"), &tmin_en, su_vb); compound_entry(_("Tmax:"), &tmax_en, su_vb); compound_entry(_("Amin:"), &amin_en, su_vb); compound_entry(_("Amax:"), &amax_en, su_vb); gtk_widget_show(su_vb); su_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(su_vb), 15); gtk_box_pack_start(GTK_BOX(su_hb), su_vb, FALSE, FALSE, 0); compound_entry(_("Width:"), &width_en, su_vb); compound_entry(_("Height:"), &height_en, su_vb); gtk_widget_show(su_vb); gtk_widget_show(su_hb); /* resolution stuff */ re_hb = gtk_hbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(re_fr), re_hb); re_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(re_vb), 15); gtk_box_pack_start(GTK_BOX(re_hb), re_vb, FALSE, FALSE, 0); compound_entry(_("Zoom Factor:"), &zoom_en, re_vb); compound_entry(_("Notch Spacing:"), &space_en, re_vb); compound_spin(_("Interpolation:"), &interp_en, re_vb, 0, 12); gtk_widget_show(re_vb); re_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(re_vb), 15); gtk_box_pack_start(GTK_BOX(re_hb), re_vb, FALSE, FALSE, 0); compound_entry(_("Min Resolution:"), &minres_en, re_vb); compound_entry(_("Max Resolution:"), &maxres_en, re_vb); compound_spin(_("Max Formulas:"), &maxform_en, re_vb, 1, 500); gtk_widget_show(re_vb); gtk_widget_show(re_hb); /* drawing stuff */ dr_hb = gtk_hbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(dr_fr), dr_hb); dr_vb = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(dr_vb), 15); gtk_box_pack_start(GTK_BOX(dr_hb), dr_vb, TRUE, FALSE, 0); gtk_widget_show(dr_hb); gtk_widget_show(dr_vb); ox_bu = gtk_check_button_new_with_label(_("Show Ox axis")); gtk_box_pack_start(GTK_BOX(dr_vb), ox_bu, TRUE, TRUE, 0); xt_bu = gtk_check_button_new_with_label(_("Show x values")); gtk_box_pack_start(GTK_BOX(dr_vb), xt_bu, TRUE, TRUE, 0); oy_bu = gtk_check_button_new_with_label(_("Show Oy axis")); gtk_box_pack_start(GTK_BOX(dr_vb), oy_bu, TRUE, TRUE, 0); yt_bu = gtk_check_button_new_with_label(_("Show y values")); gtk_box_pack_start(GTK_BOX(dr_vb), yt_bu, TRUE, TRUE, 0); sb_bu = gtk_check_button_new_with_label(_("Show box")); gtk_box_pack_start(GTK_BOX(dr_vb), sb_bu, TRUE, TRUE, 0); sf_bu = gtk_check_button_new_with_label(_("Show formulas")); gtk_box_pack_start(GTK_BOX(dr_vb), sf_bu, TRUE, TRUE, 0); gtk_widget_show(ox_bu); gtk_widget_show(oy_bu); gtk_widget_show(xt_bu); gtk_widget_show(yt_bu); gtk_widget_show(sb_bu); dr_vb = gtk_vbox_new(FALSE, 10); gtk_container_set_border_width(GTK_CONTAINER(dr_vb), 15); gtk_box_pack_start(GTK_BOX(dr_hb), dr_vb, TRUE, FALSE, 0); gtk_widget_show(dr_vb); compound_entry(_("Formula position:"), &formula_en, dr_vb); compound_entry(_("Formula font size:"), &formula_size_en, dr_vb); compound_entry(_("Numbers font size:"), &number_size_en, dr_vb); compound_entry(_("Point radius:"), &point_radius_en, dr_vb); dr_vb = gtk_vbox_new(FALSE, 10); gtk_container_set_border_width(GTK_CONTAINER(dr_vb), 15); gtk_box_pack_start(GTK_BOX(dr_hb), dr_vb, TRUE, FALSE, 0); gtk_widget_show(dr_vb); compound_entry(_("Axes linewidth:"), &axes_linewidth_en, dr_vb); compound_entry(_("Grid linewidth:"), &grid_linewidth_en, dr_vb); compound_entry(_("Box linewidth:"), &box_linewidth_en, dr_vb); compound_entry(_("Curves linewidth:"), &curves_linewidth_en, dr_vb); gtk_widget_show(sf_bu); /* color stuff */ co_hb = gtk_hbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(co_fr), co_hb); co_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(co_vb), 15); gtk_box_pack_start(GTK_BOX(co_hb), co_vb, TRUE, TRUE, 0); compound_spin(_("Number of Colors:"), &maxcolors_en, co_vb, 7, 30); gtk_signal_connect(GTK_OBJECT(maxcolors_en), "value-changed", GTK_SIGNAL_FUNC(change_event), "max"); compound_spin(_("Index:"), ¤t_color_en, co_vb, 0, 29); gtk_signal_connect(GTK_OBJECT(current_color_en), "value-changed", GTK_SIGNAL_FUNC(change_event), "index"); gtk_signal_connect(GTK_OBJECT(current_color_en), "change-value", GTK_SIGNAL_FUNC(change_event), "index"); compound_entry(_("Current color:"), &meaning_color_en, co_vb); gtk_entry_set_editable((GtkEntry *)meaning_color_en, FALSE); gtk_widget_show(co_vb); compound_preview(_("Color chooser"), &sel_pr, co_hb, GTK_SIGNAL_FUNC(colorsel_event)); gtk_widget_show(sel_pr); co_vb = gtk_vbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(co_vb), 15); gtk_box_pack_start(GTK_BOX(co_hb), co_vb, TRUE, TRUE, 40); co_bu = gtk_radio_button_new_with_label_from_widget(NULL, _("Color output")); gtk_box_pack_start(GTK_BOX(co_vb), co_bu, TRUE, TRUE, 0); gr_bu = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(co_bu), _("Gray output")); gtk_box_pack_start(GTK_BOX(co_vb), gr_bu, TRUE, TRUE, 0); gtk_widget_show(co_bu); gtk_widget_show(gr_bu); gtk_widget_show(co_vb); gtk_widget_show(co_hb); /* utilities stuff */ ut_hb = gtk_hbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(ut_fr), ut_hb); ut_vb = gtk_vbox_new(FALSE, 20); gtk_container_set_border_width(GTK_CONTAINER(ut_vb), 15); gtk_box_pack_start(GTK_BOX(ut_hb), ut_vb, TRUE, FALSE, 0); compound_entry(_("Editor:"), &editor_en, ut_vb); gtk_widget_set_usize(editor_en, 320, -1); compound_entry(_("EPS viewer:"), &eps_viewer_en, ut_vb); gtk_widget_set_usize(eps_viewer_en, 320, -1); compound_entry(_("EPS to PDF:"), &eps_to_pdf_en, ut_vb); gtk_widget_set_usize(eps_to_pdf_en, 320, -1); gtk_widget_show(ut_hb); gtk_widget_show(ut_vb); ut_vb = gtk_vbox_new(FALSE, 20); gtk_container_set_border_width(GTK_CONTAINER(ut_vb), 15); gtk_box_pack_start(GTK_BOX(ut_hb), ut_vb, TRUE, FALSE, 0); compound_entry(_("PDF viewer:"), &pdf_viewer_en, ut_vb); gtk_widget_set_usize(pdf_viewer_en, 320, -1); compound_entry(_("SVG viewer:"), &svg_viewer_en, ut_vb); gtk_widget_set_usize(svg_viewer_en, 320, -1); compound_entry(_("EPS to SVG:"), &eps_to_svg_en, ut_vb); gtk_widget_set_usize(eps_to_svg_en, 320, -1); gtk_widget_show(ut_vb); /* buttons */ temp_bu = gtk_button_new_with_label(_("Ok")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(ok_event), NULL); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), temp_bu, TRUE, TRUE, 0); gtk_widget_show(temp_bu); temp_bu = gtk_button_new_with_label(_("Save")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(widgets_to_prefs), NULL); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(save_event), NULL); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), temp_bu, TRUE, TRUE, 0); gtk_widget_show(temp_bu); temp_bu = gtk_button_new_with_label(_("Cancel")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(cancel_event), NULL); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(wi)->action_area), temp_bu, TRUE, TRUE, 0); gtk_widget_show(temp_bu); gtk_widget_show(wi); prefs_to_widgets(); } /* compound_entry, a convenience function to create a label and an entry in * a horizontal box, and pack it into the vbox provided */ static void compound_entry(gchar *title, GtkWidget **entry, GtkWidget *vbox) { GtkWidget *hbox, *label; hbox = gtk_hbox_new(FALSE, 0); *entry = gtk_entry_new(); gtk_widget_set_usize(*entry, 150, -1); gtk_box_pack_end(GTK_BOX(hbox), *entry, FALSE, FALSE, 0); label = gtk_label_new(title); gtk_box_pack_end(GTK_BOX(hbox), label, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_widget_show(label); gtk_widget_show(*entry); gtk_widget_show(hbox); } static void compound_spin(gchar *title, GtkWidget **sb, GtkWidget *vbox, gint min, gint max) { GtkWidget *hbox, *label; GtkObject *adj; hbox = gtk_hbox_new(FALSE, 0); adj = gtk_adjustment_new(min, min, max, 1, 1, 1); *sb = gtk_spin_button_new(GTK_ADJUSTMENT(adj), 1, 0); gtk_widget_set_usize(*sb, 80, -1); gtk_box_pack_end(GTK_BOX(hbox), *sb, FALSE, FALSE, 0); label = gtk_label_new(title); gtk_box_pack_end(GTK_BOX(hbox), label, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_widget_show(label); gtk_widget_show(*sb); gtk_widget_show(hbox); } /* compound_preview, a convenience function to create a label and a preview * in a horizontal box, and pack it into the vbox provided */ static void compound_preview(gchar *title, GtkWidget **preview, GtkWidget *vbox, GtkSignalFunc callback) { GtkWidget *hbox, *label, *frame, *button; hbox = gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox), 10); frame = gtk_frame_new(NULL); gtk_box_pack_end(GTK_BOX(hbox), frame, FALSE, FALSE, 0); *preview = gtk_preview_new(GTK_PREVIEW_COLOR); gtk_preview_set_expand(GTK_PREVIEW(*preview), TRUE); gtk_preview_size(GTK_PREVIEW(*preview), 75, -1); button = gtk_button_new_with_label("..."); gtk_signal_connect(GTK_OBJECT(button), "clicked", callback, *preview); gtk_box_pack_end(GTK_BOX(hbox), button, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(frame), *preview); label = gtk_label_new(title); gtk_box_pack_end(GTK_BOX(hbox), label, FALSE, FALSE, 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); gtk_widget_show(label); gtk_widget_show(button); gtk_widget_show(*preview); gtk_widget_show(frame); gtk_widget_show(hbox); } /* prefs_to_widgets, called explicitly by prefs_event, only after all the * widgets have been created, takes the information * in the prefs struct, and puts it into the appropriate widgets */ void prefs_to_widgets(void) { /* show toolbar as: pics and text, pics only, text only */ switch(prefs.tb) { case(GEG_RC_PICTURES_AND_TEXT): gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(pt_bu), TRUE); break; case(GEG_RC_PICTURES_ONLY): gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(po_bu), TRUE); break; case(GEG_RC_TEXT_ONLY): gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(to_bu), TRUE); } /* show tooltips: on, off */ if(prefs.tt == GEG_RC_OFF) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tt_bu), FALSE); else if(prefs.tt == GEG_RC_ON) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(tt_bu), TRUE); else g_assert_not_reached(); /* print as SVG: on, off */ gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(eps_bu), (prefs.print == GEG_RC_EPS)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(pdf_bu), (prefs.print == GEG_RC_PDF)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(svg_bu), (prefs.print == GEG_RC_SVG)); /* startup options */ gtk_entry_set_text(GTK_ENTRY(xmin_en), ftoa(prefs.ranges.xmin)); gtk_entry_set_text(GTK_ENTRY(xmax_en), ftoa(prefs.ranges.xmax)); gtk_entry_set_text(GTK_ENTRY(ymin_en), ftoa(prefs.ranges.ymin)); gtk_entry_set_text(GTK_ENTRY(ymax_en), ftoa(prefs.ranges.ymax)); gtk_entry_set_text(GTK_ENTRY(tmin_en), ftoa(prefs.ranges.tmin)); gtk_entry_set_text(GTK_ENTRY(tmax_en), ftoa(prefs.ranges.tmax)); gtk_entry_set_text(GTK_ENTRY(amin_en), ftoa(prefs.ranges.amin)); gtk_entry_set_text(GTK_ENTRY(amax_en), ftoa(prefs.ranges.amax)); gtk_entry_set_text(GTK_ENTRY(width_en), ltoa(prefs.ranges.width)); gtk_entry_set_text(GTK_ENTRY(height_en), ltoa(prefs.ranges.height)); gtk_entry_set_text(GTK_ENTRY(axes_linewidth_en), ftoa(prefs.axes_linewidth)); gtk_entry_set_text(GTK_ENTRY(grid_linewidth_en), ftoa(prefs.grid_linewidth)); gtk_entry_set_text(GTK_ENTRY(box_linewidth_en), ftoa(prefs.box_linewidth)); gtk_entry_set_text(GTK_ENTRY(curves_linewidth_en), ftoa(prefs.curves_linewidth)); gtk_entry_set_text(GTK_ENTRY(point_radius_en), ftoa(prefs.point_radius)); gtk_entry_set_text(GTK_ENTRY(editor_en), prefs.editor); gtk_entry_set_text(GTK_ENTRY(eps_viewer_en), prefs.eps_viewer); gtk_entry_set_text(GTK_ENTRY(pdf_viewer_en), prefs.pdf_viewer); gtk_entry_set_text(GTK_ENTRY(svg_viewer_en), prefs.svg_viewer); gtk_entry_set_text(GTK_ENTRY(eps_to_pdf_en), prefs.eps_to_pdf); gtk_entry_set_text(GTK_ENTRY(eps_to_svg_en), prefs.eps_to_svg); if(prefs.ranges.radian == DEF_DECIMAL) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(dec_bu), TRUE); else if(prefs.ranges.radian == DEF_RADIAN) gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(rad_bu), TRUE); else g_assert_not_reached(); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(cart_bu), (prefs.ranges.mode == DEF_CARTESIAN)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(polar_bu), (prefs.ranges.mode == DEF_POLAR)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(param_bu), (prefs.ranges.mode == DEF_PARAMETRIC)); /* drawing options */ gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(ox_bu), (prefs.do_Ox!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(oy_bu), (prefs.do_Oy!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(xt_bu), (prefs.do_xval!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(yt_bu), (prefs.do_yval!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(co_bu), (prefs.do_color!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(sb_bu), (prefs.do_box!=0)); gtk_toggle_button_set_state(GTK_TOGGLE_BUTTON(sf_bu), (prefs.text_position>=0)); gtk_entry_set_text(GTK_ENTRY(formula_en), ltoa(prefs.text_position & 3)); gtk_entry_set_text(GTK_ENTRY(formula_size_en), ftoa(prefs.formula_size)); gtk_entry_set_text(GTK_ENTRY(number_size_en), ftoa(prefs.number_size)); /* resolution options */ gtk_entry_set_text(GTK_ENTRY(zoom_en), ftoa(prefs.zoom)); gtk_entry_set_text(GTK_ENTRY(space_en), ltoa(prefs.space)); gtk_entry_set_text(GTK_ENTRY(interp_en), ltoa(prefs.interp)); gtk_entry_set_text(GTK_ENTRY(minres_en), ftoa(prefs.minres)); gtk_entry_set_text(GTK_ENTRY(maxres_en), ftoa(prefs.maxres)); gtk_entry_set_text(GTK_ENTRY(maxform_en), ltoa(prefs.maxform)); /* color selector */ gtk_entry_set_text(GTK_ENTRY(maxcolors_en), ltoa(prefs.n_colors)); gtk_entry_set_text(GTK_ENTRY(current_color_en), ltoa(prefs.cur_color)); set_current_color(&prefs.cur_color); show_color_in_preview(sel_pr, &prefs.rgb_value[3*prefs.cur_color]); } /* widgets_to_prefs, first callback for save button and ok button, * puts the information in the widgets into the prefs struct */ void widgets_to_prefs(GtkWidget *widget, gpointer data) { if (!wi) return; /* toolbar stuff */ if(GTK_TOGGLE_BUTTON(pt_bu)->active) prefs.tb = GEG_RC_PICTURES_AND_TEXT; else if(GTK_TOGGLE_BUTTON(po_bu)->active) prefs.tb = GEG_RC_PICTURES_ONLY; else prefs.tb = GEG_RC_TEXT_ONLY; /* tooltips stuff */ if(GTK_TOGGLE_BUTTON(tt_bu)->active) prefs.tt = GEG_RC_ON; else prefs.tt = GEG_RC_OFF; if(GTK_TOGGLE_BUTTON(eps_bu)->active) prefs.print = GEG_RC_EPS; if(GTK_TOGGLE_BUTTON(pdf_bu)->active) prefs.print = GEG_RC_PDF; if(GTK_TOGGLE_BUTTON(svg_bu)->active) prefs.print = GEG_RC_SVG; /* resolution options */ prefs.zoom = CLAMP(atof(gtk_entry_get_text(GTK_ENTRY(zoom_en))), 0.1, 5); prefs.space = CLAMP(atol(gtk_entry_get_text(GTK_ENTRY(space_en))), 10, 500); prefs.minres = ABS(atof(gtk_entry_get_text(GTK_ENTRY(minres_en)))); prefs.maxres = MAX(atof(gtk_entry_get_text(GTK_ENTRY(maxres_en))), 10 * prefs.minres); prefs.interp = CLAMP(atol(gtk_entry_get_text(GTK_ENTRY(interp_en))), 0, 12); prefs.maxform = CLAMP(atol(gtk_entry_get_text(GTK_ENTRY(maxform_en))), 1, 500); /* startup options */ prefs.ranges.xmin = atof(gtk_entry_get_text(GTK_ENTRY(xmin_en))); prefs.ranges.xmax = MAX(atof(gtk_entry_get_text(GTK_ENTRY(xmax_en))), prefs.ranges.xmin + 10 * prefs.minres); prefs.ranges.ymin = atof(gtk_entry_get_text(GTK_ENTRY(ymin_en))); prefs.ranges.ymax = MAX(atof(gtk_entry_get_text(GTK_ENTRY(ymax_en))), prefs.ranges.ymin + 10 * prefs.minres); prefs.ranges.tmin = atof(gtk_entry_get_text(GTK_ENTRY(tmin_en))); prefs.ranges.tmax = MAX(atof(gtk_entry_get_text(GTK_ENTRY(tmax_en))), prefs.ranges.tmin + 10 * prefs.minres); prefs.ranges.amin = atof(gtk_entry_get_text(GTK_ENTRY(amin_en))); prefs.ranges.amax = MAX(atof(gtk_entry_get_text(GTK_ENTRY(amax_en))), prefs.ranges.amin + 10 * prefs.minres); prefs.ranges.width = MAX(atol(gtk_entry_get_text(GTK_ENTRY(width_en))), 10 * prefs.minres); prefs.ranges.height = MAX(atol(gtk_entry_get_text(GTK_ENTRY(height_en))), 10 * prefs.minres); prefs.axes_linewidth = MAX(atof(gtk_entry_get_text( GTK_ENTRY(axes_linewidth_en))),0); prefs.grid_linewidth = MAX(atof(gtk_entry_get_text( GTK_ENTRY(grid_linewidth_en))),0); prefs.box_linewidth = MAX(atof(gtk_entry_get_text( GTK_ENTRY(box_linewidth_en))),0); prefs.curves_linewidth = MAX(atof(gtk_entry_get_text( GTK_ENTRY(curves_linewidth_en))),0); prefs.point_radius = MAX(atof(gtk_entry_get_text( GTK_ENTRY(point_radius_en))),0); /* utilities */ realloc_string(&prefs.editor, (gchar *)gtk_entry_get_text(GTK_ENTRY(editor_en))); realloc_string(&prefs.eps_viewer, (gchar *)gtk_entry_get_text(GTK_ENTRY(eps_viewer_en))); realloc_string(&prefs.pdf_viewer, (gchar *)gtk_entry_get_text(GTK_ENTRY(pdf_viewer_en))); realloc_string(&prefs.svg_viewer, (gchar *)gtk_entry_get_text(GTK_ENTRY(svg_viewer_en))); realloc_string(&prefs.eps_to_pdf, (gchar *)gtk_entry_get_text(GTK_ENTRY(eps_to_pdf_en))); realloc_string(&prefs.eps_to_svg, (gchar *)gtk_entry_get_text(GTK_ENTRY(eps_to_svg_en))); if(GTK_TOGGLE_BUTTON(dec_bu)->active) prefs.ranges.radian = DEF_DECIMAL; else if(GTK_TOGGLE_BUTTON(rad_bu)->active) prefs.ranges.radian = DEF_RADIAN; else g_assert_not_reached(); if(GTK_TOGGLE_BUTTON(cart_bu)->active) prefs.ranges.mode = DEF_CARTESIAN; else if(GTK_TOGGLE_BUTTON(polar_bu)->active) prefs.ranges.mode = DEF_POLAR; else if(GTK_TOGGLE_BUTTON(param_bu)->active) prefs.ranges.mode = DEF_PARAMETRIC; else g_assert_not_reached(); prefs.do_Ox = (GTK_TOGGLE_BUTTON(ox_bu)->active); prefs.do_Oy = (GTK_TOGGLE_BUTTON(oy_bu)->active); prefs.do_xval = (GTK_TOGGLE_BUTTON(xt_bu)->active); prefs.do_yval = (GTK_TOGGLE_BUTTON(yt_bu)->active); prefs.do_color = (GTK_TOGGLE_BUTTON(co_bu)->active); prefs.do_box = (GTK_TOGGLE_BUTTON(sb_bu)->active); prefs.text_position = atoi(gtk_entry_get_text(GTK_ENTRY(formula_en))) & 3; prefs.formula_size = atof(gtk_entry_get_text(GTK_ENTRY(formula_size_en))); prefs.number_size = atof(gtk_entry_get_text(GTK_ENTRY(number_size_en))); if (!GTK_TOGGLE_BUTTON(sf_bu)->active) prefs.text_position |= -4; /* color options */ } /* atov, this function extracts the color values from the format: * %d : { %f, %f, %f } * and stores them in prefs.rgb_value[] */ static gint atov(gchar *buf) { guint i, j; while(*buf == ' ') buf++; if(*buf == '\0') return 0; j = atoi(buf); if (j >= 7) { i = prefs.n_colors; prefs.n_colors = j + 1; prefs.rgb_value = (gdouble *) realloc(prefs.rgb_value, 3 * prefs.n_colors * sizeof(double)); prefs.gdk_color = (GdkColor *) realloc(prefs.gdk_color, prefs.n_colors * sizeof(GdkColor)); for (j = 3*i; j < 3*prefs.n_colors; j++) prefs.rgb_value[j] = prefs.rgb_value[15+j%3]; for (j = i; j < prefs.n_colors; j++) prefs.gdk_color[j] = prefs.gdk_color[5]; i = prefs.n_colors - 1; } else i = j; /* skip to the first number (hopefully) */ while(*buf && *buf != '{') buf++; if(*buf == '\0') return 0; buf++; if(*buf == '\0') return 0; j = 0; while(1) { /* skip possible whitespace and { */ while(*buf == ' ') buf++; /* snag the values */ prefs.rgb_value[3*i+j] = atof(buf); if (j==2) return 1; ++j; while(*buf && *buf != ',') buf++; if(*buf == '\0') return 0; buf++; if(*buf == '\0') return 0; } return 1; } /* skip_equals, skips to the first non-whitespace character after equals sign */ static int skip_equals(char **buf) { int i; for(i = 0; i < 200; i++) { if(**buf == '=') { (*buf)++; while(**buf == ' ') (*buf)++; return(TRUE); } (*buf)++; } g_warning(_("error in rcfile, expected equals")); return(FALSE); } FILE * prefs_rc_parse(gchar *filename, gint rc) { FILE *fp; char buf[256], *i; fp = fopen(filename, "r"); if(!fp) return(NULL); while(fgets(buf, 256, fp)) { i = &buf[0]; while(*i == ' ') i++; if((*i == '#') || (*i == '\n')) continue; if(!strncasecmp(i, "end_parameters", 14)) { if (rc) { fclose(fp); return(NULL); } return(fp); } /* colors */ if(!strncasecmp(i, "color[", 6)) { if (!atov(&i[6])) g_warning(_("error in rcfile %s : %s"), filename, buf); } /* work out what the setting is */ else if(!strncasecmp(i, "toolbar", 7)) { if(skip_equals(&i)) { if(!strncasecmp(i, "pictures_and_text", 17)) prefs.tb = GEG_RC_PICTURES_AND_TEXT; else if(!strncasecmp(i, "pictures_only", 13)) prefs.tb = GEG_RC_PICTURES_ONLY; else if(!strncasecmp(i, "text_only", 9)) prefs.tb = GEG_RC_TEXT_ONLY; else g_warning(_("error in rcfile %s: %s"), filename, buf); } } else if(!strncasecmp(i, "tooltips", 8)) { if(skip_equals(&i)) { if(!strncasecmp(i, "on", 2)) prefs.tt = GEG_RC_ON; else if(!strncasecmp(i, "off", 3)) prefs.tt = GEG_RC_OFF; else g_warning(_("error in rcfile %s: %s"), filename, buf); } } else if(!strncasecmp(i, "print_as", 8)) { if(skip_equals(&i)) { if(!strncasecmp(i, "eps", 3)) prefs.print = GEG_RC_EPS; else if(!strncasecmp(i, "pdf", 3)) prefs.print = GEG_RC_PDF; else if(!strncasecmp(i, "svg", 3)) prefs.print = GEG_RC_SVG; else g_warning(_("error in rcfile %s: %s"), filename, buf); } } else if(!strncasecmp(i, "xmin", 4)) { if(skip_equals(&i)) prefs.ranges.xmin = atof(i); } else if(!strncasecmp(i, "xmax", 4)) { if(skip_equals(&i)) prefs.ranges.xmax = atof(i); } else if(!strncasecmp(i, "ymin", 4)) { if(skip_equals(&i)) prefs.ranges.ymin = atof(i); } else if(!strncasecmp(i, "ymax", 4)) { if(skip_equals(&i)) prefs.ranges.ymax = atof(i); } else if(!strncasecmp(i, "tmin", 4)) { if(skip_equals(&i)) prefs.ranges.tmin = atof(i); } else if(!strncasecmp(i, "tmax", 4)) { if(skip_equals(&i)) prefs.ranges.tmax = atof(i); } else if(!strncasecmp(i, "amin", 4)) { if(skip_equals(&i)) prefs.ranges.amin = atof(i); } else if(!strncasecmp(i, "amax", 4)) { if(skip_equals(&i)) prefs.ranges.amax = atof(i); } else if(!strncasecmp(i, "graph_width", 11)) { if(skip_equals(&i)) prefs.ranges.width = atol(i); } else if(!strncasecmp(i, "graph_height", 12)) { if(skip_equals(&i)) prefs.ranges.height = atol(i); } else if(!strncasecmp(i, "axes_lw", 7)) { if(skip_equals(&i)) prefs.axes_linewidth = atof(i); } else if(!strncasecmp(i, "grid_lw", 7)) { if(skip_equals(&i)) prefs.grid_linewidth = atof(i); } else if(!strncasecmp(i, "box_lw", 6)) { if(skip_equals(&i)) prefs.box_linewidth = atof(i); } else if(!strncasecmp(i, "curves_lw", 7)) { if(skip_equals(&i)) prefs.curves_linewidth = atof(i); } else if(!strncasecmp(i, "point_radius", 12)) { if(skip_equals(&i)) prefs.point_radius = atof(i); } else if(!strncasecmp(i, "coordinates_type", 16)) { if(skip_equals(&i)) { if(!strncasecmp(i, "decimal", 7)) prefs.ranges.radian = DEF_DECIMAL; else if(!strncasecmp(i, "radian", 6)) prefs.ranges.radian = DEF_RADIAN; else g_warning(_("error in rcfile %s: %s"), filename, buf); } } else if(!strncasecmp(i, "mode_type", 9)) { if(skip_equals(&i)) { if(!strncasecmp(i, "cartesian", 9)) prefs.ranges.mode = DEF_CARTESIAN; else if(!strncasecmp(i, "polar", 5)) prefs.ranges.mode = DEF_POLAR; else if(!strncasecmp(i, "parametric", 10)) prefs.ranges.mode = DEF_PARAMETRIC; else if(!strncasecmp(i, "sequence", 8)) prefs.ranges.mode = DEF_SEQUENCE; else g_warning(_("error in rcfile %s: %s"), filename, buf); } } else if(!strncasecmp(i, "do_Ox", 5)) { if(skip_equals(&i)) prefs.do_Ox = atoi(i); } else if(!strncasecmp(i, "do_Oy", 5)) { if(skip_equals(&i)) prefs.do_Oy = atoi(i); } else if(!strncasecmp(i, "do_xval", 7)) { if(skip_equals(&i)) prefs.do_xval = atoi(i); } else if(!strncasecmp(i, "do_yval", 7)) { if(skip_equals(&i)) prefs.do_yval = atoi(i); } else if(!strncasecmp(i, "do_color", 8)) { if(skip_equals(&i)) prefs.do_color = atoi(i); } else if(!strncasecmp(i, "do_box", 6)) { if(skip_equals(&i)) prefs.do_box = atoi(i); } else if(!strncasecmp(i, "text_position", 13)) { if(skip_equals(&i)) prefs.text_position = atoi(i); } else if(!strncasecmp(i, "zoom_xy", 7)) { if(skip_equals(&i)) { prefs.zoom_xy = atoi(i); if (prefs.zoom_xy <= 0) prefs.zoom_xy = 1; if (prefs.zoom_xy > 4) prefs.zoom_xy = 4; } } else if(!strncasecmp(i, "formula_size", 12)) { if(skip_equals(&i)) prefs.formula_size = atof(i); } else if(!strncasecmp(i, "number_size", 11)) { if(skip_equals(&i)) prefs.number_size = atof(i); } else if(!strncasecmp(i, "zoom_factor", 11)) { if(skip_equals(&i)) prefs.zoom = atof(i); } else if(!strncasecmp(i, "notch_spacing", 13)) { if(skip_equals(&i)) prefs.space = atol(i); } else if(!strncasecmp(i, "minimum_resolution", 18)) { if(skip_equals(&i)) prefs.minres = atof(i); } else if(!strncasecmp(i, "maximum_resolution", 18)) { if(skip_equals(&i)) prefs.maxres = atof(i); } else if(!strncasecmp(i, "interpolation_factor", 19)) { if(skip_equals(&i)) prefs.interp = atol(i); } else if(!strncasecmp(i, "maximum_formulas", 16)) { if(skip_equals(&i)) prefs.maxform = atol(i); } else if(!strncasecmp(i, "utility_editor", 14)) { if(skip_equals(&i)) realloc_string(&prefs.editor, i); } else if(!strncasecmp(i, "utility_eps_viewer", 18)) { if(skip_equals(&i)) realloc_string(&prefs.eps_viewer, i); } else if(!strncasecmp(i, "utility_pdf_viewer", 18)) { if(skip_equals(&i)) realloc_string(&prefs.pdf_viewer, i); } else if(!strncasecmp(i, "utility_svg_viewer", 18)) { if(skip_equals(&i)) realloc_string(&prefs.svg_viewer, i); } else if(!strncasecmp(i, "utility_eps_to_pdf", 17)) { if(skip_equals(&i)) realloc_string(&prefs.eps_to_pdf, i); } else if(!strncasecmp(i, "utility_eps_to_svg", 18)) { if(skip_equals(&i)) realloc_string(&prefs.eps_to_svg, i); } else g_warning(_("error in rcfile %s: %s"), filename, buf); } fclose(fp); return(NULL); } /* prefs_rc_write, writes the user's preferences back to file */ FILE * prefs_rc_write(gchar *filename, gint rc) { FILE *fp; char *buf; guint i; fp = fopen(filename, "w+"); if(!fp) return(NULL); /* write header */ fprintf(fp, "# geg %s\n", (rc)? "preferences" : "data file"); fprintf(fp, "# all options can be changed within geg\n\n"); /* toolbar */ switch(prefs.tb) { case GEG_RC_PICTURES_AND_TEXT: buf = "pictures_and_text"; break; case GEG_RC_PICTURES_ONLY: buf = "pictures_only"; break; case GEG_RC_TEXT_ONLY: buf = "text_only"; break; default: buf = NULL; } fprintf(fp, "toolbar = %s\n", buf); /* tooltips */ if(prefs.tt == GEG_RC_ON) buf = "on"; else if(prefs.tt == GEG_RC_OFF) buf = "off"; else g_assert_not_reached(); fprintf(fp, "tooltips = %s\n", buf); /* SVG on/off */ if(prefs.print == GEG_RC_EPS) buf = "eps"; else if(prefs.print == GEG_RC_PDF) buf = "pdf"; else if(prefs.print == GEG_RC_SVG) buf = "svg"; else g_assert_not_reached(); fprintf(fp, "print_as = %s\n\n", buf); /* xmin, xmax, ymin, ymax, width, height */ fprintf(fp, "xmin = %f\n", prefs.ranges.xmin); fprintf(fp, "xmax = %f\n", prefs.ranges.xmax); fprintf(fp, "ymin = %f\n", prefs.ranges.ymin); fprintf(fp, "ymax = %f\n", prefs.ranges.ymax); fprintf(fp, "tmin = %f\n", prefs.ranges.tmin); fprintf(fp, "tmax = %f\n", prefs.ranges.tmax); fprintf(fp, "amin = %f\n", prefs.ranges.amin); fprintf(fp, "amax = %f\n\n", prefs.ranges.amax); fprintf(fp, "graph_width = %d\n", prefs.ranges.width); fprintf(fp, "graph_height = %d\n", prefs.ranges.height); /* linewidth */ fprintf(fp, "axes_lw = %g\n", prefs.axes_linewidth); fprintf(fp, "grid_lw = %g\n", prefs.grid_linewidth); fprintf(fp, "box_lw = %g\n", prefs.box_linewidth); fprintf(fp, "curves_lw = %g\n", prefs.curves_linewidth); fprintf(fp, "point_radius = %g\n", prefs.point_radius); /* coordinates_type */ if(prefs.ranges.radian == DEF_DECIMAL) buf = "decimal"; else if(prefs.ranges.radian == DEF_RADIAN) buf = "radian"; else g_assert_not_reached(); fprintf(fp, "coordinates_type = %s\n", buf); /* mode_type */ if(prefs.ranges.mode == DEF_CARTESIAN) buf = "cartesian"; else if(prefs.ranges.mode == DEF_POLAR) buf = "polar"; else if(prefs.ranges.mode == DEF_PARAMETRIC) buf = "parametric"; else if(prefs.ranges.mode == DEF_SEQUENCE) buf = "sequence"; else g_assert_not_reached(); fprintf(fp, "mode_type = %s\n", buf); fprintf(fp, "zoom_xy = %d\n\n", prefs.zoom_xy); /* zoom, space, minres, maxres */ fprintf(fp, "zoom_factor = %f\n", prefs.zoom); fprintf(fp, "notch_spacing = %d\n", prefs.space); fprintf(fp, "minimum_resolution = %f\n", prefs.minres); fprintf(fp, "maximum_resolution = %f\n", prefs.maxres); fprintf(fp, "interpolation_factor = %d\n", prefs.interp); fprintf(fp, "maximum_formulas = %d\n\n", prefs.maxform); /* drawing choices */ fprintf(fp, "do_Ox = %d\n", prefs.do_Ox); fprintf(fp, "do_Oy = %d\n", prefs.do_Oy); fprintf(fp, "do_xval = %d\n", prefs.do_xval); fprintf(fp, "do_yval = %d\n", prefs.do_yval); fprintf(fp, "do_color = %d\n", prefs.do_color); fprintf(fp, "do_box = %d\n\n", prefs.do_box); fprintf(fp, "# positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right \n"); fprintf(fp, "text_position = %d\n", prefs.text_position); fprintf(fp, "formula_size = %g\n", prefs.formula_size); fprintf(fp, "number_size = %g\n\n", prefs.number_size); /* utilities */ fprintf(fp, "utility_editor = %s\n", prefs.editor); fprintf(fp, "utility_eps_viewer = %s\n", prefs.eps_viewer); fprintf(fp, "utility_pdf_viewer = %s\n", prefs.pdf_viewer); fprintf(fp, "utility_eps_to_pdf = %s\n", prefs.eps_to_pdf); fprintf(fp, "utility_svg_viewer = %s\n", prefs.svg_viewer); fprintf(fp, "utility_eps_to_svg = %s\n\n", prefs.eps_to_svg); /* background, numbers, axes, selection */ for (i=0; i typedef gint (*FormulaFunc) (gchar *formula, gint number); typedef gint (*FormulaAllFunc) (gchar **formulas, gint nformulas, gdouble x1, gdouble x2, gdouble y1, gdouble y2); extern void erase_event(GtkWidget *widget, gpointer data); extern void remove_all_event(GtkWidget *widget, gpointer data); extern void formula_foreach(FormulaFunc func); extern void formula_forall(FormulaAllFunc func, gdouble x1, gdouble x2, gdouble y1, gdouble y2); extern gint formula_add(FormulaFunc func, gchar *formula); extern gint formula_find(gchar *formula); extern gchar** formula_list(void); extern gint formula_count(void); #endif /* __FORMULAS_H__ */ geg-2.0.9/src/log.h0000644000175000017500000000035112675713204014211 0ustar georgeskgeorgesk#ifndef __LOG_H__ #define __LOG_H__ #include void create_log(GtkWidget *widget); void write_log(gchar *message); void addto_log(gchar *message); void clear_log(GtkWidget *widget, gpointer data); #endif /* __LOG_H__ */ geg-2.0.9/src/app.h0000644000175000017500000000060512713446474014217 0ustar georgeskgeorgesk#ifndef __APP_H__ #define __APP_H__ #include #include extern int app(void); extern void parse_input_file(void); extern void parse_command_line(int argc, char *argv[]); extern void realize_preferences(GtkWidget *widget, gpointer data); extern void set_mode(gint i); extern void reset_variables(void); extern void set_minmax_value(gint i); #endif /* __APP_H__ */ geg-2.0.9/src/help.c0000644000175000017500000000671712711322203014351 0ustar georgeskgeorgesk/* help.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include "help.h" #include "i18n.h" #include /* locally global data */ static GtkWidget *wi = NULL; static void ok_event(GtkWidget *widget, gpointer data); static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data); static FILE * help_file_open(gchar *message); static void ok_event(GtkWidget *widget, gpointer data) { gtk_widget_destroy(wi); wi = NULL; } static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { gtk_widget_destroy(wi); wi = NULL; return(TRUE); } static FILE * help_file_open(gchar *message) { FILE *fp; gchar *ptr; gchar filename[256]; sprintf(filename, "/usr/share/geg/help/help.%s", g_getenv("LANG")); ptr = strrchr(filename, '_'); if (ptr) *ptr = '\0'; fp = fopen(filename, "r"); if (!fp) { strcpy(filename, "/usr/share/geg/help/help.en"); fp = fopen(filename, "r"); } if (!fp) { sprintf(message, "%s %s", filename, _("not found")); } return fp; } void print_help() { gchar line[512]; FILE *fp; fp = help_file_open(line); if (fp) { while(fgets(line, 256, fp)) { printf("%s", line); } fclose(fp); } else { printf("%s", line); } } void help_event(GtkWidget *widget, gpointer data) { static GdkFont *font = NULL; GtkWidget *bu, *vb, *te, *sw; GtkTextBuffer *te_buf; GtkTextIter te_iter; PangoFontDescription *font_desc; gchar line[512]; FILE *fp; if(wi && wi->window) { gtk_widget_map(wi); gdk_window_raise(wi->window); return; } if(!font) font = gdk_font_load("fixed"); g_assert(font != NULL); wi = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_usize(wi, 960, 720); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); gtk_window_set_wmclass(GTK_WINDOW(wi), "help", "Geg"); sprintf(line, "%s: %s", "Geg", _("Help")); gtk_window_set_title(GTK_WINDOW(wi), line); gtk_window_set_policy(GTK_WINDOW(wi), TRUE, TRUE, TRUE); gtk_window_position(GTK_WINDOW(wi), GTK_WIN_POS_NONE); vb = gtk_vbox_new(FALSE, 0); te = gtk_text_view_new(); font_desc = pango_font_description_from_string ("Dejavu Sans Mono 12"); gtk_widget_modify_font (te, font_desc); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(te), GTK_WRAP_WORD); sw = gtk_scrolled_window_new(GTK_TEXT_VIEW(te)->vadjustment, GTK_TEXT_VIEW(te)->hadjustment); gtk_container_add(GTK_CONTAINER(wi), vb); gtk_container_add(GTK_CONTAINER(vb), sw); gtk_container_add(GTK_CONTAINER(sw), te); bu = gtk_button_new_with_label(_("Ok")); gtk_widget_set_usize(bu, 50, 30); GTK_WIDGET_SET_FLAGS(bu, GTK_CAN_DEFAULT); gtk_box_pack_start(GTK_BOX(vb), sw, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vb), bu, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(bu), "clicked", GTK_SIGNAL_FUNC(ok_event), NULL); te_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(te)); gtk_text_buffer_get_end_iter(te_buf, &te_iter); gtk_widget_show(wi); gtk_widget_show(vb); gtk_widget_show(sw); gtk_widget_show(bu); gtk_widget_show(te); gtk_widget_show((GtkWidget *)te_buf); fp = help_file_open(line); if (fp) { while(fgets(line, 256, fp)) { gtk_text_buffer_insert(te_buf, &te_iter, line, strlen(line)); } fclose(fp); } else { gtk_text_buffer_insert(te_buf, &te_iter, line, strlen(line)); } } geg-2.0.9/src/colorsel.h0000644000175000017500000000033412677147636015267 0ustar georgeskgeorgesk#ifndef __COLORSEL_H__ #define __COLORSEL_H__ #include void colorsel_event(GtkWidget *preview, gpointer data); void show_color_in_preview(GtkWidget *preview, gdouble values[]); #endif /* __COLORSEL_H__ */ geg-2.0.9/src/colors.h0000644000175000017500000000100012712664315014721 0ustar georgeskgeorgesk#ifndef __COLORS_H__ #define __COLORS_H__ #include typedef struct { GdkColor back; GdkColor numb; GdkColor axes; GdkColor grid; GdkColor sel; GdkColor gray; } misc_colors; extern guint n_f_colors; extern gdouble *f_values; extern GdkColor *f_colors; extern misc_colors m_colors; extern void alloc_func_colors(GdkColormap *colormap); extern void alloc_color(GdkColor *color, gdouble *vals, GdkColormap *colormap); extern void color_print(FILE *fd, int n); #endif /* __COLORS_H__ */ geg-2.0.9/src/app.c0000644000175000017500000027433212735025750014216 0ustar georgeskgeorgesk/* app.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #ifndef M_PI #define M_PI 3.14159265358979323846 #endif /* M_PI */ #ifndef M_E #define M_E 2.7182818284590452354 #endif /* M_E */ /* minimum distance between pressing and releasing mouse button for */ /* selection to be acknowledged */ #define MINSEL 5 // #include // #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "app.h" #include "about.h" #include "help.h" #include "prefs.h" #include "formulas.h" #include "log.h" #include "misc.h" #include "colors.h" #include "tokeniser.h" #include "parser.h" #include "i18n.h" /* global data */ GdkColor black, white; GdkColormap *colormap = NULL; gdouble var[ENDVARIABLES]; /* internal variables */ struct_ranges ranges; /* range limits */ gdouble fx = 1.0, fy = 1.0, ratio = 1.0; gint mute = 0; gchar *template = NULL; gchar *geg_file = NULL, *eps_file = NULL, *svg_file = NULL, *pdf_file = NULL; gchar *data_file = NULL; parse_tree *fun[26]; struct_integ integr[26]; #if 0 gchar *varname[] = { "der_step", "tgt_left", "tgt_right", "mult", "incr", "tgtl", "tgtr", "actv", "gap", "lw", "color", "ptrad", "amin", "amax", "tmin", "tmax" }; #endif gchar *ps_header = "\ %% macro definitions\n\ /m { ratio mul moveto } def\n\ /l { ratio mul lineto } def\n\ /d { ratio mul point_radius fx div 0 360 arc fill } def\n\ /s { stroke } def\n\ /sl { do_formulas { show } { pop } ifelse } def\n\ /sr { do_formulas { dup stringwidth pop neg 0 rmoveto show }\n\ { pop } ifelse } def\n\ /setcolor { do_color { 3 mul dup\n\ colors exch get exch 1 add dup\n\ colors exch get exch 1 add\n\ colors exch get setrgbcolor }\n\ { 5 ge { colors 15 get setgray }\n\ { colors 12 get setgray } ifelse } ifelse } def\n\ /setbg { do_color { 0 setcolor } { 1 setgray } ifelse } def\n\ /xt { do_xtick { do_grid { 3 setcolor dup ymin m ymax l s }\n\ { 2 setcolor dup 1 fy div m -1 fy div l s } ifelse } if } def\n\ /yt { do_ytick { do_grid { 3 setcolor dup xmin exch m xmax exch l s }\n\ { 2 setcolor dup 1 fx div exch m -1 fx div exch l s } ifelse } if } def\n\ /symbol { /Symbol findfont number_size fx div 2.5 div scalefont setfont } def\n\ /helv { /Helvetica findfont formula_size fx div 2.5 div scalefont setfont } def\n\ /xp { do_xval { exch number_size -2.5 div fy div m dup stringwidth pop\n\ do_grid { neg ( ) stringwidth pop 0.8 mul sub }\n\ { -0.5 mul } ifelse 0 rmoveto 1 setcolor show }\n\ { pop pop } ifelse } def\n\ /xz { do_xval { exch number_size -2.5 div fy div m dup stringwidth pop neg\n\ ( ) stringwidth pop 0.8 mul sub 0 rmoveto 1 setcolor show }\n\ { pop pop } ifelse } def\n\ /yp { do_yval { exch do_grid { -1.4 } { -1.8 } ifelse fx div exch m dup\n\ stringwidth pop neg number_size do_grid { -2.6 } { -10 } ifelse\n\ div fx div rmoveto 1 setcolor show } { pop pop } ifelse } def\n\ /slw { fx div setlinewidth} def\n\ /do_xval do_xval do_Ox and def\n\ /do_yval do_yval do_Oy and def\n\ /do_xtick do_xval do_grid or def\n\ /do_ytick do_yval do_grid or def\n\ 1 setlinejoin\n\n\ %% clipbox\n\ xmin dup ymin m ymax l xmax dup ymax l ymin l closepath\n\ gsave setbg fill grestore\n\ clip do_box { box_lw 2 mul slw stroke } { newpath } ifelse\n\n\ "; static FILE *fd = NULL; static GtkWidget *xmin_en, *xmax_en, *ymin_en, *ymax_en, *tmin_en, *tmax_en; static GtkWidget *wi, *ed=NULL, *tb, *da, *eq_co, *func_la, *graph_fr; static GdkPixmap *pixmap = NULL; static GtkTextBuffer *te_buf; static GtkTextIter te_iter; static GdkGC *back_gc = NULL, *func_gc = NULL; static GdkGC *numb_gc = NULL, *axes_gc = NULL, *grid_gc, *sel_gc = NULL; static gint x_down, y_down, x_up, y_up; static GdkCursor *cursors[4]; /* locally global data */ static void release_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void selection_event(GtkWidget *widget, GdkEventMotion *event, gpointer data); static gint solve_fint(gchar **formulas, gint nformulas, gdouble x1, gdouble x2, gdouble y1, gdouble y2); static gint solve_aint(gchar **formulas, gint nformulas, gdouble x1, gdouble x2, gdouble y1, gdouble y2); static void edit_formulas_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void edit_geg_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void edit_eps_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void print_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void press_event(GtkWidget *widget, GdkEventButton *event, gpointer data); static void scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer data); static void motion_event(GtkWidget *widget, GdkEventMotion *event, gpointer data); static void leave_event(GtkWidget *widget, GdkEvent *event, gpointer data); static gint configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer data); static gint expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data); static void redraw_event(GtkWidget *widget, gpointer data); static void drawing_init(GtkWidget *widget, gpointer data); static gint process_formula(gchar *formula, gint number); static void clear_pixmap(void); static void draw_axes(void); static gint range_ok(gint dofix); static gint pixmap_x(gdouble x); static gint pixmap_y(gdouble y); static gdouble real_x(gint x); static gdouble real_y(gint y); static void reset_size_toplevel(); static void process_output(gint mode); static void file_save(GtkWidget *widget, gpointer data); static void geg_file_save(gchar *file_selected); static void geg_file_open(GtkWidget *widget, gpointer data); static void refresh_graph(GtkWidget *widget, gpointer data); static void update_functions(GtkWidget *widget, gpointer data); static void zoom_event(GtkWidget *widget, gpointer data); static void entry_changed_event(GtkWidget *widget, gpointer data); static void go_event(GtkWidget *widget, gpointer data); static void export_parameters(GtkWidget *widget, gpointer data); static void reset_preferences(GtkWidget *widget, gpointer data); static void set_graphic_frame_title(); static void restart_event(GtkWidget *widget, gpointer data); static void update_ranges(void); static void entry_signals(gchar *flag); static void parse_rest_of_file(FILE *fp); static void parse_data_file(void); static void exit_geg(void); static void draw_grid(GtkWidget *widget, gpointer data); static void set_coordinates(GtkWidget *widget, gpointer data); static void show_mode(gint i); static void rotate_mode(GtkWidget *widget, gpointer data); static void sequence_mode(GtkWidget *widget, gpointer data); static void compound_entry(char *title, GtkWidget **entry, GtkWidget *vbox); static GtkWidget *create_pixmap(GtkWidget *widget, gchar **data); /* parse_rcfile, parses ~/.gegrc */ void parse_input_file(void) { strncpy(rc_file, getenv("HOME"), 248); strcat(rc_file, "/.gegrc"); /* load preferences */ prefs_rc_parse(rc_file, DEF_RC_INIT); } static void parse_rest_of_file(FILE *fp) { gchar *ptr; gint found = 0; while(fgets(template, 256, fp)) { ptr = strchr(template, '\n'); if (ptr) *ptr = '\0'; ptr = template; while (isspace(*ptr)) ++ptr; if (*ptr == '\0') { /* empty line is viewed as comment "##" */ if (found) (void)formula_add(NULL, "##"); continue; } if (*ptr == '#') { if (!found) { found = 1; continue; } } else found = 1; if (formula_find(ptr)) goto parse_end; /* draw the formula and add it to the list if it parses ok */ if(!formula_add(NULL, ptr)) goto parse_end; } parse_end: fclose(fp); } static void parse_data_file(void) { FILE *fp; if (data_file) { sprintf(template, "%s %s", _("Reading"), data_file); addto_log("▪ "); write_log(template); fp = prefs_rc_parse(data_file, DEF_RC_FILE); realize_preferences(NULL, NULL); ranges = prefs.ranges; if (!fp) return; parse_rest_of_file(fp); } } /* exit_geg, called when window manager tries to delete window */ static void exit_geg() { if (geg_file) unlink(geg_file); if (pdf_file) unlink(pdf_file); if (eps_file) unlink(eps_file); if (svg_file) unlink(svg_file); gtk_main_quit(); } /* delete_event, called when window manager tries to delete window */ static gint delete_event(GtkWidget *widget, GdkEvent *event, gpointer data) { static gint done = 0; GtkWidget *dialog; if (done) return(FALSE); dialog = gtk_message_dialog_new (GTK_WINDOW(wi), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Really quit ?")); gtk_window_set_title(GTK_WINDOW(dialog), "geg: question"); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_NO) { gtk_widget_destroy (dialog); return(TRUE); } else { done = 1; gtk_widget_destroy (dialog); exit_geg(); } return(FALSE); } void reset_variables() { gint i; if (func_gc) gdk_gc_set_line_attributes(func_gc, 1, GDK_LINE_SOLID, GDK_CAP_ROUND, GDK_JOIN_ROUND); for (i=0; i<26; i++) { var[i] = NAN; /* parameters set to NAN by default */ if (fun[i]) { free_tree(fun[i]); fun[i] = NULL; } } var[4] = M_E; /* e = exp(1) by default */ var[INTSTEP] = 0.005; /* default relative step for integration */ var[RINCR] = 0.001; /* default relative step for derivative */ var[RTGTR] = 100; /* relative size of right tangent segments */ var[RTGTL] = 100; /* relative size of left tangent segments */ var[COLOR] = -1; /* RGB color 0..255|0..255|0..255 concatenated */ var[GAP] = 1.0; /* default gap */ var[LINEWIDTH] = -1; /* linewidth (< 0 : inactive) */ var[POINTRADIUS] = -1; /* point_radius (< 0 : inactive) */ } /* app, creates the main interface, called once by main */ int app(void) { GtkWidget *main_vb, *work_hb, *hs, *entry_hb; GtkWidget *mb, *file_me, *edit_me, *param_me, *help_me; GtkWidget *temp_mi; GtkWidget *info_vb, *range_vb; GtkWidget *status_la; GtkWidget *temp_bu; GtkWidget *range_fr, *log_fr; gint i; for (i = 0; i < 26; i++) { fun[i] = NULL; integr[i].ptr = NULL; } reset_variables(); /* Create temporary files */ template = malloc(1024); geg_file = malloc(256); eps_file = malloc(256); pdf_file = malloc(256); svg_file = malloc(256); strcpy(template, "/tmp/gegXXXXXX"); if ((i=mkstemp(template))) { close(i); unlink(template); } sprintf(geg_file, "%s.geg", template); sprintf(eps_file, "%s.eps", template); sprintf(pdf_file, "%s.pdf", template); sprintf(svg_file, "%s.svg", template); /* create the main window */ wi = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_wmclass(GTK_WINDOW(wi), "geg", "Geg"); gtk_window_set_title(GTK_WINDOW(wi), "geg"); gtk_window_set_policy(GTK_WINDOW(wi), TRUE, TRUE, TRUE); gtk_signal_connect(GTK_OBJECT(wi), "delete_event", GTK_SIGNAL_FUNC(delete_event), NULL); gtk_signal_connect(GTK_OBJECT(wi), "destroy", GTK_SIGNAL_FUNC(delete_event), NULL); main_vb = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(wi), main_vb); gtk_widget_show(main_vb); mb = gtk_menu_bar_new(); gtk_box_pack_start(GTK_BOX(main_vb), mb, FALSE, TRUE, 0); gtk_widget_show(mb); /* tb = gtk_toolbar_new(GTK_ORIENTATION_HORIZONTAL, GTK_TOOLBAR_BOTH); */ tb = gtk_toolbar_new(); gtk_box_pack_start(GTK_BOX(main_vb), tb, FALSE, TRUE, 1); work_hb = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(main_vb), work_hb, TRUE, TRUE, 0); gtk_widget_show(work_hb); hs = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(main_vb), hs, FALSE, TRUE, 0); gtk_widget_show(hs); entry_hb = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(main_vb), entry_hb, FALSE, FALSE, 0); gtk_widget_show(entry_hb); /* file menu */ file_me = gtk_menu_new(); temp_mi = gtk_menu_item_new_with_label(_("Open *.geg")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(geg_file_open), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Save as *.geg file ...")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(file_save), "geg"); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Save as *.eps file ...")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(file_save), "eps"); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Save as *.pdf file ...")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(file_save), "pdf"); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Save as *.svg file ...")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(file_save), "svg"); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Exit")); gtk_menu_append(GTK_MENU(file_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(delete_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("File")); gtk_menu_item_set_submenu(GTK_MENU_ITEM(temp_mi), file_me); gtk_menu_bar_append(GTK_MENU_BAR(mb), temp_mi); gtk_widget_show(temp_mi); /* edit menu */ edit_me = gtk_menu_new(); temp_mi = gtk_menu_item_new_with_label(_("Erase some Formulas...")); gtk_menu_append(GTK_MENU(edit_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(erase_event), GTK_SIGNAL_FUNC(refresh_graph)); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Edit formulas ...")); gtk_menu_append(GTK_MENU(edit_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(edit_formulas_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Edit geg file ...")); gtk_menu_append(GTK_MENU(edit_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(edit_geg_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Edit postscript file ...")); gtk_menu_append(GTK_MENU(edit_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(edit_eps_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Clear Log")); gtk_menu_append(GTK_MENU(edit_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(clear_log), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Edition")); gtk_menu_item_set_submenu(GTK_MENU_ITEM(temp_mi), edit_me); gtk_menu_bar_append(GTK_MENU_BAR(mb), temp_mi); gtk_widget_show(temp_mi); /* parameters menu */ param_me = gtk_menu_new(); temp_mi = gtk_menu_item_new_with_label(_("Export parameters to Prefs")); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(export_parameters), NULL); gtk_menu_append(GTK_MENU(param_me), temp_mi); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Builtin parameters")); gtk_menu_append(GTK_MENU(param_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(reset_preferences), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Preferences...")); gtk_menu_append(GTK_MENU(param_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(prefs_event), GTK_SIGNAL_FUNC(realize_preferences)); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Parameters")); gtk_menu_item_set_submenu(GTK_MENU_ITEM(temp_mi), param_me); gtk_menu_bar_append(GTK_MENU_BAR(mb), temp_mi); gtk_widget_show(temp_mi); /* help menu */ help_me = gtk_menu_new(); temp_mi = gtk_menu_item_new_with_label(_("Help...")); gtk_menu_append(GTK_MENU(help_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(help_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Examples...")); gtk_menu_append(GTK_MENU(help_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(geg_file_open), (gpointer)2); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("About...")); gtk_menu_append(GTK_MENU(help_me), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(about_event), NULL); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Help")); gtk_menu_item_set_submenu(GTK_MENU_ITEM(temp_mi), help_me); gtk_menu_bar_append(GTK_MENU_BAR(mb), temp_mi); gtk_menu_item_right_justify(GTK_MENU_ITEM(temp_mi)); gtk_widget_show(temp_mi); /* work area */ info_vb = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(work_hb), info_vb, FALSE, FALSE, 0); /* xmin, xmax, ymin, ymax */ range_fr = gtk_frame_new(_("Ranges")); gtk_box_pack_start(GTK_BOX(info_vb), range_fr, FALSE, FALSE, 0); range_vb = gtk_vbox_new(TRUE, 0); gtk_container_add(GTK_CONTAINER(range_fr), range_vb); compound_entry(_("Xmin:"), &xmin_en, range_vb); compound_entry(_("Xmax:"), &xmax_en, range_vb); compound_entry(_("Ymin:"), &ymin_en, range_vb); compound_entry(_("Ymax:"), &ymax_en, range_vb); compound_entry(_("Tmin:"), &tmin_en, range_vb); compound_entry(_("Tmax:"), &tmax_en, range_vb); ranges = prefs.ranges; entry_signals("connect"); update_ranges(); gtk_signal_connect(GTK_OBJECT(xmin_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(xmax_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(ymin_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(ymax_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(tmin_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_signal_connect(GTK_OBJECT(tmax_en), "activate", GTK_SIGNAL_FUNC(refresh_graph), NULL); gtk_widget_show(range_vb); gtk_widget_show(range_fr); /* log */ log_fr = gtk_frame_new(_("Log")); gtk_box_pack_start(GTK_BOX(info_vb), log_fr, TRUE, TRUE, 0); gtk_widget_show(log_fr); create_log(log_fr); /* status */ log_fr = gtk_frame_new(_("Status")); gtk_box_pack_start(GTK_BOX(info_vb), log_fr, FALSE, FALSE, 0); gtk_widget_show(log_fr); status_la = gtk_label_new(""); gtk_container_add(GTK_CONTAINER(log_fr), status_la); gtk_widget_show(status_la); gtk_widget_show(info_vb); parse_data_file(); /* graph */ graph_fr = gtk_frame_new("(x,y)"); gtk_box_pack_start(GTK_BOX(work_hb), graph_fr, TRUE, TRUE, 0); gtk_widget_show(graph_fr); func_la = gtk_label_new("f(x)"); gtk_box_pack_start(GTK_BOX(entry_hb), func_la, FALSE, FALSE, 5); gtk_widget_show(func_la); eq_co = gtk_combo_new(); gtk_combo_disable_activate(GTK_COMBO(eq_co)); gtk_signal_connect(GTK_OBJECT(GTK_COMBO(eq_co)->entry), "activate", GTK_SIGNAL_FUNC(go_event), eq_co); gtk_box_pack_start(GTK_BOX(entry_hb), eq_co, TRUE, TRUE, 0); gtk_widget_show(eq_co); temp_bu = gtk_button_new_with_label(_("GO!")); gtk_signal_connect(GTK_OBJECT(temp_bu), "clicked", GTK_SIGNAL_FUNC(go_event), eq_co); gtk_box_pack_start(GTK_BOX(entry_hb), temp_bu, FALSE, TRUE, 0); gtk_widget_show(temp_bu); da = gtk_drawing_area_new(); gtk_drawing_area_size(GTK_DRAWING_AREA(da), prefs.ranges.width, prefs.ranges.height); gtk_widget_set_events(da, GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK ); gtk_signal_connect(GTK_OBJECT(da), "motion_notify_event", GTK_SIGNAL_FUNC(motion_event), status_la); gtk_signal_connect(GTK_OBJECT(da), "leave_notify_event", GTK_SIGNAL_FUNC(leave_event), status_la); gtk_signal_connect(GTK_OBJECT(da), "button_press_event", GTK_SIGNAL_FUNC(press_event), NULL); gtk_signal_connect(GTK_OBJECT(da), "configure_event", GTK_SIGNAL_FUNC(drawing_init), NULL); gtk_signal_connect(GTK_OBJECT(da), "configure_event", GTK_SIGNAL_FUNC(configure_event), NULL); gtk_signal_connect(GTK_OBJECT(da), "configure_event", GTK_SIGNAL_FUNC(update_functions), NULL); gtk_signal_connect(GTK_OBJECT(da), "expose_event", GTK_SIGNAL_FUNC(expose_event), NULL); gtk_signal_connect(GTK_OBJECT(da), "scroll_event", GTK_SIGNAL_FUNC(scroll_event), NULL); #if 0 gtk_signal_connect_after(GTK_OBJECT(da), "button_release_event", GTK_SIGNAL_FUNC(refresh_graph), NULL); #endif gtk_container_add(GTK_CONTAINER(graph_fr), da); gtk_widget_show(da); /* we need to realize the window so we can create the pixmaps */ gtk_widget_realize(wi); colormap = gdk_window_get_colormap(wi->window); g_assert(colormap != NULL); /* toolbar buttons */ gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Restart"), _("Erase all formulas and reset zoom"), NULL, create_pixmap(wi, restart_xpm), GTK_SIGNAL_FUNC(restart_event), NULL); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Edit"), _("Edit formulas"), NULL, create_pixmap(wi, edit_xpm), GTK_SIGNAL_FUNC(edit_formulas_event), NULL); #if 0 gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Erase"), _("Select formulas to erase"), NULL, create_pixmap(wi, erase_xpm), GTK_SIGNAL_FUNC(erase_event), GTK_SIGNAL_FUNC(refresh_graph)); #endif gtk_toolbar_append_space(GTK_TOOLBAR(tb)); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("↕x,y↕"), _("Zoom along Ox, Oy, or both"), NULL, create_pixmap(wi, xy_xpm), GTK_SIGNAL_FUNC(zoom_event), "xy"); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Reset"), _("Reset zoom to default"), NULL, create_pixmap(wi, zoom0_xpm), GTK_SIGNAL_FUNC(zoom_event), "0"); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("In"), _("Zoom in"), NULL, create_pixmap(wi, in_xpm), GTK_SIGNAL_FUNC(zoom_event), "in"); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Out"), _("Zoom out"), NULL, create_pixmap(wi, out_xpm), GTK_SIGNAL_FUNC(zoom_event), "out"); gtk_toolbar_append_space(GTK_TOOLBAR(tb)); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("t→(x,y) ?"), _("Use cartesian / polar / parametric mode"), NULL, create_pixmap(wi, sine_xpm), GTK_SIGNAL_FUNC(rotate_mode), NULL); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("u(n) ?"), _("Draw graphic representation of sequence"), NULL, create_pixmap(wi, sequence_xpm), GTK_SIGNAL_FUNC(sequence_mode), NULL); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("1 : π"), _("Use decimal / radian x coordinates"), NULL, create_pixmap(wi, pi_xpm), GTK_SIGNAL_FUNC(set_coordinates), NULL); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("grid"), _("Draw coordinate grid"), NULL, create_pixmap(wi, grid_xpm), GTK_SIGNAL_FUNC(draw_grid), NULL); gtk_toolbar_append_space(GTK_TOOLBAR(tb)); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Print"), _("Print graph window"), NULL, create_pixmap(wi, print_xpm), GTK_SIGNAL_FUNC(print_event), (gpointer)&prefs.print); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Prefs"), _("Edit preferences"), NULL, create_pixmap(wi, prefs_xpm), GTK_SIGNAL_FUNC(prefs_event), GTK_SIGNAL_FUNC(realize_preferences)); gtk_toolbar_append_item(GTK_TOOLBAR(tb), _("Exit"), _("Exit geg"), NULL, create_pixmap(wi, exit_xpm), GTK_SIGNAL_FUNC(delete_event), NULL); /* time to realize the preferences */ if (!data_file) realize_preferences(wi, "firstcall"); gtk_widget_show(tb); gtk_widget_show(wi); gtk_widget_grab_focus(GTK_COMBO(eq_co)->entry); configure_event(da, NULL, NULL); set_graphic_frame_title(); if (data_file) { refresh_graph(NULL, NULL); g_free(data_file); data_file = NULL; } return(0); } /* create_pixmap, convenience function to create a pixmap widget, from data */ static GtkWidget * create_pixmap(GtkWidget *widget, gchar **data) { GtkStyle *style; GdkBitmap *mask; GdkPixmap *gdk_pixmap; GtkWidget *gtk_pixmap; style = gtk_widget_get_style(widget); g_assert(style != NULL); gdk_pixmap = gdk_pixmap_create_from_xpm_d(widget->window, &mask, &style->bg[GTK_STATE_NORMAL], data); g_assert(gdk_pixmap != NULL); gtk_pixmap = gtk_pixmap_new(gdk_pixmap, mask); g_assert(gtk_pixmap != NULL); gtk_widget_show(gtk_pixmap); return(gtk_pixmap); } /* realize preferences, make the non-startup preferences take effect * the startup preferences are handled elsewhere */ void realize_preferences(GtkWidget *widget, gpointer data) { guint i; /* toolbar */ switch(prefs.tb) { case(GEG_RC_PICTURES_AND_TEXT): gtk_toolbar_set_style(GTK_TOOLBAR(tb), GTK_TOOLBAR_BOTH); break; case(GEG_RC_PICTURES_ONLY): gtk_toolbar_set_style(GTK_TOOLBAR(tb), GTK_TOOLBAR_ICONS); break; case(GEG_RC_TEXT_ONLY): gtk_toolbar_set_style(GTK_TOOLBAR(tb), GTK_TOOLBAR_TEXT); break; default: break; } /* tooltips */ if(prefs.tt == GEG_RC_ON) gtk_toolbar_set_tooltips(GTK_TOOLBAR(tb), TRUE); else if(prefs.tt == GEG_RC_OFF) gtk_toolbar_set_tooltips(GTK_TOOLBAR(tb), FALSE); else g_assert_not_reached(); if(ranges.mode == DEF_CARTESIAN) { gtk_label_set_text(GTK_LABEL(func_la), "f(x)"); } else if(ranges.mode == DEF_POLAR) { gtk_label_set_text(GTK_LABEL(func_la), "r(t)"); } else if(ranges.mode == DEF_PARAMETRIC) { gtk_label_set_text(GTK_LABEL(func_la), "x= ;y= "); } else if(ranges.mode == DEF_SEQUENCE) { gtk_label_set_text(GTK_LABEL(func_la), "u(n)"); } if (data_file) { gtk_entry_set_text(GTK_ENTRY(xmin_en), ftoa(ranges.xmin)); gtk_entry_set_text(GTK_ENTRY(xmax_en), ftoa(ranges.xmax)); gtk_entry_set_text(GTK_ENTRY(ymin_en), ftoa(ranges.ymin)); gtk_entry_set_text(GTK_ENTRY(ymax_en), ftoa(ranges.ymax)); if (ranges.mode == DEF_POLAR) { gtk_entry_set_text(GTK_ENTRY(tmin_en), ftoa(ranges.amin)); gtk_entry_set_text(GTK_ENTRY(tmax_en), ftoa(ranges.amax)); } if (ranges.mode == DEF_PARAMETRIC) { gtk_entry_set_text(GTK_ENTRY(tmin_en), ftoa(ranges.tmin)); gtk_entry_set_text(GTK_ENTRY(tmax_en), ftoa(ranges.tmax)); } } if (!widget) return; /* colors */ for (i=0; istr, ranges.xmin); gtk_entry_set_text(GTK_ENTRY(xmin_en), buf_2->str); /* gtk_signal_emit_stop_by_name(GTK_OBJECT(xmin_en), "changed"); */ g_string_sprintf(buf_2, buf_1->str, ranges.xmax); gtk_entry_set_text(GTK_ENTRY(xmax_en), buf_2->str); /* gtk_signal_emit_stop_by_name(GTK_OBJECT(xmax_en), "changed"); */ g_string_sprintf(buf_1, "%%0.%df", CLAMP((gint)ceil(-log10(height / 100)), 0, 6)); g_string_sprintf(buf_2, buf_1->str, ranges.ymin); gtk_entry_set_text(GTK_ENTRY(ymin_en), buf_2->str); /* gtk_signal_emit_stop_by_name(GTK_OBJECT(ymin_en), "changed"); */ g_string_sprintf(buf_2, buf_1->str, ranges.ymax); gtk_entry_set_text(GTK_ENTRY(ymax_en), buf_2->str); /* gtk_signal_emit_stop_by_name(GTK_OBJECT(ymax_en), "changed"); */ g_string_free(buf_1, TRUE); g_string_free(buf_2, TRUE); entry_signals("connect"); } /* zoom_event, called when either of zoom_in or zoom_out are clicked from * the toolbar. "in" and "out" are passed as data */ static void zoom_event(GtkWidget *widget, gpointer data) { gdouble x = 0, y = 0; gdouble width, height; gchar buf[64]; if(!range_ok(FALSE)) return; if(!strcmp((char *)data, "0")) { ranges.xmin = prefs.ranges.xmin; ranges.ymin = prefs.ranges.ymin; ranges.xmax = prefs.ranges.xmax; ranges.ymax = prefs.ranges.ymax; refresh_graph(NULL, NULL); addto_log("▪ "); write_log(_("Zoom reset")); return; } if(!strcmp((char *)data, "xy")) { prefs.zoom_xy = (prefs.zoom_xy % 4) + 1; if (prefs.zoom_xy == 1) strcpy(buf, _("Zoom along Ox")); if (prefs.zoom_xy == 2) strcpy(buf, _("Zoom along Oy")); if (prefs.zoom_xy == 3) strcpy(buf, _("Zoom along Ox and Oy")); if (prefs.zoom_xy == 4) strcpy(buf, _("Zoom orthonormal")); addto_log("▪ "); write_log(buf); set_graphic_frame_title(); return; } width = ranges.xmax - ranges.xmin; height = ranges.ymax - ranges.ymin; if(!strcmp((char *)data, "in")) { if((width < prefs.minres) || (height < prefs.minres)) { write_log(_("Minimum Resolution")); return; } if (prefs.zoom_xy & 1) x = - prefs.zoom / 2 * (width / (1 + prefs.zoom)); if (prefs.zoom_xy & 2) y = - prefs.zoom / 2 * (height / (1 + prefs.zoom)); if (prefs.zoom_xy == 4) { x = - prefs.zoom / 2 * (width / (1 + prefs.zoom)); } addto_log("▪ "); write_log(_("Zoom In")); } else if(!strcmp((char *)data, "out")) { if((width > prefs.maxres) || (height > prefs.maxres)) { write_log(_("Maximum Resolution")); return; } if (prefs.zoom_xy & 1) x = prefs.zoom / 2 * width; if (prefs.zoom_xy & 2) y = prefs.zoom / 2 * height; if (prefs.zoom_xy == 4) { x = prefs.zoom / 2 * width; } addto_log("▪ "); write_log(_("Zoom Out")); } else g_assert_not_reached(); ranges.xmin -= x; ranges.xmax += x; if (prefs.zoom_xy == 4) { ranges.ymin = (ranges.ymin + ranges.ymax)/2.0; y = 0.5 * (ranges.xmax - ranges.xmin) * ((gdouble)ranges.height / (gdouble)ranges.width); ranges.ymax = ranges.ymin + y; ranges.ymin = ranges.ymin - y; } else { ranges.ymin -= y; ranges.ymax += y; } mute = 1; update_ranges(); clear_pixmap(); draw_axes(); reset_variables(); formula_foreach((FormulaFunc)process_formula); redraw_event(da, NULL); mute = 0; } /* go_event, called when the go button is clicked, draw the formula */ static void go_event(GtkWidget *widget, gpointer data) { GtkWidget *combo; gchar *formula; combo = (GtkWidget *)data; formula = (gchar *)gtk_entry_get_text(GTK_ENTRY(GTK_COMBO(combo)->entry)); if (formula_find(formula)) return; /* draw the formula and add it to the list if it parses ok */ if(!formula_add((FormulaFunc)process_formula, formula)) return; redraw_event(da, NULL); } /* resize size of toplevel window */ static void reset_size_toplevel() { gint u, v; GdkWindow *window; window = gtk_widget_get_window(wi); u = gdk_window_get_width(window) + prefs.ranges.width - ranges.width; v = gdk_window_get_height(window) + prefs.ranges.height - ranges.height; gdk_window_resize(window, u, v); ranges = prefs.ranges; } /* open a geg file */ static gchar * file_select(gchar *mode) { gint num_of_files = 0, result; GtkWidget *dialog; GSList *filenames; gchar *file_selected = NULL; if (mode == NULL) strcpy(template, _("Open *.geg file ...")); else if (!strcmp(mode, "exa")) { file_selected = mode; mode = NULL; } else if (!strcmp(mode, "geg")) sprintf(template, "%s *.%s ...", _("Save as"), mode); dialog = gtk_file_chooser_dialog_new (template, NULL, (mode)? GTK_FILE_CHOOSER_ACTION_SAVE: GTK_FILE_CHOOSER_ACTION_OPEN, GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL); if (file_selected) { gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER (dialog), "/usr/share/geg/examples"); file_selected = NULL; } /* Allow the user to choose more than one file at a time. */ gtk_file_chooser_set_select_multiple (GTK_FILE_CHOOSER (dialog), FALSE); result = gtk_dialog_run (GTK_DIALOG (dialog)); if (result == GTK_RESPONSE_ACCEPT) { filenames = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER (dialog)); while (filenames != NULL) { num_of_files++; if (file_selected) g_free(file_selected); file_selected = g_strdup(filenames->data); filenames = filenames->next; } } gtk_widget_destroy (dialog); return file_selected; } static void geg_file_open(GtkWidget *widget, gpointer data) { FILE *fp; gchar *file_selected = ""; if (!data) file_selected = file_select(NULL); else if (data == (gpointer)1) file_selected = geg_file; else if (data == (gpointer)2) file_selected = file_select("exa"); fp = prefs_rc_parse(file_selected, DEF_RC_FILE); if (!fp) return; restart_event(widget, NULL); sprintf(template, "%s %s", _("Loading"), file_selected); addto_log("▪ "); write_log(template); parse_rest_of_file(fp); alloc_func_colors(colormap); if (!data) g_free(file_selected); reset_size_toplevel(); configure_event(da, NULL, NULL); refresh_graph(NULL, NULL); } static void geg_file_save(gchar *file_selected) { FILE *fp; gchar **formulas = formula_list(); struct_ranges save_ranges; guint i; save_ranges = prefs.ranges; prefs.ranges = ranges; fp = prefs_rc_write(file_selected, DEF_RC_FILE); prefs.ranges = save_ranges; if (!fp) return; fprintf(fp, "\n# Formulas\n"); for (i = 0; i < formula_count(); i++) { if (strcmp(formulas[i], "##")) fprintf(fp, "%s\n", formulas[i]); else fprintf(fp, "\n"); } fclose(fp); sprintf(template, "%s %s", file_selected, _("saved")); addto_log("▪ "); write_log(template); } /* save a geg file */ static void file_save(GtkWidget *widget, gpointer data) { GtkWidget *dialog; struct stat buf; gchar *file_selected, *name = NULL; gint mode; file_selected = file_select((gchar *)data); if (!file_selected) return; mode = stat(file_selected, &buf); if ((mode == 0) && S_ISREG(buf.st_mode)) { dialog = gtk_message_dialog_new (GTK_WINDOW(wi), GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_QUESTION, GTK_BUTTONS_YES_NO, _("Overwrite file '%s' ?"), file_selected); gtk_window_set_title(GTK_WINDOW(dialog), "geg: question"); if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_YES) { gtk_widget_destroy (dialog); unlink(file_selected); } else { gtk_widget_destroy (dialog); return; } } if (!strcmp((gchar *)data, "geg")) mode = -1; else if (!strcmp((gchar *)data, "eps")) { mode = GEG_RC_EPS; name = eps_file; } else if (!strcmp((gchar *)data, "pdf")) { mode = GEG_RC_PDF; name = pdf_file; } else if (!strcmp((gchar *)data, "svg")) { mode = GEG_RC_SVG; name = svg_file; } if (mode < 0) { geg_file_save(file_selected); return; } process_output(mode); if (name) { sprintf(template, "mv %s \"%s\"", name, file_selected); if (system(template)); } /* restart_event(widget, NULL); */ addto_log("▪ "); addto_log(_("Writing")); addto_log(" "); write_log(file_selected); g_free(file_selected); } /* refresh_graph */ static void refresh_graph(GtkWidget *widget, gpointer data) { if(!range_ok(FALSE)) return; mute = 1; update_ranges(); clear_pixmap(); draw_axes(); reset_variables(); formula_foreach((FormulaFunc)process_formula); redraw_event(da, NULL); /* expose entire area */ mute = 0; } /* update_functions, */ static void update_functions(GtkWidget *widget, gpointer data) { reset_variables(); formula_foreach((FormulaFunc)process_formula); } static void entry_changed_event(GtkWidget *widget, gpointer data) { if(!strcmp("xmin", data)) ranges.xmin = atof(gtk_entry_get_text(GTK_ENTRY(xmin_en))); else if(!strcmp("xmax", data)) ranges.xmax = atof(gtk_entry_get_text(GTK_ENTRY(xmax_en))); else if(!strcmp("ymin", data)) ranges.ymin = atof(gtk_entry_get_text(GTK_ENTRY(ymin_en))); else if(!strcmp("ymax", data)) ranges.ymax = atof(gtk_entry_get_text(GTK_ENTRY(ymax_en))); else if(!strcmp("tmin", data)) { if (ranges.mode == DEF_POLAR) ranges.amin = atof(gtk_entry_get_text(GTK_ENTRY(tmin_en))); else if (ranges.mode == DEF_PARAMETRIC) ranges.tmin = atof(gtk_entry_get_text(GTK_ENTRY(tmin_en))); } else if(!strcmp("tmax", data)) { if (ranges.mode == DEF_POLAR) ranges.amax = atof(gtk_entry_get_text(GTK_ENTRY(tmax_en))); else if (ranges.mode == DEF_PARAMETRIC) ranges.tmax = atof(gtk_entry_get_text(GTK_ENTRY(tmax_en))); } } /* restart_event, resets zoom, erases all functions */ static void restart_event(GtkWidget *widget, gpointer data) { GtkWidget *entry; reset_variables(); ranges = prefs.ranges; prefs.zoom_xy = 3; set_graphic_frame_title(); remove_all_event(NULL, NULL); refresh_graph(NULL, NULL); clear_log(NULL, NULL); addto_log("▪ "); write_log(_("Restart")); entry = GTK_COMBO(eq_co)->entry; gtk_entry_set_text(GTK_ENTRY(entry), ""); /* do we want this ? */ gtk_widget_grab_focus(entry); } /* reset_preferences */ static void export_parameters(GtkWidget *widget, gpointer data) { addto_log("▪ "); write_log(_("Exporting main window")); write_log(_(" parameters to preferences")); prefs.ranges = ranges; if (get_prefs_widget()) prefs_to_widgets(); } /* reset_preferences */ static void reset_preferences(GtkWidget *widget, gpointer data) { gint i; free_prefs_allocs(); initialize_prefs(); for (i=0; i (ranges.height / 2 + ranges.height)) return(ranges.height / 2 + ranges.height); if(temp < (ranges.height / 2 - ranges.height)) return(ranges.height / 2 - ranges.height); return((gint)temp); } /* real_x, converts the pixmap x-coordinate to its real x-coordinate */ gdouble real_x(gint x) { return((((gdouble)x / (gdouble)ranges.width) * (ranges.xmax - ranges.xmin)) + ranges.xmin); } /* real_y, converts the pixmap y-coordinate to its real y-coordinate */ gdouble real_y(gint y) { return((((ranges.height - y) / (gdouble)ranges.height) * (ranges.ymax - ranges.ymin)) + ranges.ymin); } /* draw_axes_event, draws the horizontal and vertical axes onto the pixmap * this function NEEDS a complete REWRITE!!! */ void draw_axes(void) { static GdkFont *numb_font = NULL; gdouble x_range, y_range, x_spacing, y_spacing, x, y; gint pi_inc, sub_pi; gint x_radix, y_radix, x_count; gint x_coef, y_coef, y_count; gint i, j, d; GString *buf_1 = g_string_new(NULL); GString *buf_2 = g_string_new(NULL); if(!numb_font) (void)((numb_font = gdk_font_load(prefs.numb_font)) || (numb_font = gdk_font_load("fixed"))); g_assert(numb_font != NULL); if (prefs.do_color) { gdk_gc_set_foreground(numb_gc, &prefs.gdk_color[DEF_NUMB_COLOR]); gdk_gc_set_foreground(axes_gc, &prefs.gdk_color[DEF_AXES_COLOR]); gdk_gc_set_foreground(grid_gc, &prefs.gdk_color[DEF_GRID_COLOR]); } else { gdk_gc_set_foreground(numb_gc, &prefs.gdk_color[DEF_GRAY_COLOR]); gdk_gc_set_foreground(axes_gc, &prefs.gdk_color[DEF_GRAY_COLOR]); gdk_gc_set_foreground(grid_gc, &prefs.gdk_color[DEF_GRAY_COLOR]); } range_ok(TRUE); /* the tricky bit... set up for notches and numbers */ x_range = (ranges.xmax - ranges.xmin); y_range = (ranges.ymax - ranges.ymin); /* starting radices which we work up from, so wind them back by 2 */ x_radix = (gint)log10(x_range) - 2; y_radix = (gint)log10(y_range) - 2; /* decimal values */ /* the next bit works out whether to use 1,2,5 * 10^x_radix spacing */ for(;;) { if(((1 * pow(10, x_radix)) * ranges.width / x_range) > prefs.space) { x_coef = 1; break; } if(((2 * pow(10, x_radix)) * ranges.width / x_range) > prefs.space) { x_coef = 2; break; } if(((5 * pow(10, x_radix)) * ranges.width / x_range) > prefs.space) { x_coef = 5; break; } x_radix++; } /* the next bit works out whether to use 1,2,5 * 10^y_radix spacing */ for(;;) { if(((1 * pow(10, y_radix)) * ranges.height / y_range) > prefs.space) { y_coef = 1; break; } if(((2 * pow(10, y_radix)) * ranges.height / y_range) > prefs.space) { y_coef = 2; break; } if(((5 * pow(10, y_radix)) * ranges.height / y_range) > prefs.space) { y_coef = 5; break; } y_radix++; } if(ranges.radian) { pi_inc = (gint)ceil((gdouble)prefs.space * x_range / ranges.width / M_PI); x_spacing = pi_inc * M_PI; sub_pi = (gint)MIN(pow(2, floor(log(x_spacing * ranges.width / (ranges.xmax - ranges.xmin) / prefs.space) / log(2))), 128); x_spacing = pi_inc * M_PI / sub_pi; } else { x_spacing = x_coef * pow(10, x_radix); } x_count = (gint)ceil(x_range / x_spacing); y_spacing = y_coef * pow(10, y_radix); y_count = (gint)ceil(y_range / y_spacing); /* draw grid */ if (prefs.do_grid) { x = (floor(ranges.xmin / x_spacing)) * x_spacing; for(i = 0; i <= x_count; i++, x += x_spacing) { gdk_draw_line(pixmap, grid_gc, pixmap_x(x), pixmap_y(ranges.ymin), pixmap_x(x), pixmap_y(ranges.ymax)); } y = ((gint)((-1 + ranges.ymin / y_spacing))) * y_spacing; for(i = 0; i <= y_count; i++, y += y_spacing) { gdk_draw_line(pixmap, grid_gc, pixmap_x(ranges.xmin), pixmap_y(y), pixmap_x(ranges.xmax), pixmap_y(y)); } } /* draw the horizontal axis */ if (prefs.do_Ox) gdk_draw_line(pixmap, axes_gc, 0 , pixmap_y(0), ranges.width - 1, pixmap_y(0)); /* draw the vertical axis */ if (prefs.do_Oy) gdk_draw_line(pixmap, axes_gc, pixmap_x(0), 0, pixmap_x(0), ranges.height - 1); if (fd) { fprintf(fd, "%s", "%% axes / grid\n"); fprintf(fd, "2 setcolor axes_lw slw\n"); fprintf(fd, "do_Ox { xmin 0 m xmax 0 l s } if\n"); fprintf(fd, "do_Oy { 0 ymin m 0 ymax l s } if\n"); fprintf(fd, "grid_lw slw\n"); fprintf(fd, "symbol\n"); } /* draw notch and label */ x = (floor(ranges.xmin / x_spacing)) * x_spacing; for(i = 0; i <= x_count; i++, x += x_spacing) { if (prefs.do_Ox && prefs.do_xval && !prefs.do_grid) gdk_draw_line(pixmap, axes_gc, pixmap_x(x), pixmap_y(0) - 2, pixmap_x(x), pixmap_y(0) + 2); if (fd) fprintf(fd, "%f xt\n", x); /* test for origin */ if(fabs(x) < x_spacing / 2) { g_string_sprintf(buf_1, "0"); d = (prefs.do_grid)? 2 : 5; j = 0; } else { if(ranges.radian) g_string_sprintf(buf_2, "%%gp"); else g_string_sprintf(buf_2, "%%0.%df", MAX((gint)ceil(-log10(x_spacing)), 0)); if(ranges.radian) { if (fabs( x / M_PI - 1.0) < 0.05) g_string_sprintf(buf_1, "%s", "p"); else if (fabs( x / M_PI + 1.0) < 0.05) g_string_sprintf(buf_1, "%s", "-p"); else g_string_sprintf(buf_1, buf_2->str, x / M_PI); } else g_string_sprintf(buf_1, buf_2->str, x); d = (prefs.do_grid)? 2 : 0; j = 1; } if (prefs.do_Ox && prefs.do_xval) gdk_draw_text(pixmap, numb_font, numb_gc, pixmap_x(x) - d - (prefs.do_grid? 9 : 4) * gdk_string_width(numb_font, buf_1->str) / 8, pixmap_y(0) + gdk_string_height(numb_font, buf_1->str) + 5, buf_1->str, buf_1->len); if (fd) fprintf(fd, "%f (%s) x%c\n", x, buf_1->str, j?'p':'z'); } y = ((gint)((-1 + ranges.ymin / y_spacing))) * y_spacing; for(i = 0; i <= y_count; i++, y += y_spacing) { /* test for origin */ if(fabs(y) < y_spacing / 2) continue; if (prefs.do_Oy && prefs.do_yval && !prefs.do_grid) gdk_draw_line(pixmap, axes_gc, pixmap_x(0) - 2, pixmap_y(y), pixmap_x(0) + 2, pixmap_y(y)); if (fd) fprintf(fd, "%f yt\n", y); g_string_sprintf(buf_2, "%%0.%df", MAX((gint)ceil(-log10(y_spacing)), 0)); g_string_sprintf(buf_1, buf_2->str, y); if (prefs.do_Oy && prefs.do_yval) gdk_draw_text(pixmap, numb_font, numb_gc, pixmap_x(0) - 3 - gdk_string_width(numb_font, buf_1->str), pixmap_y(y) + (prefs.do_grid? 7 : 2) * gdk_string_height(numb_font, buf_1->str) / 4, buf_1->str, buf_1->len); if (fd) fprintf(fd, "%f (%s) yp\n", y, buf_1->str); } if (fd) { fprintf(fd, "%s", "\n%% draw curves\n"); fprintf(fd, "curve_lw slw\n"); } g_string_free(buf_1, TRUE); g_string_free(buf_2, TRUE); } /* check */ gint check(gchar *prog) { struct stat buf; char *ptr; gint i = FALSE; if (prog) { prog = g_strdup(prog); ptr = strchr(prog, ' '); if (ptr) *ptr = '\0'; if (*prog == '/') { if (stat(prog, &buf)) { sprintf(template, "/usr/bin/%s %s", prog, _("not found")); i = TRUE; } } else { sprintf(template, "/usr/bin/%s", prog); if (stat(template, &buf)) { sprintf(template, "%s %s", prog, _("not found")); i = TRUE; } } g_free(prog); if (i) write_log(template); } return(i); } static gchar * getbool(gint i) { return (i)? "true" : "false"; } /* process_output */ static void process_output(gint mode) { gint i; struct stat buf; i = 0; i |= ((prefs.print == GEG_RC_PDF) && check(prefs.eps_to_pdf)); i |= ((prefs.print == GEG_RC_SVG) && check(prefs.eps_to_svg)); if (i) write_log(_("Check prefs / utilities")); i = stat(eps_file, &buf); if (i == 0) { if (S_ISREG(buf.st_mode)) unlink(eps_file); else return; } fd = fopen(eps_file, "w"); fprintf(fd, "%s", "%!PS-Adobe-2.0 EPSF-2.0\n"); fprintf(fd, "%s", "%%Pages: 1\n"); ratio = (gdouble) ranges.height / (gdouble) ranges.width; if (ratio * 520 > 768.0) { fy = 768.0; fx = fy / ratio; } else { fx = 520.0; fy = fx * ratio; } fx = fx / (ranges.xmax - ranges.xmin); fy = fy / (ranges.ymax - ranges.ymin); ratio = fy / fx; fprintf(fd, "%s %d %d %d %d\n", "%%BoundingBox:", 37, 37, 559, 37 + (522 * ranges.height) / ranges.width); fprintf(fd, "%s", "%%EndComments\n%%Page: 1 1\n"); fprintf(fd, "gsave\n/fx %f def /fy %f def\n", fx, fy); fprintf(fd, "fx dup scale\n%f %f translate\n", -ranges.xmin+38/fx, ratio*(-ranges.ymin+38/fy)); fprintf(fd, "/xmin %f def /xmax %f def\n/ymin %f def /ymax %f def\n", ranges.xmin, ranges.xmax, ranges.ymin, ranges.ymax); fprintf(fd, "/ratio %f def\n", ratio); fprintf(fd, "/zoom %f def\n", prefs.zoom); fprintf(fd, "%s", "\n%% colors\n"); fprintf(fd, "%s", "%% 0=backgr, 1=numbers, 2=axes, 3=select, 4=gray, 5=def, 6+ curves\n"); fprintf(fd, "/colors [\n"); for (i=0; i= 0)); fprintf(fd, "/do_box %s def\n", getbool(prefs.do_box)); fprintf(fd, "/do_grid %s def\n", getbool(prefs.do_grid)); fprintf(fd, "/do_Ox %s def /do_Oy %s def\n", getbool(prefs.do_Ox), getbool(prefs.do_Oy)); fprintf(fd, "/do_xval %s def /do_yval %s def\n", getbool(prefs.do_xval), getbool(prefs.do_yval)); fprintf(fd, "/number_size %g def\n", prefs.number_size); fprintf(fd, "/formula_size %g def\n", prefs.formula_size); fprintf(fd, "/axes_lw %g def\n", prefs.axes_linewidth); fprintf(fd, "/box_lw %g def\n", prefs.box_linewidth); fprintf(fd, "/grid_lw %g def\n", prefs.grid_linewidth); fprintf(fd, "/curve_lw %g def\n", prefs.curves_linewidth); fprintf(fd, "/point_radius %g def\n\n", prefs.point_radius); fprintf(fd, "%s", ps_header); refresh_graph(NULL, NULL); fprintf(fd, "%s", "showpage\ngrestore\n%%Trailer\n%%EOF\n"); fclose(fd); fflush(fd); fd = NULL; i = stat(eps_file, &buf); if (i != 0 || !S_ISREG(buf.st_mode)) goto failure; if (mode == GEG_RC_EPS) return; if (mode == GEG_RC_PDF) { sprintf(template, "cd /tmp ; %s %s ; rm -f %s", prefs.eps_to_pdf, eps_file, eps_file); if (system(template)); i = stat(pdf_file, &buf); if (i != 0 || !S_ISREG(buf.st_mode)) goto failure; return; } else if (mode == GEG_RC_SVG) { sprintf(template, "cd /tmp ; %s %s %s ; rm -f %s", prefs.eps_to_svg, eps_file, svg_file, eps_file); if (system(template)); i = stat(svg_file, &buf); if (i != 0 || !S_ISREG(buf.st_mode)) goto failure; return; } failure: addto_log("▪ "); write_log(_("Output failed !")); } /* edit_formulas_event */ static void delete_edit_event(GtkWidget *widget, gpointer data) { gtk_widget_destroy(ed); ed = NULL; } static void ok_edit_event(GtkWidget *widget, gpointer data) { FILE *fp; GtkTextIter start, end; gchar *text, *ptr, *form, *lform = NULL; gchar c; remove_all_event(NULL, NULL); gtk_text_buffer_get_start_iter(te_buf, &start); gtk_text_buffer_get_end_iter(te_buf, &end); text = gtk_text_buffer_get_text(te_buf, &start, &end, FALSE); if (!text) { delete_edit_event(widget, NULL); return; } if (!strcmp(data, "eps")) { fp = fopen(eps_file, "w"); if (!fp) return; fprintf(fp, "%s", text); fclose(fp); delete_edit_event(widget, NULL); return; } else if (!strcmp(data, "geg")) { fp = fopen(geg_file, "w"); if (!fp) goto sequel; fprintf(fp, "%s", text); fclose(fp); geg_file_open(widget, (gpointer)1); goto sequel; } ptr = text; form = text; while (*ptr) { while ((c = *ptr) && *ptr != '\n') ++ptr; *ptr = '\0'; while (isspace(*form)) ++form; if (*form == '\0') formula_add(NULL, "##"); else if (!formula_find(form)) formula_add(NULL, form); if (c) { ++ptr; form = ptr; if (*form && *form != '\n') lform = form; } } if (lform) { while (isspace(*lform)) ++lform; gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(eq_co)->entry), lform); } sequel: g_free(text); set_graphic_frame_title(); refresh_graph(NULL, NULL); /* clear_log(NULL, NULL); */ delete_edit_event(widget, NULL); } void raise_editor(gchar *data) { static GdkFont *font = NULL; GtkWidget *bu, *vb, *te, *sw; PangoFontDescription *font_desc; addto_log("▪ "); if (data && !strcmp(data, "formulas")) { write_log(_("Edition of formulas")); sprintf(template, "%s: %s", "Geg", _("Edit formulas")); } else if (data && !strcmp(data, "geg")) { write_log(_("Edition of geg file")); sprintf(template, "%s: %s", "Geg", _("Edit *.geg file")); } if (data && !strcmp(data, "eps")) { write_log(_("Edition of eps file")); sprintf(template, "%s: %s", "Geg", _("Edit *.eps file")); } if(ed && ed->window) { gtk_widget_map(ed); gdk_window_raise(ed->window); return; } if(!font) font = gdk_font_load("fixed"); g_assert(font != NULL); ed = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_modal(GTK_WINDOW(ed), TRUE); gtk_widget_set_usize(ed, 960, 720); gtk_signal_connect(GTK_OBJECT(ed), "delete_event", GTK_SIGNAL_FUNC(delete_edit_event), NULL); gtk_window_set_wmclass(GTK_WINDOW(ed), "edit", "Geg"); gtk_window_set_title(GTK_WINDOW(ed), template); gtk_window_set_policy(GTK_WINDOW(ed), TRUE, TRUE, TRUE); gtk_window_position(GTK_WINDOW(ed), GTK_WIN_POS_NONE); vb = gtk_vbox_new(FALSE, 0); te = gtk_text_view_new(); font_desc = pango_font_description_from_string ("Dejavu Sans Mono 12"); gtk_widget_modify_font (te, font_desc); gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(te), GTK_WRAP_WORD); sw = gtk_scrolled_window_new(GTK_TEXT_VIEW(te)->vadjustment, GTK_TEXT_VIEW(te)->hadjustment); gtk_container_add(GTK_CONTAINER(ed), vb); gtk_container_add(GTK_CONTAINER(vb), sw); gtk_container_add(GTK_CONTAINER(sw), te); bu = gtk_button_new_with_label(_("Ok")); gtk_widget_set_usize(bu, 50, 30); GTK_WIDGET_SET_FLAGS(bu, GTK_CAN_DEFAULT); gtk_box_pack_start(GTK_BOX(vb), sw, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(vb), bu, FALSE, FALSE, 0); gtk_signal_connect(GTK_OBJECT(bu), "clicked", GTK_SIGNAL_FUNC(ok_edit_event), data); te_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(te)); gtk_text_buffer_get_end_iter(te_buf, &te_iter); gtk_widget_show(ed); gtk_widget_show(vb); gtk_widget_show(sw); gtk_widget_show(bu); gtk_widget_show(te); gtk_widget_show((GtkWidget *)te_buf); } void edit_formulas_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { gint i; gchar **formulas = formula_list(); raise_editor("formulas"); for (i = 0; i < formula_count(); i++) { if (strcmp(formulas[i], "##")) sprintf(template, "%s\n", formulas[i]); else sprintf(template, "\n"); gtk_text_buffer_insert(te_buf, &te_iter, template, strlen(template)); } } /* edit_script_event */ void edit_geg_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { FILE *fp; geg_file_save(geg_file); raise_editor("geg"); fp = fopen(geg_file, "r"); if (fp) { while(fgets(template, 256, fp)) { gtk_text_buffer_insert(te_buf, &te_iter, template, strlen(template)); } fclose(fp); } } /* edit_eps_event */ void edit_eps_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { FILE *fp; addto_log("▪ "); write_log(_("Edition of EPS file")); process_output(GEG_RC_EPS); *template = '\0'; if (prefs.editor) *template = prefs.editor[0]; if (*template) sprintf(template, "%s %s", prefs.editor, eps_file); if (!*template || system(template) == 0x7f00) { raise_editor("eps"); fp = fopen(eps_file, "r"); if (fp) { while(fgets(template, 256, fp)) { gtk_text_buffer_insert(te_buf, &te_iter, template, strlen(template)); } fclose(fp); } } } /* print_event */ void print_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { gint mode = *(gint *)data; gint i; gchar *msg; addto_log("▪ "); if (mode == GEG_RC_EPS) msg = _("EPS file to be created"); else if (mode == GEG_RC_PDF) msg = _("PDF file to be created"); else if (mode == GEG_RC_SVG) msg = _("SVG file to be created"); else msg = "???"; write_log(msg); process_output(mode); i = 0; i |= ((prefs.print == GEG_RC_EPS) && check(prefs.eps_viewer)); i |= ((prefs.print == GEG_RC_PDF) && check(prefs.pdf_viewer)); i |= ((prefs.print == GEG_RC_SVG) && check(prefs.svg_viewer)); if (i) { write_log(_("Check prefs / utilities")); return; } if (mode == GEG_RC_EPS) { sprintf(template, "( cd /tmp ; %s %s ) &", prefs.eps_viewer, eps_file); if (system(template)); } else if (mode == GEG_RC_PDF) { sprintf(template, "( cd /tmp ; %s %s ) &", prefs.pdf_viewer, pdf_file); if (system(template)); } else if (mode == GEG_RC_SVG) { sprintf(template, "( cd /tmp ; %s %s ) &", prefs.svg_viewer, svg_file); if (system(template)); } } /* press_event, event that occurs when the user click on the drawing area * left button == zoom * middle button == function intercepts * right button == axes intercepts */ void press_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { if (event->button > 3) /* mouse with lots of buttons */ return; /* store the press coordinates */ x_down = (gint)event->x; y_down = (gint)event->y; /* connect the motion signal so we see a rectangle */ gtk_signal_connect(GTK_OBJECT(widget), "motion_notify_event", GTK_SIGNAL_FUNC(selection_event), NULL); gdk_window_set_cursor(widget->window, cursors[event->button]); gtk_signal_connect(GTK_OBJECT(widget), "button_release_event", GTK_SIGNAL_FUNC(release_event), NULL); } static void scroll_event(GtkWidget *widget, GdkEventScroll *event, gpointer data) { gdouble zoom = prefs.zoom; prefs.zoom = 0.2 * zoom; zoom_event(widget, event->direction? "in" : "out"); prefs.zoom = zoom; } static void frame_click_event(GtkWidget *widget, gpointer data) { gint b; gdouble x1, x2; gdouble y1, y2; b = (gint)(glong)data; x1 = (x_down < x_up) ? real_x(x_down) : real_x(x_up); x2 = (x_down > x_up) ? real_x(x_down) : real_x(x_up); y1 = (y_down > y_up) ? real_y(y_down) : real_y(y_up); y2 = (y_down < y_up) ? real_y(y_down) : real_y(y_up); switch(b) { case 0: /* cancel action */ redraw_event(da, NULL); break; case 1: /* translate coordinates */ x1 = real_x(x_up) - real_x(x_down); y1 = real_y(y_up) - real_y(y_down); ranges.xmin -= x1; ranges.xmax -= x1; ranges.ymin -= y1; ranges.ymax -= y1; addto_log("▪ "); write_log(_("Change of origin")); refresh_graph(NULL, NULL); break; case 2: /* zoom to the selection */ /* check for zero width or zero height */ if((x_up == x_down) || (y_up == y_down)) return; /* check for minimum resolution */ if((x2 - x1 < prefs.minres) || (y2 - y1 < prefs.minres)) { write_log(_("Minimum Resolution")); ranges.xmin = x1 - MAX((prefs.minres - (x2 - x1)) / 2, 0); ranges.xmax = x2 + MAX((prefs.minres - (x2 - x1)) / 2, 0); ranges.ymin = y1 - MAX((prefs.minres - (y2 - y1)) / 2, 0); ranges.ymax = y2 + MAX((prefs.minres - (y2 - y1)) / 2, 0); } else { ranges.xmin = x1; ranges.xmax = x2; ranges.ymin = y1; ranges.ymax = y2; } addto_log("▪ "); write_log(_("Zoom Selection")); refresh_graph(NULL, NULL); break; case 3: /* solve axes intercepts */ addto_log("▪ "); write_log(_("Axes intersections:")); reset_variables(); mute = 1; formula_forall(solve_aint, x1, x2, y1, y2); mute = 0; break; case 4: /* solve function intercepts */ addto_log("▪ "); write_log(_("Curve intersections:")); reset_variables(); mute = 1; formula_forall(solve_fint, x1, x2, y1, y2); mute = 0; break; case 5: /* cancel */ break; default: g_assert_not_reached(); break; } } /* release_event, event that occurs when the user releases button on the * drawing area */ static void release_event(GtkWidget *widget, GdkEventButton *event, gpointer data) { GtkWidget *menu, *temp_mi; /* remove the selection callback, and this callback */ gtk_signal_disconnect_by_func(GTK_OBJECT(widget), GTK_SIGNAL_FUNC(release_event), NULL); gtk_signal_disconnect_by_func(GTK_OBJECT(widget), GTK_SIGNAL_FUNC(selection_event), NULL); /* put the normal cursor back */ gdk_window_set_cursor(widget->window, cursors[0]); x_up = (gint)event->x; y_up = (gint)event->y; /* if the user pressed and released the button nearby, we'll let 'em off */ if((abs(x_up - x_down) < MINSEL) && (abs(y_up - y_down) < MINSEL)) return; if (event->button == 3) { frame_click_event(widget, (gpointer)1); return; } menu = gtk_menu_new(); gtk_signal_connect(GTK_OBJECT(menu), "deactivate", GTK_SIGNAL_FUNC(frame_click_event), (gpointer)0); temp_mi = gtk_menu_item_new_with_label(_("Translate along diagonal")); gtk_menu_append(GTK_MENU(menu), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(frame_click_event), (gpointer)1); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Zoom to selected area")); gtk_menu_append(GTK_MENU(menu), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(frame_click_event), (gpointer)2); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Intersections with axes")); gtk_menu_append(GTK_MENU(menu), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(frame_click_event), (gpointer)3); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Intersections of curves")); gtk_menu_append(GTK_MENU(menu), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(frame_click_event), (gpointer)4); gtk_widget_show(temp_mi); gtk_widget_show(temp_mi); temp_mi = gtk_menu_item_new_with_label(_("Cancel")); gtk_menu_append(GTK_MENU(menu), temp_mi); gtk_signal_connect(GTK_OBJECT(temp_mi), "activate", GTK_SIGNAL_FUNC(frame_click_event ), (gpointer)5); gtk_widget_show(temp_mi); gtk_menu_popup(GTK_MENU(menu), NULL, NULL, NULL, NULL, 0, gtk_get_current_event_time()); } /* motion_event, function sets the status label to tell what the coordinates * of the mouse pointer are, callback from the drawing area widget */ void motion_event(GtkWidget *widget, GdkEventMotion *event, gpointer data) { GtkWidget *label; GString *buf_1 = g_string_new(NULL); GString *buf_2 = g_string_new(NULL); gdouble width = ranges.xmax - ranges.xmin; gdouble height = ranges.ymax - ranges.ymin; label = (GtkWidget *)data; g_string_sprintf(buf_1, "x : %%0.%df, y : %%0.%df", CLAMP((gint)ceil(-log10(width / ranges.width)), 0, 6), CLAMP((gint)ceil(-log10(height / ranges.height)), 0, 6)); g_string_sprintf(buf_2, buf_1->str, real_x(event->x), real_y(event->y)); gtk_label_set(GTK_LABEL(label), buf_2->str); g_string_free(buf_1, TRUE); g_string_free(buf_2, TRUE); } /* selection_event, this callback is registered after a mouse button has been * pressed in the drawing area, it erases the ?last? rectangle and draws * another to represent the area the user has selected. the callback is * unregistered when the user releases the mouse button */ void selection_event(GtkWidget *widget, GdkEventMotion *event, gpointer data) { static gint x_left = 0, y_top = 0; static gint x_right = 0, y_bottom = 0; gint x, y; static gint x_old = -5, y_old = -5; #if 0 /* vanish the last selection */ /* top horizontal line of rectangle */ gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, x_left, y_top, x_left, y_top, x_right - x_left, 1); /* left vertical line of rectangle */ gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, x_left, y_top, x_left, y_top, 1, y_bottom - y_top); /* bottom horizontal line of rectangle */ gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, x_left, y_bottom, x_left, y_bottom, x_right - x_left + 1, 1); /* right vertical line of rectangle */ gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, x_right, y_top, x_right, y_top, 1, y_bottom - y_top); #endif gdk_gc_set_foreground(sel_gc, &prefs.gdk_color[DEF_SEL_COLOR]); gdk_gc_set_line_attributes(sel_gc, 1, GDK_LINE_ON_OFF_DASH, GDK_CAP_NOT_LAST, GDK_JOIN_MITER); x = (gint) event->x; y = (gint) event->y; x_left = (x_old < x_down) ? x_old : x_down; x_right = (x_old > x_down) ? x_old : x_down; y_top = (y_old < y_down) ? y_old : y_down; y_bottom = (y_old > y_down) ? y_old : y_down; /* vanish the last selection */ gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, x_left, y_top, x_left, y_top, x_right - x_left +1, y_bottom - y_top + 1); gdk_draw_line(widget->window, sel_gc, x_down, y_down, x, y); x_old = x; y_old = y; x_left = (x_down < x) ? x_down : x; x_right = (x_down > x) ? x_down : x; y_top = (y_down < y) ? y_down : y; y_bottom = (y_down > y) ? y_down : y; gdk_draw_rectangle(widget->window, sel_gc, FALSE, x_left, y_top, x_right - x_left, y_bottom - y_top); } /* leave_event, function clears the status label when the mouse leaves the * drawing area, callback from the drawing area widget */ void leave_event(GtkWidget *widget, GdkEvent *event, gpointer data) { GtkWidget *label; label = (GtkWidget *)data; gtk_label_set(GTK_LABEL(label), ""); } /* configure_event, this is called whenever the drawing area widget changes * its size, the old pixmap is deleted and replaced with one of size equal * to the new size of the drawing area */ gint configure_event(GtkWidget *widget, GdkEventConfigure *event, gpointer data) { gdouble y; /* delete the old pixmap if it exists */ if(pixmap) gdk_pixmap_unref(pixmap); /* set the ranges.width/height to the dimensions of the drawing area */ ranges.width = widget->allocation.width; ranges.height = widget->allocation.height; /* create a new pixmap of a size equal to the drawing area */ pixmap = gdk_pixmap_new(widget->window, ranges.width, ranges.height, -1); /* clear the pixmap to the user's background color */ clear_pixmap(); if (prefs.zoom_xy == 4) { ranges.ymin = (ranges.ymin + ranges.ymax)/2.0; y = 0.5 * (ranges.xmax - ranges.xmin) * ((gdouble)ranges.height / (gdouble)ranges.width); ranges.ymax = ranges.ymin + y; ranges.ymin = ranges.ymin - y; } draw_axes(); return(FALSE); } /* clear_pixmap, this function clears the pixmap to the user's background * color. It should be called immediately after creating the pixmap * and also when we wish to wipe the pixmap eg. when the user changes the * zoom. */ void clear_pixmap(void) { gdk_gc_set_foreground(back_gc, &prefs.gdk_color[DEF_BACK_COLOR]); gdk_draw_rectangle(pixmap, back_gc, TRUE, 0, 0, ranges.width, ranges.height); } /* drawing_init, this function initializes stuff */ void drawing_init(GtkWidget *widget, gpointer data) { GdkPixmap *source, *mask; colormap = gdk_window_get_colormap(widget->window); // style = gtk_widget_get_style(widget); gdk_color_black(colormap, &black); gdk_color_white(colormap, &white); alloc_func_colors(colormap); /* do the GCs */ back_gc = gdk_gc_new(widget->window); func_gc = gdk_gc_new(widget->window); numb_gc = gdk_gc_new(widget->window); axes_gc = gdk_gc_new(widget->window); grid_gc = gdk_gc_new(widget->window); sel_gc = gdk_gc_new(widget->window); /* do the cursors */ cursors[0] = gdk_cursor_new(GDK_CROSSHAIR); source = gdk_pixmap_create_from_data(widget->window, zoom_bits, zoom_width, zoom_height, 1, &black, &white); mask = gdk_pixmap_create_from_data(widget->window, zoom_m_bits, zoom_m_width, zoom_m_height, 1, &black, &white); cursors[1] = gdk_cursor_new_from_pixmap(source, mask, &black, &white, 0, 0); source = gdk_pixmap_create_from_data(widget->window, fint_bits, fint_width, fint_height, 1, &black, &white); mask = gdk_pixmap_create_from_data(widget->window, fint_m_bits, fint_m_width, fint_m_height, 1, &black, &white); cursors[2] = gdk_cursor_new_from_pixmap(source, mask, &black, &white, 0, 0); source = gdk_pixmap_create_from_data(widget->window, aint_bits, aint_width, aint_height, 1, &black, &white); mask = gdk_pixmap_create_from_data(widget->window, aint_m_bits, aint_m_width, aint_m_height, 1, &black, &white); cursors[3] = gdk_cursor_new_from_pixmap(source, mask, &black, &white, 0, 0); /* set the drawing area window's cursor to the default cursor */ gdk_window_set_cursor(widget->window, cursors[0]); /* unregister this function from the drawing area widget so it doesn't */ /* get called again */ gtk_signal_disconnect_by_func(GTK_OBJECT(widget), GTK_SIGNAL_FUNC(drawing_init), NULL); } /* expose_event, your run of the mill expose event, copies the exposed * rectangular region of the pixmap to the drawing area widget's window */ gint expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, event->area.x, event->area.y, /* source coordinates */ event->area.x, event->area.y, /* destination coordinates */ event->area.width, event->area.height); return(FALSE); } /* redraw_event, this is like a forced expose event that exposes the entire * drawing area widget. it is neccessary such that the colors get updated * when the user changes his/her color preferences */ void redraw_event(GtkWidget *widget, gpointer data) { gdk_draw_pixmap(widget->window, widget->style->fg_gc[GTK_WIDGET_STATE(widget)], pixmap, 0, 0, 0, 0, widget->allocation.width, widget->allocation.height); } /* solve_fint */ static gint solve_fint(gchar **formulas, gint nformulas, gdouble x1, gdouble x2, gdouble y1, gdouble y2) { token_list **list; parse_tree **tree; gdouble x_left, x_middle, x_right, y, yp; gint intercept = FALSE; gint i, j, bl, br, bm, t; GString *buf_1, *buf_2; buf_1 = g_string_new(NULL); buf_2 = g_string_new(NULL); g_assert(x1 < x2); g_assert(y1 < y2); list = g_new(token_list *, nformulas); tree = g_new(parse_tree *, nformulas); for(i = 0; i < nformulas; i++) { list[i] = make_token_list(formulas[i]); tree[i] = make_parse_tree(list[i]); } for(i = 0; i < nformulas - 1; i++) { t = tree[i]->type & 255; if (t >= COM) continue; if (t == DEF) { if (tree[i]->left) (void) eval_tree(tree[i]->right); continue; } for(j = i + 1; j < nformulas; j++) { t = tree[j]->type & 255; if (t >= COM) continue; if (t == DEF) { if (tree[j]->left) (void) eval_tree(tree[j]->right); continue; } x_left = x1; x_right = x2; var[23] = x_left; /* 23 is 'x' */ y = eval_tree(tree[i]) - eval_tree(tree[j]); if (!isfinite(y)) continue; bl = (y > 0); var[23] = x_right; y = eval_tree(tree[i]) - eval_tree(tree[j]); if (!isfinite(y)) continue; br = (y > 0); if(bl ^ br) { bm = 0; while((x_right - x_left) > prefs.minres / 10) { x_middle = (x_left + x_right) / 2; var[23] = x_middle; y = eval_tree(tree[i]) - eval_tree(tree[j]); if (!isfinite(y)) { bm = -1; break; } bm = (y > 0); if(bl ^ bm) { x_right = x_middle; br = bm; } else { x_left = x_middle; bl = bm; } } if (bm < 0) continue; var[23] = x_right; y = eval_tree(tree[i]); yp = eval_tree(tree[j]); if (!isfinite(y) || !isfinite(yp)) continue; if((y1 <= y) && (y <= y2) && (y1 <= yp) && (yp <= y2)) { /* check it is in selection */ intercept = TRUE; g_string_sprintf(buf_1, _(" %s and %s at:\n x=%%0.%df, y=%%0.%df"), formulas[i], formulas[j], MAX((gint)ceil(-log10(prefs.minres)), 0), MAX((gint)ceil(-log10(prefs.minres)), 0)); g_string_sprintf(buf_2, buf_1->str, x_right, y); write_log(buf_2->str); } } } } if(intercept == FALSE) write_log(_(" none found.")); /* free the lists and trees */ for(i = 0; i < nformulas; i++) { free_tree(tree[i]); free_list(list[i]); } g_string_free(buf_1, TRUE); g_string_free(buf_2, TRUE); g_free(tree); g_free(list); return(0); } /* solve_aint */ static gint solve_aint(gchar **formulas, gint nformulas, gdouble x1, gdouble x2, gdouble y1, gdouble y2) { token_list **list; parse_tree **tree; gdouble x_left, x_middle, x_right, y; gint intercept = FALSE; gint i, bl, br, bm, t; GString *buf_1, *buf_2; buf_1 = g_string_new(NULL); buf_2 = g_string_new(NULL); list = g_new(token_list *, nformulas); tree = g_new(parse_tree *, nformulas); /* make the lists and trees */ for(i = 0; i < nformulas; i++) { list[i] = make_token_list(formulas[i]); tree[i] = make_parse_tree(list[i]); } if((x1 < 0) && (x2 > 0)) { /* solve the y-axes intercept */ /* just substitute x = 0 */ for(i = 0; i < nformulas; i ++) { t = tree[i]->type & 255; if (t >= COM) continue; if (t == DEF) { if (tree[i]->left) (void) eval_tree(tree[i]->right); continue; } /* solve the y-axes intercept */ var[23] = 0; y = eval_tree(tree[i]); if (!isfinite(y)) continue; if((y1 < y) && (y < y2)) { intercept = TRUE; g_string_sprintf(buf_1, " %s, y=%%0.%df", formulas[i], MAX((gint)ceil(-log10(prefs.minres)), 0)); g_string_sprintf(buf_2, buf_1->str, y); write_log(buf_2->str); } } } if((y1 < 0) && (y2 > 0)) { /* solve the x-axis intercept */ /* the bisection method */ for(i = 0; i < nformulas; i++) { if (!tree[i]) continue; t = tree[i]->type & 255; if (t >= COM) continue; if (t == DEF) { if (tree[i]->left) (void) eval_tree(tree[i]->right); continue; } x_left = x1; /* preserve x1 and x2 */ x_right = x2; var[23] = x_left; y = eval_tree(tree[i]); if (!isfinite(y)) continue; bl = (y > 0); var[23] = x_right; y = eval_tree(tree[i]); if (!isfinite(y)) continue; br = (y > 0); if(bl ^ br) { bm = 0; while((x_right - x_left) > prefs.minres / 10) { x_middle = (x_left + x_right) / 2; var[23] = x_middle; y = eval_tree(tree[i]); if (!isfinite(y)) { bm = -1 ; break; } bm = (y > 0); if(bl ^ bm) { x_right = x_middle; br = bm; } else { x_left = x_middle; bl = bm; } } if (bm < 0) continue; var[23] = x_left; y = eval_tree(tree[i]); if (!isfinite(y) || y < ranges.ymin || y > ranges.ymax) continue; intercept = TRUE; g_string_sprintf(buf_1, " %s, x=%%0.%df", formulas[i], MAX((gint)ceil(-log10(prefs.minres)), 0)); /* give the answer as x_right, that way if we are converging on zero */ /* we give a positive number, instead of -0.00, which looks silly */ g_string_sprintf(buf_2, buf_1->str, x_right); write_log(buf_2->str); } } } if(intercept == FALSE) write_log(_(" none found.")); // printf("Axes interceptions\n"); /* free the lists and trees */ for(i = 0; i < nformulas; i++) { // printf("[%d] %s\n", i, formulas[i]); free_tree(tree[i]); free_list(list[i]); } g_string_free(buf_1, TRUE); g_string_free(buf_2, TRUE); g_free(tree); g_free(list); return(0); } static void set_inc(gdouble *p) { if (ranges.mode == DEF_CARTESIAN) *p = ranges.xmax - ranges.xmin; else if (ranges.mode == DEF_POLAR) *p = ranges.amax - ranges.amin; else if (ranges.mode == DEF_PARAMETRIC) *p = ranges.tmax - ranges.tmin; var[INCR] = (*p) * var[RINCR] * 0.5; var[TGTR] = (*p) * var[RTGTR]; var[TGTL] = - (*p) * var[RTGTL]; var[MULT] = 1.0 / (6.0 * var[INCR]); var[ACTV] = (gdouble)(var[RTGTR] >=0 || var[RTGTL] >= 0); *p = *p / (gdouble)(ranges.width * (prefs.interp + 1)); } /* process_formula, draws the formula onto the pixmap */ gint process_formula(gchar *formula, gint number) { static GdkFont *text_font = NULL; static gint v_offset; static gint index; GdkColor gdk_color; gint i, j, flag1 = 1, flag2 = 1; gdouble t, x, x1, y1, x2, y2, ub, rad, s1, s2; gdouble x_inc, t_inc; gdouble rgb_value[3]; token_list *list = NULL; parse_tree *tree = NULL, *rtree; /* This is used for numerical integration ; just reset */ for (i = 0; i < 26; i++) integr[i].ptr = NULL; if(number == 0) { index = 0; if (prefs.text_position >= 2) v_offset = ranges.height + (gdk_string_height(text_font, formula) + 2) / 2; else v_offset = 0; } if(!text_font) (void)((text_font = gdk_font_load(prefs.text_font)) || (text_font = gdk_font_load("fixed"))); g_assert(text_font != NULL); list = make_token_list(formula); g_assert(list != NULL); tree = make_parse_tree(list); if(!tree) { free_list(list); /* this will report a parsing error */ return(FALSE); } if (tree->type == COM) { /* ignore comments */ return(TRUE); } if (tree->type == ASK) { /* evaluation request */ if (!tree->right) return(FALSE); set_inc(&x_inc); var[23] = ranges.xmin; y1 = eval_tree(tree->right); set_output(y1); sprintf(template, "= %.15g", y1); write_log(template); return(TRUE); } if (tree->type == SOL) { /* solution of equation */ if (!tree->right) return(FALSE); rtree = tree->right; set_inc(&x_inc); if (strcmp(gtk_entry_get_text(GTK_ENTRY(tmin_en)),"") && strcmp(gtk_entry_get_text(GTK_ENTRY(tmax_en)),"")) { x1 = atof(gtk_entry_get_text(GTK_ENTRY(tmin_en))); x2 = atof(gtk_entry_get_text(GTK_ENTRY(tmax_en))); if (x1 > x2) { t = x2; x2 = x1; x1 = t; } } else { x1 = ranges.xmin; x2 = ranges.xmax; } ub = (x2-x1)*1.0E-15; x = sqrt(-1); var[23] = x1; y1 = eval_tree(rtree); var[23] = x2; y2 = eval_tree(rtree); while (y1 * y2 < 0 && x2 - x1 > ub) { x = (x1 + x2) * 0.5; var[23] = x; t = eval_tree(rtree); if (y1 * t < 0) { x2 = x; y2 = t; } else { x1 = x; y1 = t; } } set_output(x); sprintf(template, "= %.16g", x); write_log(template); return(TRUE); } if (tree->type == DEF) { /* directive */ /* just report those bearing a value */ if (tree->left) { y1 = eval_tree(tree->right); if ((tree->right->type & 255) == EQU) { i = tree->right->type >> 8; if (i == LINEWIDTH) { if (var[LINEWIDTH] >= 0) { j = (int)(2*var[LINEWIDTH] + 0.5); if (j <= 0) j = 0; if (j >= 30) j = 30; } else j = 1; gdk_gc_set_line_attributes(func_gc, j, GDK_LINE_SOLID, GDK_CAP_ROUND, GDK_JOIN_ROUND); } if (i >= AMIN && i<= TMAX) set_minmax_value(i); if (!mute) { if (i < 26) { sprintf(template, "%c=%.15g", 'a'+i, y1); /* sprintf(template, "%s=%.15g", varname[i-26], y1); */ write_log(template); } } return(TRUE); } if (!mute) { sprintf(template, "%.15g", y1); write_log(template); } } return(TRUE); } if (fd) fprintf(fd, "\n%%%% %s\n", formula); if (var[COLOR] < 0) { i = DEF_DEFAULT_COLOR + index % (prefs.n_colors - DEF_DEFAULT_COLOR); if (fd) fprintf(fd, "%d setcolor\n", i); if (prefs.do_color) { gdk_gc_set_foreground(func_gc, &prefs.gdk_color[i]); } else gdk_gc_set_foreground(func_gc, &black); } else { i = (int) (var[COLOR] + 0.5); j = i % 1000; i = (i - j)/ 1000; rgb_value[2] = (gdouble) (j & 255) / 255.0; j = i % 1000; i = (i - j)/ 1000; rgb_value[1] = (gdouble) (j & 255) / 255.0; j = i % 1000; rgb_value[0] = (gdouble) (j & 255) / 255.0; alloc_color(&gdk_color, rgb_value, colormap); gdk_gc_set_foreground(func_gc, &gdk_color); if (fd) fprintf(fd, "%g %g %g setrgbcolor\n", rgb_value[0], rgb_value[1], rgb_value[2]); } if (fd && var[LINEWIDTH] >= 0) { fprintf(fd, "%g slw\n", var[LINEWIDTH]); } if (prefs.text_position >= 2) v_offset -= gdk_string_height(text_font, formula) + 2; else v_offset += gdk_string_height(text_font, formula) + 2; if (prefs.text_position == 0) gdk_draw_text(pixmap, text_font, func_gc, 2, v_offset, formula, strlen(formula)); if (prefs.text_position == 1) gdk_draw_text(pixmap, text_font, func_gc, ranges.width - gdk_string_width(text_font, formula) - 2, v_offset, formula, strlen(formula)); if (prefs.text_position == 2) gdk_draw_text(pixmap, text_font, func_gc, 2, v_offset, formula, strlen(formula)); if (prefs.text_position == 3) gdk_draw_text(pixmap, text_font, func_gc, ranges.width - gdk_string_width(text_font, formula) - 2, v_offset, formula, strlen(formula)); if (fd) { i = abs(prefs.text_position) & 3; x = (i & 1)? ranges.xmax : ranges.xmin + (ranges.xmax - ranges.xmin)/500; y1 = (ranges.xmax - ranges.xmin) * prefs.formula_size / (1000 * ratio); if (i < 2) fprintf(fd, "helv %g %g m (", x, ranges.ymax - (index+0.9) * y1); else fprintf(fd, "helv %g %g m (", x, ranges.ymin + (index+0.3) * y1); for (j=0; j ranges.amax) goto enddraw; t += t_inc; } } goto enddraw; } if (ranges.mode == DEF_PARAMETRIC) { set_inc(&t_inc); t = ranges.tmin; var[19] = t; (void)eval_tree(tree); x2 = var[23]; y2 = var[24]; flag2 = isfinite(x2) && isfinite(y2); if (fd && flag2) { fprintf(fd, "%f %f m\n", x2, y2); } for(i = 0; i < (ranges.width * (prefs.interp + 1)); i++) { for(j = 0; j < prefs.interp + 1; j++) { x1 = x2; y1 = y2; flag1 = flag2; var[19] = t; eval_tree(tree); x2 = var[23]; y2 = var[24]; flag2 = isfinite(x2) && isfinite(y2); if (flag1) { if (flag2) { gdk_draw_line(pixmap, func_gc, pixmap_x(x1), pixmap_y(y1), pixmap_x(x2), pixmap_y(y2)); if (fd) fprintf(fd, "%f %f l\n", x2, y2); } } else { if (fd && flag2) { fprintf(fd, "s\n"); fprintf(fd, "%f %f m\n", x2, y2); } } if (t > ranges.tmax) goto enddraw; t += t_inc; } } goto enddraw; } if (ranges.mode == DEF_SEQUENCE) { if (ranges.tmin > 0) i = (int)(ranges.tmin + 0.00000000000001); else i = -(int)(-ranges.tmin-0.00000000000001); if (var[POINTRADIUS] >= 0) { if (fd) fprintf(fd, "/point_radius %f def\n", var[POINTRADIUS]); j = 2 * (int)(3 * var[POINTRADIUS] + 0.6); } else j = 6; if (strcmp(gtk_entry_get_text(GTK_ENTRY(tmax_en)), "")) y2 = atof(gtk_entry_get_text(GTK_ENTRY(tmax_en))); else y2 = ranges.xmax; y2 += 0.000000000001; while (i < y2) { var[13] = i; /* 13 is 'n' */ y1 = eval_tree(tree); if (isfinite(y1)) { if (fd) fprintf(fd, "%d %f d\n", i, y1); gdk_draw_arc(pixmap, func_gc, TRUE, pixmap_x((gdouble)i)-j/2, pixmap_y(y1)-j/2, j, j, 0, 64 * 360); } ++i; } goto enddraw; } set_inc(&x_inc); x = ranges.xmin; var[23] = x - x_inc; y2 = eval_tree(tree); /* get the ball rolling */ if (fd && isfinite(y2)) fprintf(fd, "%f %f m\n", x, y2); ub = 0.5 * var[GAP] * (ranges.ymax - ranges.ymin); s2 = 0; for(i = 0; i < (ranges.width * (prefs.interp + 1)); i++) { for(j = 0; j < prefs.interp + 1; j++) { y1 = y2; s1 = (s2 > 0)? -1 : 1; var[23] = x; y2 = eval_tree(tree); s2 = y2 - y1; if (!isfinite(y1) || !isfinite(y2) || s1 * s2 > ub) { flag1 = 0; if (fd && isfinite(y2)) { fprintf(fd, "s\n"); fprintf(fd, "%f %f m\n", x, y2); } goto sequel; } if (flag1) gdk_draw_line(pixmap, func_gc, pixmap_x(x - x_inc), pixmap_y(y1), pixmap_x(x), pixmap_y(y2)); flag1 = 1; if (fd) fprintf(fd, "%f %f l\n", x, y2); sequel: if (x > ranges.xmax) goto enddraw; x += x_inc; } } enddraw: if (fd) fprintf(fd, "s\n"); if (tree) free_tree(tree); if (list) free_list(list); return(TRUE); } /* range_ok, simple check to make sure the user has entered sane ranges */ gint range_ok(gint dofix) { if((ranges.xmin > ranges.xmax) || (ranges.ymin > ranges.ymax)) { write_log(_("Invalid Range")); if(dofix) { ranges.xmin = prefs.ranges.xmin; ranges.xmax = prefs.ranges.xmax; ranges.ymin = prefs.ranges.ymin; ranges.ymax = prefs.ranges.ymax; } return(FALSE); } return(TRUE); } geg-2.0.9/src/log.c0000644000175000017500000000270212675713227014213 0ustar georgeskgeorgesk/* log.c * geg, a GTK+ Equation Grapher * David Bryant 1998 */ #ifdef HAVE_CONFIG_H #include #endif /* HAVE_CONFIG_H */ #include #include "log.h" /* locally global data */ static GtkWidget *log_te; static GtkTextBuffer *log_te_buf; static GtkTextIter log_te_iter; /* create_log, create the log */ void create_log(GtkWidget *widget) { GtkWidget *sw; log_te = gtk_text_view_new(); sw = gtk_scrolled_window_new(GTK_TEXT_VIEW(log_te)->vadjustment, GTK_TEXT_VIEW(log_te)->hadjustment); gtk_container_add(GTK_CONTAINER(widget), sw); gtk_container_add(GTK_CONTAINER(sw), log_te); log_te_buf = gtk_text_view_get_buffer(GTK_TEXT_VIEW(log_te)); gtk_widget_show(sw); gtk_widget_show(log_te); } /* write_log, write a message to the log */ void write_log(gchar *message) { gtk_text_buffer_get_end_iter(log_te_buf, &log_te_iter); gtk_text_buffer_insert(log_te_buf, &log_te_iter, message, strlen(message)); gtk_text_buffer_get_end_iter(log_te_buf, &log_te_iter); gtk_text_buffer_insert(log_te_buf, &log_te_iter, "\n", -1); } /* addto_log, write a message to the log without Enter character */ void addto_log(gchar *message) { gtk_text_buffer_get_end_iter(log_te_buf, &log_te_iter); gtk_text_buffer_insert(log_te_buf, &log_te_iter, message, strlen(message)); } /* clear_log, clear the text in the log */ void clear_log(GtkWidget *widget, gpointer data) { gtk_text_buffer_set_text(log_te_buf, "", 0); } geg-2.0.9/ChangeLog0000644000175000017500000000605612735031453014246 0ustar georgeskgeorgesk2.0.9 [ Jean-Pierre Demailly ] * Left button is now used to activate all functions through a popup menu on the drawing canvas * Scroll wheel is used to perform zoom in and zoom out, and right button is used to translate the origin of coordinates * Finding curve intersections and axes intersections had been disabled as a result of a few buggy lines added in 2.0.8. This is now corrected 2.0.8 [ Jean-Pierre Demailly ] * Derivation and integration can now be iterated 2.0.7 [ Jean-Pierre Demailly ] * Normal law cumulated distribution function phi(x) introduced * Numerical integration via 5-point Gauss-Legendre method * A few further bugs have been corrected 2.0.6 [ Jean-Pierre Demailly ] * geg now has a mode dedicated to representing discrete sequences. * geg-2.0.6 includes the possibility of introducing user defined functions, computing numerically their derivatives and tangents. * Almost all parameters are now accessible by suitable hooks in the symbolic formalism, and can thus be set from the calculation sheets. Linewith and color of curves can be set in this way, as well as the size and color of tangents. The coord() function has been deprecated. See the help file for details. * The coordinate grid can be drawn or hidden * The package incorporates several examples of calculation sheets. * Many substantial bugs have been ironed out. 2.0.5 [ Jean-Pierre Demailly ] * geg can now open and save *.geg files reproducing all calculations entered in sequence via the bottom command line. They can be used to store a given arrangement of curves along with the selected colors and scaling parameters. * A new coord() function has been introduced to switch the cartesian/ polar/parametric modes programmatically in a sequence of function calls. 2.0.4 [ Jean-Pierre Demailly ] * Fixed some minor issues in radio buttons (GTK bug due to deprecation ?) * Slight improvement in GUI presentation 2.0.3 [ Jean-Pierre Demailly ] * All preferences are now configurable, including colors * Builtin parameters can be recovered from the GUI * Zoom functions now have orthonormal mode * Version posted to Sourceforge 2.0.2 [ Jean-Pierre Demailly ] * Improved behavior of event reporting in log window * Width of log window and text entries slightly increased 2.0.1 [ Jean-Pierre Demailly ] * Polar mode added: t-->r(t) * Equation solver added * external utilities can now be set through preference GUI * various fixes (some issues were causing occasional segfaults ...) * help system fixed and localized 2.0.0 [ Jean-Pierre Demailly ] * Printing can be made either through PDF or SVG * Parametric mode added: t-->(x,y) * Formula parser enhanced: variables a-z can now be used as parameters * Log window behavior fixed * Port to GTK2 thanks to the work of Barry deFreese 1.0.2 * Fixed precedence of '-' (thanks to Torsten Landschoff) * Added manpage (ditto) 1.0.1 * Fixed infinite configure bug that occured with recent versions of GTK+ * Fixed precedence level of '^' operator (thanks to Kris Jurka) * Fixed cursor sizes of zoom/function intercepts/axis intercepts cursors geg-2.0.9/config.h.in0000644000175000017500000000360112735031744014513 0ustar georgeskgeorgesk/* config.h.in. Generated from configure.ac by autoheader. */ #undef PACKAGE #undef VERSION /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM /* Define to 1 if you have the `X11' library (-lX11). */ #undef HAVE_LIBX11 /* Define to 1 if you have the `Xext' library (-lXext). */ #undef HAVE_LIBXEXT /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_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 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 header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* 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 /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to empty if `const' does not conform to ANSI C. */ #undef const geg-2.0.9/COPYING0000644000175000017500000004311406564346213013531 0ustar georgeskgeorgesk 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 Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. geg-2.0.9/depcomp0000755000175000017500000005601612735031745014056 0ustar georgeskgeorgesk#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2013-05-30.07; # UTC # Copyright (C) 1999-2014 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 '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: geg-2.0.9/eps2svg.man.xml0000644000175000017500000001060312675570533015364 0ustar georgeskgeorgesk .
will be generated. You may view the manual page with: nroff -man .
| less'. A typical entry in a Makefile or Makefile.am is: DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/manpages/docbook.xsl XP = xsltproc -''-nonet -''-param man.charmap.use.subset "0" manpage.1: manpage.xml $(XP) $(DB2MAN) $< The xsltproc binary is found in the xsltproc package. The XSL files are in docbook-xsl. A description of the parameters you can use can be found in the docbook-xsl-doc-* packages. Please remember that if you create the nroff version in one of the debian/rules file targets (such as build), you will need to include xsltproc and docbook-xsl in your Build-Depends control field. Alternatively use the xmlto command/package. That will also automatically pull in xsltproc and docbook-xsl. Notes for using docbook2x: docbook2x-man does not automatically create the AUTHOR(S) and COPYRIGHT sections. In this case, please add them manually as ... . To disable the automatic creation of the AUTHOR(S) and COPYRIGHT sections read /usr/share/doc/docbook-xsl/doc/manpages/authors.html. This file can be found in the docbook-xsl-doc-html package. Validation can be done using: `xmllint -''-noout -''-valid manpage.xml` General documentation about man-pages and man-page-formatting: man(1), man(7), http://www.tldp.org/HOWTO/Man-Page/ --> ]> &dhtitle; &dhpackage; &dhfirstname; &dhsurname; Wrote this manpage for the Debian system.
&dhemail;
2016 &dhusername; This manual page was written for the Debian system (and may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
&dhucpackage; &dhsection; &dhpackage; program to convert .eps files to format SVG. &dhpackage; input.eps output.svg DESCRIPTION &dhpackage; is a program that converts EPS files to SVG format.
geg-2.0.9/missing0000755000175000017500000001533012735031745014072 0ustar georgeskgeorgesk#! /bin/sh # Common wrapper for a few potentially missing GNU programs. scriptversion=2013-10-28.13; # UTC # Copyright (C) 1996-2014 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 'autom4te' 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: geg-2.0.9/po/0000755000175000017500000000000012735240064013103 5ustar georgeskgeorgeskgeg-2.0.9/po/fr.po0000644000175000017500000003465512735237404014073 0ustar georgeskgeorgesk# -*-coding: utf-8;-*- # French L12N file for Geg # Copyright (C) 2005 association OFSET # Georges Khaznadar , 2005 # msgid "" msgstr "" "Project-Id-Version: Geg 1.0.2\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-29 21:59+0200\n" "PO-Revision-Date: 2016-06-30 17:47+0200\n" "Last-Translator: Georges Khaznadar \n" "Language-Team: FR \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: ../src/about.c:46 msgid "about" msgstr "à propos" #: ../src/about.c:47 msgid "About geg" msgstr "À propos de Geg" #: ../src/about.c:54 ../src/formulas.c:173 ../src/help.c:133 ../src/prefs.c:268 msgid "Ok" msgstr "Ok" #: ../src/formulas.c:76 msgid "Maximum Formulas" msgstr "Nombre max. de formules atteint" #: ../src/formulas.c:83 msgid "Parse Error!" msgstr "Erreur formelle !" #: ../src/formulas.c:140 ../src/app.c:376 msgid "Erase" msgstr "Effacer" #: ../src/formulas.c:147 msgid "Select functions to erase:" msgstr "Sélectionner les fonctions à effacer :" #: ../src/formulas.c:233 msgid "Erase: " msgstr "Effacer: " #: ../src/formulas.c:185 ../src/prefs.c:288 msgid "Cancel" msgstr "Échappement" #: ../src/formulas.c:229 msgid "Erase Formulas" msgstr "Effacement de formules" #: ../src/main.c:33 msgid "error initialising" msgstr "erreur à l'initialisation" #: ../src/app.c:181 ../src/app.c:722 msgid "Restart" msgstr "Réinitialiser" #: ../src/app.c:185 msgid "Clear Log" msgstr "Effacer Journal" #: ../src/app.c:191 msgid "Preferences..." msgstr "Préférences..." #: ../src/app.c:192 msgid "Builtin parameters" msgstr "Paramètres d'origine" #: ../src/app.c:193 msgid "Select a file *.geg ..." msgstr "Sélectionner un fichier *.geg ..." #: ../src/app.c:194 msgid "Save as *.geg file ..." msgstr "Sauvegarder sous *.geg ..." #: ../src/app.c:195 msgid "Save as *.eps file ..." msgstr "Sauvegarder sous *.eps ..." #: ../src/app.c:196 msgid "Save as *.pdf file ..." msgstr "Sauvegarder sous *.pdf ..." #: ../src/app.c:197 msgid "Save as *.svg file ..." msgstr "Sauvegarder sous *.svg ..." #: ../src/app.c:198 msgid "Reading" msgstr "Lecture de" #: ../src/app.c:199 msgid "Loading" msgstr "Chargement de" #: ../src/app.c:200 msgid "Writing" msgstr "Écriture de" #: ../src/app.c:202 ../src/app.c:413 msgid "Exit" msgstr "Quitter" #: ../src/app.c:204 msgid "File" msgstr "Fichier" #: ../src/app.c:206 msgid "Edition" msgstr "Édition" #: ../src/app.c:208 msgid "Parameters" msgstr "Paramètres" #: ../src/app.c:211 msgid "Erase some Formulas..." msgstr "Effacer certaines Formules ..." #: ../src/app.c:218 msgid "Reset Zoom" msgstr "Réinitialiser le zoom" #: ../src/app.c:244 msgid "Help..." msgstr "Aide ..." #: ../src/app.c:250 msgid "About..." msgstr "À propos ..." #: ../src/app.c:256 ../src/help.c:109 msgid "Help" msgstr "Aide" #: ../src/app.c:267 msgid "Ranges" msgstr "Intervalles" #: ../src/app.c:273 ../src/prefs.c:201 msgid "Xmin:" msgstr "Xmin :" #: ../src/app.c:274 ../src/prefs.c:202 msgid "Xmax:" msgstr "Xmax :" #: ../src/app.c:275 ../src/prefs.c:208 msgid "Ymin:" msgstr "Ymin :" #: ../src/app.c:276 ../src/prefs.c:209 msgid "Ymax:" msgstr "Ymax :" #: ../src/app.c:278 msgid "Tmin:" msgstr "Tmin :" #: ../src/app.c:280 msgid "Tmax:" msgstr "Tmax :" #: ../src/app.c:297 msgid "Really quit ?" msgstr "Voulez-vous vraiment quitter ?" #: ../src/app.c:300 msgid "Log" msgstr "Journal" #: ../src/app.c:307 msgid "Status" msgstr "Statut" #: ../src/app.c:327 msgid "Export parameters to Prefs" msgstr "Exporter paramètres vers Préfs" #: ../src/app.c:337 msgid "GO!" msgstr "Vas-y !" #: ../src/app.c:371 msgid "New" msgstr "Réinitialiser" #: ../src/app.c:372 msgid "Erase all formulas and reset zoom" msgstr "Effacer toutes les formules et réinitialiser le zoom" #: ../src/app.c:377 msgid "Select formulas to erase" msgstr "Sélectionner les formules à effacer" #: ../src/app.c:382 msgid "Reset" msgstr "Zoom 0" #: ../src/app.c:382 msgid "Reset zoom to default" msgstr "Réajuster le zoom à la valeur initiale" #: ../src/app.c:383 msgid "x,y,x&y" msgstr "x,y,x&y" #: ../src/app.c:384 msgid "Zoom along Ox, Oy, or both" msgstr "Zoomer suivant Ox, Oy ou les deux à la fois" #: ../src/app.c:388 msgid "In" msgstr "Zoom +" #: ../src/app.c:388 msgid "Zoom in" msgstr "Agrandir" #: ../src/app.c:392 msgid "Out" msgstr "Zoom -" #: ../src/app.c:392 msgid "Zoom out" msgstr "Diminuer" #: ../src/app.c:393 msgid "Use decimal / radian x coordinates" msgstr "Visualiser axe des x en décimal / radian" #: ../src/app.c:394 msgid "Use cartesian / polar / parametric mode" msgstr "Utiliser le mode cartésien / polaire / paramétrique" #: ../src/app.c:394 msgid "Draw graphic representation of sequence" msgstr "Représenter graphiquement une suite" #: ../src/app.c:395 msgid "Edit" msgstr "Éditer" #: ../src/app.c:396 msgid "Edit formulas" msgstr "Éditer les formules" #: ../src/app.c:396 msgid "Edit formulas ..." msgstr "Éditer les formules ..." #: ../src/app.c:396 msgid "Edition of formulas" msgstr "Éditer les formules" #: ../src/app.c:397 msgid "Edit *.geg file" msgstr "Éditer le fichier *.geg" #: ../src/app.c:397 msgid "Edit geg file ..." msgstr "Éditer le fichier geg ..." #: ../src/app.c:398 msgid "Edit postscript file ..." msgstr "Éditer le fichier postscript ..." #: ../src/app.c:405 msgid "Print" msgstr "Imprimer" #: ../src/app.c:406 msgid "Print graph window" msgstr "Imprimer le graphe" #: ../src/app.c:408 msgid "Prefs" msgstr "Préfs." #: ../src/app.c:408 msgid "Edit preferences" msgstr "Éditer les préférences" #: ../src/app.c:413 msgid "Exit geg" msgstr "Quitter Geg" #: ../src/app.c:450 msgid "Examples..." msgstr "Exemples ..." #: ../src/app.c:586 ../src/app.c:1123 msgid "Minimum Resolution" msgstr "Résolution minimale" #: ../src/app.c:594 msgid "Zoom In" msgstr "Zoom +" #: ../src/app.c:599 msgid "Maximum Resolution" msgstr "Résolution maximale" #: ../src/app.c:606 msgid "Zoom Out" msgstr "Zoom -" #: ../src/app.c:638 msgid "grid" msgstr "grille" #: ../src/app.c:639 msgid "Draw coordinate grid" msgstr "Tracer la grille de coordonnées" #: ../src/app.c:650 msgid "Zoom reset" msgstr "Zoom réinitialisé" #: ../src/app.c:671 msgid "Zoom along Ox" msgstr "Zoomer suivant Ox" #: ../src/app.c:672 msgid "Zoom along Oy" msgstr "Zoomer suivant Oy" #: ../src/app.c:673 msgid "Zoom along Ox and Oy" msgstr "Zoomer suivant Ox et Oy" #: ../src/app.c:674 msgid "Zoom orthonormal" msgstr "Zoom orthonormal" #: ../src/app.c:793 #, c-format msgid "Showing x as %s" msgstr "Valeurs de x en %s" #: ../src/app.c:794 msgid "radian" msgstr "radian" #: ../src/app.c:794 msgid "decimal" msgstr "décimal" #: ../src/app.c:863 #, c-format msgid "%s mode" msgstr "Mode %s" #: ../src/app.c:864 msgid "Cartesian" msgstr "Cartésien" #: ../src/app.c:864 msgid "Polar" msgstr "Polaire" #: ../src/app.c:864 msgid "Parametric" msgstr "Paramétrique" #: ../src/app.c:864 msgid "Sequence" msgstr "Suite" #: ../src/app.c:876 msgid "Builtin parameters reset" msgstr "Paramètres réinitialisés" #: ../src/app.c:930 msgid "Save as" msgstr "Sauvegarder comme" #: ../src/app.c:1019 msgid "Exporting main window" msgstr "Exportation paramètres" #: ../src/app.c:1020 msgid " parameters to preferences" msgstr " graphiques vers préférences" #: ../src/app.c:1034 msgid "Overwrite file '%s' ?" msgstr "Écraser le fichier '%s' ?" #: ../src/app.c:1036 msgid "geg: question" msgstr "geg: question" #: ../src/app.c:1136 msgid "Zoom Selection" msgstr "Sélection du Zoom" #: ../src/app.c:1140 msgid "Curve intersections:" msgstr "Intersections courbes :" #: ../src/app.c:1144 msgid "Axes intersections:" msgstr "Intersection avec axes :" #: ../src/app.c:1185 msgid "not found" msgstr "non trouvé" #: ../src/app.c:1228 msgid "Check prefs / utilities" msgstr "Ouvrir Préfs/Utilitaires" #: ../src/app.c:1275 msgid "Edition of EPS file" msgstr "Édition du fichier EPS" #: ../src/app.c:1288 msgid "PDF file to be created" msgstr "Fichier PDF à créer" #: ../src/app.c:1288 msgid "SVG file to be created" msgstr "Fichier SVG à créer" #: ../src/app.c:1307 msgid "Drawing grid:" msgstr "Tracé de la grille :" #: ../src/app.c:1307 msgid "yes" msgstr "oui" #: ../src/app.c:1307 msgid "no" msgstr "non" #: ../src/app.c:1428 #, c-format msgid "" " %s and %s at:\n" " x=%%0.%df, y=%%0.%df" msgstr "" " %s et %s en :\n" " x=%%0.%df, y=%%0.%df" #: ../src/app.c:1439 ../src/app.c:1523 msgid " none found." msgstr " aucun point trouvé" #: ../src/app.c:1607 msgid "Invalid Range" msgstr "Intervalle invalide" #: ../src/app.c:1704 msgid "Output failed !" msgstr "Erreur en sortie !" #: ../src/app.c:2239 msgid "Change of origin" msgstr "Changement d'origine" #: ../src/app.c:2256 msgid "Function definition" msgstr "Définition fonction" #: ../src/app.c:2326 msgid "Translate along diagonal" msgstr "Translater suivant la diagonale" #: ../src/app.c:2331 msgid "Zoom to selected area" msgstr "Zoom sur la zone sélectionnée" #: ../src/app.c:2336 msgid "Intersections with axes" msgstr "Intersection avec les axes" #: ../src/app.c:2341 msgid "Intersections of curves" msgstr "Intersections de courbes" #: ../src/help.c:115 msgid "Syntax information:" msgstr "Information de syntaxe :" #: ../src/parser.c:358 msgid "Eval Error" msgstr "Erreur d'évaluation" #: ../src/colorsel.c:78 msgid "Select color" msgstr "Sélection de la couleur" #: ../src/prefs.c:131 msgid "Preferences" msgstr "Préférences" #: ../src/prefs.c:143 msgid "Toolbar options:" msgstr "Options de la barre d'outils :" #: ../src/prefs.c:146 msgid "Toolbar" msgstr "Barre d'outils" #: ../src/prefs.c:150 msgid "Default ranges and dimensions:" msgstr "Intervalles et dimensions par défaut :" #: ../src/prefs.c:157 msgid "Resolution options:" msgstr "Options de résolution :" #: ../src/prefs.c:159 msgid "Resolution" msgstr "Résolution" #: ../src/prefs.c:161 msgid "Drawing options:" msgstr "Options de tracés :" #: ../src/prefs.c:163 msgid "Drawing" msgstr "Tracés" #: ../src/prefs.c:164 msgid "Color options:" msgstr "Options de couleur :" #: ../src/prefs.c:167 msgid "Colors" msgstr "Couleurs" #: ../src/prefs.c:170 msgid "External utility programs:" msgstr "Utilitaires externes" #: ../src/prefs.c:173 msgid "Utilities" msgstr "Utilitaires" #: ../src/prefs.c:179 msgid "Show Pictures and Text" msgstr "Montrer images et Texte" #: ../src/prefs.c:181 msgid "Show Pictures Only" msgstr "Montrer images seulement" #: ../src/prefs.c:183 msgid "Show Text Only" msgstr "Montrer texte seulement" #: ../src/prefs.c:191 msgid "Show Tooltips" msgstr "Montrer les infobulles" #: ../src/prefs.c:194 msgid "Print as EPS" msgstr "Imprimer en EPS" #: ../src/prefs.c:195 msgid "Print as PDF" msgstr "Imprimer en PDF" #: ../src/prefs.c:196 msgid "Print as SVG" msgstr "Imprimer en SVG" #: ../src/prefs.c:203 msgid "Width:" msgstr "Largeur :" #: ../src/prefs.c:210 msgid "Height:" msgstr "Hauteur :" #: ../src/prefs.c:212 msgid "Decimal x coordinates" msgstr "Axe des x en décimal" #: ../src/prefs.c:214 msgid "Radian x coordinates" msgstr "Axe des x en radian" #: ../src/prefs.c:216 msgid "Cartesian mode" msgstr "Mode cartésien" #: ../src/prefs.c:216 msgid "Polar mode" msgstr "Mode polaire" #: ../src/prefs.c:218 msgid "Parametric mode" msgstr "Mode paramétrique" #: ../src/prefs.c:220 msgid "Sequence mode" msgstr "Mode suite" #: ../src/prefs.c:231 msgid "Zoom Factor:" msgstr "Facteur du zoom :" #: ../src/prefs.c:232 msgid "Notch Spacing:" msgstr "Espacement des graduations :" #: ../src/prefs.c:234 msgid "Interpolation:" msgstr "Interpolation :" #: ../src/prefs.c:239 msgid "Min Resolution:" msgstr "Résolution min :" #: ../src/prefs.c:240 msgid "Max Resolution:" msgstr "Résolution max :" #: ../src/prefs.c:241 msgid "Max Formulas:" msgstr "Formules max :" #: ../src/prefs.c:251 msgid "Background:" msgstr "Arrière-plan :" #: ../src/prefs.c:253 msgid "Numbers:" msgstr "Nombres :" #: ../src/prefs.c:259 msgid "Axes:" msgstr "Axes :" #: ../src/prefs.c:261 msgid "Selection:" msgstr "Sélection :" #: ../src/prefs.c:277 msgid "Open *.geg" msgstr "Ouvrir *.geg" #: ../src/prefs.c:279 msgid "Save" msgstr "Enregistrer" #: ../src/prefs.c:301 msgid "Show Ox axis" msgstr "Tracer axe Ox" #: ../src/prefs.c:303 msgid "Show x values" msgstr "Indiquer abscisses" #: ../src/prefs.c:305 msgid "Show Oy axis" msgstr "Tracer axe Oy" #: ../src/prefs.c:306 msgid "Show y values" msgstr "Indiquer ordonnées" #: ../src/prefs.c:307 msgid "background" msgstr "fond de page" #: ../src/prefs.c:308 msgid "numbers" msgstr "valeurs" #: ../src/prefs.c:309 msgid "axes" msgstr "axes" #: ../src/prefs.c:310 msgid "selection" msgstr "sélection" #: ../src/prefs.c:311 msgid "gray" msgstr "gris" #: ../src/prefs.c:312 msgid "default" msgstr "défaut" #: ../src/prefs.c:313 msgid "curve" msgstr "courbe" #: ../src/prefs.c:314 msgid "Number of Colors:" msgstr "Nombre de couleurs:" #: ../src/prefs.c:315 msgid "Index:" msgstr "Index:" #: ../src/prefs.c:316 msgid "Current color:" msgstr "Couleur courante :" #: ../src/prefs.c:317 msgid "Color chooser" msgstr "Sélecteur de couleurs" #: ../src/prefs.c:318 msgid "Color output" msgstr "Utiliser des couleurs" #: ../src/prefs.c:319 msgid "Gray output" msgstr "Niveaux de gris" #: ../src/prefs.c:320 msgid "Show box" msgstr "Tracer une bordure" #: ../src/prefs.c:322 msgid "Show formulas" msgstr "Indiquer les formules" #: ../src/prefs.c:324 msgid "Formula position:" msgstr "Position des formules :" #: ../src/prefs.c:326 msgid "Formula font size:" msgstr "Taille police formules :" #: ../src/prefs.c:328 msgid "Numbers font size:" msgstr "Taille police valeurs :" #: ../src/prefs.c:355 msgid "Editor:" msgstr "Éditeur :" #: ../src/prefs.c:356 msgid "PDF viewer:" msgstr "Lecteur PDF :" #: ../src/prefs.c:357 msgid "EPS to PDF:" msgstr "EPS vers PDF :" #: ../src/prefs.c:363 msgid "SVG viewer:" msgstr "Lecteur SVG :" #: ../src/prefs.c:364 msgid "EPS to SVG:" msgstr "EPS vers SVG :" #: ../src/prefs.c:522 msgid "Axes linewidth:" msgstr "Épaiss. ligne axes :" #: ../src/prefs.c:523 msgid "Grid linewidth:" msgstr "Épaiss. ligne grille :" #: ../src/prefs.c:524 msgid "Box linewidth:" msgstr "Épaiss. ligne boîte :" #: ../src/prefs.c:525 msgid "Curves linewidth:" msgstr "Épaiss. ligne courbes :" #: ../src/prefs.c:526 msgid "Point radius:" msgstr "Rayon des points :" #: ../src/prefs.c:547 msgid "error in rcfile, expected equals" msgstr "Erreur dans le fichier rc, on attendait 'equals'" #: ../src/prefs.c:585 ../src/prefs.c:595 ../src/prefs.c:629 ../src/prefs.c:673 #, c-format msgid "error in rcfile %s: %s" msgstr "erreur dans le fichier rc %s: %s" geg-2.0.9/po/geg.pot0000644000175000017500000002626412735026552014407 0ustar georgeskgeorgesk# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-06-29 21:59+0200\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" #: ../src/about.c:46 msgid "about" msgstr "" #: ../src/about.c:47 msgid "About geg" msgstr "" #: ../src/about.c:54 ../src/formulas.c:173 ../src/help.c:133 ../src/prefs.c:268 msgid "Ok" msgstr "" #: ../src/formulas.c:76 msgid "Maximum Formulas" msgstr "" #: ../src/formulas.c:83 msgid "Parse Error!" msgstr "" #: ../src/formulas.c:140 ../src/app.c:376 msgid "Erase" msgstr "" #: ../src/formulas.c:147 msgid "Select functions to erase:" msgstr "" #: ../src/formulas.c:233 msgid "Erase: " msgstr "" #: ../src/formulas.c:185 ../src/prefs.c:288 msgid "Cancel" msgstr "" #: ../src/formulas.c:229 msgid "Erase Formulas" msgstr "" #: ../src/main.c:33 msgid "error initialising" msgstr "" #: ../src/app.c:181 ../src/app.c:722 msgid "Restart" msgstr "" #: ../src/app.c:185 msgid "Clear Log" msgstr "" #: ../src/app.c:191 msgid "Preferences..." msgstr "" #: ../src/app.c:192 msgid "Builtin parameters" msgstr "" #: ../src/app.c:193 msgid "Select a file *.geg ..." msgstr "" #: ../src/app.c:194 msgid "Save as *.geg file ..." msgstr "" #: ../src/app.c:195 msgid "Save as *.eps file ..." msgstr "" #: ../src/app.c:196 msgid "Save as *.pdf file ..." msgstr "" #: ../src/app.c:197 msgid "Save as *.svg file ..." msgstr "" #: ../src/app.c:198 msgid "Reading" msgstr "" #: ../src/app.c:199 msgid "Loading" msgstr "" #: ../src/app.c:200 msgid "Writing" msgstr "" #: ../src/app.c:202 ../src/app.c:413 msgid "Exit" msgstr "" #: ../src/app.c:204 msgid "File" msgstr "" #: ../src/app.c:206 msgid "Edition" msgstr "" #: ../src/app.c:208 msgid "Parameters" msgstr "" #: ../src/app.c:211 msgid "Erase some Formulas..." msgstr "" #: ../src/app.c:218 msgid "Reset Zoom" msgstr "" #: ../src/app.c:244 msgid "Help..." msgstr "" #: ../src/app.c:250 msgid "About..." msgstr "" #: ../src/app.c:256 ../src/help.c:109 msgid "Help" msgstr "" #: ../src/app.c:267 msgid "Ranges" msgstr "" #: ../src/app.c:273 ../src/prefs.c:201 msgid "Xmin:" msgstr "" #: ../src/app.c:274 ../src/prefs.c:202 msgid "Xmax:" msgstr "" #: ../src/app.c:275 ../src/prefs.c:208 msgid "Ymin:" msgstr "" #: ../src/app.c:276 ../src/prefs.c:209 msgid "Ymax:" msgstr "" #: ../src/app.c:278 msgid "Tmin:" msgstr "" #: ../src/app.c:280 msgid "Tmax:" msgstr "" #: ../src/app.c:297 msgid "Really quit ?" msgstr "" #: ../src/app.c:300 msgid "Log" msgstr "" #: ../src/app.c:307 msgid "Status" msgstr "" #: ../src/app.c:327 msgid "Export parameters to Prefs" msgstr "" #: ../src/app.c:337 msgid "GO!" msgstr "" #: ../src/app.c:371 msgid "New" msgstr "" #: ../src/app.c:372 msgid "Erase all formulas and reset zoom" msgstr "" #: ../src/app.c:377 msgid "Select formulas to erase" msgstr "" #: ../src/app.c:382 msgid "Reset" msgstr "" #: ../src/app.c:382 msgid "Reset zoom to default" msgstr "" #: ../src/app.c:383 msgid "x,y,x&y" msgstr "" #: ../src/app.c:384 msgid "Zoom along Ox, Oy, or both" msgstr "" #: ../src/app.c:388 msgid "In" msgstr "" #: ../src/app.c:388 msgid "Zoom in" msgstr "" #: ../src/app.c:392 msgid "Out" msgstr "" #: ../src/app.c:392 msgid "Zoom out" msgstr "" #: ../src/app.c:393 msgid "Use decimal / radian x coordinates" msgstr "" #: ../src/app.c:394 msgid "Use cartesian / polar / parametric mode" msgstr "" #: ../src/app.c:394 msgid "Draw graphic representation of sequence" msgstr "" #: ../src/app.c:395 msgid "Edit" msgstr "" #: ../src/app.c:396 msgid "Edit formulas" msgstr "" #: ../src/app.c:396 msgid "Edit formulas ..." msgstr "" #: ../src/app.c:396 msgid "Edition of formulas" msgstr "" #: ../src/app.c:397 msgid "Edit *.geg file" msgstr "" #: ../src/app.c:397 msgid "Edit geg file ..." msgstr "" #: ../src/app.c:398 msgid "Edit postscript file ..." msgstr "" #: ../src/app.c:405 msgid "Print" msgstr "" #: ../src/app.c:406 msgid "Print graph window" msgstr "" #: ../src/app.c:408 msgid "Prefs" msgstr "" #: ../src/app.c:408 msgid "Edit preferences" msgstr "" #: ../src/app.c:413 msgid "Exit geg" msgstr "" #: ../src/app.c:450 msgid "Examples..." msgstr "" #: ../src/app.c:586 ../src/app.c:1123 msgid "Minimum Resolution" msgstr "" #: ../src/app.c:594 msgid "Zoom In" msgstr "" #: ../src/app.c:599 msgid "Maximum Resolution" msgstr "" #: ../src/app.c:606 msgid "Zoom Out" msgstr "" #: ../src/app.c:638 msgid "grid" msgstr "" #: ../src/app.c:639 msgid "Draw coordinate grid" msgstr "" #: ../src/app.c:650 msgid "Zoom reset" msgstr "" #: ../src/app.c:671 msgid "Zoom along Ox" msgstr "" #: ../src/app.c:672 msgid "Zoom along Oy" msgstr "" #: ../src/app.c:673 msgid "Zoom along Ox and Oy" msgstr "" #: ../src/app.c:674 msgid "Zoom orthonormal" msgstr "" #: ../src/app.c:793 #, c-format msgid "Showing x as %s" msgstr "" #: ../src/app.c:794 msgid "radian" msgstr "" #: ../src/app.c:794 msgid "decimal" msgstr "" #: ../src/app.c:863 #, c-format msgid "%s mode" msgstr "" #: ../src/app.c:864 msgid "Cartesian" msgstr "" #: ../src/app.c:864 msgid "Polar" msgstr "" #: ../src/app.c:864 msgid "Parametric" msgstr "" #: ../src/app.c:864 msgid "Sequence" msgstr "" #: ../src/app.c:876 msgid "Builtin parameters reset" msgstr "" #: ../src/app.c:930 msgid "Save as" msgstr "" #: ../src/app.c:1019 msgid "Exporting main window" msgstr "" #: ../src/app.c:1020 msgid " parameters to preferences" msgstr "" #: ../src/app.c:1034 msgid "Overwrite file '%s' ?" msgstr "" #: ../src/app.c:1036 msgid "geg: question" msgstr "" #: ../src/app.c:1136 msgid "Zoom Selection" msgstr "" #: ../src/app.c:1140 msgid "Curve intersections:" msgstr "" #: ../src/app.c:1144 msgid "Axes intersections:" msgstr "" #: ../src/app.c:1185 msgid "not found" msgstr "" #: ../src/app.c:1228 msgid "Check prefs / utilities" msgstr "" #: ../src/app.c:1275 msgid "Edition of EPS file" msgstr "" #: ../src/app.c:1288 msgid "PDF file to be created" msgstr "" #: ../src/app.c:1288 msgid "SVG file to be created" msgstr "" #: ../src/app.c:1307 msgid "Drawing grid:" msgstr "" #: ../src/app.c:1307 msgid "yes" msgstr "" #: ../src/app.c:1307 msgid "no" msgstr "" #: ../src/app.c:1428 #, c-format msgid "" " %s and %s at:\n" " x=%%0.%df, y=%%0.%df" msgstr "" #: ../src/app.c:1439 ../src/app.c:1523 msgid " none found." msgstr "" #: ../src/app.c:1607 msgid "Invalid Range" msgstr "" #: ../src/app.c:1704 msgid "Output failed !" msgstr "" #: ../src/app.c:2239 msgid "Change of origin" msgstr "" #: ../src/app.c:2256 msgid "Function definition" msgstr "" #: ../src/app.c:2326 msgid "Translate along diagonal" msgstr "" #: ../src/app.c:2331 msgid "Zoom to selected area" msgstr "" #: ../src/app.c:2336 msgid "Intersections with axes" msgstr "" #: ../src/app.c:2341 msgid "Intersections of curves" msgstr "" #: ../src/help.c:115 msgid "Syntax information:" msgstr "" #: ../src/parser.c:358 msgid "Eval Error" msgstr "" #: ../src/colorsel.c:78 msgid "Select color" msgstr "" #: ../src/prefs.c:131 msgid "Preferences" msgstr "" #: ../src/prefs.c:143 msgid "Toolbar options:" msgstr "" #: ../src/prefs.c:146 msgid "Toolbar" msgstr "" #: ../src/prefs.c:150 msgid "Default ranges and dimensions:" msgstr "" #: ../src/prefs.c:157 msgid "Resolution options:" msgstr "" #: ../src/prefs.c:159 msgid "Resolution" msgstr "" #: ../src/prefs.c:161 msgid "Drawing options:" msgstr "" #: ../src/prefs.c:163 msgid "Drawing" msgstr "" #: ../src/prefs.c:164 msgid "Color options:" msgstr "" #: ../src/prefs.c:167 msgid "Colors" msgstr "" #: ../src/prefs.c:170 msgid "External utility programs:" msgstr "" #: ../src/prefs.c:173 msgid "Utilities" msgstr "" #: ../src/prefs.c:179 msgid "Show Pictures and Text" msgstr "" #: ../src/prefs.c:181 msgid "Show Pictures Only" msgstr "" #: ../src/prefs.c:183 msgid "Show Text Only" msgstr "" #: ../src/prefs.c:191 msgid "Show Tooltips" msgstr "" #: ../src/prefs.c:194 msgid "Print as EPS" msgstr "" #: ../src/prefs.c:195 msgid "Print as PDF" msgstr "" #: ../src/prefs.c:196 msgid "Print as SVG" msgstr "" #: ../src/prefs.c:203 msgid "Width:" msgstr "" #: ../src/prefs.c:210 msgid "Height:" msgstr "" #: ../src/prefs.c:212 msgid "Decimal x coordinates" msgstr "" #: ../src/prefs.c:214 msgid "Radian x coordinates" msgstr "" #: ../src/prefs.c:216 msgid "Cartesian mode" msgstr "" #: ../src/prefs.c:216 msgid "Polar mode" msgstr "" #: ../src/prefs.c:218 msgid "Parametric mode" msgstr "" #: ../src/prefs.c:220 msgid "Sequence mode" msgstr "" #: ../src/prefs.c:231 msgid "Zoom Factor:" msgstr "" #: ../src/prefs.c:232 msgid "Notch Spacing:" msgstr "" #: ../src/prefs.c:234 msgid "Interpolation:" msgstr "" #: ../src/prefs.c:239 msgid "Min Resolution:" msgstr "" #: ../src/prefs.c:240 msgid "Max Resolution:" msgstr "" #: ../src/prefs.c:241 msgid "Max Formulas:" msgstr "" #: ../src/prefs.c:251 msgid "Background:" msgstr "" #: ../src/prefs.c:253 msgid "Numbers:" msgstr "" #: ../src/prefs.c:259 msgid "Axes:" msgstr "" #: ../src/prefs.c:261 msgid "Selection:" msgstr "" #: ../src/prefs.c:277 msgid "Open *.geg" msgstr "" #: ../src/prefs.c:279 msgid "Save" msgstr "" #: ../src/prefs.c:301 msgid "Show Ox axis" msgstr "" #: ../src/prefs.c:303 msgid "Show x values" msgstr "" #: ../src/prefs.c:305 msgid "Show Oy axis" msgstr "" #: ../src/prefs.c:306 msgid "Show y values" msgstr "" #: ../src/prefs.c:307 msgid "background" msgstr "" #: ../src/prefs.c:308 msgid "numbers" msgstr "" #: ../src/prefs.c:309 msgid "axes" msgstr "" #: ../src/prefs.c:310 msgid "selection" msgstr "" #: ../src/prefs.c:311 msgid "gray" msgstr "" #: ../src/prefs.c:312 msgid "default" msgstr "" #: ../src/prefs.c:313 msgid "curve" msgstr "" #: ../src/prefs.c:314 msgid "Number of Colors:" msgstr "" #: ../src/prefs.c:315 msgid "Index:" msgstr "" #: ../src/prefs.c:316 msgid "Current color:" msgstr "" #: ../src/prefs.c:317 msgid "Color chooser" msgstr "" #: ../src/prefs.c:318 msgid "Color output" msgstr "" #: ../src/prefs.c:319 msgid "Gray output" msgstr "" #: ../src/prefs.c:320 msgid "Show box" msgstr "" #: ../src/prefs.c:322 msgid "Show formulas" msgstr "" #: ../src/prefs.c:324 msgid "Formula position:" msgstr "" #: ../src/prefs.c:326 msgid "Formula font size:" msgstr "" #: ../src/prefs.c:328 msgid "Numbers font size:" msgstr "" #: ../src/prefs.c:355 msgid "Editor:" msgstr "" #: ../src/prefs.c:356 msgid "PDF viewer:" msgstr "" #: ../src/prefs.c:357 msgid "EPS to PDF:" msgstr "" #: ../src/prefs.c:363 msgid "SVG viewer:" msgstr "" #: ../src/prefs.c:364 msgid "EPS to SVG:" msgstr "" #: ../src/prefs.c:522 msgid "Axes linewidth:" msgstr "" #: ../src/prefs.c:523 msgid "Grid linewidth:" msgstr "" #: ../src/prefs.c:524 msgid "Box linewidth:" msgstr "" #: ../src/prefs.c:525 msgid "Curves linewidth:" msgstr "" #: ../src/prefs.c:526 msgid "Point radius:" msgstr "" #: ../src/prefs.c:547 msgid "error in rcfile, expected equals" msgstr "" #: ../src/prefs.c:585 ../src/prefs.c:595 ../src/prefs.c:629 ../src/prefs.c:673 #, c-format msgid "error in rcfile %s: %s" msgstr "" geg-2.0.9/po/Makefile.am0000644000175000017500000000131512674461522015145 0ustar georgeskgeorgesk####### kdevelop will overwrite this part!!! (begin)########## ####### kdevelop will overwrite this part!!! (end)############ #POFILES = AUTO DESTDIR = POFILES = fr.po LANGUAGES = $(POFILES:.po=) MOFILES = $(POFILES:.po=.mo) CFILES = $(wildcard ../src/*.c) $(wildcard ../src/*.h) all: mofiles install: mofiles-install mofiles: $(MOFILES) mofiles-install: mofiles for l in $(LANGUAGES); do \ d=$(DESTDIR)/usr/share/locale/$$l/LC_MESSAGES; \ mkdir -p $$d; \ install -m 644 $$l.mo $$d/geg.mo; \ done $(POFILES): geg.pot msgmerge -o $@.new $@ $< && mv $@.new $@ geg.pot: $(CFILES) cd ../src && make messages %.mo: %.po msgfmt -o $@ $< distclean: clean rm -f Makefile clean: rm -f *~ $(MOFILES) geg-2.0.9/INSTALL0000644000175000017500000003661012735031745013530 0ustar georgeskgeorgeskInstallation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2013 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 warranty of any kind. Basic Installation ================== Briefly, the shell command `./configure && make && make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. 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, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. 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 you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' 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. Running `configure' might take a while. 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, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. 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. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. 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 can use 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 `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer 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. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' 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. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= 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'. 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. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS 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 machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. 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. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf limitation. Until the limitation is lifted, you can use this workaround: CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--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. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. geg-2.0.9/examples/0000755000175000017500000000000012735240064014303 5ustar georgeskgeorgeskgeg-2.0.9/examples/integration.geg0000644000175000017500000000355212715715504017323 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -12.000000 xmax = 12.000000 ymin = -1.105614 ymax = 1.105614 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = cartesian zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 100 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # user defined function &fa(p)=cos(p*p) # its primitive (indefinite integral) vanishing at c &fb=int_c_fa # take c=0 and draw it &c=0 fb(x) # indefinite integral of natural logarithm &fl=int_c_ln # take c=1 and draw it &c=1 fl(x) geg-2.0.9/examples/polar_param.geg0000644000175000017500000000340612714570123017266 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -12.000000 xmax = 12.000000 ymin = -9.309091 ymax = 9.309091 tmin = 0.000000 tmax = 18.849556 amin = -75.398224 amax = 18.849556 graph_width = 1320 graph_height = 1024 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = parametric zoom_xy = 4 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 500 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # Polar curve &polar &amin=-24*pi &amax=6*pi exp(0.18*t) # Parametric curve ¶m &tmin=0 &tmax=2*pi x=8*cos(3*t);y=6*sin(4*t) geg-2.0.9/examples/error1.geg0000644000175000017500000000360712716433740016213 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -5.598089 xmax = 5.598089 ymin = -4.198566 ymax = 4.198566 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = cartesian zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 100 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # user defined function that has not explicit primitive &fa(p)=cos(p*p) fa(x) # indefinite integral of fa at c=0 &fb=int_c_fa &c=0 fb(x) # now take derivative of that primitive and show the error # it is less than 1/10^7 on the interval &fc=fb' 10^7*(fc(x)-fa(x)) geg-2.0.9/examples/cartesian.geg0000644000175000017500000000437112715620346016750 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -8.196161 xmax = 8.196161 ymin = -6.147121 ymax = 6.147121 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = cartesian zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 500 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # color unspecified, using geg's global settings # draw basic functions of 1 variable in cartesian mode: &cart sin(x) cotan(x) # introduce derivative of cotan &fa=cotan' # changing linewidth &lw=1.3 # draw fa=cotan' restricted to [0 ; pi] = { x*(pi-x) > 0 } fa(x)*cut(x*(pi-x)) # readjusting linewidth &lw=0.5 # define ft(.) to be the affine linear function # that is tangent to the cotan(.) function at point c: &ft=tgt_c_cotan # adjusting color and size of tangents: &color=240200180 &tgt_left=0.04;tgt_right=0.04 # now, draw tangents and change size for the second one: c=2.5;ft(x) &tgt_left=0.06;tgt_right=0.19 c=4.1;ft(x) geg-2.0.9/examples/Makefile.am0000644000175000017500000000026712716005666016352 0ustar georgeskgeorgeskall: install: mkdir -p $(DESTDIR)/usr/share/geg/examples rm -f *.geg~ install -c -m 644 *.geg $(DESTDIR)/usr/share/geg/examples distclean: clean rm -f Makefile clean: rm -f *~ geg-2.0.9/examples/error2.geg0000644000175000017500000000360012716434230016200 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -12.000000 xmax = 12.000000 ymin = -9.000000 ymax = 9.000000 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = cartesian zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 100 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # take first to fourth derivatives of sin(x) and draw them &fa=sin' fa(x) &fb=fa' fb(x) &fc=fb' fc(x) &fd=fc' fd(x) # now show error function after four derivatives (raised upwards by 3) # error is of the order of magnitude of 1/10^7 10^7*(fd(x)-sin(x))+3 geg-2.0.9/examples/sequences.geg0000644000175000017500000000355112714570154016771 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -1.000000 xmax = 20.000000 ymin = -1.500000 ymax = 1.500000 tmin = 0.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = sequence zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 500 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # Use mode sequence &sequ # Select user defined functions with parameters a, b &fu(x)=cos(a*x)*exp(b*x) # Draw 1st instance of sequence &ptrad=1.5 &a=0.3;b=-0.02 1;fu(n) # Draw 2nd instance of sequence &ptrad=1 &a=0.4;b=0.01 2;fu(n) geg-2.0.9/examples/lissajous_tangent.geg0000644000175000017500000000415512716014740020527 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -1.500000 xmax = 1.500000 ymin = -1.200000 ymax = 1.200000 tmin = 0.000000 tmax = 6.283185 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = parametric zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 500 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # use parametric mode ¶m # define Lissajous type functions &fa(p)=cos(3*p) &fb(p)=sin(4*p) # draw the curve x=fa(t),y=fb(t) in the range [0;2*pi] &tmin=0 &tmax=2*pi x=fa(t);y=fb(t) # introduce the tangent function to (fa,fb) # explicitly fu(t) = fa(c) + fa'(c) * (t-c) &fu=tgt_c_fa &fv=tgt_c_fb # draw the point (fa(0.3*pi),fb(0.3*pi)) (circle as parametric curve !) &r=0.01 &c=0.3*pi x=fa(c)+r*cos(t);y=fb(c)+r*sin(t) # draw the tangent at c=0.3*pi ¶m &c=0.3*pi x=fu(t);y=fv(t) geg-2.0.9/examples/iterative.geg0000644000175000017500000000360312714570167016774 0ustar georgeskgeorgesk# geg data file # all options can be changed within geg toolbar = pictures_and_text tooltips = on print_as = pdf xmin = -1.000000 xmax = 10.000000 ymin = 1.400000 ymax = 2.100000 tmin = 1.000000 tmax = 1.000000 amin = 0.000000 amax = 6.283185 graph_width = 1024 graph_height = 768 axes_lw = 0.4 grid_lw = 0.3 box_lw = 0.4 curves_lw = 0.5 point_radius = 1 coordinates_type = decimal mode_type = sequence zoom_xy = 3 zoom_factor = 0.100000 notch_spacing = 45 minimum_resolution = 0.000100 maximum_resolution = 10000.000000 interpolation_factor = 4 maximum_formulas = 500 do_Ox = 1 do_Oy = 1 do_xval = 1 do_yval = 1 do_color = 1 do_box = 0 # positions: 0=top left, 1=top right, 2=bottom left, 3=bottom right text_position = 2 formula_size = 20 number_size = 12 utility_editor = emacs utility_eps_viewer = evince utility_pdf_viewer = evince utility_eps_to_pdf = ps2pdf -dEPSCrop -dPDFSETTINGS=/prepress utility_svg_viewer = inkscape utility_eps_to_svg = eps2svg color[0] = { 1.000000, 1.000000, 1.000000 } color[1] = { 0.500000, 0.600000, 0.700000 } color[2] = { 0.800000, 0.700000, 0.600000 } color[3] = { 0.800000, 0.800000, 0.800000 } color[4] = { 0.200000, 0.800000, 0.400000 } color[5] = { 0.500000, 0.500000, 0.500000 } color[6] = { 0.000000, 0.000000, 0.000000 } color[7] = { 0.800000, 0.000000, 0.000000 } color[8] = { 0.000000, 0.000000, 0.800000 } color[9] = { 0.000000, 0.800000, 0.000000 } color[10] = { 0.800000, 0.800000, 0.000000 } color[11] = { 0.800000, 0.000000, 0.800000 } color[12] = { 0.000000, 0.800000, 0.800000 } color[13] = { 0.400000, 0.400000, 0.400000 } color[14] = { 0.000000, 0.000000, 0.000000 } end_parameters # Formulas # draw horizontal line y=c=(1+sqrt(5))/2 &cart &c=(1+sqrt(5))/2 c # Mode sequence &sequ # iterative sequence u_{n+1} = 1+1/u_n &nmin=1 &u=1 u=1+1/u # view convergence to a=(1+sqrt(5))/2 in inverse logarithmic scale &nmin=1 &u=1 u=1+1/u;d=ln(abs(u-c));c+0.1/d geg-2.0.9/autom4te.cache/0000755000175000017500000000000012735237217015277 5ustar georgeskgeorgeskgeg-2.0.9/autom4te.cache/requests0000644000175000017500000001766412735237217017113 0ustar georgeskgeorgesk# This file was generated by Autom4te Sat Mar 26 18:08:30 UTC 2016. # It contains the lists of macros which have been traced. # It can be safely removed. @request = ( bless( [ '0', 1, [ '/usr/share/autoconf' ], [ '/usr/share/autoconf/autoconf/autoconf.m4f', '-', '/usr/share/aclocal-1.15/internal/ac-config-macro-dirs.m4', '/usr/share/aclocal/gtk-2.0.m4', '/usr/share/aclocal/pkg.m4', '/usr/share/aclocal-1.15/amversion.m4', '/usr/share/aclocal-1.15/auxdir.m4', '/usr/share/aclocal-1.15/cond.m4', '/usr/share/aclocal-1.15/depend.m4', '/usr/share/aclocal-1.15/depout.m4', '/usr/share/aclocal-1.15/init.m4', '/usr/share/aclocal-1.15/install-sh.m4', '/usr/share/aclocal-1.15/lead-dot.m4', '/usr/share/aclocal-1.15/maintainer.m4', '/usr/share/aclocal-1.15/make.m4', '/usr/share/aclocal-1.15/missing.m4', '/usr/share/aclocal-1.15/obsolete.m4', '/usr/share/aclocal-1.15/options.m4', '/usr/share/aclocal-1.15/prog-cc-c-o.m4', '/usr/share/aclocal-1.15/runlog.m4', '/usr/share/aclocal-1.15/sanity.m4', '/usr/share/aclocal-1.15/silent.m4', '/usr/share/aclocal-1.15/strip.m4', '/usr/share/aclocal-1.15/substnot.m4', '/usr/share/aclocal-1.15/tar.m4', 'configure.ac' ], { '_AM_AUTOCONF_VERSION' => 1, 'AM_CONFIG_HEADER' => 1, 'AM_INIT_AUTOMAKE' => 1, '_AM_SUBST_NOTMAKE' => 1, '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, 'AC_DEFUN' => 1, 'PKG_INSTALLDIR' => 1, '_m4_warn' => 1, 'AM_RUN_LOG' => 1, 'AM_SUBST_NOTMAKE' => 1, 'PKG_CHECK_MODULES' => 1, '_AM_SET_OPTION' => 1, 'PKG_NOARCH_INSTALLDIR' => 1, 'AM_AUX_DIR_EXPAND' => 1, '_PKG_SHORT_ERRORS_SUPPORTED' => 1, 'AM_MAINTAINER_MODE' => 1, 'AM_AUTOMAKE_VERSION' => 1, 'include' => 1, 'AM_PATH_GTK_2_0' => 1, 'AM_PROG_CC_STDC' => 1, 'm4_pattern_forbid' => 1, 'AM_MISSING_PROG' => 1, 'PKG_CHECK_VAR' => 1, 'AM_SET_LEADING_DOT' => 1, '_AM_PROG_TAR' => 1, 'AC_DEFUN_ONCE' => 1, '_AC_AM_CONFIG_HEADER_HOOK' => 1, 'AC_CONFIG_MACRO_DIR' => 1, 'm4_include' => 1, 'AM_MISSING_HAS_RUN' => 1, 'AM_C_PROTOTYPES' => 1, 'PKG_PROG_PKG_CONFIG' => 1, '_AM_CONFIG_MACRO_DIRS' => 1, 'AM_SANITY_CHECK' => 1, 'AC_CONFIG_MACRO_DIR_TRACE' => 1, '_AM_SET_OPTIONS' => 1, 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, 'AM_SET_DEPDIR' => 1, 'AM_SILENT_RULES' => 1, '_AM_IF_OPTION' => 1, '_AM_MANGLE_OPTION' => 1, 'm4_pattern_allow' => 1, 'PKG_CHECK_EXISTS' => 1, 'AM_PROG_INSTALL_STRIP' => 1, '_AM_DEPENDENCIES' => 1, 'AU_DEFUN' => 1, 'AM_MAKE_INCLUDE' => 1, '_AM_PROG_CC_C_O' => 1, 'AM_PROG_INSTALL_SH' => 1, 'AM_CONDITIONAL' => 1, 'AM_DEP_TRACK' => 1, 'PKG_CHECK_MODULES_STATIC' => 1, 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, 'fp_C_PROTOTYPES' => 1, 'AM_PROG_CC_C_O' => 1 } ], 'Autom4te::Request' ), bless( [ '1', 1, [ '/usr/share/autoconf' ], [ '/usr/share/autoconf/autoconf/autoconf.m4f', 'aclocal.m4', 'configure.ac' ], { 'AM_NLS' => 1, 'AM_PROG_F77_C_O' => 1, 'AC_FC_SRCEXT' => 1, 'AC_FC_PP_SRCEXT' => 1, 'AM_PROG_MOC' => 1, 'AC_CANONICAL_TARGET' => 1, 'AM_POT_TOOLS' => 1, 'AM_INIT_AUTOMAKE' => 1, 'AC_FC_PP_DEFINE' => 1, 'AC_INIT' => 1, '_AM_SUBST_NOTMAKE' => 1, 'AC_CONFIG_AUX_DIR' => 1, 'AM_MAKEFILE_INCLUDE' => 1, '_m4_warn' => 1, 'AC_REQUIRE_AUX_FILE' => 1, 'AM_ENABLE_MULTILIB' => 1, '_AM_COND_IF' => 1, 'AC_CONFIG_LINKS' => 1, 'AM_EXTRA_RECURSIVE_TARGETS' => 1, 'AM_AUTOMAKE_VERSION' => 1, 'AM_MAINTAINER_MODE' => 1, 'AC_CONFIG_LIBOBJ_DIR' => 1, 'include' => 1, 'AC_CANONICAL_BUILD' => 1, 'AH_OUTPUT' => 1, 'LT_INIT' => 1, 'AC_FC_FREEFORM' => 1, 'AM_PROG_CXX_C_O' => 1, 'LT_SUPPORTED_TAG' => 1, 'AM_PROG_LIBTOOL' => 1, 'm4_pattern_forbid' => 1, 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, '_AM_MAKEFILE_INCLUDE' => 1, '_AM_COND_ELSE' => 1, 'AC_CONFIG_FILES' => 1, 'm4_include' => 1, 'AM_PROG_FC_C_O' => 1, 'AM_PROG_MKDIR_P' => 1, 'AM_SILENT_RULES' => 1, 'sinclude' => 1, '_LT_AC_TAGCONFIG' => 1, 'AC_SUBST_TRACE' => 1, 'AC_CANONICAL_SYSTEM' => 1, 'm4_pattern_allow' => 1, 'AC_LIBSOURCE' => 1, 'AC_CONFIG_HEADERS' => 1, 'AM_PROG_AR' => 1, 'AC_PROG_LIBTOOL' => 1, 'AC_CANONICAL_HOST' => 1, 'AM_PATH_GUILE' => 1, 'AM_CONDITIONAL' => 1, 'AC_DEFINE_TRACE_LITERAL' => 1, 'AC_SUBST' => 1, '_AM_COND_ENDIF' => 1, 'AC_CONFIG_SUBDIRS' => 1, 'm4_sinclude' => 1, 'AM_XGETTEXT_OPTION' => 1, 'AM_PROG_CC_C_O' => 1, 'AM_GNU_GETTEXT' => 1, 'LT_CONFIG_LTDL_DIR' => 1 } ], 'Autom4te::Request' ) ); geg-2.0.9/autom4te.cache/traces.00000644000175000017500000016102712735237213016644 0ustar georgeskgeorgeskm4trace:/usr/share/aclocal/gtk-2.0.m4:8: -1- 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_REQUIRE([PKG_PROG_PKG_CONFIG]) PKG_PROG_PKG_CONFIG([0.7]) 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; fclose (fopen ("conf.gtktest", "w")); /* 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 ]) m4trace:/usr/share/aclocal/pkg.m4:58: -1- 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 ]) m4trace:/usr/share/aclocal/pkg.m4:92: -1- 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]) m4trace:/usr/share/aclocal/pkg.m4:121: -1- 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 ]) m4trace:/usr/share/aclocal/pkg.m4:139: -1- 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 ]) m4trace:/usr/share/aclocal/pkg.m4:208: -1- 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 ]) m4trace:/usr/share/aclocal/pkg.m4:226: -1- 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]) ]) m4trace:/usr/share/aclocal/pkg.m4:248: -1- 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]) ]) m4trace:/usr/share/aclocal/pkg.m4:267: -1- 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 ]) m4trace:/usr/share/aclocal-1.15/amversion.m4:14: -1- AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.15' 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.15], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) m4trace:/usr/share/aclocal-1.15/amversion.m4:33: -1- AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.15])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) m4trace:/usr/share/aclocal-1.15/auxdir.m4:47: -1- 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` ]) m4trace:/usr/share/aclocal-1.15/cond.m4:12: -1- 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])]) m4trace:/usr/share/aclocal-1.15/depend.m4:26: -1- 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]) ]) m4trace:/usr/share/aclocal-1.15/depend.m4:163: -1- AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) m4trace:/usr/share/aclocal-1.15/depend.m4:171: -1- 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 ]) m4trace:/usr/share/aclocal-1.15/depout.m4:12: -1- 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. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ]) m4trace:/usr/share/aclocal-1.15/depout.m4:71: -1- AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) m4trace:/usr/share/aclocal-1.15/init.m4:29: -1- AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])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_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([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 ]) 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. ]) m4trace:/usr/share/aclocal-1.15/init.m4:186: -1- 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]) m4trace:/usr/share/aclocal-1.15/install-sh.m4:11: -1- 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])]) m4trace:/usr/share/aclocal-1.15/lead-dot.m4:10: -1- 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])]) m4trace:/usr/share/aclocal-1.15/maintainer.m4:16: -1- AC_DEFUN([AM_MAINTAINER_MODE], [m4_case(m4_default([$1], [disable]), [enable], [m4_define([am_maintainer_other], [disable])], [disable], [m4_define([am_maintainer_other], [enable])], [m4_define([am_maintainer_other], [enable]) m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) dnl maintainer-mode's default is 'disable' unless 'enable' is passed AC_ARG_ENABLE([maintainer-mode], [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], am_maintainer_other[ make rules and dependencies not useful (and sometimes confusing) to the casual installer])], [USE_MAINTAINER_MODE=$enableval], [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) AC_MSG_RESULT([$USE_MAINTAINER_MODE]) AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) MAINT=$MAINTAINER_MODE_TRUE AC_SUBST([MAINT])dnl ]) m4trace:/usr/share/aclocal-1.15/make.m4:12: -1- AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) m4trace:/usr/share/aclocal-1.15/missing.m4:11: -1- AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) m4trace:/usr/share/aclocal-1.15/missing.m4:20: -1- 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 case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac 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 ]) m4trace:/usr/share/aclocal-1.15/obsolete.m4:11: -1- 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($@)]) m4trace:/usr/share/aclocal-1.15/obsolete.m4:17: -1- 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'.])]) m4trace:/usr/share/aclocal-1.15/obsolete.m4:26: -1- AC_DEFUN([AM_C_PROTOTYPES], [AC_FATAL([automatic de-ANSI-fication support has been removed])]) m4trace:/usr/share/aclocal-1.15/obsolete.m4:28: -1- AU_DEFUN([fp_C_PROTOTYPES], [AM_C_PROTOTYPES]) m4trace:/usr/share/aclocal-1.15/obsolete.m4:28: -1- AC_DEFUN([fp_C_PROTOTYPES], [AC_DIAGNOSE([obsolete], [The macro `fp_C_PROTOTYPES' is obsolete. You should run autoupdate.])dnl AM_C_PROTOTYPES]) m4trace:/usr/share/aclocal-1.15/options.m4:11: -1- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) m4trace:/usr/share/aclocal-1.15/options.m4:17: -1- AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) m4trace:/usr/share/aclocal-1.15/options.m4:23: -1- AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) m4trace:/usr/share/aclocal-1.15/options.m4:29: -1- AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) m4trace:/usr/share/aclocal-1.15/prog-cc-c-o.m4:12: -1- 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])]) m4trace:/usr/share/aclocal-1.15/prog-cc-c-o.m4:47: -1- AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) m4trace:/usr/share/aclocal-1.15/runlog.m4:12: -1- 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); }]) m4trace:/usr/share/aclocal-1.15/sanity.m4:11: -1- 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 ]) m4trace:/usr/share/aclocal-1.15/silent.m4:12: -1- 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 ]) m4trace:/usr/share/aclocal-1.15/strip.m4:17: -1- 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])]) m4trace:/usr/share/aclocal-1.15/substnot.m4:12: -1- AC_DEFUN([_AM_SUBST_NOTMAKE]) m4trace:/usr/share/aclocal-1.15/substnot.m4:17: -1- AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) m4trace:/usr/share/aclocal-1.15/tar.m4:23: -1- 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]) ]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_]) m4trace:configure.ac:3: -1- m4_pattern_allow([^SHELL$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PATH_SEPARATOR$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_URL$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^exec_prefix$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^prefix$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^program_transform_name$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^bindir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sbindir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^libexecdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^datarootdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^datadir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sysconfdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sharedstatedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^localstatedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^runstatedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^includedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^oldincludedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^docdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^infodir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^htmldir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^dvidir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^pdfdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^psdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^libdir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^localedir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^mandir$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_URL$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^DEFS$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_C$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_N$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_T$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^build_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([geg], [2.0.9]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) m4trace:configure.ac:7: -1- AM_SET_CURRENT_AUTOMAKE_VERSION m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.15]) m4trace:configure.ac:7: -1- _AM_AUTOCONF_VERSION([2.69]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) m4trace:configure.ac:7: -1- _m4_warn([obsolete], [AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.], [/usr/share/aclocal-1.15/init.m4:29: AM_INIT_AUTOMAKE is expanded from... configure.ac:7: the top level]) m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) m4trace:configure.ac:7: -1- _AM_IF_OPTION([no-define], [], [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])]) m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-define]) m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) m4trace:configure.ac:7: -1- AM_SANITY_CHECK m4trace:configure.ac:7: -1- AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) m4trace:configure.ac:7: -1- AM_MISSING_HAS_RUN m4trace:configure.ac:7: -1- AM_AUX_DIR_EXPAND m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOCONF], [autoconf]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) m4trace:configure.ac:7: -1- AM_MISSING_PROG([AUTOHEADER], [autoheader]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) m4trace:configure.ac:7: -1- AM_MISSING_PROG([MAKEINFO], [makeinfo]) m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) m4trace:configure.ac:7: -1- AM_PROG_INSTALL_SH m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) m4trace:configure.ac:7: -1- AM_PROG_INSTALL_STRIP m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) m4trace:configure.ac:7: -1- AM_SET_LEADING_DOT m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-ustar]) m4trace:configure.ac:7: -1- _AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])]) m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([tar-pax]) m4trace:configure.ac:7: -1- _AM_PROG_TAR([v7]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) m4trace:configure.ac:7: -1- _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 ]) m4trace:configure.ac:7: -2- _AM_MANGLE_OPTION([no-dependencies]) m4trace:configure.ac:7: -1- AM_SILENT_RULES m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_V$]) m4trace:configure.ac:7: -1- AM_SUBST_NOTMAKE([AM_V]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_V]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_V$]) m4trace:configure.ac:7: -1- AM_SUBST_NOTMAKE([AM_DEFAULT_V]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_BACKSLASH$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) m4trace:configure.ac:10: -1- AM_CONFIG_HEADER([config.h]) m4trace:configure.ac:10: -1- _m4_warn([obsolete], ['AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead.], [/usr/share/aclocal-1.15/obsolete.m4:11: AM_CONFIG_HEADER is expanded from... configure.ac:10: the top level]) m4trace:configure.ac:12: -1- AM_MAINTAINER_MODE m4trace:configure.ac:12: -1- AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINTAINER_MODE_TRUE$]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINTAINER_MODE_FALSE$]) m4trace:configure.ac:12: -1- _AM_SUBST_NOTMAKE([MAINTAINER_MODE_TRUE]) m4trace:configure.ac:12: -1- _AM_SUBST_NOTMAKE([MAINTAINER_MODE_FALSE]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINT$]) m4trace:configure.ac:17: -1- m4_pattern_allow([^AWK$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) m4trace:configure.ac:18: -1- _AM_PROG_CC_C_O m4trace:configure.ac:18: -1- AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) m4trace:configure.ac:18: -1- _AM_DEPENDENCIES([CC]) m4trace:configure.ac:18: -1- AM_SET_DEPDIR m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) m4trace:configure.ac:18: -1- AM_OUTPUT_DEPENDENCY_COMMANDS m4trace:configure.ac:18: -1- AM_MAKE_INCLUDE m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) m4trace:configure.ac:18: -1- AM_DEP_TRACK m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) m4trace:configure.ac:20: -1- m4_pattern_allow([^LN_S$]) m4trace:configure.ac:22: -1- m4_pattern_allow([^CFLAGS$]) m4trace:configure.ac:23: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:24: -1- m4_pattern_allow([^LDFLAGS$]) m4trace:configure.ac:33: -1- AM_PATH_GTK_2_0([2.0.0], [], [Gtk2 was not found]) m4trace:configure.ac:33: -1- PKG_PROG_PKG_CONFIG m4trace:configure.ac:33: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- PKG_PROG_PKG_CONFIG([0.7]) m4trace:configure.ac:33: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. You should run autoupdate.], [../../lib/autoconf/general.m4:2775: AC_TRY_RUN is expanded from... /usr/share/aclocal/gtk-2.0.m4:8: AM_PATH_GTK_2_0 is expanded from... configure.ac:33: the top level]) m4trace:configure.ac:33: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. You should run autoupdate.], [../../lib/autoconf/general.m4:2698: AC_TRY_LINK is expanded from... /usr/share/aclocal/gtk-2.0.m4:8: AM_PATH_GTK_2_0 is expanded from... configure.ac:33: the top level]) m4trace:configure.ac:33: -1- m4_pattern_allow([^GTK_CFLAGS$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^GTK_LIBS$]) m4trace:configure.ac:37: -1- m4_pattern_allow([^HAVE_LIBX11$]) m4trace:configure.ac:38: -1- m4_pattern_allow([^HAVE_LIBXEXT$]) m4trace:configure.ac:39: -1- m4_pattern_allow([^HAVE_LIBM$]) m4trace:configure.ac:43: -1- _m4_warn([obsolete], [The macro `AC_STDC_HEADERS' is obsolete. You should run autoupdate.], [../../lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from... configure.ac:43: the top level]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPP$]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPP$]) m4trace:configure.ac:43: -1- m4_pattern_allow([^GREP$]) m4trace:configure.ac:43: -1- m4_pattern_allow([^EGREP$]) m4trace:configure.ac:43: -1- m4_pattern_allow([^STDC_HEADERS$]) m4trace:configure.ac:44: -1- m4_pattern_allow([^HAVE_FCNTL_H$]) m4trace:configure.ac:47: -1- m4_pattern_allow([^const$]) m4trace:configure.ac:50: -1- m4_pattern_allow([^HAVE_STRDUP$]) m4trace:configure.ac:52: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments. You should run autoupdate.], []) m4trace:configure.ac:52: -1- m4_pattern_allow([^LIB@&t@OBJS$]) m4trace:configure.ac:52: -1- m4_pattern_allow([^LTLIBOBJS$]) m4trace:configure.ac:52: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) m4trace:configure.ac:52: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) m4trace:configure.ac:52: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) m4trace:configure.ac:52: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) m4trace:configure.ac:52: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) m4trace:configure.ac:52: -1- _AC_AM_CONFIG_HEADER_HOOK(["$ac_file"]) m4trace:configure.ac:52: -1- _AM_OUTPUT_DEPENDENCY_COMMANDS geg-2.0.9/autom4te.cache/traces.10000644000175000017500000007423312735237217016653 0ustar georgeskgeorgeskm4trace:configure.ac:3: -1- AC_INIT([src]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?A[CHUM]_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([_AC_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS']) m4trace:configure.ac:3: -1- m4_pattern_allow([^AS_FLAGS$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?m4_]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^dnl$]) m4trace:configure.ac:3: -1- m4_pattern_forbid([^_?AS_]) m4trace:configure.ac:3: -1- AC_SUBST([SHELL]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([SHELL]) m4trace:configure.ac:3: -1- m4_pattern_allow([^SHELL$]) m4trace:configure.ac:3: -1- AC_SUBST([PATH_SEPARATOR]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PATH_SEPARATOR]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PATH_SEPARATOR$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_NAME]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_TARNAME]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_VERSION]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_STRING]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_BUGREPORT]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.ac:3: -1- AC_SUBST([PACKAGE_URL], [m4_ifdef([AC_PACKAGE_URL], ['AC_PACKAGE_URL'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([PACKAGE_URL]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_URL$]) m4trace:configure.ac:3: -1- AC_SUBST([exec_prefix], [NONE]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([exec_prefix]) m4trace:configure.ac:3: -1- m4_pattern_allow([^exec_prefix$]) m4trace:configure.ac:3: -1- AC_SUBST([prefix], [NONE]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([prefix]) m4trace:configure.ac:3: -1- m4_pattern_allow([^prefix$]) m4trace:configure.ac:3: -1- AC_SUBST([program_transform_name], [s,x,x,]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([program_transform_name]) m4trace:configure.ac:3: -1- m4_pattern_allow([^program_transform_name$]) m4trace:configure.ac:3: -1- AC_SUBST([bindir], ['${exec_prefix}/bin']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([bindir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^bindir$]) m4trace:configure.ac:3: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([sbindir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sbindir$]) m4trace:configure.ac:3: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([libexecdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^libexecdir$]) m4trace:configure.ac:3: -1- AC_SUBST([datarootdir], ['${prefix}/share']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([datarootdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^datarootdir$]) m4trace:configure.ac:3: -1- AC_SUBST([datadir], ['${datarootdir}']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([datadir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^datadir$]) m4trace:configure.ac:3: -1- AC_SUBST([sysconfdir], ['${prefix}/etc']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([sysconfdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sysconfdir$]) m4trace:configure.ac:3: -1- AC_SUBST([sharedstatedir], ['${prefix}/com']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([sharedstatedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^sharedstatedir$]) m4trace:configure.ac:3: -1- AC_SUBST([localstatedir], ['${prefix}/var']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([localstatedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^localstatedir$]) m4trace:configure.ac:3: -1- AC_SUBST([runstatedir], ['${localstatedir}/run']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([runstatedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^runstatedir$]) m4trace:configure.ac:3: -1- AC_SUBST([includedir], ['${prefix}/include']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([includedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^includedir$]) m4trace:configure.ac:3: -1- AC_SUBST([oldincludedir], ['/usr/include']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([oldincludedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^oldincludedir$]) m4trace:configure.ac:3: -1- AC_SUBST([docdir], [m4_ifset([AC_PACKAGE_TARNAME], ['${datarootdir}/doc/${PACKAGE_TARNAME}'], ['${datarootdir}/doc/${PACKAGE}'])]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([docdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^docdir$]) m4trace:configure.ac:3: -1- AC_SUBST([infodir], ['${datarootdir}/info']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([infodir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^infodir$]) m4trace:configure.ac:3: -1- AC_SUBST([htmldir], ['${docdir}']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([htmldir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^htmldir$]) m4trace:configure.ac:3: -1- AC_SUBST([dvidir], ['${docdir}']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([dvidir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^dvidir$]) m4trace:configure.ac:3: -1- AC_SUBST([pdfdir], ['${docdir}']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([pdfdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^pdfdir$]) m4trace:configure.ac:3: -1- AC_SUBST([psdir], ['${docdir}']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([psdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^psdir$]) m4trace:configure.ac:3: -1- AC_SUBST([libdir], ['${exec_prefix}/lib']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([libdir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^libdir$]) m4trace:configure.ac:3: -1- AC_SUBST([localedir], ['${datarootdir}/locale']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([localedir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^localedir$]) m4trace:configure.ac:3: -1- AC_SUBST([mandir], ['${datarootdir}/man']) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([mandir]) m4trace:configure.ac:3: -1- m4_pattern_allow([^mandir$]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_NAME$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */ @%:@undef PACKAGE_NAME]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_TARNAME$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */ @%:@undef PACKAGE_TARNAME]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_VERSION$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */ @%:@undef PACKAGE_VERSION]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_STRING$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */ @%:@undef PACKAGE_STRING]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_BUGREPORT$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */ @%:@undef PACKAGE_BUGREPORT]) m4trace:configure.ac:3: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_URL]) m4trace:configure.ac:3: -1- m4_pattern_allow([^PACKAGE_URL$]) m4trace:configure.ac:3: -1- AH_OUTPUT([PACKAGE_URL], [/* Define to the home page for this package. */ @%:@undef PACKAGE_URL]) m4trace:configure.ac:3: -1- AC_SUBST([DEFS]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([DEFS]) m4trace:configure.ac:3: -1- m4_pattern_allow([^DEFS$]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_C]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([ECHO_C]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_C$]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_N]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([ECHO_N]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_N$]) m4trace:configure.ac:3: -1- AC_SUBST([ECHO_T]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([ECHO_T]) m4trace:configure.ac:3: -1- m4_pattern_allow([^ECHO_T$]) m4trace:configure.ac:3: -1- AC_SUBST([LIBS]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([LIBS]) m4trace:configure.ac:3: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:3: -1- AC_SUBST([build_alias]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([build_alias]) m4trace:configure.ac:3: -1- m4_pattern_allow([^build_alias$]) m4trace:configure.ac:3: -1- AC_SUBST([host_alias]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([host_alias]) m4trace:configure.ac:3: -1- m4_pattern_allow([^host_alias$]) m4trace:configure.ac:3: -1- AC_SUBST([target_alias]) m4trace:configure.ac:3: -1- AC_SUBST_TRACE([target_alias]) m4trace:configure.ac:3: -1- m4_pattern_allow([^target_alias$]) m4trace:configure.ac:7: -1- AM_INIT_AUTOMAKE([geg], [2.0.9]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_[A-Z]+FLAGS$]) m4trace:configure.ac:7: -1- AM_AUTOMAKE_VERSION([1.15]) m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_PROGRAM]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_PROGRAM]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_PROGRAM$]) m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_SCRIPT]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_SCRIPT]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_SCRIPT$]) m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_DATA]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_DATA]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_DATA$]) m4trace:configure.ac:7: -1- AC_SUBST([am__isrc], [' -I$(srcdir)']) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__isrc]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__isrc$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([am__isrc]) m4trace:configure.ac:7: -1- AC_SUBST([CYGPATH_W]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([CYGPATH_W]) m4trace:configure.ac:7: -1- m4_pattern_allow([^CYGPATH_W$]) m4trace:configure.ac:7: -1- _m4_warn([obsolete], [AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.], [aclocal.m4:899: AM_INIT_AUTOMAKE is expanded from... configure.ac:7: the top level]) m4trace:configure.ac:7: -1- AC_SUBST([PACKAGE], [geg]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([PACKAGE]) m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) m4trace:configure.ac:7: -1- AC_SUBST([VERSION], [2.0.9]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([VERSION]) m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE]) m4trace:configure.ac:7: -1- m4_pattern_allow([^PACKAGE$]) m4trace:configure.ac:7: -1- AH_OUTPUT([PACKAGE], [/* Name of package */ @%:@undef PACKAGE]) m4trace:configure.ac:7: -1- AC_DEFINE_TRACE_LITERAL([VERSION]) m4trace:configure.ac:7: -1- m4_pattern_allow([^VERSION$]) m4trace:configure.ac:7: -1- AH_OUTPUT([VERSION], [/* Version number of package */ @%:@undef VERSION]) m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([missing]) m4trace:configure.ac:7: -1- AC_SUBST([ACLOCAL]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([ACLOCAL]) m4trace:configure.ac:7: -1- m4_pattern_allow([^ACLOCAL$]) m4trace:configure.ac:7: -1- AC_SUBST([AUTOCONF]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOCONF]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOCONF$]) m4trace:configure.ac:7: -1- AC_SUBST([AUTOMAKE]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOMAKE]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOMAKE$]) m4trace:configure.ac:7: -1- AC_SUBST([AUTOHEADER]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AUTOHEADER]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AUTOHEADER$]) m4trace:configure.ac:7: -1- AC_SUBST([MAKEINFO]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MAKEINFO]) m4trace:configure.ac:7: -1- m4_pattern_allow([^MAKEINFO$]) m4trace:configure.ac:7: -1- AC_SUBST([install_sh]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([install_sh]) m4trace:configure.ac:7: -1- m4_pattern_allow([^install_sh$]) m4trace:configure.ac:7: -1- AC_SUBST([STRIP]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([STRIP]) m4trace:configure.ac:7: -1- m4_pattern_allow([^STRIP$]) m4trace:configure.ac:7: -1- AC_SUBST([INSTALL_STRIP_PROGRAM]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([INSTALL_STRIP_PROGRAM]) m4trace:configure.ac:7: -1- m4_pattern_allow([^INSTALL_STRIP_PROGRAM$]) m4trace:configure.ac:7: -1- AC_REQUIRE_AUX_FILE([install-sh]) m4trace:configure.ac:7: -1- AC_SUBST([MKDIR_P]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([MKDIR_P]) m4trace:configure.ac:7: -1- m4_pattern_allow([^MKDIR_P$]) m4trace:configure.ac:7: -1- AC_SUBST([mkdir_p], ['$(MKDIR_P)']) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([mkdir_p]) m4trace:configure.ac:7: -1- m4_pattern_allow([^mkdir_p$]) m4trace:configure.ac:7: -1- AC_SUBST([AWK]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AWK]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AWK$]) m4trace:configure.ac:7: -1- AC_SUBST([SET_MAKE]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([SET_MAKE]) m4trace:configure.ac:7: -1- m4_pattern_allow([^SET_MAKE$]) m4trace:configure.ac:7: -1- AC_SUBST([am__leading_dot]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__leading_dot]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__leading_dot$]) m4trace:configure.ac:7: -1- AC_SUBST([AMTAR], ['$${TAR-tar}']) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AMTAR]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AMTAR$]) m4trace:configure.ac:7: -1- AC_SUBST([am__tar]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__tar]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__tar$]) m4trace:configure.ac:7: -1- AC_SUBST([am__untar]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([am__untar]) m4trace:configure.ac:7: -1- m4_pattern_allow([^am__untar$]) m4trace:configure.ac:7: -1- AM_SILENT_RULES m4trace:configure.ac:7: -1- AC_SUBST([AM_V]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AM_V]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_V$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_V]) m4trace:configure.ac:7: -1- AC_SUBST([AM_DEFAULT_V]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AM_DEFAULT_V]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_V$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_DEFAULT_V]) m4trace:configure.ac:7: -1- AC_SUBST([AM_DEFAULT_VERBOSITY]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AM_DEFAULT_VERBOSITY]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_DEFAULT_VERBOSITY$]) m4trace:configure.ac:7: -1- AC_SUBST([AM_BACKSLASH]) m4trace:configure.ac:7: -1- AC_SUBST_TRACE([AM_BACKSLASH]) m4trace:configure.ac:7: -1- m4_pattern_allow([^AM_BACKSLASH$]) m4trace:configure.ac:7: -1- _AM_SUBST_NOTMAKE([AM_BACKSLASH]) m4trace:configure.ac:10: -1- _m4_warn([obsolete], ['AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead.], [aclocal.m4:1245: AM_CONFIG_HEADER is expanded from... configure.ac:10: the top level]) m4trace:configure.ac:10: -1- AC_CONFIG_HEADERS([config.h]) m4trace:configure.ac:12: -1- AM_MAINTAINER_MODE m4trace:configure.ac:12: -1- AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) m4trace:configure.ac:12: -1- AC_SUBST([MAINTAINER_MODE_TRUE]) m4trace:configure.ac:12: -1- AC_SUBST_TRACE([MAINTAINER_MODE_TRUE]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINTAINER_MODE_TRUE$]) m4trace:configure.ac:12: -1- AC_SUBST([MAINTAINER_MODE_FALSE]) m4trace:configure.ac:12: -1- AC_SUBST_TRACE([MAINTAINER_MODE_FALSE]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINTAINER_MODE_FALSE$]) m4trace:configure.ac:12: -1- _AM_SUBST_NOTMAKE([MAINTAINER_MODE_TRUE]) m4trace:configure.ac:12: -1- _AM_SUBST_NOTMAKE([MAINTAINER_MODE_FALSE]) m4trace:configure.ac:12: -1- AC_SUBST([MAINT]) m4trace:configure.ac:12: -1- AC_SUBST_TRACE([MAINT]) m4trace:configure.ac:12: -1- m4_pattern_allow([^MAINT$]) m4trace:configure.ac:17: -1- AC_SUBST([AWK]) m4trace:configure.ac:17: -1- AC_SUBST_TRACE([AWK]) m4trace:configure.ac:17: -1- m4_pattern_allow([^AWK$]) m4trace:configure.ac:18: -1- AC_SUBST([CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- AC_SUBST([CFLAGS]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CFLAGS]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CFLAGS$]) m4trace:configure.ac:18: -1- AC_SUBST([LDFLAGS]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LDFLAGS]) m4trace:configure.ac:18: -1- m4_pattern_allow([^LDFLAGS$]) m4trace:configure.ac:18: -1- AC_SUBST([LIBS]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([LIBS]) m4trace:configure.ac:18: -1- m4_pattern_allow([^LIBS$]) m4trace:configure.ac:18: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CPPFLAGS]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:18: -1- AC_SUBST([CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- AC_SUBST([CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- AC_SUBST([CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- AC_SUBST([CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CC$]) m4trace:configure.ac:18: -1- AC_SUBST([ac_ct_CC]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([ac_ct_CC]) m4trace:configure.ac:18: -1- m4_pattern_allow([^ac_ct_CC$]) m4trace:configure.ac:18: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([EXEEXT]) m4trace:configure.ac:18: -1- m4_pattern_allow([^EXEEXT$]) m4trace:configure.ac:18: -1- AC_SUBST([OBJEXT], [$ac_cv_objext]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([OBJEXT]) m4trace:configure.ac:18: -1- m4_pattern_allow([^OBJEXT$]) m4trace:configure.ac:18: -1- AC_REQUIRE_AUX_FILE([compile]) m4trace:configure.ac:18: -1- AC_SUBST([DEPDIR], ["${am__leading_dot}deps"]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([DEPDIR]) m4trace:configure.ac:18: -1- m4_pattern_allow([^DEPDIR$]) m4trace:configure.ac:18: -1- AC_SUBST([am__include]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__include]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__include$]) m4trace:configure.ac:18: -1- AC_SUBST([am__quote]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__quote]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__quote$]) m4trace:configure.ac:18: -1- AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_TRUE]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_TRUE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_TRUE$]) m4trace:configure.ac:18: -1- AC_SUBST([AMDEP_FALSE]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEP_FALSE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEP_FALSE$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_TRUE]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEP_FALSE]) m4trace:configure.ac:18: -1- AC_SUBST([AMDEPBACKSLASH]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([AMDEPBACKSLASH]) m4trace:configure.ac:18: -1- m4_pattern_allow([^AMDEPBACKSLASH$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([AMDEPBACKSLASH]) m4trace:configure.ac:18: -1- AC_SUBST([am__nodep]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__nodep]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__nodep$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__nodep]) m4trace:configure.ac:18: -1- AC_SUBST([CCDEPMODE], [depmode=$am_cv_CC_dependencies_compiler_type]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([CCDEPMODE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^CCDEPMODE$]) m4trace:configure.ac:18: -1- AM_CONDITIONAL([am__fastdepCC], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3]) m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_TRUE]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_TRUE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_TRUE$]) m4trace:configure.ac:18: -1- AC_SUBST([am__fastdepCC_FALSE]) m4trace:configure.ac:18: -1- AC_SUBST_TRACE([am__fastdepCC_FALSE]) m4trace:configure.ac:18: -1- m4_pattern_allow([^am__fastdepCC_FALSE$]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_TRUE]) m4trace:configure.ac:18: -1- _AM_SUBST_NOTMAKE([am__fastdepCC_FALSE]) m4trace:configure.ac:20: -1- AC_SUBST([LN_S], [$as_ln_s]) m4trace:configure.ac:20: -1- AC_SUBST_TRACE([LN_S]) m4trace:configure.ac:20: -1- m4_pattern_allow([^LN_S$]) m4trace:configure.ac:22: -1- AC_SUBST([CFLAGS]) m4trace:configure.ac:22: -1- AC_SUBST_TRACE([CFLAGS]) m4trace:configure.ac:22: -1- m4_pattern_allow([^CFLAGS$]) m4trace:configure.ac:23: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.ac:23: -1- AC_SUBST_TRACE([CPPFLAGS]) m4trace:configure.ac:23: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:24: -1- AC_SUBST([LDFLAGS]) m4trace:configure.ac:24: -1- AC_SUBST_TRACE([LDFLAGS]) m4trace:configure.ac:24: -1- m4_pattern_allow([^LDFLAGS$]) m4trace:configure.ac:33: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG_PATH]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG_PATH]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG_PATH]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_PATH$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG_LIBDIR]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG_LIBDIR]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG_LIBDIR$]) m4trace:configure.ac:33: -1- AC_SUBST([PKG_CONFIG]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([PKG_CONFIG]) m4trace:configure.ac:33: -1- m4_pattern_allow([^PKG_CONFIG$]) m4trace:configure.ac:33: -1- _m4_warn([obsolete], [The macro `AC_TRY_RUN' is obsolete. You should run autoupdate.], [../../lib/autoconf/general.m4:2775: AC_TRY_RUN is expanded from... aclocal.m4:30: AM_PATH_GTK_2_0 is expanded from... configure.ac:33: the top level]) m4trace:configure.ac:33: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete. You should run autoupdate.], [../../lib/autoconf/general.m4:2698: AC_TRY_LINK is expanded from... aclocal.m4:30: AM_PATH_GTK_2_0 is expanded from... configure.ac:33: the top level]) m4trace:configure.ac:33: -1- AC_SUBST([GTK_CFLAGS]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([GTK_CFLAGS]) m4trace:configure.ac:33: -1- m4_pattern_allow([^GTK_CFLAGS$]) m4trace:configure.ac:33: -1- AC_SUBST([GTK_LIBS]) m4trace:configure.ac:33: -1- AC_SUBST_TRACE([GTK_LIBS]) m4trace:configure.ac:33: -1- m4_pattern_allow([^GTK_LIBS$]) m4trace:configure.ac:37: -1- AH_OUTPUT([HAVE_LIBX11], [/* Define to 1 if you have the `X11\' library (-lX11). */ @%:@undef HAVE_LIBX11]) m4trace:configure.ac:37: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBX11]) m4trace:configure.ac:37: -1- m4_pattern_allow([^HAVE_LIBX11$]) m4trace:configure.ac:38: -1- AH_OUTPUT([HAVE_LIBXEXT], [/* Define to 1 if you have the `Xext\' library (-lXext). */ @%:@undef HAVE_LIBXEXT]) m4trace:configure.ac:38: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBXEXT]) m4trace:configure.ac:38: -1- m4_pattern_allow([^HAVE_LIBXEXT$]) m4trace:configure.ac:39: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */ @%:@undef HAVE_LIBM]) m4trace:configure.ac:39: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM]) m4trace:configure.ac:39: -1- m4_pattern_allow([^HAVE_LIBM$]) m4trace:configure.ac:43: -1- _m4_warn([obsolete], [The macro `AC_STDC_HEADERS' is obsolete. You should run autoupdate.], [../../lib/autoconf/oldnames.m4:75: AC_STDC_HEADERS is expanded from... configure.ac:43: the top level]) m4trace:configure.ac:43: -1- AC_SUBST([CPP]) m4trace:configure.ac:43: -1- AC_SUBST_TRACE([CPP]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPP$]) m4trace:configure.ac:43: -1- AC_SUBST([CPPFLAGS]) m4trace:configure.ac:43: -1- AC_SUBST_TRACE([CPPFLAGS]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPPFLAGS$]) m4trace:configure.ac:43: -1- AC_SUBST([CPP]) m4trace:configure.ac:43: -1- AC_SUBST_TRACE([CPP]) m4trace:configure.ac:43: -1- m4_pattern_allow([^CPP$]) m4trace:configure.ac:43: -1- AC_SUBST([GREP]) m4trace:configure.ac:43: -1- AC_SUBST_TRACE([GREP]) m4trace:configure.ac:43: -1- m4_pattern_allow([^GREP$]) m4trace:configure.ac:43: -1- AC_SUBST([EGREP]) m4trace:configure.ac:43: -1- AC_SUBST_TRACE([EGREP]) m4trace:configure.ac:43: -1- m4_pattern_allow([^EGREP$]) m4trace:configure.ac:43: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS]) m4trace:configure.ac:43: -1- m4_pattern_allow([^STDC_HEADERS$]) m4trace:configure.ac:43: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */ @%:@undef STDC_HEADERS]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_FCNTL_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_FCNTL_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_TYPES_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_SYS_STAT_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDLIB_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRING_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_MEMORY_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STRINGS_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_INTTYPES_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_STDINT_H]) m4trace:configure.ac:44: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the header file. */ @%:@undef HAVE_UNISTD_H]) m4trace:configure.ac:44: -1- AC_DEFINE_TRACE_LITERAL([HAVE_FCNTL_H]) m4trace:configure.ac:44: -1- m4_pattern_allow([^HAVE_FCNTL_H$]) m4trace:configure.ac:47: -1- AC_DEFINE_TRACE_LITERAL([const]) m4trace:configure.ac:47: -1- m4_pattern_allow([^const$]) m4trace:configure.ac:47: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */ @%:@undef const]) m4trace:configure.ac:50: -1- AH_OUTPUT([HAVE_STRDUP], [/* Define to 1 if you have the `strdup\' function. */ @%:@undef HAVE_STRDUP]) m4trace:configure.ac:50: -1- AC_DEFINE_TRACE_LITERAL([HAVE_STRDUP]) m4trace:configure.ac:50: -1- m4_pattern_allow([^HAVE_STRDUP$]) m4trace:configure.ac:52: -1- AC_CONFIG_FILES([Makefile desktop/Makefile help/Makefile examples/Makefile src/Makefile src/pixmaps/Makefile po/Makefile stamp.h]) m4trace:configure.ac:52: -1- _m4_warn([obsolete], [AC_OUTPUT should be used without arguments. You should run autoupdate.], []) m4trace:configure.ac:52: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([LIB@&t@OBJS]) m4trace:configure.ac:52: -1- m4_pattern_allow([^LIB@&t@OBJS$]) m4trace:configure.ac:52: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([LTLIBOBJS]) m4trace:configure.ac:52: -1- m4_pattern_allow([^LTLIBOBJS$]) m4trace:configure.ac:52: -1- AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"]) m4trace:configure.ac:52: -1- AC_SUBST([am__EXEEXT_TRUE]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([am__EXEEXT_TRUE]) m4trace:configure.ac:52: -1- m4_pattern_allow([^am__EXEEXT_TRUE$]) m4trace:configure.ac:52: -1- AC_SUBST([am__EXEEXT_FALSE]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([am__EXEEXT_FALSE]) m4trace:configure.ac:52: -1- m4_pattern_allow([^am__EXEEXT_FALSE$]) m4trace:configure.ac:52: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_TRUE]) m4trace:configure.ac:52: -1- _AM_SUBST_NOTMAKE([am__EXEEXT_FALSE]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([top_builddir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([top_build_prefix]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([srcdir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([abs_srcdir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([top_srcdir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([abs_top_srcdir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([builddir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([abs_builddir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([abs_top_builddir]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([INSTALL]) m4trace:configure.ac:52: -1- AC_SUBST_TRACE([MKDIR_P]) geg-2.0.9/autom4te.cache/output.00000644000175000017500000056622012735237213016727 0ustar georgeskgeorgesk@%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Generated by GNU Autoconf 2.69. @%:@ @%:@ @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @%:@ @%:@ @%:@ This configure script is free software; the Free Software Foundation @%:@ gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in @%:@( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in @%:@(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in @%:@ (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in @%:@( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in @%:@ (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org 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 @S|@? to STATUS, without forking. as_fn_set_status () { return $1 } @%:@ as_fn_set_status @%:@ as_fn_exit STATUS @%:@ ----------------- @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } @%:@ as_fn_exit @%:@ as_fn_mkdir_p @%:@ ------------- @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } @%:@ as_fn_mkdir_p @%:@ as_fn_executable_p FILE @%:@ ----------------------- @%:@ Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } @%:@ as_fn_executable_p @%:@ as_fn_append VAR VALUE @%:@ ---------------------- @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take @%:@ advantage of any shell optimizations that allow amortized linear growth over @%:@ repeated appends, instead of the typical quadratic growth present in naive @%:@ implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append @%:@ as_fn_arith ARG... @%:@ ------------------ @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments @%:@ must be portable across @S|@(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the @%:@ script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } @%:@ as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in @%:@((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIB@&t@OBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="src" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIB@&t@OBJS EGREP GREP CPP GTK_LIBS GTK_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LN_S am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V 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 target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking enable_gtktest ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR 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}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @<:@@S|@ac_default_prefix@:>@ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ --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 _ACEOF fi if test -n "$ac_init_help"; then 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-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-gtktest do not try to compile and run a test GTK+ program 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 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## @%:@ ac_fn_c_try_compile LINENO @%:@ -------------------------- @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_try_run LINENO @%:@ ---------------------- @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes @%:@ that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_run @%:@ ac_fn_c_try_link LINENO @%:@ ----------------------- @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_link @%:@ ac_fn_c_try_cpp LINENO @%:@ ---------------------- @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_cpp @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using @%:@ the include files in INCLUDES and setting the cache variable VAR @%:@ accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_header_mongrel @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @%:@ Tests whether HEADER exists and can be compiled using the include files in @%:@ INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_header_compile @%:@ ac_fn_c_check_func LINENO FUNC VAR @%:@ ---------------------------------- @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in @%:@(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in @%:@(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "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=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. 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 (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ '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+set}" = set; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 @%:@ Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; 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} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else 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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$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=geg VERSION=2.0.9 cat >>confdefs.h <<_ACEOF @%:@define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # 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 -' # 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 config.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } @%:@ Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $@%:@ != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf @%:@ Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi if test "x$GCC" = "xyes"; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then CFLAGS="$CFLAGS -Wall" fi fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi @%:@ Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi min_gtk_version=2.0.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* 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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 () { 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 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$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" Gtk2 was not found fi rm -f conf.gtktest { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 $as_echo_n "checking for main in -lX11... " >&6; } if ${ac_cv_lib_X11_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_main=yes else ac_cv_lib_X11_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5 $as_echo "$ac_cv_lib_X11_main" >&6; } if test "x$ac_cv_lib_X11_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBX11 1 _ACEOF LIBS="-lX11 $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 $as_echo_n "checking for main in -lXext... " >&6; } if ${ac_cv_lib_Xext_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xext_main=yes else ac_cv_lib_Xext_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 $as_echo "$ac_cv_lib_Xext_main" >&6; } if test "x$ac_cv_lib_Xext_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBXEXT 1 _ACEOF LIBS="-lXext $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 $as_echo_n "checking for main in -lm... " >&6; } if ${ac_cv_lib_m_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_main=yes else ac_cv_lib_m_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 $as_echo "$ac_cv_lib_m_main" >&6; } if test "x$ac_cv_lib_m_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h do : ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" if test "x$ac_cv_header_fcntl_h" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_FCNTL_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "@%:@define const /**/" >>confdefs.h fi for ac_func in strdup do : ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRDUP 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile desktop/Makefile help/Makefile examples/Makefile src/Makefile src/pixmaps/Makefile po/Makefile stamp.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIB@&t@OBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi 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 : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in @%:@( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in @%:@(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the @%:@ script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } @%:@ as_fn_error @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. as_fn_set_status () { return $1 } @%:@ as_fn_set_status @%:@ as_fn_exit STATUS @%:@ ----------------- @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } @%:@ as_fn_exit @%:@ as_fn_unset VAR @%:@ --------------- @%:@ Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset @%:@ as_fn_append VAR VALUE @%:@ ---------------------- @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take @%:@ advantage of any shell optimizations that allow amortized linear growth over @%:@ repeated appends, instead of the typical quadratic growth present in naive @%:@ implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append @%:@ as_fn_arith ARG... @%:@ ------------------ @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments @%:@ must be portable across @S|@(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in @%:@((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @%:@ as_fn_mkdir_p @%:@ ------------- @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } @%:@ as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi @%:@ as_fn_executable_p FILE @%:@ ----------------------- @%:@ Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } @%:@ as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" 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 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' 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 ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX @%:@@%:@ Running $as_me. @%:@@%:@ _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;; "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; "stamp.h") CONFIG_FILES="$CONFIG_FILES stamp.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= 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=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac 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@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t 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"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # 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 || $as_echo 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) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$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. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done 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 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi geg-2.0.9/autom4te.cache/output.10000644000175000017500000056622012735237217016734 0ustar georgeskgeorgesk@%:@! /bin/sh @%:@ Guess values for system-dependent variables and create Makefiles. @%:@ Generated by GNU Autoconf 2.69. @%:@ @%:@ @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @%:@ @%:@ @%:@ This configure script is free software; the Free Software Foundation @%:@ gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in @%:@( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in @%:@(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in @%:@ (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in @%:@( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in @%:@ (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org 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 @S|@? to STATUS, without forking. as_fn_set_status () { return $1 } @%:@ as_fn_set_status @%:@ as_fn_exit STATUS @%:@ ----------------- @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } @%:@ as_fn_exit @%:@ as_fn_mkdir_p @%:@ ------------- @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } @%:@ as_fn_mkdir_p @%:@ as_fn_executable_p FILE @%:@ ----------------------- @%:@ Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } @%:@ as_fn_executable_p @%:@ as_fn_append VAR VALUE @%:@ ---------------------- @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take @%:@ advantage of any shell optimizations that allow amortized linear growth over @%:@ repeated appends, instead of the typical quadratic growth present in naive @%:@ implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append @%:@ as_fn_arith ARG... @%:@ ------------------ @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments @%:@ must be portable across @S|@(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the @%:@ script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } @%:@ as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in @%:@((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIB@&t@OBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="src" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIB@&t@OBJS EGREP GREP CPP GTK_LIBS GTK_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LN_S am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V 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 target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking enable_gtktest ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR 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}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX @<:@@S|@ac_default_prefix@:>@ --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX @<:@PREFIX@:>@ By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@ --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 _ACEOF fi if test -n "$ac_init_help"; then 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-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-gtktest do not try to compile and run a test GTK+ program 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 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## @%:@ ac_fn_c_try_compile LINENO @%:@ -------------------------- @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_compile @%:@ ac_fn_c_try_run LINENO @%:@ ---------------------- @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes @%:@ that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_run @%:@ ac_fn_c_try_link LINENO @%:@ ----------------------- @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_link @%:@ ac_fn_c_try_cpp LINENO @%:@ ---------------------- @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } @%:@ ac_fn_c_try_cpp @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using @%:@ the include files in INCLUDES and setting the cache variable VAR @%:@ accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_header_mongrel @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES @%:@ ------------------------------------------------------- @%:@ Tests whether HEADER exists and can be compiled using the include files in @%:@ INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 @%:@include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_header_compile @%:@ ac_fn_c_check_func LINENO FUNC VAR @%:@ ---------------------------------- @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } @%:@ ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in @%:@(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in @%:@(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "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=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. 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 (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ '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+set}" = set; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 @%:@ Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; 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} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else 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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$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=geg VERSION=2.0.9 cat >>confdefs.h <<_ACEOF @%:@define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF @%:@define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # 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 -' # 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 config.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } @%:@ Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $@%:@ != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf @%:@ Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi if test "x$GCC" = "xyes"; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then CFLAGS="$CFLAGS -Wall" fi fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi @%:@ Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi min_gtk_version=2.0.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* 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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 () { 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 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$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" Gtk2 was not found fi rm -f conf.gtktest { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 $as_echo_n "checking for main in -lX11... " >&6; } if ${ac_cv_lib_X11_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_main=yes else ac_cv_lib_X11_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5 $as_echo "$ac_cv_lib_X11_main" >&6; } if test "x$ac_cv_lib_X11_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBX11 1 _ACEOF LIBS="-lX11 $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 $as_echo_n "checking for main in -lXext... " >&6; } if ${ac_cv_lib_Xext_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xext_main=yes else ac_cv_lib_Xext_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 $as_echo "$ac_cv_lib_Xext_main" >&6; } if test "x$ac_cv_lib_Xext_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBXEXT 1 _ACEOF LIBS="-lXext $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 $as_echo_n "checking for main in -lm... " >&6; } if ${ac_cv_lib_m_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_main=yes else ac_cv_lib_m_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 $as_echo "$ac_cv_lib_m_main" >&6; } if test "x$ac_cv_lib_m_main" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@ifdef __STDC__ @%:@ include @%:@else @%:@ include @%:@endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @%:@include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h do : ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" if test "x$ac_cv_header_fcntl_h" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_FCNTL_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "@%:@define const /**/" >>confdefs.h fi for ac_func in strdup do : ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes; then : cat >>confdefs.h <<_ACEOF @%:@define HAVE_STRDUP 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile desktop/Makefile help/Makefile examples/Makefile src/Makefile src/pixmaps/Makefile po/Makefile stamp.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIB@&t@OBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi 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 : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in @%:@( *posix*) : set -o posix ;; @%:@( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in @%:@( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in @%:@(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD] @%:@ ---------------------------------------- @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the @%:@ script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } @%:@ as_fn_error @%:@ as_fn_set_status STATUS @%:@ ----------------------- @%:@ Set @S|@? to STATUS, without forking. as_fn_set_status () { return $1 } @%:@ as_fn_set_status @%:@ as_fn_exit STATUS @%:@ ----------------- @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } @%:@ as_fn_exit @%:@ as_fn_unset VAR @%:@ --------------- @%:@ Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset @%:@ as_fn_append VAR VALUE @%:@ ---------------------- @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take @%:@ advantage of any shell optimizations that allow amortized linear growth over @%:@ repeated appends, instead of the typical quadratic growth present in naive @%:@ implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append @%:@ as_fn_arith ARG... @%:@ ------------------ @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments @%:@ must be portable across @S|@(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in @%:@((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @%:@ as_fn_mkdir_p @%:@ ------------- @%:@ Create "@S|@as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } @%:@ as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi @%:@ as_fn_executable_p FILE @%:@ ----------------------- @%:@ Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } @%:@ as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" 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 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' 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 ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX @%:@@%:@ Running $as_me. @%:@@%:@ _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;; "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; "stamp.h") CONFIG_FILES="$CONFIG_FILES stamp.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= 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=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac 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@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t 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"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # 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 || $as_echo 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) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$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. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done 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 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi geg-2.0.9/Makefile.am0000644000175000017500000000016712713322444014524 0ustar georgeskgeorgeskSUBDIRS = \ desktop examples help src po DIST_SUBDIRS = \ desktop examples help src po EXTRA_DIST = geg.spec geg.1 geg-2.0.9/NEWS0000644000175000017500000000120506605130522013156 0ustar georgeskgeorgeskVersion 0.15.0 ============== This version is not much different from the last, the following changes have been made. - if you haven't worked it out yet, the mouse buttons do stuff when you click them on the graph area!! - geg accepts all forms of brackets now, ie, '( )' '[ ]' and '{ }'. - geg accepts implicit multipies, ie, you can now write: sin(2x) where before this would cause a parse error unless you wrote sin(2*x) - the preferences dialog has been redone - the radian spacing stuff now shows 1 1/2 pi, etc... - and a handful of other little changes/fixes have been made too that I can't remember :^) geg-2.0.9/stamp-h.in0000644000175000017500000000001207016617543014365 0ustar georgeskgeorgesktimestamp geg-2.0.9/stamp.h.in0000644000175000017500000000000006564352337014367 0ustar georgeskgeorgeskgeg-2.0.9/README0000644000175000017500000000240706661374246013363 0ustar georgeskgeorgeskgeg, a GTK+ Equation Grapher ============================ geg is a simple little program that will draw 2-dimensional mathematical functions within a nice user interface. eg. f(x) = 3 + sin(x/2) geg is an acronym for GTK+ Equation Grapher. I wrote the program for various reasons: - I wanted to learn how to use GTK+. Previously I have always used Motif but when I saw The GIMP, I thought GTK+ looked pretty neat. - I actually thought it might be a useful program :) At the time of authoring I was studying Communication Systems, in which I had to keep trying to visualise what all these FM and AM signals looked like... - I had gotten so much out of Linux and the community that I really wanted to contribute something in return. Geg stores its preferences in $(HOME)/.gegrc. It also parses the file $(HOME)/.gtkrc on startup with gtk_rc_parse() to get GTK+ settings, this can be completely ignored though. Warnings may be given by geg if old configuration files are loaded. These warnings will go away as soon as a new configuration is saved, or the configuration file is deleted. I welcome any feedback: comments, suggestions, bug reports, flames, etc.... If you want to see any particular new features implemented, please email me. David Bryant geg-2.0.9/configure.ac0000644000175000017500000000205712733264761014767 0ustar georgeskgeorgeskdnl Process this file with autoconf to produce a configure script. AC_INIT(src) dnl Initialise automake stuff AM_INIT_AUTOMAKE(geg, 2.0.9) dnl Specify a header configuration file AM_CONFIG_HEADER(config.h) AM_MAINTAINER_MODE dnl Features dnl Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) AC_SUBST(LDFLAGS) dnl only use -Wall if we have gcc if test "x$GCC" = "xyes"; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then CFLAGS="$CFLAGS -Wall" fi fi AM_PATH_GTK_2_0(2.0.0, ,[Gtk2 was not found]) dnl Checks for libraries. dnl Replace `main' with a function in -libs: AC_CHECK_LIB(X11, main) AC_CHECK_LIB(Xext, main) AC_CHECK_LIB(m, main) dnl Checks for header files. AC_STDC_HEADERS AC_CHECK_HEADERS(fcntl.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST dnl Checks for library functions. AC_CHECK_FUNCS(strdup) AC_OUTPUT( Makefile desktop/Makefile help/Makefile examples/Makefile src/Makefile src/pixmaps/Makefile po/Makefile stamp.h) geg-2.0.9/geg.10000644000175000017500000000177712675544565013345 0ustar georgeskgeorgesk.TH GEG 1 .\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection .\" other parms are allowed: see man(7), man(1) .SH NAME geg \- a GTK+ Equation Grapher .SH SYNOPSIS .B geg .I "[options]" .br .SH "DESCRIPTION" .B geg is a small tool which will draw 2-dimensional mathematical functions within a nice user interface. You can use the mouse to zoom into the graph and solve function or axis intersections. .SH OPTIONS In addition to the graphical user interface, the command line can be used as a basic calculator or equation solver (see inline help for details). The following options are available: .TP .B \-\-help, \-\-version Show version of program. .TP .B \-\-display \fIdisplay\fP Specify the X display to open, for example noether.math:0. See \fIX(1)\fP for further info. .SH AUTHORS .B geg versions 1.0.x were written by David Bryant (1998-2000) Versions 2.0.x are due to Jean-Pierre Demailly, Universite Grenoble Alpes, (2016) geg-2.0.9/install-sh0000755000175000017500000003546312735031745014510 0ustar georgeskgeorgesk#!/bin/sh # install - install a program, script, or datafile scriptversion=2014-09-12.12; # 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. tab=' ' nl=' ' IFS=" $tab$nl" # Set DOITPROG to "echo" to test this script. doit=${DOITPROG-} doit_exec=${doit:-exec} # 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_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 is_target_a_directory=possibly 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 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) is_target_a_directory=always dst_arg=$2 # Protect names problematic for 'test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) is_target_a_directory=never;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done # We allow the use of options -d and -T together, by making -d # take the precedence; this is for compatibility with GNU install. if test -n "$dir_arg"; then if test -n "$dst_arg"; then echo "$0: target directory not allowed when installing a directory." >&2 exit 1 fi fi 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 if test $# -gt 1 || test "$is_target_a_directory" = always; then if test ! -d "$dst_arg"; then echo "$0: $dst_arg: Is not a directory." >&2 exit 1 fi fi 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 "$is_target_a_directory" = never; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else dstdir=`dirname "$dst"` 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. ;; *) # $RANDOM is not portable (e.g. dash); use it when possible to # lower collision chance tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so # create the $tmpdir first (and fail if unsuccessful) to make sure # that nobody tries to guess the $tmpdir name. if (umask $mkdir_umask && $mkdirprog $mkdir_mode "$tmpdir" && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/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. test_tmpdir="$tmpdir/a" ls_ld_tmpdir=`ls -ld "$test_tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 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 oIFS=$IFS IFS=/ set -f set fnord $dstdir shift 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` && set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && 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: geg-2.0.9/AUTHORS0000644000175000017500000000023512675434517013550 0ustar georgeskgeorgeskVersion 1.0.x: David Bryant Additional features of Version 2.0.x: Jean-Pierre Demailly geg-2.0.9/help/0000755000175000017500000000000012735240064013415 5ustar georgeskgeorgeskgeg-2.0.9/help/Makefile.am0000644000175000017500000000030212711322261015436 0ustar georgeskgeorgeskall: help.fr help.en install: mkdir -p $(DESTDIR)/usr/share/geg/help rm -f help.*~ install -c -m 644 help.* $(DESTDIR)/usr/share/geg/help/ distclean: clean rm -f Makefile clean: rm -f *~ geg-2.0.9/help/help.fr0000644000175000017500000002405112735032743014703 0ustar georgeskgeorgeskGeg est une calculatrice numérique et graphique. 1] Caractéristiques principales Le but principal de geg est de tracer des courbes 2D définies par des fonctions mathématiques. La représentation graphique associée apparaît instantanément dans la fenêtre principale, et peut être exportée aux formats EPS, PDF ou SVG. Plusieurs courbes et fonctions peuvent être tracées sur la même fenêtre graphique. 4 modes sont disponibles : - Cartésien: y=f(x) - Polaire: t→r(t) - Paramétrique: t→(x,y) - Suite: n→u(n) La commutation est faite avec les boutons ad hoc de la barre d'outils, ou en utilisant les fonctions spéciales cart, polar, param, sequ, voir plus loin pour plus de détails. Les symboles x, y désignent les coordonnées du plan, t est utilisé comme variable dans les modes paramétrique et polaire. En polaire, t désigne l'angle en radian, et r est la distance à l'origine, soit r=sqrt(x^2+y^2). En mode suite, n est une valeur entière utilisée comme indice de la suite à représenter. La suite est calculée de la valeur n=nmin à la valeur n=nmax si nmax est spécifié. Les paramètres tmin ou tmax peuvent aussi être utilisés. Sinon, la suite est calculée pour toutes les valeurs de n visibles sur l'écran. L'entrée de texte du bas est utilisée pour saisir la fonction à évaluer ou dessiner. Toutes les variables a-z (sauf e=exp(1)=2.718 ... et les coordonnées x, y, t, r) peuvent être utilisées en tant que paramètres additionnels. Sauf pour e, elles sont préaffectées à 0 au démarrage, et sont gardées inchangées jusqu'à ce qu'elles soient affectées à une autre valeur par une opération ultérieure, ou réinitialisées à 0 par un clic sur le bouton de réinitialisation. Une telle affectation se fait par exemple par g=0.5772156649015328 Plusieurs calculs ou affectations peuvent être effectuées dans une même ligne de commande en les séparant par le symbole ";" , par exemple, en saisissant m=pi/6;x=cos(m*t);y=sin(2*m*t) Toute séquence de calculs peut être sauvegradée dans une "feuille de calculs" sous forme d'un fichier *.geg qui spécifie l'ensemble des paramètres à évaluer et des fonctions à représenter. Ces fichiers peuvent ensuite être réouverts par geg. 2] Liste des fonctions et opérateurs prédéfinis Les fonctions suivantes sont reconnues : sin (sinus) cos (cosinus) tan (tangent) cot (cotangent, également cotan) sec (secant) csc (cosecant) asin (arc-sinus, également arcsin) acos (arc-cosinus, également arccos) atan (arc-tan, également arctan) acot (arc-cotan, également arccot) acsc (arc-cosecant, également acsc) sinc (sinus-cardinal = sin(pi*x)/pi*x) sinh (sinus hyperbolique) cosh (cosinus hyperbolique) tanh (tangente hyperbolique) exp (exponentielle naturelle) log (logarithme base 10) ln (logarithme naturel, base e) floor (partie entière) gamma (fonction Gamma) sqrt (racine carrée) cbrt (racine cubique) abs (valeur absolue) sign (fonction signe) char (fonction caractéristique x>=0) Fonctions et opérateurs spéciaux clip (restriction aux valeurs >=0 de l'argument) cut (restriction aux valeurs >0 de l'argument) cart (passer en mode cartésien) polar (passer en mode polaire) param (passer en mode paramétrique) sequ (passer en mode représentation de suite) ' (opérateur de dérivation d'une fonction) int (opérateur d'intégration) tgt (opérateur de tangente affine) Les constantes suivantes sont reconnues : pi (3.141592653....) e (2.718281828....) (mais e est un paramètre comme les autres et peut être réaffecté à une autre valeur.) Les opérateurs binaires suivants sont reconnus: + (Ajouter) - (Soustraire) * (Multiplier) / (Diviser) ^ (Élever à la puissance) = (Affectation,équations) Les symboles divers suivants sont reconnus: ( (parenthèse gauche) ) (parenthèse droite) [ (crochet gauche) ] (crochet droit) { (accolade gauche) } (accolade droite) a-z (paramètres/variables) 3] Caractères spéciaux, directives Ces modes ne produisent aucun tracé graphique et sont destinés à effecter des calculs ou à initialiser des paramètres. a] Mode évaluation (?) Le mode évaluation est activé en commençant la ligne de commande par le caractère ?. De cette manère, geg peut être utilisé comme une calculatrice numérique. La précision est celle du type C "double", soit environ 15-16 chiffres significatifs. Ainsi ?a=3,7;b=-1.2;a^b va afficher: = 0.208045310600227 b] Résolution d'équations (=) Toute entrée de la forme "=f(x)" initie un calcul des racines de f(x)=0 par un procédé de dichotomie, en restriction à l'intervalle réel tmin < x < tmax, ou xmin < x < xmax si tmin, tmax ne sont pas spécifiés. Les boutons de souris peuvent également être utilisés sur la fenêtre graphique pour effectuer des résolutions d'équations dans la zone sélectionnée. Voici les actions possibles des boutons : - Bouton gauche : sélection de la zone à zoomer - Bouton du milieu : trouver les intersections f(x)=g(x) - Bouton droit : résoudre f(x)=0 c] Définition de paramètres ou de fonctions (&) Le caractère initial & est utilisé pour introduire la définition de paramètres ou de fonctions. Par exemple &c=2.31*sin(pi/7) affecte la valeur spécifiée à la variable c. Les paramètres tmin, tmax, amin, amax (bornes pour t, et pour l'angle polaire, respectivement) sont également assignables, par exemple via &amax=7*pi Les chaînes de caractères à 2 lettres lettres fa ... fz sont réservées pour la définition de fonctions utilisateur. Ces fonctions peuvent être appelées plus tard, à partir de la feuille de calcul, exactement comme les fonctions prédéfinies. La syntaxe pour définir une nouvelle fonction fc(p) de la variable p utilise aussi & comme marqueur initial : on peut définir par exemple &fc(p)=sin(p*p) Les variables a-z peut être indifféremment utilisées dans la définition des fonctions, et celle-ci peut inclure d'autres paramètres (éviter tout de même les variables x, y, r, t qui sont réservées aux coordonnées). Au moment de l'appel de telles fonctions, les paramètres doivent avoir été préalablement initialisés à une valeur (sinon le résultat sera indéfini). Une seule définition de fonction est permise par ligne de calculs. Si la fonction ff a déjà été définie, &fg=ff' introduit fg comme étant la dérivée de ff. Deux autres constructions apparentées sont &fs=int_c_ff &ft=tgt_c_ff Ceci définit fs(x) comme étant l'intégrale indéfinie de ff s'annulant en c (intégrale de ff prise entre c et x), et ft comme étant la fonction linéaire affine qui représente la tangente à y = ff (x) au point x=c, à savoir ft(x)=ff'(c)(x-c) + ff(c) c est utilisé ici comme paramètre formel qui doit être préalablement spécifié pour pouvoir tracer la primitive, respectivement la tangente, par exemple en saisissant &c=0; fs(x) &c=2*pi ft(x) Les paramètres spéciaux der_step, et tgt_right, tgt_left sont respectivement le pas (relatif) utilisé pour calculer la différentiation numérique (0.001 par défaut), le la taille relative du segment de tangente à tracer sur la droite et sur la gauche (la valeur par défaut est 100 qui donne une demi-tangente infinie sur le côté correspondant). Enfin int_step est le pas absolu utilisé pour l'intégration numérique (0.005 par défaut). On peut par exemple saisir &der_step=0.003 &int_step=0.002 &tgt_left=0;tgt_right=100 La dernière ligne correspond au choix d'une demi-tangente infinie sur la droite. Le paramètre 'gap' est utilisé pour détecter les singularités et discontinuités. La valeur par défaut est &gap=1.0 Des valeurs plus petites de 'gap' augmentent la sensibilité de la détection, mais peuvent conduire à ce que des parties de graphe soient perdues autour des discontinuités. d] Couleurs et épaisseur de ligne des courbes Les directives &lw=0.35 &color=127096008 qui peuvent être également être concaténées avec le caractère ; comme suit : &lw=0.35;color=127096008 spécifient une épaisseur de ligne égal à 0.35 et une couleur RVB avec rouge=127/255, vert=96/255, bleu=8/255. Ces paramètres s'appliquent aux courbes qui sont tracées ensuite, jusqu'à ce que de nouvelles valeurs des paramètres soient définies. Les paramètres lw et color sont considérés comme non spécifiés si on leur donne des valeurs négatives, par exemple -1. Dans ce cas geg utilise les valeur de lw globale par défault (lw=0.5) et la palette de couleurs par défaut en fonction du numéro de la courbe. La couleur et l'épaisseur de ligne des axes, ainsi que la couleur des valeurs numériques de x, y, t peuvent être spécifiées grâce au menu "Préférences". e] Suites Le 'mode suite' eut être activé grâce à la directive &sequ Dans ce contexte, le paramètre spécial 'ptrad' spécifie le rayon des points représentant les valeurs (n,u(n)) de la suite. Ce paramètre est affecté en posant par exemple &ptrad=2 Les paramètres nmin et nmax peuvent être affectés pour spécifier l'intervalle de calcul de la suite : &nmin=3 f] Commentaires Toute chaîne de caractères commençant par # est considérée comme un commentaire. Une telle chaîne est reproduite à l'identique dans la feuille de calculs, sans induire quelque action que ce soit. Les lignes blanches peuvent être créees en saisissant la chaîne de 2 caractères "##". 4] Expressions symboliques formelles de geg La notation étendue "Backus Naur" (EBNF) utilisée dans geg est: :: = [ + | - ] { + | - } :: = { * | / | ^ } :: = | | () :: = | e pi | a-z :: = (); geg-2.0.9/help/help.en0000644000175000017500000002123012715701045014666 0ustar georgeskgeorgeskGEG is a numerical and graphing calculator. 1] Main features Geg's main purpose is to draw 2D curves defined by mathematical functions. The actual drawing appears instantly in the main graphic window, and can be exported to EPS, PDF or SVG formats. Several curves and functions can be drawn on the same graphic window. There are 4 modes: - cartesian : y = f(x) - polar: t→r(t) - parametric: t→(x,y) - sequence: n→u(n) The switch is made with the ad hoc toolbar buttons or by using the cart, polar, param, sequ special functions, see below for more details. The symbols x, y denote the plane coordinates, and t is used as the variable in the parametric and polar modes. In polar mode, t is the angle in radian, and r is the distance to origin, namely r=sqrt(x^2+y^2). In sequence mode, n is an integer and represents the index of the sequence. The sequence if computed from n=nmin to n=nmax if nmax is specified, or within the limits of the drawing otherwise. The parameters tmin, tmax can alternatively be used for the same purpose. The bottom text entry is used to specify any function to be evaluated or drawn. All variables a-z (except e=exp(1)=2.718... and the coordinates x, y, t, r) can be used as extra parameters. Except for e, they are initially set to NAN ("not a number", undefined value) at startup, and are kept unchanged until they are assigned another value by some further operation, or the user clicks the reinitialization button. Such an assignment is done e.g. by g=0.5772156649015328 Several calculations or assignments can be done in order by separating them with ; e.g. by putting on a single line m=pi/6;x=cos(m*t);y=sin(2*m*t) Each drawing can be saved in a "calculation sheet" in the form of a *.geg file that specifies the list of parameters to evaluate and functions to represent. These files can later be reopened by geg. 2] List of predefined functions and operators The following functions are recognised: sin (Sine) cos (Cosine) tan (Tangent) cot (Cotangent, also cotan) sec (Secant) csc (Cosecant) asin (Arc-Sine, also arcsin) acos (Arc-Cosine, also arccos) atan (Arc-Tan, also arctan) acot (Arc-Cotan, also arccot) acsc (Arc-Cosecant, also acsc) sinc (Sine-Cardinal = sin(pi*x)/pi*x) sinh (Hyperbolic Sine) cosh (Hyperbolic Cosine) tanh (Hyperbolic Tangent) exp (Natural exponential) log (log base 10) ln (Natural Log, Log base e) floor (Integer part of real number) gamma (Gamma function) sqrt (Square Root) cbrt (Cube Root) abs (Absolute Value) sign (Sign function) char (Characteristic function x>=0) Special functions and operators clip (Restriction to >=0 values of argument) cut (Restriction to >0 values of argument) cart (Set cartesian mode) polar (Set polar mode) param (Set parametric mode) sequ (Set sequence mode) ' (Derivation operator) int (Integration operator) tgt (Affine tangent operator) The following constants are recognised: pi (3.141592653....) e (2.718281828....) (but e can viewed as a parameter and can be reset). The following binary operators are recognised: + (Add) - (Subtract) * (Multiply) / (Divide) ^ (Raise to the Power) = (Assignment,Equations) The following miscellaneous symbols are recognised: ( (Left Bracket) ) (Right Bracket) [ (Left Square Bracket) ] (Right Square Bracket) { (Left Curly Bracket) } (Right Curly Bracket) a-z (Variable Parameters) 3] Escape characters, directives These modes do not produce any graphical output, but allow some calculations or definitions to be made. a] Evaluation mode (?) Evaluation is turned on (and drawing disabled) by starting the command line with ?. In this way, geg can be used as a basic calculator. The accuracy corresponds to the C-type "double" , that is approximately 16 significant digits. For example ?a=3.7;b=-1.2;a^b will output: = 0.208045310600227 b] Solutions of equations (=) Any input of the form "=f(x)" initiates a calculation of the roots of f(x)=0 by a dichotomy method, within the interval tmin < x < tmax, or xmin < x < xmax if tmin, tmax are not specified. Alternatively, mouse Buttons can be used on the graphic window to select a rectangle and launch equation resolutions in the corresponding area. Here are the various actions of buttons: - Left button: zoom to selected area - Middle button: find intersections f(x)=g(x) - Right button: solve f(x)=0 c] Definitions of parameters or functions (&) The initial character & is used to define parameters or functions. For instance &c=2.31*sin(pi/7) assigns the specified value to variable c. Other assignable parameters include tmin, tmax, amin, amax (ranges for t, and polar angle, respectively), e.g. via &amax=7*pi The special 2 letter strings fa ... fz are meant to be used as user defined functions. Such functions can then be called later from the calculation sheet, exactly as the predefined functions. The syntax to define a new function fc(p) of the variable p uses & as the initial marker: one can set e.g. &fc(p)=sin(p*p) Any variable a-z can be used in a function definition, and that definition may include other parameters (preferably not x, y, r, t which will probably vary according to the choice of coordinates), provided they are previously initialized to a value (otherwise the result will be undefined). A function definition should be isolated on its line. If the function ff has already been defined, then &fg=ff' will let fg be the derivative of ff. Two related constructions are &fs=int_c_ff &ft=tgt_c_ff This defines fs(x) to be the indefinite integral of ff navishing at c (i.e. the integral of ff taken between c and x), and ft to be the affine linear function that represents the tangent to y=ff(x) at point x=c, namely ft(x)=ff'(c)(x-c) + ff(c) c is used here as a formal parameter that has to be set prior to actually draw the primitive function, respectively the tangent function, e.g. by putting &c=0; fs(x) &c=2*pi ft(x) The special parmeters der_step, tgt_right, tgt_left are respectively the relative step used to perform numerical differentiation (0.001 by default), the relative size of the tangential segment to be drawn on the right side and on the left side (default value is 100 which yields an infinite tangent half-line on the corresponding side). Finally, int_step is the absolute value of the integration step (0.005 by default). One can e.g. set &der_step=0.003 &int_step=0.002 &tgt_left=0;tgt_right=100 The last setting corresponds to an infinite right half-tangent. The gap parameter is used to detect singularities and discontinuities. The default value is &gap=1.0 Smaller values of the gap increase sensitivity but may lead to losing parts of the graph around the points of discontinuity. d] Linewidth and color of curves The directives &lw=0.35 &color=127096008 which can be concatened with the character ; in between &lw=0.35;color=127096008 specify a linewidth equal to 0.35 and a RGB color with red=127/255, green=96/255, blue=8/255. They apply for the curves that are subsequently drawn, until new values of those parameters are set. The lw and color parameters are considered unspecified if they are given negative values, e.g. -1. In that case geg uses the global default value lw=0.5 and the default color scheme according to the index of the curve. The color and linewidth of the axes, and the color of the numerical values of x, y, t can be specified from the "Preferences" dialog. e] Sequences The "sequence mode" can be started via the directive &sequ In this setting, the special parameter 'ptrad' indicates the radius of points representing the values (n,u(n)) of the sequence. The parameter is set by putting e.g. &ptrad=2 The parameters nmin and nmax can be used to specify the interval in which the sequence is to be computed: &nmin=3 f] Comments Any string starting by # is a comment. Such a string is reproduced verbatim in the calculation sheet without generating any action. Blank lines can be entered by a 2 character string ##. 4] Formal symbolic expressions in geg The Extended Backus Naur Notation (EBNF) used in geg is: ::= [ + | - ] { + | - } ::= { * | / | ^ } ::= | | () ::= | e pi | a-z ::= (); geg-2.0.9/desktop/0000755000175000017500000000000012735240064014136 5ustar georgeskgeorgeskgeg-2.0.9/desktop/Makefile.am0000644000175000017500000000045012712723600016166 0ustar georgeskgeorgeskall: geg.desktop plot2d.svg install: mkdir -p $(DESTDIR)/usr/share/applications install -c -m 644 geg.desktop $(DESTDIR)/usr/share/applications mkdir -p $(DESTDIR)/usr/share/pixmaps install -c -m 644 plot2d.svg $(DESTDIR)/usr/share/pixmaps distclean: clean rm -f Makefile clean: rm -f *~ geg-2.0.9/desktop/plot2d.svg0000644000175000017500000001236012712723445016071 0ustar georgeskgeorgesk geg-2.0.9/desktop/graph_icon.png0000644000175000017500000007563712674176204017005 0ustar georgeskgeorgeskPNG  IHDR) AiCCPICC ProfileH wTSϽ7" %z ;HQIP&vDF)VdTG"cE b PQDE݌k 5ޚYg}׺PtX4X\XffGD=HƳ.d,P&s"7C$ E6<~&S2)212 "įl+ɘ&Y4Pޚ%ᣌ\%g|eTI(L0_&l2E9r9hxgIbטifSb1+MxL 0oE%YmhYh~S=zU&ϞAYl/$ZUm@O ޜl^ ' lsk.+7oʿ9V;?#I3eE妧KD d9i,UQ h A1vjpԁzN6p\W p G@ K0ށiABZyCAP8C@&*CP=#t] 4}a ٰ;GDxJ>,_“@FXDBX$!k"EHqaYbVabJ0՘cVL6f3bձX'?v 6-V``[a;p~\2n5׌ &x*sb|! ߏƿ' Zk! $l$T4QOt"y\b)AI&NI$R$)TIj"]&=&!:dGrY@^O$ _%?P(&OJEBN9J@y@yCR nXZOD}J}/G3ɭk{%Oחw_.'_!JQ@SVF=IEbbbb5Q%O@%!BӥyҸM:e0G7ӓ e%e[(R0`3R46i^)*n*|"fLUo՝mO0j&jajj.ϧwϝ_4갺zj=U45nɚ4ǴhZ ZZ^0Tf%9->ݫ=cXgN].[7A\SwBOK/X/_Q>QG[ `Aaac#*Z;8cq>[&IIMST`ϴ kh&45ǢYYF֠9<|y+ =X_,,S-,Y)YXmĚk]c}džjcΦ浭-v};]N"&1=xtv(}'{'IߝY) Σ -rqr.d._xpUەZM׍vm=+KGǔ ^WWbj>:>>>v}/avO8 FV> 2 u/_$\BCv< 5 ]s.,4&yUx~xw-bEDCĻHGKwFGEGME{EEKX,YFZ ={$vrK .3\rϮ_Yq*©L_wד+]eD]cIIIOAu_䩔)3ѩiB%a+]3='/40CiU@ёL(sYfLH$%Y jgGeQn~5f5wugv5k֮\۹Nw]m mHFˍenQQ`hBBQ-[lllfjۗ"^bO%ܒY}WwvwXbY^Ю]WVa[q`id2JjGէ{׿m>PkAma꺿g_DHGGu;776ƱqoC{P38!9 ҝˁ^r۽Ug9];}}_~imp㭎}]/}.{^=}^?z8hc' O*?f`ϳgC/Oϩ+FFGGόzˌㅿ)ѫ~wgbk?Jި9mdwi獵ޫ?cǑOO?w| x&mf2:Y~ pHYs  &iTXtXML:com.adobe.xmp 2013-04-02T21:04:68 Pixelmator 2.1.4 1 72 5 1 72 600 1 600 xW`@IDATx ]UP 2$!aJdZ"sk_}v8 ($L$! 2h$y U_nVs={is~u=g}ꬳ^{L\&Ʒ90}  1'y՟?o>/G;~߳rR!.G99ߜz͵iQT% !QV(Y Gۑ7#S:#ސ?^܋E>X?c 益-_G*#_+}umsSɷ̿r]|*99|<(Gs`ӦM{t 78Q-5jȡCs7Q)c1"̇!ʟA|*'ăիVt̙ ĕ? "{ⶈPsȿgY&{X.( ;8mϞ=r=:"]CƏ< iYSs&r'M1b=Ϗr#{]k "~XI"FTգT{,'_b۔)S^減Xo招Xl`A~˖-;p0g9Vʇaji X*h^#4" /2{U5BUг|e= OO_|j\ 1cƌcu 9N@Oc6Jğ ªa9ԩSq-[{СǶnݺݦZ5g.68!|tTu`܆^@R@` U *y+F<>ژ9 <h"Đpq˭_ޗ^z鱨0g!:XsVTP.(`={=װ*~/m^q%<%D[B+x 1DO@g*7 =aU+Ta.t_BSj$LeY#2'.;a>zc~-7m G$x57f#ر3.'Mt/7:5H^ =gȐ!g|X3gj[g<@@v#y|[l #s~o +}JG   '2Οɬvqb#nȜDz (Wc\Irz $&?B]6%*+G7qe}/-E&   `YF W'NxUMˈ''WFQ9   %0avaO~}#rYW?K(x4 @@|#2l/œuJ|?{ HC^9nga.f\Xu-@@K@? T0gu٦\xeqm%@@RN@]6jaΖx\l   @<}Wlœ-=M D|g^Y0g3q-9A8    `N"gM9&\bR" U`,ma5\D0" r|9g|dV`mF\F_@@@^K/sHs}In2F=b׹0緃ٜ1֔8   "[eZFr0焧_]   D\n(rCMhڵ0oooM]Q*iu 9gy   `:* 9G>a`d/Q< 9G802~DK59W8o_A@@"#0WNUQ}1@@@*A?B4@@Aߠ0=ZG6¼@ E{A0H#bT@@RIG4y*o4@@  sb?y]'̳lf@pV\IwAʩFy(@;Zy]7?.>,՞ H&6n6/>sdB@ jGN< aM9g/8O^'kַ{``ֱ4gq414zdoZN#h&M項sҢyhQG+\.5sGS@N6]<\8N=yCљ>yL"Τ4Etp?eJERLK>AU-}Vྸ -Kӆ5LNwwSwd;iV0a-Ꮟ9:_qKyEi0}8cD8շUy}usMDLwҹC42^6L7dPBa$<{!@x>UuᎱ,5Qs>I? ~DD![AA> qQ3]t^!G-ps  4u]6Ml07ԍ99!)ra}4.◇OGӆӣ"ڠH1j{įX8ǗL5;#0O}Ęm/UQY*jS3[y>Qz݀2BQQ{!̍p!2M^zWSq[)o|H7Tn95  w5;7W Λ5q,8ExDܷ4 #A4h롏Fc);DMOFmfuDDl"OH'g{km;S<~Wq$!Q #:an Cs{齼ze󻩍*:@ jԦ$< @y{91 mTQGS>WQuʍ@0Fm29I 1A<m;]q yM'YYcD57jk];n%me$12o1@3)˃ C!8=S` l&p+ܺN=i ]Rrv!V E@: } l S;zNA=^L=gSqJ^x.~/sr4݊?WTݴwcĆ-0E.hsYu}|m%y@#pϖi?|ʪ obx&V'ޔOt}FV(sm]I#|=t#iŪȪ]m硦9֙7克 PvzI3KkchuAT[J#W^ɼmoz҃@$l_·}'Ӕj:a^#>~p*xO=lY*/ X'闰c aU "!ͪu;kt¼ gl5qw Q^{Ge;؅l )=,̗6؜EK"9Grq$D?=J+,}8~ /(OfcJ]ė' ݥڌ"`7Fm&͇07 $Q9L}$e7&/ x1"vOݍQ 'aṳ|uʚPu[EbDIKBݮo$@܌ڴ-wڼ@`Y}o2̃eD V_Fy OA^ʼnc`f ܄₀!/k/̑ZoԤ/)Kڥ͊[EF*OW #}2K'05 Au+ֆN NvjKGKt= y';yNw,#fff=N$={Emx?zMp׼g=zQ>|@ZL܄@ lelK 2On*Zĝ9]IJ]̟k-MڍLIk^MD\H$Y5߃̓%:mH09#b\/i`fN<r{tt<,'oԥq \5 2.?_[llҨOyoso*>ȂY hI jDi'7z8AH/iS:hܱh81=^ m!<Ҕ&)x=ޟaeן˾o,)ibN@]<\8N=]kQ7eN E 7S2uuB)_W]濵/2 yhHsQχK~yùZ')@2x5z[UD-w7T|PN1td.<Za|=t#iŪȪ]mnEF6F}<@&0Ő,,пݡ6;w>^,68yYܷ{x=Ԟdi0@#^dT~ornr6޻" ٌ¼)X]>smn}gi*$5 bQy?3fRb5XCWh$&z kFoʓ$PUl1nxsn xq9j !(sP]ږr>_ffu}H(//seFUNYWVdanE76x+'e *Xᴕz%fFa{)a֘Mܯ@ǽQ \R(3ZZ6~0>o53b Oӊsaa,20E7Qv?[~isq+wL)G{F&M}iS:hܱh81=il?janC/4IA-h8s>SMeXm4xW0-+ e>|cʅԓGҤ֥kH (|*Q)MGPKù0 b v ?. 3K6̇uQn5szuv98{7(oxW5VpW5RU~LGif|{t ic SD@}nfwںп--е=t#iŪȪ]mq{0w RF:rV"Bp&pgUꤙb i68yQY{[I hkJ$ 1ۙ sbejv8yQ[:+j`,GrT 7DCG0j"yQ5fm4@!C@ ')F.gC8Fm+r yQަ^lwZآdTIjFk_$-ڄB @ǹPw5r͔es5 0¾M^s~-‰mQ[Rg;s{v9Td5oF?>-^f͚E-^irVZE~;-_iܠ/ )4Tל0j30P? h}IV={6' / R͛#.yp0ל{^1jGYܷ`bA<V.GPsyQWלYsnQܭs|Jۭ]&RKY+W'f<]ʵ!hUR= FmR[ A00򷆀ha[˼uy3gZn*"VUj-JStѸ܅U78~0&uhҨFp^ ka~";1  "pj[sH" TᐬL`‡sa^Av? zyn4 iH¼!\Hوcblad$״E9_ܾ:d lFm]0+ryCw k{M˰EZg׹AVoR%sFmn(!N ä"! {]˞ך cB !Ӆ p2ϛ?ۧt6G,8i sK:e&l~jTS8'/gM/iz6 E~{yFm? QPGCp< Ꜽ~K5_MC'/O!:kc3I9'N 6ר"u?sTG&bZ;GW;y:wsQ?ޕ0Q[ø<=7%03sFaֈv.GdzOMhjQ9NZ@`aMT-E͇peoùsU;:bM<݇7#pYZžo_3j3΁׌!Z$ԨafqDOmc+uE)z< @|@ǧPSZaʐxC02jAt6/SOFs<{bi8D t*jB@b_ţxM</hyӈ#p' @TydQpP*ʨ|DPJ\iq=QjY Rڍ!r<@ǣPKZ8YQyKҾ,!q'cSos:1#0'n)!*v+v.cn<>F:!ؑt#&u }mٹ,h6ZUw==MO5" XA܊n@%9OG{=&Vkίw=5" XA܊n@%4> GT!.*$yj3#m|]ʚ9-@ Vt*aJ` ϕ_*v*v[v.ڨZU} Ođy{ ur{hfݞ˂mU+Ws0z eA<3P'.YN 6mѨMZUYt&/UU@ n c/.MEn|0 SLhUrET p?zj`H`.oTN^fLi/iK[dUK*|.@( CB"Nb(U8yQѪޒ{l7kq<}Fh^19QsmQx#$I 87;K7Fm,lslNNQu!S65eOo5f󦙧M!B7KВ ahU5^B;iٕ++W˗;) i'ee{mk8V98,Ӎ%.F>)[Ow³;[=^aQ U5ŋ 'ISexE\vϟ6/b84L7•*U{Dw݁"޿ ̫$jfU$& Fm dz<݃/4tUTs[a紪ڕ4} PC։bA7 U ߫plMQ4[G>3@U{n&b[A[]Uo`d ?N;,c¯4v*XqX9@kr@ < OFms&1sPè(|sG@j_  2ێ*NJ9@2id>|χ_pBc67AeԨa ~ЪfF @fp-\'{~avĩ|]_ɴR˔پ8[y? 6?1Wgi)H l,x9nCa^H߶-&Q&%vwy΢bꤷEv8sA5-'NŚ?o>g+%Bk/`դ,5 ]47?0K @OkHrLy7)C'^,'3gr@=2he[m;̄yow5IGmmt;oky[r]=U4\!0ŽZv۳?unT%aї|jfGߞ4RMO}lx~EHLb0Rݘ@uTPײ @>sx3ӵ0y[,+^&sdi<š}-a 3_ga5C2/n' ΎHQ#udL<6P& u[, >3H~3]=@w;b J٨ Dž<%#s4*v 5 3M!*a>Ubq'/M項sҢyhQ6aW\0ʲM]C i  i9sagf2<3Jy6*$W|"޹ʅx;~l?vd ,1 PC0 8ޘϓfVixfI,K̬P sI<3v~aqbP3vZɆp˪iH3Ӕ;>3y8i>\:{W*6GY(q4*v 5 "Fj7<%&4}fڠ^@ja^Qymr{O7vZj'=jmy(,]p!*ba{٪R;2N&i ]g,a4 OȖ`9jQmr'6%*HKg?(@v,uй,M>3mO{ ;JqSeݹt ͪu;~/9J?@V>1sgV/ŗy 苽0jvI»uNB@ gf\ e޲t4W< sVj9Wgvrc0ąw\h`3Ӥ 7'"¼69ҥu¨Ϳ434]bf/ '4KRN1Ǔ$Udޣ<< ڈ}pG-amV b!q# K)dm3Ө҈إrd-iy%_ 3De0đX33Zg/Kxy?] ]~ 0j rTd2w#bq$UǦ#ߤYc?2E)GSl -~e0j־\@L{[3=gsqZ*viO007^k IҸ 0jsK*x7L'ZA@G@jk RI@bq]=v9YzwsQo(Hy"3!sV.cgf E tOu0_ƛm-į5 6C@)Ħ*v F.Lp m`_Fmu\ꭹ1%,ދ0QP_мaV,2@@j,w< 7a'(̵78 7'KBkèFk0b__ƍ hUga:kBz@\&8lc w;]m:mJ-;G3h oPS(/hPv$Ζ֔F]=o hV4[1(̥͚S2A|ҕ 'Щ'G8ۏJTo@? $ZE%Bzh>bWɆ\{c;suܮ f,IDATn?B~i?Ӧ*vSbZ$ePF?-b8:ʀ44VOCa1%\2ݴtciάhchh煞[Ig3-=|-}-8|'#ܠbݓTfaU;yRn]5vWso(%ƔtTϝ?|{)hKQͳxAYۭUL^45_ռ#~RsЌа FmY|/MFje-0MD|V) Ζ^ "2ަ\OE}Dm hqR/ `慞_|򛆇[q `Fpnƨ0ČBًχ&̟[6oiJ" 6犫'U.}߬ڗ57*v)0[X.fU4k'1M6Sb~f-{/z 1wrVC8SdT./k]m)3i͢C I9'mFm-xY|_i *u$A\-] ē&^zcUK-\5=αMO s5Eo^.'XGk cJ@j=p1j᛼i[P۹6^"ڧvin`҈+B9'l`⃀viׅv )D.xkE^t<]vx:yZG#f%T0j3t />MľL!nhUy^-% Z7 :v6k sFmvs_pO9K( "U_ aPDŽMhbuF.W? fORTèB?s_| 6ei &^T 6.m؅G0oDxM4BU;Rk_|k“/`CЪe#Ox"ᛩ]LVko6p]sߴ}/7ņ !E~Y -0뭠5|%0{=DMiXr%LrM( L[TvUe_`&L=j߬PooRۏRq<_TQ@jY ͨwcΪvM(i_ װ8#fE +іivQ#ďF6*-nFe.N#ʙ'Jo#!^8oѴ@0OjrUZie3*s,~Ū] I$"^8o5ł@` U*}' 4fT\jUsRQ x'//ok@.BՁ]Am]ʽlFUR^uU A7L;ZZd4EM9HfT*aciPr#isÄֈfmC 6u)Z~^TJ*#a.Vg8zoQb\x"0C{7LOFbl,AҲ~Zvmy-wV#w `#3U* IR^0U"ĀoLʙGUW^ځ}@ y+wMsoUU҂ `\NMUx E'pگQTu%S75p$EŮq:uue[Ѻ( w+au?^Tŏ7L`B < '*iWTudӂȯPݜ 7ҮwG<pn7Fca#u 3ʶlCJDzh!k$\N`f51l|FvސRkX 7L% @1x9=z'R!\KNQD@/w2QY+].PU*v6$JgxR I;KЛݿB^Ώ08\jGC? TrI>3x'À5B.WTN^sv9E}h<'\'+ bg3 Јlb<hk8/sK_7a;6xA` DOL7ixPGAQIY@K_7a.`niJ,HpV rN*+ݤI{Y] LLZai|߄3= pM;)sS~ (l!PY72=x\Xd{?\%Ƀ4MӔeC<4uL@5*'uʹ8@%O|ZU4 o~wY~ڥR_$j kxF5*'{rZͧh|撱VՎ7n ,Ms|nh{^;Nj.U;4[uUp׵K+F~ % v?N5Ӯ-_ΐwwa.2 xPFu[@ 5LOFZR \*C!\]<ʥ*0uk \0Wj@b&S*A@v#i$4j|ɨދk 0O?k@/OR @N C`f搪{}>TU@ !.B8 s DKڍBo@@/fD2_[.ދgE^ځ 0G/j@Z؅U h՟oC˪& ST`o 5\Cf͢L|w[zS~eZjqlٲ~#<bw]Ӹ@q!H@/ X\&pWٵ]}u&yђ#7̀EϞ=A I‰p,a6:*oSs.>7{.Xk+D%˗LC7'!XY. ז%Pa.SMcMҘFH۟id͢^r%; HyR.BpM[-W:ib y9{*3"R,3-/92Wiskqs] h24AV #W*"ypNZrsi F=inNwԴoQ-p*tO{FZd٭ (Vd25ܜ/oQ-h"\tGOKkj^]ިL Z/Dͩ}Ô\a֜-@TGZ&6`ikZwעKx#iejp"|szyÄ3SOF Z39/ErD*̥"zp'2]y SrQ6Qά4OkMfnoY_ 8{zyÄ[6Q ރ=.uwQ:sR~F=D?x/o0|@V^\b{*/7ZZ?F$+,R/Gһx.#aJ۽< 8[]ʱFG{3ѢPh|d.^̑Ni-_  GejeJ.3R8Vs1$,4AvG^0y>5}4 vejD0:',3tFrX#̥22Ndabu""ć޲~d(s`k噹Vi0UZip S?V{Z"pI7iJMgߤԲ3SӶ`080$@ip Ӷl$UX7:;s>{ƦZ'/Lq{g#i2Nv\HXD] YM0@IL1W3S^>u\ yJ˼sޘ6N `+/F@74}fY u{Cdh05ѹtVhG.[*nSη/q!H85|'ez\u=<3D bkR ,4Xihė-  92Sw:I+L[jj02:O&h3њH `)/FҤD3S4Ţ9X+7ײ!V2u=Ek::BI>u4̬xL3SVW WۃF&/s1OBoXܶ+Oe@ xyf0XݟD,)rz˛Xx'*:Mq1 u<3œU  <<32*I,n)NxyӔL#4zü?w r} [ gCp˛8:|/ߜSn* Ӻ̜ΣO䓡(  aMSDZ1WPvX\}bDuAJ^*FV6e.ػ633.riV6hyyӔBn) & SFO3s0o+b:>tS~/ Sz336fªA@yfʎ d>Cem^})N.s\/o>kY%uYj q|Դi@ AmM#\m^҉󥹃,̬R*k::DXk^ȣhhF%fywodGDK8G_i%h\ u;f\u<4ʂΥe#/*eՍo2O~h˛9@z ΈCp d`a{ ?3E q~fN{NΖN9|mʽCZHًAvHԋ#)VA#mq~fN p@I*s>j{Wy C% gm8#_/7Kv~b[$yoᗞϳ#I'hCa^F7ămQp|$̣Η^| *w}!")Eh0.dٜ֙VA^$y&AWQQ,BjZJٟ뜏q˛#?6̟y5>KCcũS_֞=ҺrM!7Gaq[ nxuא$C }^=I^rf㍏&0xz=^CY o~ۅ@Lb߫)TW@[3bJ)ZLJp~MʢAsgRI=!W-Ȫ _\z=A D.vG^zf?A)OT86Q$c:ۈE@S˛5c{ˢ )Qk)#rbŔv ۣ&+3'J /GC,EgR|{UKZެag!/H}2">3eUA$?xw['!Ԯ>s^3D#im~|'?bM)7jX -?Q~f~§g#I~<*Obpȯa׹ 1"\ZO G<ɋ_7Km$o  _FRyfnBW<&H:I/H~~Y<]DFi Kvj>V뿻CsM;_J1pnP̓F ~#s9ezOvIwp?bv6~^˳9m'!.e= ~f&VK= RY1!SkrkK/[W[/C'#32t: H\#A s ~#IT*Sq&fb;]kʃhW)KfKtV0>ux.S(vS>V&ha.}=y;.wx'`|PAD7s{ ȃ"|AFħ`R/-~#jyգX}ܕjj}sNzھ5 bUL΂ "ă!b ȃD  P!p#-&NQJЂ<kV!8 ĵ[?3* {{zwϘD$C@ dnY~ɎE*%\BKCSܹAХ,YAz#@DI~ XwR&4rÈ@o8mJ~.j@@ Kx9N#?4"u¼֣L5Rr烼K@$ d6`--sR)#(71ñL5_?rC~ >  `3gc=yZBnd $}ȲOʣ_Y/ud[F @@&=3 dP&3yHsH0vlTr qj&GYo)[0_.6@* qqS9VǾ7$EEs{!z_n;Lx dA8d 9ą@*l9ҖmLw;塱0 li|db7]XOf~:}~+OM@ >3P\g&nyV9y{kyv9r ¼vB=-a}oIKzoğ3?$<3ei @M>5[TTT&y?΃%lض ۥ0ꗝc97lpa7S9~< mwrPȊ7 rEqp3,bT @G2hr`VN&o2\h;0?7eSjNs}q"7Y   К@O&CKy~{iʖ&[>y]79Β#s8##۸:a^{1+Wj:aWH  h<2.R   `Lv42/   C pMȼ:'D@&nd^..FU;    М@sAB@ zjys; uœ/`gP+H5CY]'Y8R]Fm@@@XVwoy0G t76j   PC(y'@@@A'9W_${}O-Gaﮍ   V'9WwUUFe@@@𠻟v<|~C@@@ 2"ENVQq{mD|gd0?p6ۢ2j   PK@[ ݻw-@@@ [oՙ\2*   GI>7l)/%XAI>7,_֨@'Pa/5DM`+8 yPxA@@! rg -[L   xW>@Ca.X/_l@#TpO`,Q.7l,'|/'|3" o*7m4'SB{r]M9KY[ '@@@B% XSM$fOXp@@@ ,Ļ#1 `cj[?~'RoذAvO{Q8   ,Tھ}{C-T3y?{*rp V:;JG8C}@@@ ,]pJo޼y'W4@@@!إPW\">>   `A4kE6 K/$˚憋   ~XƎbΗKaD=mQK`ݻa$yt.wn2FO~qƻ`${3 wmqS 4'\[WX*wDGK&411?X2K"_y.W9u?:M C\Xʣc_Q sɆ ??g@@@~(4Z{xr\`즕B|H!xT~WӶ ogi   pQSiSxy)AJ?c&ѨR8  i! SSm= s)+M|?mE@@F@f"`OO׸B2H   i!2S¿9ݾs-[vd_+WR)}EOmMKEx~ˁx_VA@@ ix?_, _G~dRl>nܸA5 @Xoj4^۾Pyb~.Ͽ?Sqx[w̻+*̫ʆKX#E}!O^@@DGOs}'L!^e0&Mt> KYkrUH8J` qpl {e*06y)x>wL4j<A@@ b\,DW/_ a^m@'__h}Cb>GUa  ? #ˠ5||X,*M9V Xd'X@??4>w@@@'}= ?y> e|,Q@yX+kek'{?Kl<7T1OD~Bx{g  t-q|E+y{{is N4xn3õYȏǝ"#v9B}??3J~a#kA9>"XL2RgxZ;;~>lj"ܻNVqorm+wkȳ4~(wp;;{{[Z h#2|%Ԝ#IS=/G~={E9z+)jr^WƓ6VM_=o^援mj=$z6UߵGz?O}_?"qX9ʅ깾HMTVKYi]q*rJ\o~T\|¥[unN_c?sZ?s.~], <.SJq/    0?A@@B ad  A0.>R+8 ]IENDB`geg-2.0.9/desktop/geg.desktop0000644000175000017500000000025412712723703016275 0ustar georgeskgeorgesk[Desktop Entry] Type=Application Name=Geg GenericName=Equation Grapher Comment= a GTK+ Equation Grapher Icon=plot2d Exec=geg Terminal=false Categories=Application;Science; geg-2.0.9/configure0000755000175000017500000056474512735237215014425 0ustar georgeskgeorgesk#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org 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_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="src" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS LIBOBJS EGREP GREP CPP GTK_LIBS GTK_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LN_S am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC MAINT MAINTAINER_MODE_FALSE MAINTAINER_MODE_TRUE AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V 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 target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir runstatedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_maintainer_mode enable_dependency_tracking enable_gtktest ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR 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}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -runstatedir | --runstatedir | --runstatedi | --runstated \ | --runstate | --runstat | --runsta | --runst | --runs \ | --run | --ru | --r) ac_prev=runstatedir ;; -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | --run=* | --ru=* | --r=*) runstatedir=$ac_optarg ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package 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/PACKAGE] --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 _ACEOF fi if test -n "$ac_init_help"; then 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-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-maintainer-mode enable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-gtktest do not try to compile and run a test GTK+ program 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 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=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_run LINENO # ---------------------- # Try to link 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\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_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$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.15' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "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=`$as_echo "$program_transform_name" | sed "$ac_script"` # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. 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 (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ '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+set}" = set; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; 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} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else 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 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$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=geg VERSION=2.0.9 cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # 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 -' # 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 config.h" { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } # Check whether --enable-maintainer-mode was given. if test "${enable_maintainer_mode+set}" = set; then : enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval else USE_MAINTAINER_MODE=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 $as_echo "$USE_MAINTAINER_MODE" >&6; } if test $USE_MAINTAINER_MODE = yes; then MAINTAINER_MODE_TRUE= MAINTAINER_MODE_FALSE='#' else MAINTAINER_MODE_TRUE='#' MAINTAINER_MODE_FALSE= fi MAINT=$MAINTAINER_MODE_TRUE 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } if ${am_cv_prog_cc_c_o+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 $as_echo "$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 DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 $as_echo_n "checking whether ln -s works... " >&6; } LN_S=$as_ln_s if test "$LN_S" = "ln -s"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 $as_echo "no, using $LN_S" >&6; } fi if test "x$GCC" = "xyes"; then if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then CFLAGS="$CFLAGS -Wall" fi fi 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi # Check whether --enable-gtktest was given. if test "${enable_gtktest+set}" = set; then : enableval=$enable_gtktest; else enable_gtktest=yes fi pkg_config_args=gtk+-2.0 for module in . do case "$module" in gthread) pkg_config_args="$pkg_config_args gthread-2.0" ;; esac done no_gtk="" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else 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 test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac 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.7 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi min_gtk_version=2.0.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5 $as_echo_n "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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include int main () { int major, minor, micro; char *tmp_version; fclose (fopen ("conf.gtktest", "w")); /* 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 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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } : else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "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 () { 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 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$ac_exeext conftest.$ac_ext CFLAGS="$ac_save_CFLAGS" LIBS="$ac_save_LIBS" fi fi GTK_CFLAGS="" GTK_LIBS="" Gtk2 was not found fi rm -f conf.gtktest { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lX11" >&5 $as_echo_n "checking for main in -lX11... " >&6; } if ${ac_cv_lib_X11_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lX11 $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_X11_main=yes else ac_cv_lib_X11_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_main" >&5 $as_echo "$ac_cv_lib_X11_main" >&6; } if test "x$ac_cv_lib_X11_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBX11 1 _ACEOF LIBS="-lX11 $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXext" >&5 $as_echo_n "checking for main in -lXext... " >&6; } if ${ac_cv_lib_Xext_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lXext $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_Xext_main=yes else ac_cv_lib_Xext_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_main" >&5 $as_echo "$ac_cv_lib_Xext_main" >&6; } if test "x$ac_cv_lib_Xext_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBXEXT 1 _ACEOF LIBS="-lXext $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5 $as_echo_n "checking for main in -lm... " >&6; } if ${ac_cv_lib_m_main+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { return main (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_main=yes else ac_cv_lib_m_main=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5 $as_echo "$ac_cv_lib_m_main" >&6; } if test "x$ac_cv_lib_m_main" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h do : ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" if test "x$ac_cv_header_fcntl_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_FCNTL_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } if ${ac_cv_c_const+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __cplusplus /* Ultrix mips cc rejects this sort of thing. */ typedef int charset[2]; const charset cs = { 0, 0 }; /* SunOS 4.1.1 cc rejects this. */ char const *const *pcpcc; char **ppc; /* NEC SVR4.0.2 mips cc rejects this. */ struct point {int x, y;}; static struct point const zero = {0,0}; /* AIX XL C 1.02.0.0 rejects this. It does not let you subtract one const X* pointer from another in an arm of an if-expression whose if-part is not a constant expression */ const char *g = "string"; pcpcc = &g + (g ? g-g : 0); /* HPUX 7.0 cc rejects these. */ ++pcpcc; ppc = (char**) pcpcc; pcpcc = (char const *const *) ppc; { /* SCO 3.2v4 cc rejects this sort of thing. */ char tx; char *t = &tx; char const *s = 0 ? (char *) 0 : (char const *) 0; *t++ = 0; if (s) return 0; } { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ int x[] = {25, 17}; const int *foo = &x[0]; ++foo; } { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ typedef const int *iptr; iptr p = 0; ++p; } { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ struct s { int j; const int *ap[3]; } bx; struct s *b = &bx; b->j = 5; } { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ const int foo = 10; if (!foo) return 0; } return !cs[0] && !zero.x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_const=yes else ac_cv_c_const=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 $as_echo "$ac_cv_c_const" >&6; } if test $ac_cv_c_const = no; then $as_echo "#define const /**/" >>confdefs.h fi for ac_func in strdup do : ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" if test "x$ac_cv_func_strdup" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STRDUP 1 _ACEOF fi done ac_config_files="$ac_config_files Makefile desktop/Makefile help/Makefile examples/Makefile src/Makefile src/pixmaps/Makefile po/Makefile stamp.h" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= 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=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "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 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi 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 : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _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 $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" 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 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' 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 ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;; "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;; "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "src/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmaps/Makefile" ;; "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; "stamp.h") CONFIG_FILES="$CONFIG_FILES stamp.h" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= 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=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac 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@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t 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"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # 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 || $as_echo 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) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$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. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done 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 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi geg-2.0.9/stamp-h0000644000175000017500000000001212671354434013760 0ustar georgeskgeorgesktimestamp geg-2.0.9/TODO0000644000175000017500000000023712713324044013154 0ustar georgeskgeorgesk* command line options * fix equation intercept solving algorithm, it doesn't solve equations that touch, but don't cross, eg f(x) = sin(x) and f(x) = 1 geg-2.0.9/eps2svg.10000644000175000017500000000406212675570477014163 0ustar georgeskgeorgesk'\" t .\" Title: EPS2SVG .\" Author: Georges Khaznadar .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: 03/26/2016 .\" Manual: eps2svg User Manual .\" Source: eps2svg .\" Language: English .\" .TH "EPS2SVG" "1" "03/26/2016" "eps2svg" "eps2svg User Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" eps2svg \- program to convert \&.eps files to format SVG\&. .SH "SYNOPSIS" .HP \w'\fBeps2svg\fR\ 'u \fBeps2svg\fR [\fIinput\&.eps\fR] [\fIoutput\&.svg\fR] .SH "DESCRIPTION" .PP \fBeps2svg\fR is a program that converts EPS files to SVG format\&. .SH "AUTHOR" .PP \fBGeorges Khaznadar\fR <\&georgesk@debian\&.org\&> .RS 4 Wrote this manpage for the Debian system\&. .RE .SH "COPYRIGHT" .br Copyright \(co 2016 Georges Khaznadar .br .PP This manual page was written for the Debian system (and may be used by others)\&. .PP Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common\-licenses/GPL\&. .sp geg-2.0.9/compile0000755000175000017500000001624512735031745014057 0ustar georgeskgeorgesk#! /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: