summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2003-05-29 19:43:06 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2003-05-29 19:43:06 +0000
commit47426f0b3fe6cddea8cca421d0c905edb4834bfa (patch)
treedf2c6b602ef87e2c6a78af34972a55b40b84ef66
parent0753014e309d94f28a04893fddb25f175417b8af (diff)
Drop undocumented and non-working --prefix and --exec-prefix options to
fltk-config script (STR #56) Fix configure tests that had bogus whitespace in them (STR #60) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3015 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES9
-rw-r--r--configure.in34
-rwxr-xr-xfltk-config.in30
3 files changed, 27 insertions, 46 deletions
diff --git a/CHANGES b/CHANGES
index bacf5ab34..fa882f6e6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,9 +1,16 @@
CHANGES IN FLTK 1.1.4
+ - The configure script contained erroneous whitespace in
+ various tests which caused errors on some platforms
+ (STR #60)
+ - The fltk-config script still supported the deprecated
+ --prefix and --exec-prefix options; dropped them since
+ they serve no useful purpose and would never have
+ worked for the intended purpose anyways... (STR #56)
- fl_filename_list returned 0 on Win32 if no directory
existed (STR #54)
- Pressing 'home' after the last letter in a Text_Editor
- would move the cursor to pos 0 (STR #39)
+ would move the cursor to pos 0 (STR #39)
- Fl::get_key(x) would mix up Ctrl and Meta on OS X (STR
#55)
- The configure script used the wrong dynamic library
diff --git a/configure.in b/configure.in
index 9725a0d3c..4735e2778 100644
--- a/configure.in
+++ b/configure.in
@@ -1,7 +1,7 @@
dnl -*- sh -*-
dnl the "configure" script is made from this by running GNU "autoconf"
dnl
-dnl "$Id: configure.in,v 1.33.2.31.2.98 2003/05/27 20:22:50 easysw Exp $"
+dnl "$Id: configure.in,v 1.33.2.31.2.99 2003/05/29 19:43:06 easysw Exp $"
dnl
dnl Configuration script for the Fast Light Tool Kit (FLTK).
dnl
@@ -47,10 +47,10 @@ AC_SUBST(FL_API_VERSION)
dnl Get the operating system and version number...
uname=`uname`
uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'`
-if test x$uname = xIRIX64; then
+if test "x$uname" = xIRIX64; then
uname="IRIX"
fi
-if test x$uname = x; then
+if test "x$uname" = x; then
# MingW doesn't provide any output when uname is run, even with "-s"...
uname="CYGWIN"
fi
@@ -119,7 +119,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.$FL_API_VERSION.dylib"
IMGDSONAME="libfltk_images.$FL_API_VERSION.dylib"
DSOCOMMAND="ld $DSOFLAGS -dylib /usr/lib/dylib1.o -lc -o"
- if test "$libdir" != "/usr/lib"; then
+ if test "x$libdir" != "x/usr/lib"; then
DSOLINK="-Wl,-rpath,$libdir"
fi
;;
@@ -130,7 +130,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
DSOCOMMAND="\$(CXX) -h \$@ \$(LDLIBS) -G $DEBUGFLAG -o"
- if test "$libdir" != "/usr/lib"; then
+ if test "x$libdir" != "x/usr/lib"; then
DSOLINK="-R$libdir"
fi
;;
@@ -140,7 +140,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.sl.$FL_API_VERSION"
IMGDSONAME="libfltk_images.sl.$FL_API_VERSION"
DSOCOMMAND="ld -b -z +h \$@ $DEBUGFLAG -o"
- if test "$libdir" != "/usr/lib"; then
+ if test "x$libdir" != "x/usr/lib"; then
DSOLINK="-Wl,-rpath,$libdir"
fi
;;
@@ -150,7 +150,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@,-set_version,sgi1.1 \$(LDLIBS) -shared $DEBUGFLAG -o"
- if test "$libdir" != "/usr/lib" - a "$libdir" != "/usr/lib32"; then
+ if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32" -a "x$libdir" != "x/usr/lib64"; then
DSOLINK="-Wl,-rpath,$libdir"
fi
;;
@@ -160,7 +160,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared $DEBUGFLAG -o"
- if test "$libdir" != "/usr/lib" - a "$libdir" != "/usr/lib32"; then
+ if test "x$libdir" != "x/usr/lib" -a "x$libdir" != "x/usr/lib32"; then
DSOLINK="-Wl,-rpath,$libdir"
fi
;;
@@ -170,7 +170,7 @@ if test x$enable_shared = xyes; then
GLDSONAME="libfltk_gl.so.$FL_API_VERSION"
IMGDSONAME="libfltk_images.so.$FL_API_VERSION"
DSOCOMMAND="\$(CXX) -Wl,-soname,\$@ \$(LDLIBS) -shared -fPIC $DEBUGFLAG -o"
- if test "$libdir" != "/usr/lib"; then
+ if test "x$libdir" != "x/usr/lib"; then
DSOLINK="-Wl,-rpath,$libdir"
fi
;;
@@ -228,9 +228,9 @@ AC_PROG_CC
AC_PROG_CXX
dnl AC_PROG_INSTALL
AC_PATH_PROG(NROFF,nroff)
-if test "$NROFF" = ""; then
+if test "x$NROFF" = "x:"; then
AC_PATH_PROG(GROFF,groff)
- if test "$GROFF" = ""; then
+ if test "x$GROFF" = "x:"; then
NROFF="echo"
else
NROFF="$GROFF -T ascii"
@@ -303,13 +303,13 @@ AC_HEADER_DIRENT
AC_CHECK_HEADER(sys/select.h,AC_DEFINE(HAVE_SYS_SELECT_H))
AC_CHECK_HEADER(sys/stdtypes.h,AC_DEFINE(HAVE_SYS_SELECT_H))
AC_CHECK_FUNC(scandir,
- if test "$uname" = SunOS -o "$uname" = QNX; then
+ if test "x$uname" = xSunOS -o "x$uname" = xQNX; then
AC_MSG_WARN(Not using $uname scandir emulation function.)
else
AC_DEFINE(HAVE_SCANDIR)
fi)
AC_CHECK_FUNC(vsnprintf,[
- case $uname in
+ case "$uname" in
HP-UX*)
if test "$uversion" = "1020"; then
AC_MSG_WARN(Not using built-in vsnprintf function because you are running HP-UX 10.20.)
@@ -331,7 +331,7 @@ AC_CHECK_FUNC(vsnprintf,[
;;
esac])
AC_CHECK_FUNC(snprintf,[
- case $uname in
+ case "$uname" in
HP-UX*)
if test "$uversion" = "1020"; then
AC_MSG_WARN(Not using built-in snprintf function because you are running HP-UX 10.20.)
@@ -395,11 +395,11 @@ AC_EXEEXT
dnl Check for pthreads for multi-threaded apps...
have_pthread=no
-if test x"$enable_threads" = xyes; then
+if test "x$enable_threads" = xyes; then
AC_CHECK_HEADER(pthread.h, AC_DEFINE(HAVE_PTHREAD_H))
AC_CHECK_LIB(pthread, pthread_create)
- if test x"$ac_cv_lib_pthread_pthread_create" = xyes -a x$ac_cv_header_pthread_h = xyes; then
+ if test "x$ac_cv_lib_pthread_pthread_create" = xyes -a x$ac_cv_header_pthread_h = xyes; then
have_pthread=yes
else
dnl *BSD uses -pthread option...
@@ -848,5 +848,5 @@ dnl Make sure the fltk-config script is executable...
chmod +x fltk-config
dnl
-dnl End of "$Id: configure.in,v 1.33.2.31.2.98 2003/05/27 20:22:50 easysw Exp $".
+dnl End of "$Id: configure.in,v 1.33.2.31.2.99 2003/05/29 19:43:06 easysw Exp $".
dnl
diff --git a/fltk-config.in b/fltk-config.in
index 176bfca9e..1c4a55362 100755
--- a/fltk-config.in
+++ b/fltk-config.in
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# "$Id: fltk-config.in,v 1.12.2.18 2003/03/26 00:47:14 easysw Exp $"
+# "$Id: fltk-config.in,v 1.12.2.19 2003/05/29 19:43:06 easysw Exp $"
#
# FLTK configuration utility.
#
@@ -66,8 +66,6 @@ usage ()
{
echo "Usage: fltk-config [OPTIONS]
Options:
- [--prefix[=DIR]] return/set where FLTK is installed
- [--exec-prefix[=DIR]]
[--version]
[--api-version]
@@ -115,22 +113,6 @@ do
esac
case $1 in
- --prefix=*)
- prefix=$optarg
- if test $exec_prefix_set = no ; then
- exec_prefix=$optarg
- fi
- ;;
- --prefix)
- echo_prefix=yes
- ;;
- --exec-prefix=*)
- exec_prefix=$optarg
- exec_prefix_set=yes
- ;;
- --exec-prefix)
- echo_exec_prefix=yes
- ;;
--version)
echo $VERSION
;;
@@ -251,14 +233,6 @@ if test -n "$post" -a "$POSTBUILD" != ":"; then
$POSTBUILD $post $includedir/FL/mac.r
fi
-if test "$echo_prefix" = "yes"; then
- echo $prefix
-fi
-
-if test "$echo_exec_prefix" = "yes"; then
- echo $exec_prefix
-fi
-
if test "$echo_cflags" = "yes"; then
echo $includes $CFLAGS
fi
@@ -292,5 +266,5 @@ if test "$echo_libs" = "yes"; then
fi
#
-# End of "$Id: fltk-config.in,v 1.12.2.18 2003/03/26 00:47:14 easysw Exp $".
+# End of "$Id: fltk-config.in,v 1.12.2.19 2003/05/29 19:43:06 easysw Exp $".
#