1dnl ### Process this file with autoconf to produce a configure script. 2 3AC_INIT([Xconq],[7.5.0],[xconq-players@lists.sourceforge.net]) 4AC_CONFIG_AUX_DIR([pkg]) 5 6AC_CONFIG_HEADERS([kernel/acdefs.h:kernel/acdefs.h.in]) 7 8AC_CANONICAL_HOST 9AC_CANONICAL_TARGET 10 11AC_ARG_PROGRAM 12 13dnl ## Older autoconfs don't know about this. 14dnl ## New autoconfs like to run it before using any *EGREP_* macros. 15dnl ## Autoconf was supposed to make life easier? 16AC_PROG_EGREP 17 18dnl ## This blows up if there is no C++ compiler. What should be done? 19AC_PROG_CXX 20AC_PROG_CXXCPP 21 22dnl ## Version numbers and strings. 23XCONQ_VERSION_MAJOR=7 24XCONQ_VERSION_MINOR=5 25XCONQ_VERSION_REVISION=0 26dnl ## Release levels can be 0pre, which signifies CVS snapshots and release 27dnl # candidates. Release levels 1 and higher are considered stable. 28XCONQ_VERSION_RELEASELVL="0pre" 29dnl ## Prerelease levels can be which signifies CVS snapshots. Prerelease 30dnl # levels 1 and higher are considered to be release candidates. 31XCONQ_VERSION_PRERELEASELVL=0 32XCONQ_VERSION_DATE=0 33case "$host" in 34 *-*-cygwin*|*-*-mingw32*|*-gnu) XCONQ_VERSION_DATE=`date --utc +%Y%m%d` ;; 35 *) ;; 36esac 37XCONQ_VERSION_MAIN="${XCONQ_VERSION_MAJOR}.${XCONQ_VERSION_MINOR}.${XCONQ_VERSION_REVISION}" 38XCONQ_VERSION_RELEASE="${XCONQ_VERSION_RELEASELVL}" 39if test "x0pre" = "x${XCONQ_VERSION_RELEASELVL}"; then 40 XCONQ_VERSION_RELEASE="${XCONQ_VERSION_RELEASE}.${XCONQ_VERSION_PRERELEASELVL}" 41 if test "x0" = "x${XCONQ_VERSION_PRERELEASELVL}"; then 42 XCONQ_VERSION_RELEASE="${XCONQ_VERSION_RELEASE}.${XCONQ_VERSION_DATE}" 43 fi 44fi 45XCONQ_VERSION_FULL="${XCONQ_VERSION_MAIN}-${XCONQ_VERSION_RELEASE}" 46XCONQ_VERSION_FULL_UNDERSCORED=`echo "${XCONQ_VERSION_FULL}" | sed 's/\./_/g'` 47 48AC_CACHE_SAVE 49 50dnl ## Set the compile test lang to C++. 51AC_LANG(C++) 52 53dnl ## Find some other very handy tools. 54AC_PROG_RANLIB 55AC_PROG_INSTALL 56AC_CHECK_TOOL(AR, ar) 57 58dnl ## Where is 'dirent.h' or its equivalent? 59AC_HEADER_DIRENT 60 61dnl ## What integer sizes are we dealing with? 62AC_CHECK_SIZEOF(int) 63AC_CHECK_SIZEOF(long) 64AC_CHECK_SIZEOF([long long]) 65 66AC_CACHE_SAVE 67 68dnl ## See if the old bundled 'tcl' and 'tk' dirs are around, and attempt 69dnl ## to configure them if they are. 70if test -d $srcdir/tcl -a -d $srcdir/tk; then 71 AC_CONFIG_SUBDIRS(tcl tk) 72fi 73 74dnl ## Find and load the Tcl and Tk configurations. 75CY_AC_PATH_TCLCONFIG 76CY_AC_LOAD_TCLCONFIG 77CY_AC_PATH_TKCONFIG 78CY_AC_LOAD_TKCONFIG 79 80dnl ## Find 'sdl-config' and load SDL configuration. 81AM_PATH_SDL(1.2.0) 82 83dnl ## Find 'freetype-config' and load FreeType2 configuration. 84dnl AC_CHECK_FT2(9.3.0) 85 86dnl ## Find 'paragui-config' and load ParaGUI configuration. 87dnl AM_PATH_PARAGUI(1.0.4) 88 89dnl ## Configure X11 related variables. 90AC_PATH_X 91if test "x$x_includes" != "x"; then 92 XINCLUDES=-I$x_includes 93else 94 XINCLUDES="# no special path needed" 95fi 96if test "x${x_libraries}" != "x"; then 97 XLIBS=-L$x_libraries 98else 99 XLIBS="# no special path needed, or else NONE" 100fi 101 102dnl ## All the makefiles that this config script must set up. 103makefiles="Makefile doc/Makefile kernel/Makefile lib/Makefile images/Makefile misc/Makefile tcltk/Makefile test/Makefile curses/Makefile sdl/Makefile" 104 105dnl ## All the versioned files that have their version info updated by the 106dnl # config script. 107versioned_files="kernel/version.h pkg/xconq.spec pkg/xconq.nsi" 108 109dnl ## Force ANSI compliance on systems using a GNU C++ compiler. 110dnl if test "x$GXX" = "xyes" ; then 111dnl CXXFLAGS="$CXXFLAGS -ansi" 112dnl fi 113 114dnl ## Backup the preprocessor and compiler flags before starting the tests. 115save_CPPFLAGS="$CPPFLAGS" 116save_CFLAGS="$CFLAGS" 117save_CXXFLAGS="$CXXFLAGS" 118 119dnl ## Uncomment the line below to test failure conditions. 120dnl CPPFLAGS="-nostdinc" 121 122dnl ## Needed for some of the header tests. 123if test "x$x_includes" != "x"; then 124 CPPFLAGS="$CPPFLAGS $XINCLUDES" 125 CFLAGS="$CFLAGS $XINCLUDES" 126fi 127 128dnl ## ActiveTcl and MinGW32 Tcl/Tk have an incomplete native Windows 129dnl ## X11 implementation, and we need to fill it out with some dummy 130dnl ## functions. 131case "$host" in 132 *-*-cygwin*|*-*-mingw32*) 133 AC_DEFINE(NEED_XLIB_XSETTILE,) 134 AC_DEFINE(NEED_XLIB_XFLUSH,) 135 AC_DEFINE(NEED_XLIB_XSYNCHRONIZE,) 136 ;; 137 *) ;; 138esac 139 140dnl ## Find headers containing 'struct timeval' and 'struct timezone'. 141have_sys_time_h="no" 142AC_MSG_CHECKING([for <sys/time.h>]) 143AC_TRY_CPP([#include <sys/time.h>],[have_sys_time_h="yes"]) 144AC_MSG_RESULT(${have_sys_time_h}) 145have_time_h="no" 146AC_MSG_CHECKING([for <time.h>]) 147AC_TRY_CPP([#include <time.h>],[have_time_h="yes"]) 148AC_MSG_RESULT(${have_time_h}) 149have_winsock_h="no" 150AC_MSG_CHECKING([for <winsock.h>]) 151AC_TRY_CPP([#include <winsock.h>],[have_winsock_h="yes"]) 152AC_MSG_RESULT(${have_winsock_h}) 153 154dnl ## Look for 'struct timeval' in any headers found above. 155have_struct_timeval="no" 156AC_MSG_CHECKING([for struct timeval]) 157if test "x${have_struct_timeval}" = "xno" -a "x${have_sys_time_h}" = "xyes"; 158then 159 AC_EGREP_HEADER([struct timeval],[sys/time.h],[have_struct_timeval="yes"]) 160fi 161if test "x${have_struct_timeval}" = "xno" -a "x${have_time_h}" = "xyes"; then 162 AC_EGREP_HEADER([struct timeval],[time.h],[have_struct_timeval="yes"]) 163fi 164if test "x${have_struct_timeval}" = "xno" -a "x${have_winsock_h}" = "xyes"; then 165 AC_EGREP_HEADER([struct timeval],[winsock.h],[have_struct_timeval="yes"]) 166fi 167if test "x${have_struct_timeval}" = "xno" ; then 168 AC_DEFINE(NEED_STRUCT_TIMEVAL,) 169fi 170AC_MSG_RESULT(${have_struct_timeval}) 171 172dnl ## Look for 'struct timezone' in any headers found above. 173have_struct_timezone="no" 174AC_MSG_CHECKING([for struct timezone]) 175if test "x${have_struct_timezone}" = "xno" -a "x${have_sys_time_h}" = "xyes"; 176then 177 AC_EGREP_HEADER([struct timezone],[sys/time.h],[have_struct_timezone="yes"]) 178fi 179if test "x${have_struct_timezone}" = "xno" -a "x${have_time_h}" = "xyes"; then 180 AC_EGREP_HEADER([struct timezone],[time.h],[have_struct_timezone="yes"]) 181fi 182if test "x${have_struct_timezone}" = "xno" ; then 183 AC_DEFINE(NEED_STRUCT_TIMEZONE,) 184fi 185AC_MSG_RESULT(${have_struct_timezone}) 186 187dnl ## Figure out if Cconq can be built. 188CCONQ_PRECHECK="" 189have_curses_h="no" 190AC_MSG_CHECKING([for <curses.h>]) 191AC_TRY_CPP([#include <curses.h>],[have_curses_h="yes"]) 192AC_MSG_RESULT(${have_curses_h}) 193have_ncurses_h="no" 194AC_MSG_CHECKING([for <ncurses.h>]) 195AC_TRY_CPP([#include <ncurses.h>],[have_ncurses_h="yes"]) 196AC_MSG_RESULT(${have_ncurses_h}) 197if test "x${have_curses_h}" = "xno" -a "x${have_ncurses_h}" = "xno" ; then 198 CCONQ_PRECHECK="cconq-fail" 199fi 200 201dnl ## Figure out which curses lib to link against. 202CURSES_LIB="" 203case "$host" in 204 *-*-mingw32*) 205 possible_dirs="/mingw/lib /lib/mingw /usr/lib/mingw /lib /usr/lib" 206 possible_dirs="${possible_dirs} ../lib ../curses" 207 ;; 208 *) 209 possible_dirs="/lib /usr/lib /usr/local/lib /opt/lib /opt/local/lib" 210 possible_dirs="${possible_dirs} /opt/share/lib ../lib ../curses" 211 ;; 212esac 213for d in ${possible_dirs}; do 214 AC_CHECK_FILE([$d/libpdcurses.a],[have_pdcurses_lib="yes"], 215 [have_pdcurses_lib="no"]) 216 if test "x${have_pdcurses_lib}" = "xyes"; then break; fi 217 AC_CHECK_FILE([$d/libncurses.a],[have_ncurses_lib="yes"], 218 [have_ncurses_lib="no"]) 219 if test "x${have_ncurses_lib}" = "xyes"; then break; fi 220 AC_CHECK_FILE([$d/libcurses.a],[have_curses_lib="yes"], 221 [have_curses_lib="no"]) 222 if test "x${have_curses_lib}" = "xyes"; then break; fi 223done 224if test "x${have_curses_lib}" != "xyes" -a "x${have_ncurses_lib}" != "xyes" \ 225 -a "x${have_pdcurses_lib}" != "xyes"; then 226 CCONQ_PRECHECK="cconq-fail" 227fi 228if test "x${have_ncurses_lib}" = "xyes"; then 229 CURSES_LIB="-lncurses" 230 AC_DEFINE(HAVE_NCURSES_LIB,) 231elif test "x${have_curses_lib}" = "xyes"; then 232 CURSES_LIB="-lcurses" 233 AC_DEFINE(HAVE_CURSES_LIB,) 234elif test "x${have_pdcurses_lib}" = "xyes"; then 235 CURSES_LIB="-lpdcurses" 236 AC_DEFINE(HAVE_PDCURSES_LIB,) 237fi 238 239dnl ## Restore C preprocessor and compiler flags. 240CPPFLAGS="${save_CPPFLAGS}" 241CFLAGS="${save_CFLAGS}" 242CXXFLAGS="${save_CXXFLAGS}" 243 244dnl ## Backup linker flags and libraries. 245save_LDFLAGS="$LDFLAGS" 246save_LIBS="$LIBS" 247 248dnl ## Uncomment the line below to test failure conditions. 249dnl LDFLAGS="-nostdlib" 250 251dnl ## Check for the existence of the 'gettimeofday' function. 252have_gettimeofday="no" 253AC_MSG_CHECKING(for gettimeofday) 254AC_TRY_LINK([ 255#ifdef __cplusplus 256extern "C" { 257#endif 258#include <time.h> 259#include <sys/time.h> 260#ifdef __cplusplus 261} 262#endif],[ 263 struct timeval tv; 264 gettimeofday(&tv, NULL); 265],[have_gettimeofday="yes"],[have_gettimeofday="no"]) 266if test "x${have_gettimeofday}" = "xno" ; then 267 AC_DEFINE(NEED_GETTIMEOFDAY,) 268fi 269AC_MSG_RESULT(${have_gettimeofday}) 270 271dnl ## Restore linker flags and libraries. 272CFLAGS="${save_CFLAGS}" 273LDFLAGS="${save_LDFLAGS}" 274LIBS="${save_LIBS}" 275 276dnl ## Setup standard platform flags for all interfaces. 277case "${host}" in 278*-*-cygwin*|*-*-mingw32*) 279 if test "x${x_libraries}" != "xNONE"; then 280 makefiles="$makefiles x11/SelFile/Makefile x11/Makefile" 281 fi 282 HFLAGS="${HFLAGS} -mwin32" 283 HOBJS="win32.o socket.o" 284 PLATFORM_CFLAGS='$(ALL_WIN32_CFLAGS)' 285 PLATFORM_INCLUDES='$(ALL_WIN32_INCLUDES)' 286 PLATFORM_LDFLAGS='$(ALL_WIN32_LDFLAGS)' 287 PLATFORM_LIBS='$(ALL_WIN32_LIBS)' 288 PLATFORM_XCONQ_OBJS='$(WIN32_XCONQ_OBJS)' 289 PLATFORM_IMFAPP_OBJS='$(WIN32_IMFAPP_OBJS)' 290 PLATFORM_XCONQ_TARGETS='$(WIN32_XCONQ_TARGETS)' 291 PLATFORM_IMFAPP_TARGETS='$(WIN32_IMFAPP_TARGETS)' 292 PLATFORM_ALL_TARGETS='$(WIN32_ALL_TARGETS)' 293 PLATFORM_INSTALL_TARGETS='$(WIN32_INSTALL_TARGETS)' 294dnl W32API_LIBS="-lwsock32" 295 WIN32_COMMON_LIBS='$(KERNEL_LIB) $(LOW_LIB) $(MISSING_LIB)' 296 WIN32_COMMON_TARGETS="kernel-lib low-lib" 297 ;; 298*) 299 AC_DEFINE(UNIX,) 300 makefiles="$makefiles x11/SelFile/Makefile x11/Makefile" 301 HFLAGS="${HFLAGS}" 302 HOBJS="unix.o socket.o" 303 PLATFORM_CFLAGS='$(ALL_UNIX_CFLAGS)' 304 PLATFORM_INCLUDES='$(ALL_UNIX_INCLUDES)' 305 PLATFORM_LDFLAGS='$(ALL_UNIX_LDFLAGS)' 306 PLATFORM_LIBS='$(ALL_UNIX_LIBS)' 307 PLATFORM_XCONQ_OBJS='$(UNIX_XCONQ_OBJS)' 308 PLATFORM_IMFAPP_OBJS='$(UNIX_IMFAPP_OBJS)' 309 PLATFORM_XCONQ_TARGETS='$(UNIX_XCONQ_TARGETS)' 310 PLATFORM_IMFAPP_TARGETS='$(UNIX_IMFAPP_TARGETS)' 311 PLATFORM_ALL_TARGETS='$(UNIX_ALL_TARGETS)' 312 PLATFORM_INSTALL_TARGETS='$(UNIX_INSTALL_TARGETS)' 313 ;; 314esac 315 316dnl ## Choose an appropriate Windows subsystem, when relevant. 317WIN32_GUI_SUBSYS_FLAG="" 318WIN32_CUI_SUBSYS_FLAG="" 319case "${host}" in 320*-*-mingw32*) 321 W32API_LIBS="-lwsock32" 322 WIN32_GUI_SUBSYS_FLAG="-mwindows" 323 WIN32_CUI_SUBSYS_FLAG="-mconsole" 324 ;; 325*) ;; 326esac 327 328dnl ## Process the 'enable-build-warnings' config switch. 329build_warnings="" 330AC_ARG_ENABLE(build-warnings, 331[ --enable-build-warnings Enable additional build-time warnings], 332[case "${enableval}" in 333yes) if test "x$GXX" = "xyes"; then 334 build_warnings="-Wall -Wstrict-prototypes -Wmissing-prototypes" 335dnl build_warnings="${build_warnings} -Wdeclaration-after-statement" 336dnl build_warnings="${build_warnings} -Wshadow" 337dnl build_warnings="${build_warnings} -Wmissing-declarations" 338dnl build_warnings="${build_warnings} -Werror-implicit-function-declaration" 339 else 340 echo "Proper warning switches are not known for your compiler." 341 fi 342 ;; 343no) build_warnings="" ;; 344*) AC_MSG_ERROR(bad value ${enableval} for build-warnings option) ;; 345esac]) 346HFLAGS="$HFLAGS ${build_warnings}" 347 348dnl ## Process the 'enable-debugging' config switch. 349if test "x$GXX" = "xyes"; then 350 debugging="-g" 351else 352 debugging="" 353fi 354AC_ARG_ENABLE(debugging, 355[ --enable-debugging Enable debugging], 356[case "${enableval}" in 357yes) if test "x$GXX" = "xyes"; then 358 debugging="-g" 359 else 360 echo "Proper debugging switches are not known for your compiler." 361 fi 362 ;; 363no) if test "x$GXX" = "xyes"; then 364 debugging="-g0" 365 else 366 echo "Proper debugging switches are not known for your compiler." 367 fi 368 ;; 369*) AC_MSG_ERROR(bad value ${enableval} for debugging option) ;; 370esac]) 371HFLAGS="$HFLAGS ${debugging}" 372 373dnl ## Process the 'enable-build-optimizations' config switch. 374build_optimizations="" 375AC_ARG_ENABLE(build-optimizations, 376[ --enable-build-optimizations Enable additional build-time optimizations], 377[case "${enableval}" in 378yes) if test "x$GXX" = "xyes"; then 379 build_optimizations="-O2" 380 else 381 echo "Proper optimization switches are not known for your compiler." 382 fi 383 ;; 384no) build_optimizations="" ;; 385*) AC_MSG_ERROR(bad value ${enableval} for build-optimizations option) ;; 386esac]) 387HFLAGS="$HFLAGS ${build_optimizations}" 388 389dnl ## Process the 'enable-profiling' config switch. 390profiling="" 391AC_ARG_ENABLE(profiling, 392[ --enable-profiling Enable profiling support], 393[case "${enableval}" in 394yes) if test "x$GXX" = "xyes"; then 395 profiling="-pg" 396 else 397 echo "Proper profiling switches are not known for your compiler." 398 fi 399 ;; 400no) profiling="" ;; 401*) AC_MSG_ERROR(bad value ${enableval} for profiling option) ;; 402esac]) 403HFLAGS="$HFLAGS ${profiling}" 404 405dnl ## Process the 'enable-release-build' config switch. 406release_build="" 407AC_ARG_ENABLE(release-build, 408[ --enable-release-build Configure to build a release], 409[case "${enableval}" in 410yes) if test "x$GXX" = "xyes"; then 411 release_build="-O2 -s" 412 else 413echo "Proper release build switches are not known for your compiler." 414 fi 415 ;; 416no) release_build="" ;; 417*) AC_MSG_ERROR(bad value ${enableval} for release-build option) ;; 418esac]) 419HFLAGS="$HFLAGS ${release_build}" 420 421dnl ## Process the 'enable-default-ui' config switch. 422UI_TARGET=tkconq 423TKCONQ_EXEC_NAME=tkconq 424CCONQ_EXEC_NAME=cconq 425SDLCONQ_EXEC_NAME=sdlconq 426AC_ARG_ENABLE(default-ui, 427[ --enable-default-ui=UI Choose a default UI to make (default: tcltk) 428 (choices: tcltk,sdl,curses,xtxaw)], 429[case "${enableval}" in 430tcltk|TclTk|TCLTK|tkconq|TkConq|TKCONQ) 431 UI_TARGET=tkconq 432 TKCONQ_EXEC_NAME=xconq 433 ;; 434curses|Curses|CURSES|cconq|Cconq|CCONQ) 435 UI_TARGET=cconq 436 CCONQ_EXEC_NAME=xconq 437 ;; 438sdl|Sdl|SDL|sdlconq|SdlConq|SDLCONQ) 439 UI_TARGET=sdlconq 440 SDLCONQ_EXEC_NAME=xconq 441 ;; 442yes|Yes|YES|no|No|NO) 443 AC_MSG_ERROR([ui option: must specify one of tcltk,sdl,curses,xtxaw]) ;; 444*) AC_MSG_ERROR(ui option: unknown UI: ${enableval}) ;; 445esac]) 446if test "x${UI_TARGET}" = "xtkconq" ; then 447 TKCONQ_EXEC_NAME=xconq 448fi 449 450dnl ## Process the 'enable-alternate-scoresdir' config switch. 451dnl ## Application data file path recommended by FHS 2.1. 452scoresdir=/var/lib/xconq/scores 453AC_ARG_ENABLE(alternate-scoresdir, 454[ --enable-alternate-scoresdir=DIR Use dir for scores 455 (default: /var/lib/xconq/scores)], 456[case "${enableval}" in 457yes) AC_MSG_ERROR(Need path for --enable-alternate-scoresdir) ;; 458no) AC_MSG_ERROR(Need path for --enable-alternate-scoresdir) ;; 459*) scoresdir=${enableval} ;; 460esac]) 461AC_DEFINE_UNQUOTED(XCONQSCORES,"$scoresdir") 462AC_SUBST(scoresdir) 463 464dnl ## Process the 'enable-alternate-gameuser' config switch. 465gameuser=games 466AC_ARG_ENABLE(alternate-gameuser, 467[ --enable-alternate-gameuser=USER Install game as user (default: games)], 468[case "${enableval}" in 469yes) AC_MSG_ERROR(Need user for --enable-alternate-gameuser) ;; 470no) AC_MSG_ERROR(Need user for --enable-alternate-gameuser) ;; 471*) gameuser=${enableval} ;; 472esac]) 473 474dnl ## Process the 'enable-alternate-gamegroup' config switch. 475gamegrp=bin 476AC_ARG_ENABLE(alternate-gamegroup, 477[ --enable-alternate-gamegroup=GROUP Install game as group (default: bin)], 478[case "${enableval}" in 479yes) AC_MSG_ERROR(Need group for --enable-alternate-gamegroup) ;; 480no) AC_MSG_ERROR(Need group for --enable-alternate-gamegroup) ;; 481*) gamegrp=${enableval} ;; 482esac]) 483 484dnl SDLUI_LIB="../sdl/libsdlui.a" 485dnl AC_SUBST(SDLUI_LIB) 486dnl AC_SUBST(SDL_LIB) 487 488HFLAGS="$HFLAGS -DHAVE_ACDEFS_H" 489 490AC_DEFINE_UNQUOTED(XCONQDATA,"$prefix/share/xconq") 491 492AC_SUBST(UI_TARGET) 493AC_SUBST(TKCONQ_EXEC_NAME) 494AC_SUBST(CCONQ_EXEC_NAME) 495AC_SUBST(XTCONQ_EXEC_NAME) 496AC_SUBST(SDLCONQ_EXEC_NAME) 497 498AC_SUBST(gameuser) 499AC_SUBST(gamegrp) 500AC_SUBST(XINCLUDES) 501AC_SUBST(XLIBS) 502 503AC_SUBST(HFLAGS) 504AC_SUBST(HOBJS) 505AC_SUBST(PLATFORM_CFLAGS) 506AC_SUBST(PLATFORM_INCLUDES) 507AC_SUBST(PLATFORM_LDFLAGS) 508AC_SUBST(PLATFORM_LIBS) 509AC_SUBST(PLATFORM_XCONQ_OBJS) 510AC_SUBST(PLATFORM_IMFAPP_OBJS) 511AC_SUBST(PLATFORM_XCONQ_TARGETS) 512AC_SUBST(PLATFORM_IMFAPP_TARGETS) 513AC_SUBST(PLATFORM_ALL_TARGETS) 514AC_SUBST(PLATFORM_INSTALL_TARGETS) 515AC_SUBST(W32API_LIBS) 516AC_SUBST(WIN32_GUI_SUBSYS_FLAG) 517AC_SUBST(WIN32_CUI_SUBSYS_FLAG) 518AC_SUBST(WIN32_COMMON_LIBS) 519AC_SUBST(WIN32_COMMON_TARGETS) 520AC_SUBST(CCONQ_PRECHECK) 521AC_SUBST(CURSES_LIB) 522 523dnl ## Version substitutions. 524AC_SUBST(XCONQ_VERSION_MAJOR) 525AC_SUBST(XCONQ_VERSION_MINOR) 526AC_SUBST(XCONQ_VERSION_REVISION) 527AC_SUBST(XCONQ_VERSION_RELEASELVL) 528AC_SUBST(XCONQ_VERSION_PRERELEASELVL) 529AC_SUBST(XCONQ_VERSION_DATE) 530AC_SUBST(XCONQ_VERSION_MAIN) 531AC_SUBST(XCONQ_VERSION_RELEASE) 532AC_SUBST(XCONQ_VERSION_FULL) 533AC_SUBST(XCONQ_VERSION_FULL_UNDERSCORED) 534 535AC_OUTPUT($makefiles) 536AC_OUTPUT(${versioned_files}) 537