- Timestamp:
- 11/19/08 13:45:17 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/configure.ac
r44 r195 13 13 ## Process this file with autoconf to produce a configure script. 14 14 15 # TODO: create m4 directory and put the checks there, because this file got realy poluted ( by Derex ) 16 15 17 ## Prelude, basic settings for Autoconf 18 # PACKAGE: trinity 19 # VERSION: 0.0.1 (trunk) 20 # BUG-REPORT-ADDRESS: devs@trinitycore.org 16 21 AC_INIT( [trinitycore], [0.0.1], [devs@trinitycore.org]) 17 18 22 AC_CONFIG_SRCDIR([src/shared/Base.cpp]) 19 23 … … 26 30 ## Prevent the configure script from continuing any further if 27 31 # configuration is being performed in the top-level directory. 28 # The idea is to prevent this ,because some maintainers tend 32 # The idea is to prevent this ,because some maintainers tend 29 33 # to break parallel build trees (a.k.a. VPATH builds). 30 34 if test "$srcdir" = "." && test "$enable_maintainer_mode" != "yes"; then … … 33 37 Please configure and build in a directory other than the 34 38 top-level source directory. This is needed because a lot 35 of maintainers tend to break parallel build trees 36 (a.k.a. VPATH builds). This is kinda real ensurance they 39 of maintainers tend to break parallel build trees 40 (a.k.a. VPATH builds). This is kinda real ensurance they 37 41 will not do it (by enforcing everybody to do VPATH builds). 38 42 … … 65 69 AC_PROG_CC 66 70 AC_PROG_CXX 71 AM_PROG_CC_C_O 67 72 AC_PROG_LIBTOOL 68 73 AC_PROG_INSTALL 69 AM_PROG_CC_C_O 74 70 75 71 76 # Check if enable scripts … … 102 107 103 108 ## Check for required libraries. 104 AC_CHECK_LIB( pthread, pthread_create, [], 109 AC_CHECK_LIB( pthread, pthread_create, [], 105 110 [LDFLAGS="-pthread $LDFLAGS" 106 111 AC_TRY_LINK([char pthread_create();], … … 121 126 esac], 122 127 [DO_POSTGRESQL=no]) 123 128 124 129 AC_ARG_WITH(mysql, 125 130 [ --with-mysql Use MySQL as a backend (default: yes)], … … 141 146 fi 142 147 AC_MSG_RESULT($DO_POSTGRESQL) 143 148 144 149 # here mysql 145 150 AC_MSG_CHECKING(whether to build/link MYSQL) … … 255 260 then 256 261 tri_need_to_build_ace=no 257 ACE_LIBS="-lACE"258 ACE_INCLUDES=""259 262 AC_MSG_RESULT([no]) 260 263 else … … 280 283 281 284 AM_CONDITIONAL([TRI_BUILD_ACE], [test X$tri_need_to_build_ace = Xyes]) 285 286 287 ## Unify all additional includes/libs in one variable. 288 # TODO this looks kinda ugly, but when we add m4 folder I will make it look very pritey ( by Derex ). 289 TRINI_INCLUDES="$POSTGRE_INCLUDES $MYSQL_INCLUDES $TRINI_INCLUDES" 290 TRINI_LIBS="$POSTGRE_LIBS $MYSQL_LIBS $ZLIB $COMPATLIB $SSLLIB $TRINI_LIBS" 282 291 283 292 ## Export defined variables … … 293 302 AC_SUBST(TRINITYD_ENABLE_CLI) 294 303 AC_SUBST(TRINITYD_ENABLE_RA) 304 305 ## Additional CPPFLAGS and LDFLAGS. 295 306 AC_SUBST(TRINI_INCLUDES) 296 307 AC_SUBST(TRINI_LIBS) … … 313 324 src/framework/Makefile 314 325 src/shared/Makefile 326 src/shared/Auth/Makefile 327 src/shared/Config/Makefile 328 src/shared/Database/Makefile 315 329 src/shared/vmap/Makefile 330 src/shared/SystemConfig.h 316 331 src/game/Makefile 317 332 src/trinityrealm/Makefile … … 321 336 ]) 322 337 338 ## Configure ACE, if needed 339 if test X$tri_need_to_build_ace = Xyes; then 340 AC_CONFIG_SUBDIRS([dep/ACE_wrappers]) 341 fi 342 343 ## Configure ACE 323 344 if test X$tri_build_scripts = Xyes; then 324 345 AC_CONFIG_FILES([src/bindings/scripts/Makefile]) 325 346 fi 326 327 ## Configure ACE328 if test X$tri_need_to_build_ace = Xyes; then329 AC_CONFIG_SUBDIRS([dep/ACE_wrappers])330 fi331 332 ## Disabled Makefiles, until they are ready for a successful make and333 # make dist run.334 347 335 348 AC_CONFIG_COMMANDS([default],[ … … 339 352 ],[PACKAGE_VERSION=$PACKAGE_VERSION]) 340 353 354 ## Disabled Makefiles, until they are ready for a successful make and 355 # make dist run. 356 341 357 ## Output files. 342 358 AC_OUTPUT