From 39c84a7df1a17472e9c4edc6d0ad8c3e5e21376a Mon Sep 17 00:00:00 2001 From: reid Date: Tue, 26 Jun 2001 08:13:05 +0000 Subject: [PATCH] [project @ 2001-06-26 08:13:04 by reid] NOTE: new configure.in - remember to autoconf and reconfig I'm moving X.gc and Xlib.gc from hslibs/graphics/lib/x11 to hslibs/xlib and integrating them into the hslibs maketree. This lib now lives at the same place in the hierarchy as win32 - probably not perfect for the new library story but good enough for the old hslibs I think. I'm not converting them from GreenCard to hsc2hs but I think that would be a good medium term goal. I'd like to do it myself because I'd like to try using hsc2hs but I can't imagine when I'll get the time so if someone feels like doing it, go right ahead. (The HGL (hslibs/graphics/lib/x11) is probably the only code that depends on the Xlib interface - so mild changes to the Xlib API would be fairly easy to fix up.) It all seems to build and compile (not sure about linking yet) but, for the life of me, I can't figure out what part of the makefile calls ghc-pkg -a so that isn't quite working yet. (I _think_ the makefile does this - but could be wrong.) If someone could either point me at the relevant part of the makefile docs or just fix it for me, I could move onto getting the graphics lib integrated into the hslibs maketree - which would leave me with just the Hugs part of the HGL distribution to fix before the next Hugs release. (If I was a good Haggis, I'd beat up on Hugs' ffi too - but I'm a very overworked Haggis at the moment so I'm not sure I'll get that far.) --- configure.in | 8 ++++++++ mk/config.mk.in | 3 +++ 2 files changed, 11 insertions(+) diff --git a/configure.in b/configure.in index be31d69..b2376fd 100644 --- a/configure.in +++ b/configure.in @@ -478,6 +478,8 @@ AC_ARG_WITH(glut-xlib, test -n "$with_glut_xlib" && CPPFLAGS="$CPPFLAGS -DGLUT_XLIB_IMPLEMENTATION=$with_glut_xlib" + + dnl -------------------------------------------------------------- dnl End of configure script option section dnl -------------------------------------------------------------- @@ -878,6 +880,12 @@ dnl ** check for math library FPTOOLS_CHECK_LIBM() AC_SUBST(LIBM) +case $HostOS_CPP in +cygwin32) ;; +mingw32) ;; +*) AC_PATH_XTRA() ;; +esac + dnl ################################################################ dnl Check for libraries dnl ################################################################ diff --git a/mk/config.mk.in b/mk/config.mk.in index 131aaf6..840e6ff 100644 --- a/mk/config.mk.in +++ b/mk/config.mk.in @@ -320,6 +320,9 @@ LIBM=@LIBM@ # GhcLibsWithHOpenGL=@GhcLibsWithHOpenGL@ +X_CFLAGS=@X_CFLAGS@ +X_LIBS=@X_LIBS@ + ################################################################################ # # happy project -- 1.7.10.4