diff --git a/ChangeLog b/ChangeLog index 9faacae370..f2e81462a1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2000-05-20 Dave Peticolas + * configure.in: remove check for readline. guile-config should + return the right values. Also, change LOCALE_DIR definition to + $datadir/locale. This seems to be more correct. + + * src/swig/perl5/Makefile.in: use -fPIC because it's needed on + sparcs and doesn't seem to hurt for others. + * src/gnome/window-register.c (gnc_register_sort): just sort by the given key and then by the standard order. diff --git a/configure b/configure index e7e99c9085..83f990c3a2 100755 --- a/configure +++ b/configure @@ -1661,7 +1661,7 @@ if test "${with_locale_dir+set}" = set; then withval="$with_locale_dir" LOCALE_DIR="$with_locale_dir" else - LOCALE_DIR="$prefix/share/locale" + LOCALE_DIR="$datadir/locale" fi @@ -4080,63 +4080,13 @@ rm -f conftest* #undo damage to CPPFLAGS CPPFLAGS="$OLDCPPFLAGS" -### -------------------------------------------------------------------------- -# If readline exists, just assume that guile needs it. It probably does. -echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6 -echo "configure:4087: checking for readline in -lreadline" >&5 -ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lreadline $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_lib=HAVE_LIB`echo readline | sed -e 's/[^a-zA-Z0-9_]/_/g' \ - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` - cat >> confdefs.h <&6 -fi - - ### -------------------------------------------------------------------------- EXTRALIBS=`$GNOME_CONFIG_BIN --libs gtkxmhtml` #check for gtkxmhtml, export library link to variable GTK_XMHTML echo $ac_n "checking for gtk_xmhtml_new in -lgtkxmhtml""... $ac_c" 1>&6 -echo "configure:4140: checking for gtk_xmhtml_new in -lgtkxmhtml" >&5 +echo "configure:4090: checking for gtk_xmhtml_new in -lgtkxmhtml" >&5 ac_lib_var=`echo gtkxmhtml'_'gtk_xmhtml_new | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4144,7 +4094,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgtkxmhtml $EXTRALIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4186,7 +4136,7 @@ EXTRALIBS=`$GNOME_CONFIG_BIN --libs xml` #check for libxml echo $ac_n "checking for xmlDefaultSAXHandlerInit in -lxml""... $ac_c" 1>&6 -echo "configure:4190: checking for xmlDefaultSAXHandlerInit in -lxml" >&5 +echo "configure:4140: checking for xmlDefaultSAXHandlerInit in -lxml" >&5 ac_lib_var=`echo xml'_'xmlDefaultSAXHandlerInit | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4194,7 +4144,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lxml $EXTRALIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4243,7 +4193,7 @@ EXTRALIBS=`$GNOME_CONFIG_BIN --libs print` # check for gnome-print and enable it via HAVE_LIBGNOMEPRINT # if found echo $ac_n "checking for gnome_print_context_new in -lgnomeprint""... $ac_c" 1>&6 -echo "configure:4247: checking for gnome_print_context_new in -lgnomeprint" >&5 +echo "configure:4197: checking for gnome_print_context_new in -lgnomeprint" >&5 ac_lib_var=`echo gnomeprint'_'gnome_print_context_new | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 @@ -4251,7 +4201,7 @@ else ac_save_LIBS="$LIBS" LIBS="-lgnomeprint $EXTRALIBS $LIBS" cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then +if { (eval echo configure:4216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then rm -rf conftest* eval "ac_cv_lib_$ac_lib_var=yes" else @@ -4305,7 +4255,7 @@ G_WRAP_LINK_ARGS="" # Extract the first word of "g-wrap-config", so it can be a program name with args. set dummy g-wrap-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4309: checking for $ac_word" >&5 +echo "configure:4259: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_G_WRAP_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4349,7 +4299,7 @@ fi # Extract the first word of "g-wrap", so it can be a program name with args. set dummy g-wrap; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4353: checking for $ac_word" >&5 +echo "configure:4303: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_G_WRAP'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4407,7 +4357,7 @@ GUILE_LINK_ARGS="" # Extract the first word of "guile-config", so it can be a program name with args. set dummy guile-config; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4411: checking for $ac_word" >&5 +echo "configure:4361: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GUILE_CONFIG'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else @@ -4451,7 +4401,7 @@ fi # Extract the first word of "guile", so it can be a program name with args. set dummy guile; ac_word=$2 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4455: checking for $ac_word" >&5 +echo "configure:4405: checking for $ac_word" >&5 if eval "test \"`echo '$''{'ac_cv_path_GUILE'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else diff --git a/configure.in b/configure.in index 55ae924feb..09b1a23675 100644 --- a/configure.in +++ b/configure.in @@ -89,7 +89,7 @@ AC_ARG_ENABLE( warnings, AC_ARG_WITH( locale-dir, [ --with-locale-dir=PATH specify where to look for locale-specific information], LOCALE_DIR="$with_locale_dir", - LOCALE_DIR="$prefix/share/locale") + LOCALE_DIR="$datadir/locale") AC_SUBST(LOCALE_DIR) @@ -340,10 +340,6 @@ AC_TRY_CPP([#include ], AC_MSG_RESULT(yes) , #undo damage to CPPFLAGS CPPFLAGS="$OLDCPPFLAGS" -### -------------------------------------------------------------------------- -# If readline exists, just assume that guile needs it. It probably does. -AC_CHECK_LIB(readline, readline) - ### -------------------------------------------------------------------------- EXTRALIBS=`$GNOME_CONFIG_BIN --libs gtkxmhtml` diff --git a/src/swig/perl5/Makefile.in b/src/swig/perl5/Makefile.in index a2489e1237..ae7953061c 100644 --- a/src/swig/perl5/Makefile.in +++ b/src/swig/perl5/Makefile.in @@ -29,17 +29,16 @@ INCLPATH = \ -I@top_srcdir@/src/engine \ -I@top_srcdir@/src/engine/guid \ -I@PERLINCL@/CORE \ - -I$(prefix)/include \ - `glib-config --cflags glib` + -I$(prefix)/include # set -Dbool=char because the perl headers need this # use -fpic so that we can create loadable module -CFLAGS := @CFLAGS@ ${INCLPATH} -Dbool=char -fPIC +CFLAGS = @CFLAGS@ ${INCLPATH} -Dbool=char -fPIC ${GLIB_CFLAGS} -LDFLAGS = @LDFLAGS@ +LDFLAGS = @LDFLAGS@ ${GLIB_LIBS} -SWIG_FLAGS := -stat -perl5 \ - -I.. -I@top_srcdir@/src/engine +SWIG_FLAGS = -stat -perl5 \ + -I.. -I@top_srcdir@/src/engine ###################################################################### # SEE Makefile.common for information about these variables.