Changeset 10430
- Timestamp:
- 04/20/11 17:17:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/configure.ac
r10402 r10430 3 3 ###################################################################### 4 4 5 #[AC_]PACKAGE_NAME 6 #[AC_]PACKAGE_TARNAME 7 #[AC_]PACKAGE_VERSION 8 #[AC_]PACKAGE_STRING 9 #[AC_]PACKAGE_BUGREPORT 5 10 AC_INIT([FACT++],[1.0],[thomas.bretz@epfl.ch],[FACTpp],[http://hello.example.com/]) 6 11 AC_PREREQ([2.65]) … … 140 145 # Needed to compile FACT++ 141 146 AX_BOOST_BASE([1.40], [], 142 [ 143 echo "Error! The boost C++ libraries are not properly installed." 144 exit -1 145 ] 147 AC_MSG_ERROR([The boost C++ libraries (>=1.40) are not properly installed.]) 146 148 ) 147 149 … … 198 200 [], [QT4_DO_IT_ALL]) 199 201 200 #AC_CHECK_PROG(QT4_MOC, moc, moc,201 # AC_MSG_ERROR([QT4 executable 'moc' not found in path.]))202 #AC_CHECK_PROG(QT4_UIC, uic, uic,203 # AC_MSG_ERROR([QT4 executable 'moc' not found in path.]))204 205 202 ###################################################################### 206 203 # ROOT SUPPORT 207 204 ###################################################################### 208 205 209 # ROOT_PATH([5.12/00, [ACTION-IF-FOUND, [ACTION-IF-NOT-FOUND]]]) 210 # ROOT_PATH([5.12/00]) 211 # ROOT_PATH(3.03/05, , AC_MSG_ERROR(Your ROOT version is too old)) 212 # ROOT_PATH(, AC_DEFINE([HAVE_ROOT])) 213 214 # ROOTCONF full path to root-config 215 # ROOTEXEC full path to root 216 # ROOTCINT full path to rootcint 217 # ROOTLIBDIR Where the ROOT libraries are 218 # ROOTINCDIR Where the ROOT headers are 219 # ROOTETCDIR Where the ROOT configuration is 220 # ROOTCFLAGS Extra compiler flags 221 # ROOTLIBS ROOT basic libraries 222 # ROOTGLIBS ROOT basic + GUI libraries 223 # ROOTAUXLIBS Auxilary libraries and linker flags for ROOT 224 # ROOTAUXCFLAGS Auxilary compiler flags 225 # ROOTRPATH Same as ROOTLIBDIR 226 206 AC_ARG_WITH([root], 207 [AS_HELP_STRING([--without-root], [Disable root, i.e. disable gui support.])], 208 [], [ROOT_PATH([5.12/00])] 209 ) 210 211 HAVE_ROOT_QT=no 212 213 if test "$ROOTEXEC" != no ; 214 then 215 216 ROOTCPPFLAGS=$ROOTCFLAGS" "$ROOTAUXCFLAGS 217 ROOTLDFLAGS="-L"$ROOTLIBDIR" "$ROOTGLIBS" -lGQt "$ROOTAUXLIBS 218 219 ROOT_FEATURE([qt], [HAVE_ROOT_QT=yes]) 220 221 AC_SUBST(ROOTCPPFLAGS) 222 AC_SUBST(ROOTLDFLAGS) 223 224 fi 227 225 228 226 ###################################################################### … … 269 267 AM_CONDITIONAL(HAS_COLORGCC, [test "$GCC" = colorgcc]) 270 268 AM_CONDITIONAL(HAS_QT4, [test -n "$QT4_VERSION"]) 269 AM_CONDITIONAL(HAS_ROOT, [test "$ROOTEXEC" != no]) 270 AM_CONDITIONAL(HAS_ROOT_QT, [test "$HAVE_ROOT_QT" = yes]) 271 AM_CONDITIONAL(HAS_GUI, [test "$QT4_VERSION" -a "$HAVE_ROOT_QT" = yes]) 271 272 272 273 ########################################################################## … … 304 305 ) 305 306 AM_COND_IF(HAS_QT4, 306 AC_MSG_NOTICE([ GUI support enabled / QT4 toolkit found: yes]), 307 AC_MSG_NOTICE([ GUI support enabled / QT4 toolkit found: no]) 308 ) 307 AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: yes]), 308 AC_MSG_NOTICE([ QT4 support enabled / QT4 toolkit found: no]) 309 ) 310 AC_MSG_NOTICE([ ROOT support enabled / root >= 5.12/00 found: $ROOTEXEC]) 311 AC_MSG_NOTICE([ ROOT built with --with-qt found: $HAVE_ROOT_QT]) 309 312 AM_COND_IF(HAS_QT4, [ 310 313 AC_MSG_NOTICE() … … 320 323 AC_MSG_NOTICE([ UIC4 = $UIC4]) 321 324 AC_MSG_NOTICE([ RCC4 = $RCC4]) 325 ],[]) 326 AM_COND_IF(HAS_QT4, [ 327 AC_MSG_NOTICE() 328 AC_MSG_NOTICE(--------------------------------------------------------------------) 329 AC_MSG_NOTICE() 330 AC_MSG_NOTICE([ ROOTVERSION = $ROOTVERSION]) 331 AC_MSG_NOTICE() 332 AC_MSG_NOTICE([ ROOTEXEC = $ROOTEXEC]) 333 AC_MSG_NOTICE([ ROOTCONF = $ROOTCONF]) 334 AC_MSG_NOTICE([ ROOTCINT = $ROOTCINT]) 335 AC_MSG_NOTICE([ ROOTCPPFLAGS = $ROOTCPPFLAGS]) 336 AC_MSG_NOTICE([ ROOTLDFLAGS = $ROOTLDFLAGS]) 322 337 ],[]) 323 338 AC_MSG_NOTICE() … … 354 369 AC_MSG_NOTICE([ man: build all buildable documentation]) 355 370 AC_MSG_NOTICE() 356 357 #[AC_]PACKAGE_NAME 358 #[AC_]PACKAGE_TARNAME 359 #[AC_]PACKAGE_VERSION 360 #[AC_]PACKAGE_STRING 361 #[AC_]PACKAGE_BUGREPORT 371 AC_MSG_NOTICE(--------------------------------------------------------------------) 372 AC_MSG_NOTICE() 373 AM_COND_IF(HAS_ROOT, 374 [AM_COND_IF(HAS_ROOT_QT, [], 375 AC_MSG_WARN([ root found but it was built without the --with-qt option]) 376 )] 377 ) 378 AM_COND_IF(HAS_GUI, [], 379 AC_MSG_WARN([ Either QT4 or qt-root is missing: GUI disabled!]) 380 ) 381 AC_MSG_NOTICE()
Note:
See TracChangeset
for help on using the changeset viewer.