From b9ae1d92d1f725459138e185d7a3644bfbf5f8fa Mon Sep 17 00:00:00 2001 From: curt Date: Wed, 27 Jan 1999 04:45:01 +0000 Subject: [PATCH] Working on separating GPC. --- acconfig.h | 3 +++ configure.in | 16 +++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/acconfig.h b/acconfig.h index 04cef51eb..98c86342d 100644 --- a/acconfig.h +++ b/acconfig.h @@ -83,6 +83,9 @@ /* Define if you have the getmntent function. */ #undef HAVE_GETMNTENT +/* Define if you have the gpc library and headers installed. */ +#undef HAVE_GPC_H + /* Define if the `long double' type works. */ #undef HAVE_LONG_DOUBLE diff --git a/configure.in b/configure.in index 09edfd6de..885687833 100644 --- a/configure.in +++ b/configure.in @@ -245,6 +245,20 @@ AC_SUBST(base_LIBS) AC_SUBST(opengl_LIBS) +dnl Check if Generic Polygon Clipping library is installed +dnl (from http://www.cs.man.ac.uk/aig/staff/alan/software/) +AC_CHECK_HEADERS( gpc.h ) +if test "x$ac_cv_header_windows_h" != "xyes"; then + echo + echo "You need to have the GPC library installed on your system to build" + echo "the scenery generation tools, otherwise, the build will fail." + echo + echo "You can get the library from:" + echo + echo " http://www.cs.man.ac.uk/aig/staff/alan/software/" + echo +fi + dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS( \ @@ -275,7 +289,6 @@ AC_OUTPUT( \ Lib/Audio/example/Makefile \ Lib/Bucket/Makefile \ Lib/Debug/Makefile \ - Lib/DEM/Makefile \ Lib/Math/Makefile \ Lib/Misc/Makefile \ Lib/PUI/Makefile \ @@ -306,6 +319,7 @@ AC_OUTPUT( \ Tools/Makefile \ Tools/Areas/Makefile \ Tools/AssemTris/Makefile \ + Tools/DEM/Makefile \ Tools/Dem2node/Makefile \ Tools/DemInfo/Makefile \ Tools/DemRaw2ascii/Makefile \ -- 2.39.5