Changeset 871 for trunk/Configure
- Timestamp:
- Oct 23, 2008, 4:30:54 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/Configure (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Configure
r870 r871 4363 4363 # 4364 4364 if test "x$g4ui_build_qt_session" = "xy" ; then 4365 4366 echo " "4367 g4_havegoodqt=no4368 4365 4366 echo " " 4367 g4_havegoodqt=no 4368 4369 4369 # Look for qt4 moc 4370 g4_qtmochome=`./loc moc no $QTDIR/bin /usr/lib/qt4/bin /usr/lib/qt/bin /usr/local/qt/bin /usr/local/bin /usr/bin /bin /usr/share/qt4/bin /usr/X11R6/bin /sw/bin`4371 if test "x$g4_qtmochome" = "xno" ; then4370 g4_qtmochome=`./loc moc no $QTDIR/bin /usr/lib/qt4/bin /usr/lib/qt/bin /usr/local/qt/bin /usr/local/bin /usr/bin /bin /usr/share/qt4/bin /usr/X11R6/bin /sw/bin` 4371 if test "x$g4_qtmochome" = "xno" ; then 4372 4372 # Look for qt3 moc 4373 g4_qtmochome=`./loc moc no /usr/lib/qt3/bin /usr/share/qt3/bin`4374 fi4375 4373 g4_qtmochome=`./loc moc no /usr/lib/qt3/bin /usr/share/qt3/bin` 4374 fi 4375 4376 4376 # if not found 4377 if test "x$g4_qtmochome" != "xno" ; then4378 echo "checking Qt moc tool in... $g4_qtmochome"4377 if test "x$g4_qtmochome" != "xno" ; then 4378 echo "checking Qt moc tool in... $g4_qtmochome" 4379 4379 # check Qt version 4380 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' `4381 echo "checking Qt version... $g4_qtver"4382 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4" ;then4383 4380 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' ` 4381 echo "checking Qt version... $g4_qtver" 4382 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4" ;then 4383 4384 4384 # checking includes first get QTDIR location, then qt$g4_qtver, sw, standard, shared, X11 4385 4386 incQtFiles=" $QTDIR/include /usr/include/qt$g4_qtver /usr/include/qt$g4_qtver/Qt /usr/lib/qt$g4_qtver/include /sw/include/qt /usr/lib/qt/include /usr/local/qt/include /usr/local/include /usr/include /usr/include/qt /usr/share/qt$g4_qtver/include /usr/X11R6/include /usr/X11R6/include/qt$g4_qtver /usr/X11R6/include/qt"4387 4388 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then4389 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/"4390 g4_qtincdir=`./loc qglobal.h no $incQtFiles`4391 if test "x$g4_qtincdir" != "xno" ; then4392 g4_qtincdir="/Library/Frameworks"4393 fi4394 else4395 g4_qtincdir=`./loc qglobal.h no $incQtFiles`4396 fi4397 4398 4399 if test "x$g4_qtincdir" != "xno" ; then4400 if test "x$g4_qtincdir" != "x/Library/Frameworks" ; then4401 g4_qtincdir=`dirname $g4_qtincdir`4402 fi4403 echo "checking Qt includes dir in... $g4_qtincdir"4404 4405 4385 4386 incQtFiles=" $QTDIR/include /usr/include/qt$g4_qtver /usr/include/qt$g4_qtver/Qt /usr/lib/qt$g4_qtver/include /sw/include/qt /usr/lib/qt/include /usr/local/qt/include /usr/local/include /usr/include /usr/include/qt /usr/share/qt$g4_qtver/include /usr/X11R6/include /usr/X11R6/include/qt$g4_qtver /usr/X11R6/include/qt" 4387 4388 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then 4389 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/" 4390 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 4391 if test "x$g4_qtincdir" != "xno" ; then 4392 g4_qtincdir="/Library/Frameworks" 4393 fi 4394 else 4395 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 4396 fi 4397 4398 4399 if test "x$g4_qtincdir" != "xno" ; then 4400 if test "x$g4_qtincdir" != "x/Library/Frameworks" ; then 4401 g4_qtincdir=`dirname $g4_qtincdir` 4402 fi 4403 echo "checking Qt includes dir in... $g4_qtincdir" 4404 4405 4406 4406 # checking libs, includes first get QTDIR location, then qt$g4_qtver, sw, standard, shared, X11 4407 4408 libQtFiles="$QTDIR/lib $QTDIR/lib64 /usr/lib/qt$g4_qtver/lib /usr/lib/qt$g4_qtver/lib64 /usr/lib/qt$g4_qtver /usr/lib/qt$g4_qtver /sw/lib /sw/lib/qt /sw/lib/qt$g4_qtver /sw/lib/qt$g4_qtver/lib /usr/lib/qt/lib /usr/local/qt/lib /usr/local/lib /usr/lib /usr/lib/qt /usr/share/qt$g4_qtver/lib /usr/X11R6/lib/qt /usr/X11R6/lib/qt$g4_qtver /usr/X11R6/lib /usr/X11R6/lib/qt"4409 4410 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then4411 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles`4412 g4_qtlibdir=`dirname $g4_qtlibdir`4413 g4_qtlibdir=`dirname $g4_qtlibdir`4414 g4_qtlibdir=`dirname $g4_qtlibdir`4415 else4416 g4_qtlibdir=`./loc libqt* no $libQtFiles`4417 fi4418 if test "x$g4_qtlibdir" != "xno" ; then4419 g4_qtlibdir=`dirname $g4_qtlibdir`4420 echo "checking Qt lib dir in... $g4_qtlibdir"4421 g4_havegoodqt=yes4422 else4423 echo "Failed to find Qt lib dir in : $libQtFiles"4424 fi4425 else4426 echo "Failed to find Qt includes dir in : $incQtFiles"4427 fi #END CHECK QTLIBS4428 else4429 echo "Qt $g4_qtver is not actually support with this driver"4430 fi #END CHECK QTINC4431 fi #END CHECK QTVER4407 4408 libQtFiles="$QTDIR/lib $QTDIR/lib64 /usr/lib/qt$g4_qtver/lib /usr/lib/qt$g4_qtver/lib64 /usr/lib/qt$g4_qtver /usr/lib/qt$g4_qtver /sw/lib /sw/lib/qt /sw/lib/qt$g4_qtver /sw/lib/qt$g4_qtver/lib /usr/lib/qt/lib /usr/local/qt/lib /usr/local/lib /usr/lib /usr/lib/qt /usr/share/qt$g4_qtver/lib /usr/X11R6/lib/qt /usr/X11R6/lib/qt$g4_qtver /usr/X11R6/lib /usr/X11R6/lib/qt" 4409 4410 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 4411 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles` 4412 g4_qtlibdir=`dirname $g4_qtlibdir` 4413 g4_qtlibdir=`dirname $g4_qtlibdir` 4414 g4_qtlibdir=`dirname $g4_qtlibdir` 4415 else 4416 g4_qtlibdir=`./loc libqt* no $libQtFiles` 4417 fi 4418 if test "x$g4_qtlibdir" != "xno" ; then 4419 g4_qtlibdir=`dirname $g4_qtlibdir` 4420 echo "checking Qt lib dir in... $g4_qtlibdir" 4421 g4_havegoodqt=yes 4422 else 4423 echo "Failed to find Qt lib dir in : $libQtFiles" 4424 fi 4425 else 4426 echo "Failed to find Qt includes dir in : $incQtFiles" 4427 fi #END CHECK QTLIBS 4428 else 4429 echo "Qt $g4_qtver is not actually support with this driver" 4430 fi #END CHECK QTINC 4431 fi #END CHECK QTMOC 4432 4432 # 4433 4433 # END QT AUTOPROBE … … 4439 4439 # locate Qt... 4440 4440 # 4441 if test "x$g4_havegoodqt" = "xno" ; then 4442 promptend="no" 4443 qthomeloc="the standard locations" 4444 4445 while test "x$promptend" = "xno" ; do 4446 g4message=`cat << EOM 4441 if test "x$g4_havegoodqt" = "xno" ; then 4442 promptend="no" 4443 qthomeloc="the standard locations" 4444 4445 g4message=`cat << EOM 4447 4446 4448 4447 Autodetection failed to locate Qt on your system. … … 4452 4451 Qt path: 4453 4452 EOM` 4454 dflt="/usr"4455 g4_qtmochome="/usr"4456 fn='d~(-)'4457 rp=$g4message4458 . ./getfile4453 dflt="/usr" 4454 g4_qtmochome="/usr" 4455 fn='d~(-)' 4456 rp=$g4message 4457 . ./getfile 4459 4458 4460 4459 #Check for user cancellation 4461 if test "x$ans" = "x-" ; then4462 g4ui_build_qt_session=n4463 g4ui_use_qt=n4464 echo "build/use of Qt UI module cancelled..."4465 promptend=yes4466 4467 else4460 if test "x$ans" = "x-" ; then 4461 g4ui_build_qt_session=n 4462 g4ui_use_qt=n 4463 echo "build/use of Qt UI module cancelled..." 4464 promptend=yes 4465 4466 else 4468 4467 #We want to probe for Qt in the user supplied directory 4469 echo " "4470 qthomeloc=$ans4471 g4_havegoodqt=no4468 echo " " 4469 qthomeloc=$ans 4470 g4_havegoodqt=no 4472 4471 4473 4472 4474 4473 # check for moc 4475 4474 4476 g4_qtmochome=`./loc moc no $ans/bin`4477 if test "x$g4_qtmochome" = "xno" ; then4478 while test "x$promptend" = "xno" ; do4479 g4message=`cat << EOM4475 g4_qtmochome=`./loc moc no $ans/bin` 4476 if test "x$g4_qtmochome" = "xno" ; then 4477 while test "x$promptend" = "xno" ; do 4478 g4message=`cat << EOM 4480 4479 4481 4480 Failed to locate Qt moc tool on your system. … … 4484 4483 Qt moc path: 4485 4484 EOM` 4486 fn='d~(-)'4487 rp=$g4message4488 . ./getfile4489 4485 fn='d~(-)' 4486 rp=$g4message 4487 . ./getfile 4488 4490 4489 #Check for user cancellation 4491 if test "x$ans" = "x-" ; then4492 g4ui_build_qt_session=n4493 g4ui_use_qt=n4494 echo "build/use of Qt UI module cancelled..."4495 promptend=yes4496 4497 else4490 if test "x$ans" = "x-" ; then 4491 g4ui_build_qt_session=n 4492 g4ui_use_qt=n 4493 echo "build/use of Qt UI module cancelled..." 4494 promptend=yes 4495 4496 else 4498 4497 #We want to probe for Qt in the user supplied directory 4499 echo " "4498 echo " " 4500 4499 # check for moc 4501 g4_qtmochome=`./loc moc no $ans/bin`4502 if test "x$g4_qtmochome" != "xno" ; then4503 promptend=yes4504 fi4505 fi4506 done4507 fi # ASK FOR QT MOC4508 if test "x$g4_qtmochome" != "xno" ; then4509 echo "checking Qt moc tool in... $g4_qtmochome"4510 fi4500 g4_qtmochome=`./loc moc no $ans/bin` 4501 if test "x$g4_qtmochome" != "xno" ; then 4502 promptend=yes 4503 fi 4504 fi 4505 done 4506 fi # ASK FOR QT MOC 4507 if test "x$g4_qtmochome" != "xno" ; then 4508 echo "checking Qt moc tool in... $g4_qtmochome" 4509 fi 4511 4510 4512 4511 # if moc ok, then check for version 4513 if test "x$g4_qtmochome" != "xno" ; then4514 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' `4515 echo "checking Qt version... $g4_qtver"4516 4517 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4";then4512 if test "x$g4_qtmochome" != "xno" ; then 4513 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' ` 4514 echo "checking Qt version... $g4_qtver" 4515 4516 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4";then 4518 4517 4519 4518 # if version ok check for includes 4520 4519 # checking includes in qt$g4_qtver, then standard 4521 incQtFiles="$qthomeloc/lib/qt$g4_qtver/include $qthomeloc/include/qt$g4_qtver/Qt $qthomeloc/include/qt$g4_qtver $qthomeloc/include $qthomeloc/include/Qt "4522 4523 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then4524 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/ $qthomeloc/QtCore.framework/Headers/"4525 g4_qtincdir=`./loc qglobal.h no $incQtFiles`4526 if test "x$g4_qtincdir" != "xno" ; then4527 g4_qtincdir=`dirname $g4_qtincdir`4528 g4_qtincdir=`dirname $g4_qtincdir`4529 fi4530 else4531 g4_qtincdir=`./loc qglobal.h no $incQtFiles`4532 fi4533 if test "x$g4_qtincdir" = "xno" ; then4534 while test "x$promptend" = "xno" ; do4535 g4message=`cat << EOM4520 incQtFiles="$qthomeloc/lib/qt$g4_qtver/include $qthomeloc/include/qt$g4_qtver/Qt $qthomeloc/include/qt$g4_qtver $qthomeloc/include $qthomeloc/include/Qt " 4521 4522 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then 4523 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/ $qthomeloc/QtCore.framework/Headers/" 4524 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 4525 if test "x$g4_qtincdir" != "xno" ; then 4526 g4_qtincdir=`dirname $g4_qtincdir` 4527 g4_qtincdir=`dirname $g4_qtincdir` 4528 fi 4529 else 4530 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 4531 fi 4532 if test "x$g4_qtincdir" = "xno" ; then 4533 while test "x$promptend" = "xno" ; do 4534 g4message=`cat << EOM 4536 4535 4537 4536 Failed to locate Qt include directory on your system. … … 4540 4539 Qt include path: 4541 4540 EOM` 4542 fn='d~(-)'4543 rp=$g4message4544 . ./getfile4545 4541 fn='d~(-)' 4542 rp=$g4message 4543 . ./getfile 4544 4546 4545 #Check for user cancellation 4547 if test "x$ans" = "x-" ; then4548 g4ui_build_qt_session=n4549 g4ui_use_qt=n4550 echo "build/use of Qt UI module cancelled..."4551 promptend=yes4552 4553 else4546 if test "x$ans" = "x-" ; then 4547 g4ui_build_qt_session=n 4548 g4ui_use_qt=n 4549 echo "build/use of Qt UI module cancelled..." 4550 promptend=yes 4551 4552 else 4554 4553 #We want to probe for Qt in the user supplied directory 4555 echo " "4554 echo " " 4556 4555 # check for include 4557 g4_qtincdir=`./loc qglobal.h no $ans`4558 if test "x$g4_qtincdir" != "xno" ; then4559 promptend=yes4560 fi4561 fi4562 done4563 fi # ASK FOR QT INC4564 if test "x$g4_qtincdir" != "xno" ; then4565 g4_qtincdir=`dirname $g4_qtincdir`4566 echo "checking Qt inc dir in... $g4_qtincdir"4567 fi4556 g4_qtincdir=`./loc qglobal.h no $ans` 4557 if test "x$g4_qtincdir" != "xno" ; then 4558 promptend=yes 4559 fi 4560 fi 4561 done 4562 fi # ASK FOR QT INC 4563 if test "x$g4_qtincdir" != "xno" ; then 4564 g4_qtincdir=`dirname $g4_qtincdir` 4565 echo "checking Qt inc dir in... $g4_qtincdir" 4566 fi 4568 4567 # if qt inc ok, then check for libs 4569 if test "x$g4_qtincdir" != "xno" ; then4568 if test "x$g4_qtincdir" != "xno" ; then 4570 4569 4571 4570 # checking libraries in qt$g4_qtver, then standard 4572 libQtFiles="$qthomeloc/lib/qt$g4_qtver/lib $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver/lib64 $qthomeloc/lib $qthomeloc/lib64 $qthomeloc/lib/qt/lib $qthomeloc/lib/qt $qthomeloc/lib64"4573 4574 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then4575 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles`4576 g4_qtlibdir=`dirname $g4_qtlibdir`4577 g4_qtlibdir=`dirname $g4_qtlibdir`4578 g4_qtlibdir=`dirname $g4_qtlibdir`4579 else4580 g4_qtlibdir=`./loc libqt* no $libQtFiles`4581 fi4582 if test "x$g4_qtlibdir" = "xno" ; then4583 while test "x$promptend" = "xno" ; do4584 g4message=`cat << EOM4571 libQtFiles="$qthomeloc/lib/qt$g4_qtver/lib $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver/lib64 $qthomeloc/lib $qthomeloc/lib64 $qthomeloc/lib/qt/lib $qthomeloc/lib/qt $qthomeloc/lib64" 4572 4573 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 4574 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles` 4575 g4_qtlibdir=`dirname $g4_qtlibdir` 4576 g4_qtlibdir=`dirname $g4_qtlibdir` 4577 g4_qtlibdir=`dirname $g4_qtlibdir` 4578 else 4579 g4_qtlibdir=`./loc libqt* no $libQtFiles` 4580 fi 4581 if test "x$g4_qtlibdir" = "xno" ; then 4582 while test "x$promptend" = "xno" ; do 4583 g4message=`cat << EOM 4585 4584 4586 4585 Failed to locate Qt lib directory on your system. … … 4589 4588 Qt library path: 4590 4589 EOM` 4591 fn='d~(-)'4592 rp=$g4message4593 . ./getfile4594 4590 fn='d~(-)' 4591 rp=$g4message 4592 . ./getfile 4593 4595 4594 #Check for user cancellation 4596 if test "x$ans" = "x-" ; then4597 g4ui_build_qt_session=n4598 g4ui_use_qt=n4599 echo "build/use of Qt UI module cancelled..."4600 promptend=yes4601 4602 else4595 if test "x$ans" = "x-" ; then 4596 g4ui_build_qt_session=n 4597 g4ui_use_qt=n 4598 echo "build/use of Qt UI module cancelled..." 4599 promptend=yes 4600 4601 else 4603 4602 #We want to probe for Qt in the user supplied directory 4604 echo " "4603 echo " " 4605 4604 # check for libraries 4606 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then4607 g4_qtlibdir=`./loc QtCore* no $libQtFiles /Library/Frameworks/`4608 else4609 g4_qtlibdir=`./loc libqt* no $libQtFiles`4610 fi4611 if test "x$g4_qtlibdir" != "xno" ; then4612 promptend=yes4613 fi4614 fi4615 done4616 fi # END OF LIB CHECK4617 if test "x$g4_qtlibdir" != "xno" ; then4618 g4_qtlibdir=`dirname $g4_qtlibdir`4619 echo "checking Qt lib dir in... $g4_qtlibdir"4620 promptend=yes4621 g4_havegoodqt=yes4622 fi4623 4624 else # END OF INC CHECK4625 g4_qtincdir=no4626 fi4627 else # END OF VERSION CHECK4628 g4_qtmochome=no4629 fi4630 fi # END OF MOC CHECK4631 4632 fi #END CHECK USER CANCELLATION4633 done #END USER PROMPT FOR QT DETECTION4634 4635 fi #END USER DIRECTED QT DETECTION 4605 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 4606 g4_qtlibdir=`./loc QtCore* no $libQtFiles /Library/Frameworks/` 4607 else 4608 g4_qtlibdir=`./loc libqt* no $libQtFiles` 4609 fi 4610 if test "x$g4_qtlibdir" != "xno" ; then 4611 promptend=yes 4612 fi 4613 fi 4614 done 4615 fi # END OF LIB CHECK 4616 if test "x$g4_qtlibdir" != "xno" ; then 4617 g4_qtlibdir=`dirname $g4_qtlibdir` 4618 echo "checking Qt lib dir in... $g4_qtlibdir" 4619 promptend=yes 4620 g4_havegoodqt=yes 4621 fi 4622 4623 else # END OF INC CHECK 4624 g4_qtincdir=no 4625 fi 4626 else # END OF VERSION CHECK 4627 g4_qtmochome=no 4628 fi 4629 fi # END OF MOC CHECK 4630 4631 fi #END CHECK USER CANCELLATION 4632 4633 fi #END USER DIRECTED QT DETECTION 4634 4636 4635 # 4637 4636 #END QT USER INPUT PROBE … … 5927 5926 # 5928 5927 if test "x$g4system" = "xLinux-g++" -o "x$g4system" = "xDarwin-g++" ; then 5929 5928 5930 5929 # Only proceed further if g4vis_none is not set 5931 if test "x$g4vis_none" = "xn" ; then5930 if test "x$g4vis_none" = "xn" ; then 5932 5931 #Query the user on whether to activate the module 5933 g4message=`cat << EOM5932 g4message=`cat << EOM 5934 5933 5935 5934 G4VIS_BUILD_OPENGLQT_DRIVER … … 5943 5942 Do you want to enable build and use of this module? 5944 5943 EOM` 5945 5944 5946 5945 #Read the user response 5947 dflt=$g4vis_build_openglqt_driver5948 rp=$g4message5949 . ./myread5950 gans=$ans5951 5952 #5953 # Check response5954 #5955 case $gans in5956 n*|N*)5957 g4vis_build_openglqt_driver=n5958 g4vis_use_openglqt=n5959 ;;5960 y*|Y*)5961 g4vis_build_openglqt_driver=y5962 g4vis_use_openglqt=y5963 ;;5964 esac5965 5966 ###################5967 5968 5969 5970 ####################################################################5971 # Now, if we have selected to build the driver, we need to check for5972 # a Qt installation, which may have been done for use by the UI5973 # module...5974 #5975 if test "x$g4vis_build_openglqt_driver" = "xy" ; then5976 5977 #Now check whether g4_qthome has been set previously - if it hasn't5978 #proceed to probe for Qt... (assume it's unfiltered, i.e. not5979 #set to '' by earlier probe if it was /usr or /usr/local5980 if test "x$g4_qtmochome" != "x" && test "x$g4_qtlibdir" != "x" && test "x$g4_qtincdir" != "x" ; then5981 echo " "5982 echo "configure: Qt preconfigured, no recheck neccessary"5983 else5946 dflt=$g4vis_build_openglqt_driver 5947 rp=$g4message 5948 . ./myread 5949 gans=$ans 5950 5951 # 5952 # Check response 5953 # 5954 case $gans in 5955 n*|N*) 5956 g4vis_build_openglqt_driver=n 5957 g4vis_use_openglqt=n 5958 ;; 5959 y*|Y*) 5960 g4vis_build_openglqt_driver=y 5961 g4vis_use_openglqt=y 5962 ;; 5963 esac 5964 5965 ################### 5966 5967 5968 5969 #################################################################### 5970 # Now, if we have selected to build the driver, we need to check for 5971 # a Qt installation, which may have been done for use by the UI 5972 # module... 5973 # 5974 if test "x$g4vis_build_openglqt_driver" = "xy" ; then 5975 5976 #Now check whether g4_qthome has been set previously - if it hasn't 5977 #proceed to probe for Qt... (assume it's unfiltered, i.e. not 5978 #set to '' by earlier probe if it was /usr or /usr/local 5979 if test "x$g4_qtmochome" != "x" && test "x$g4_qtlibdir" != "x" && test "x$g4_qtincdir" != "x" ; then 5980 echo " " 5981 echo "configure: Qt preconfigured, no recheck neccessary" 5982 else 5984 5983 ################################################################# 5985 5984 #We repeat the search used for the UI module 5986 5987 echo " "5988 g4_havegoodqt=no5989 5990 # Look for qt4 moc5991 g4_qtmochome=`./loc moc no $QTDIR/bin /usr/lib/qt4/bin /usr/lib/qt/bin /usr/local/qt/bin /usr/local/bin /usr/bin /bin /usr/share/qt4/bin /usr/X11R6/bin /sw/bin`5992 if test "x$g4_qtmochome" = "xno" ; then5993 # Look for qt3 moc5994 g4_qtmochome=`./loc moc no /usr/lib/qt3/bin /usr/share/qt3/bin`5995 fi5996 5985 5986 echo " " 5987 g4_havegoodqt=no 5988 5989 # Look for qt4 moc 5990 g4_qtmochome=`./loc moc no $QTDIR/bin /usr/lib/qt4/bin /usr/lib/qt/bin /usr/local/qt/bin /usr/local/bin /usr/bin /bin /usr/share/qt4/bin /usr/X11R6/bin /sw/bin` 5991 if test "x$g4_qtmochome" = "xno" ; then 5992 # Look for qt3 moc 5993 g4_qtmochome=`./loc moc no /usr/lib/qt3/bin /usr/share/qt3/bin` 5994 fi 5995 5997 5996 # if not found 5998 if test "x$g4_qtmochome" = "xno" ; then 5999 g4_havegoodqt=no 6000 else 5997 if test "x$g4_qtmochome" != "xno" ; then 5998 echo "checking Qt moc tool in... $g4_qtmochome" 6001 5999 # check Qt version 6002 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' ` 6003 echo "checking Qt version... $g4_qtver" 6004 if test "x$g4_qtver" = "x2";then 6005 echo "Qt $g4_qtver is too old to work with this driver" 6006 g4_havegoodqt=no 6007 fi 6008 if test "x$g4_qtver" = "x5";then 6009 echo "Qt $g4_qtver is not actually support with this driver" 6010 g4_havegoodqt=no 6011 else 6012 6013 6014 # checking includes 6015 6016 incQtFiles=" $QTDIR/include /usr/lib/qt$g4_qtver/include /usr/include/qt$g4_qtver /usr/X11R6/include /sw/include/qt /usr/include/qt$g4_qtver /usr/share/qt$g4_qtver/include /usr/X11R6/include/qt$g4_qtver /usr/lib/qt/include /usr/local/qt/include /usr/local/include /usr/include /usr/include/qt /usr/X11R6/include/qt" 6017 6018 if test "X$g4osname" = "XDarwin" ; then 6019 if test "X$g4_qtver" = "X3" ; then 6000 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' ` 6001 echo "checking Qt version... $g4_qtver" 6002 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4" ;then 6003 6004 # checking includes first get QTDIR location, then qt$g4_qtver, sw, standard, shared, X11 6005 6006 incQtFiles=" $QTDIR/include /usr/include/qt$g4_qtver /usr/include/qt$g4_qtver/Qt /usr/lib/qt$g4_qtver/include /sw/include/qt /usr/lib/qt/include /usr/local/qt/include /usr/local/include /usr/include /usr/include/qt /usr/share/qt$g4_qtver/include /usr/X11R6/include /usr/X11R6/include/qt$g4_qtver /usr/X11R6/include/qt" 6007 6008 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then 6009 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/" 6020 6010 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 6011 if test "x$g4_qtincdir" != "xno" ; then 6012 g4_qtincdir="/Library/Frameworks" 6013 fi 6021 6014 else 6022 g4_qtincdir=`./loc qglobal.h no /Library/Frameworks/QtCore.framework/Headers/ $incFiles` 6023 if test "x$g4_qtincdir" != "xno" ; then 6024 g4_qtincdir="/Library/Frameworks/" 6025 fi 6015 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 6026 6016 fi 6027 else6028 g4_qtincdir=`./loc qglobal.h no $incFiles`6029 fi #END CHECK QTLIBS6030 6031 6032 if test "x$g4_qtincdir" != "xno" ; then6033 if test "x$g4_qtincdir" != "x/Library/Frameworks/" ; then6034 g4_qtincdir=`dirname $g4_qtincdir`6035 fi6036 echo "checking Qt includes dir in... $g4_qtincdir"6037 6017 6038 6018 6039 # checking libs 6040 6041 libQtFiles="$QTDIR/lib /usr/lib/qt$g4_qtver/lib /usr/lib/qt$g4_qtver /usr/lib/qt$g4_qtver /sw/lib/qt$g4_qtver /sw/lib/qt$g4_qtver/lib /usr/share/qt$g4_qtver/lib /usr/X11R6/lib/qt /usr/X11R6/lib/qt$g4_qtver /usr/lib/qt$g4_qtver/lib64 $QTDIR/lib64 /usr/lib/qt/lib /usr/local/qt/lib /usr/local/lib /usr/lib /usr/lib/qt /usr/X11R6/lib /usr/X11R6/lib/qt $QTDIR/lib64" 6042 6043 if test "X$g4osname" = "XDarwin" ; then 6044 if test "X$g4_qtincdir" = "X/Library/Frameworks/" ; then 6045 g4_qtlibdir="/Library/Frameworks/" 6019 if test "x$g4_qtincdir" != "xno" ; then 6020 if test "x$g4_qtincdir" != "x/Library/Frameworks" ; then 6021 g4_qtincdir=`dirname $g4_qtincdir` 6022 fi 6023 echo "checking Qt includes dir in... $g4_qtincdir" 6024 6025 6026 # checking libs, includes first get QTDIR location, then qt$g4_qtver, sw, standard, shared, X11 6027 6028 libQtFiles="$QTDIR/lib $QTDIR/lib64 /usr/lib/qt$g4_qtver/lib /usr/lib/qt$g4_qtver/lib64 /usr/lib/qt$g4_qtver /usr/lib/qt$g4_qtver /sw/lib /sw/lib/qt /sw/lib/qt$g4_qtver /sw/lib/qt$g4_qtver/lib /usr/lib/qt/lib /usr/local/qt/lib /usr/local/lib /usr/lib /usr/lib/qt /usr/share/qt$g4_qtver/lib /usr/X11R6/lib/qt /usr/X11R6/lib/qt$g4_qtver /usr/X11R6/lib /usr/X11R6/lib/qt" 6029 6030 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 6031 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles` 6032 g4_qtlibdir=`dirname $g4_qtlibdir` 6033 g4_qtlibdir=`dirname $g4_qtlibdir` 6034 g4_qtlibdir=`dirname $g4_qtlibdir` 6046 6035 else 6047 g4_qtlibdir=`./loc libqt* no $libQtFiles /sw/lib /sw/lib/qt` 6036 g4_qtlibdir=`./loc libqt* no $libQtFiles` 6037 fi 6038 if test "x$g4_qtlibdir" != "xno" ; then 6039 g4_qtlibdir=`dirname $g4_qtlibdir` 6040 echo "checking Qt lib dir in... $g4_qtlibdir" 6041 g4_havegoodqt=yes 6042 else 6043 echo "Failed to find Qt lib dir in : $libQtFiles" 6048 6044 fi 6049 6045 else 6050 g4_qtlibdir=`./loc libqt* no $libQtFiles` 6051 fi 6052 if test "x$g4_qtlibdir" != "xno" ; then 6053 if test "x$g4_qtlibdir" != "x/Library/Frameworks/" ; then 6054 g4_qtlibdir=`dirname $g4_qtlibdir` 6055 fi 6056 echo "checking Qt lib dir in... $g4_qtlibdir" 6057 g4_havegoodqt=yes 6058 fi 6059 fi #END CHECK QTLIBS 6060 fi #END CHECK QTINC 6061 fi #END CHECK QTVER 6046 echo "Failed to find Qt includes dir in : $incQtFiles" 6047 fi #END CHECK QTLIBS 6048 else 6049 echo "Qt $g4_qtver is not actually support with this driver" 6050 fi #END CHECK QTINC 6051 fi #END CHECK QTVER 6052 fi # END OF PRECONFIG 6062 6053 # 6063 6054 # END QT AUTOPROBE 6064 6055 #################################################################### 6065 6066 6067 # Based on result of Qt autoprobe, we decide if user input is 6068 # needed to locate Qt... 6056 6057 6058 6059 6060 6061 6062 #################################################################### 6063 # Based on result of Qt autoprobe, we decide if user input is needed to 6064 # locate Qt... 6069 6065 # 6070 if test "x$g4_havegoodqt" = "xno" ; then 6071 promptend="no" 6072 qthomeloc="the standard locations" 6073 6074 while test "x$promptend" = "xno" ; do 6075 g4message=`cat << EOM 6076 6077 Autodetection failed to locate Qt in $qthomeloc on your system. 6066 if test "x$g4_havegoodqt" = "xno" ; then 6067 promptend="no" 6068 qthomeloc="the standard locations" 6069 6070 g4message=`cat << EOM 6071 6072 Autodetection failed to locate Qt on your system. 6078 6073 Please enter the path to your Qt install (i.e. if Qt is installed 6079 in PATH/include/Qt, or PATH/include , enter PATH), or type '-' to6074 in PATH/include/Qt, or PATH/include $PATH/include/qt, enter PATH), or type '-' to 6080 6075 CANCEL the build of the Qt UI module. 6081 6076 Qt path: 6082 6077 EOM` 6083 dflt="/usr"6084 fn='d~(-)' 6085 rp=$g4message 6086 . ./getfile6087 6088 #Check for user cancellation 6089 if test "x$ans" = "x-" ; then6090 g4ui_build_qt_session=n6091 g4ui_use_qt=n6092 g4_qthome="" 6093 echo "build/use of OpenGl Qt drivercancelled..."6094 promptend=yes6095 6096 else6078 dflt="/usr" 6079 g4_qtmochome="/usr" 6080 fn='d~(-)' 6081 rp=$g4message 6082 . ./getfile 6083 6084 #Check for user cancellation 6085 if test "x$ans" = "x-" ; then 6086 g4ui_build_qt_session=n 6087 g4ui_use_qt=n 6088 echo "build/use of Qt UI module cancelled..." 6089 promptend=yes 6090 6091 else 6097 6092 #We want to probe for Qt in the user supplied directory 6098 echo " " 6099 qthomeloc=$ans 6100 g4_havegoodqt=no 6101 g4_qthome=`./loc qglobal.h no $ans/include/Qt $ans/include` 6102 6103 echo "checking for Qt installation... $g4_qthome" 6104 6105 #If we found an installation, proceed to other tests. 6106 if test "x$g4_qthome" != "xno" ; then 6107 #Set Qt installation to good at this point 6108 g4_havegoodqt=yes 6109 6110 #Check that this is Qt... 6111 g4_qtver=`$grep QT_VERSION_STR $g4_qthome | $sed 's/.* \"\([0-9]\)\..*\"/\1/'` 6112 6113 echo "checking Qt version... $g4_qtver" 6114 6115 #Now strip qthome back so we can check for moc... 6116 g4_qthome=`dirname $g4_qthome` 6117 6118 #At this point we could have include/Qt 6119 #or include 6120 if test `basename $g4_qthome` = "Qt" ; then 6121 g4_qthome=`dirname $g4_qthome` 6122 g4_qthome=`dirname $g4_qthome` 6123 else 6124 g4_qthome=`dirname $g4_qthome` 6125 fi 6126 6127 #If version is o.k, check for moc 6128 if test "x$g4_qtver" = "x4" ; then 6129 #Check for moc 6130 g4_qthavemoc=`./loc moc no $g4_qthome/bin` 6131 6132 echo "checking for moc... $g4_qthavemoc" 6133 6134 if test "x$g4_qthavemoc" = "xno" ; then 6135 g4_havegoodqt=no 6136 fi 6137 else 6138 g4_havegoodqt=no 6139 fi #END CHECK Qt VERSION 6140 fi #END CHECK QTHOME 6141 6142 #If we have a good Qt, end prompt 6143 if test "x$g4_havegoodqt" = "xyes" ; then 6144 promptend=yes 6145 fi 6146 fi #END CHECK USER CANCELLATION 6147 done #END USER PROMPT FOR QT DETECTION 6148 6093 echo " " 6094 qthomeloc=$ans 6095 g4_havegoodqt=no 6096 6097 6098 # check for moc 6099 6100 g4_qtmochome=`./loc moc no $ans/bin` 6101 if test "x$g4_qtmochome" = "xno" ; then 6102 while test "x$promptend" = "xno" ; do 6103 g4message=`cat << EOM 6104 6105 Failed to locate Qt moc tool on your system. 6106 Please enter the path to your Qt moc tool install or type '-' to 6107 CANCEL the build of the Qt UI module. 6108 Qt moc path: 6109 EOM` 6110 fn='d~(-)' 6111 rp=$g4message 6112 . ./getfile 6113 6114 #Check for user cancellation 6115 if test "x$ans" = "x-" ; then 6116 g4ui_build_qt_session=n 6117 g4ui_use_qt=n 6118 echo "build/use of Qt UI module cancelled..." 6119 promptend=yes 6120 6121 else 6122 #We want to probe for Qt in the user supplied directory 6123 echo " " 6124 # check for moc 6125 g4_qtmochome=`./loc moc no $ans/bin` 6126 if test "x$g4_qtmochome" != "xno" ; then 6127 promptend=yes 6128 fi 6129 fi 6130 done 6131 fi # ASK FOR QT MOC 6132 if test "x$g4_qtmochome" != "xno" ; then 6133 echo "checking Qt moc tool in... $g4_qtmochome" 6134 fi 6135 6136 # if moc ok, then check for version 6137 if test "x$g4_qtmochome" != "xno" ; then 6138 g4_qtver=`$g4_qtmochome 2>&1 -v | $sed 's/.* .Qt \([0-9]\)\..*/\1/' ` 6139 echo "checking Qt version... $g4_qtver" 6140 6141 if test "x$g4_qtver" = "x3" || test "x$g4_qtver" = "x4";then 6142 6143 # if version ok check for includes 6144 # checking includes in qt$g4_qtver, then standard 6145 incQtFiles="$qthomeloc/lib/qt$g4_qtver/include $qthomeloc/include/qt$g4_qtver/Qt $qthomeloc/include/qt$g4_qtver $qthomeloc/include $qthomeloc/include/Qt " 6146 6147 if test "X$g4osname" = "XDarwin" && test "X$g4_qtver" = "X4"; then 6148 incQtFiles="$incQtFiles /Library/Frameworks/QtCore.framework/Headers/ $qthomeloc/QtCore.framework/Headers/" 6149 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 6150 if test "x$g4_qtincdir" != "xno" ; then 6151 g4_qtincdir=`dirname $g4_qtincdir` 6152 g4_qtincdir=`dirname $g4_qtincdir` 6153 fi 6154 else 6155 g4_qtincdir=`./loc qglobal.h no $incQtFiles` 6156 fi 6157 if test "x$g4_qtincdir" = "xno" ; then 6158 while test "x$promptend" = "xno" ; do 6159 g4message=`cat << EOM 6160 6161 Failed to locate Qt include directory on your system. 6162 Please enter the path to your Qt include directory install or type '-' to 6163 CANCEL the build of the Qt UI module. 6164 Qt include path: 6165 EOM` 6166 fn='d~(-)' 6167 rp=$g4message 6168 . ./getfile 6169 6170 #Check for user cancellation 6171 if test "x$ans" = "x-" ; then 6172 g4ui_build_qt_session=n 6173 g4ui_use_qt=n 6174 echo "build/use of Qt UI module cancelled..." 6175 promptend=yes 6176 6177 else 6178 #We want to probe for Qt in the user supplied directory 6179 echo " " 6180 # check for include 6181 g4_qtincdir=`./loc qglobal.h no $ans` 6182 if test "x$g4_qtincdir" != "xno" ; then 6183 promptend=yes 6184 fi 6185 fi 6186 done 6187 fi # ASK FOR QT INC 6188 if test "x$g4_qtincdir" != "xno" ; then 6189 g4_qtincdir=`dirname $g4_qtincdir` 6190 echo "checking Qt inc dir in... $g4_qtincdir" 6191 fi 6192 # if qt inc ok, then check for libs 6193 if test "x$g4_qtincdir" != "xno" ; then 6194 6195 # checking libraries in qt$g4_qtver, then standard 6196 libQtFiles="$qthomeloc/lib/qt$g4_qtver/lib $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver $qthomeloc/lib/qt$g4_qtver/lib64 $qthomeloc/lib $qthomeloc/lib64 $qthomeloc/lib/qt/lib $qthomeloc/lib/qt $qthomeloc/lib64" 6197 6198 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 6199 g4_qtlibdir=`./loc QtCore no /Library/Frameworks/QtCore.framework/Versions/$g4_qtver/ $libQtFiles` 6200 g4_qtlibdir=`dirname $g4_qtlibdir` 6201 g4_qtlibdir=`dirname $g4_qtlibdir` 6202 g4_qtlibdir=`dirname $g4_qtlibdir` 6203 else 6204 g4_qtlibdir=`./loc libqt* no $libQtFiles` 6205 fi 6206 if test "x$g4_qtlibdir" = "xno" ; then 6207 while test "x$promptend" = "xno" ; do 6208 g4message=`cat << EOM 6209 6210 Failed to locate Qt lib directory on your system. 6211 Please enter the path to your Qt lib directory install or type '-' to 6212 CANCEL the build of the Qt UI module. 6213 Qt library path: 6214 EOM` 6215 fn='d~(-)' 6216 rp=$g4message 6217 . ./getfile 6218 6219 #Check for user cancellation 6220 if test "x$ans" = "x-" ; then 6221 g4ui_build_qt_session=n 6222 g4ui_use_qt=n 6223 echo "build/use of Qt UI module cancelled..." 6224 promptend=yes 6225 6226 else 6227 #We want to probe for Qt in the user supplied directory 6228 echo " " 6229 # check for libraries 6230 if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then 6231 g4_qtlibdir=`./loc QtCore* no $libQtFiles /Library/Frameworks/` 6232 else 6233 g4_qtlibdir=`./loc libqt* no $libQtFiles` 6234 fi 6235 if test "x$g4_qtlibdir" != "xno" ; then 6236 promptend=yes 6237 fi 6238 fi 6239 done 6240 fi # END OF LIB CHECK 6241 if test "x$g4_qtlibdir" != "xno" ; then 6242 g4_qtlibdir=`dirname $g4_qtlibdir` 6243 echo "checking Qt lib dir in... $g4_qtlibdir" 6244 promptend=yes 6245 g4_havegoodqt=yes 6246 fi 6247 6248 else # END OF INC CHECK 6249 g4_qtincdir=no 6250 fi 6251 else # END OF VERSION CHECK 6252 g4_qtmochome=no 6253 fi 6254 fi # END OF MOC CHECK 6255 6256 fi #END CHECK USER CANCELLATION 6257 6149 6258 fi #END USER DIRECTED QT DETECTION 6150 # 6151 #END QT USER INPUT PROBE 6152 ################################################################# 6153 fi #END TEST G4_QTHOME IS SET 6154 6155 6156 fi #END TEST G4VIS_BUILD_OPENGLQT_DRIVER = y 6157 6158 6259 # 6260 #END QT USER INPUT PROBE 6261 #################################################################### 6262 6263 fi #END TEST G4VIS_BUILD_OPENGLQT_DRIVER = y 6264 6265 6159 6266 # 6160 6267 # Put a filter in here on /usr and /usr/local as QTHOME in line … … 6166 6273 # g4_qthome="" 6167 6274 #fi 6168 6169 6170 fi #END TEST G4VIS_NONE IS N6171 6275 6276 6277 fi #END TEST G4VIS_NONE IS N 6278 6172 6279 fi #END TEST G4SYSTEM IS Linux-g++ OR Darwin-g++ 6173 6280
Note:
See TracChangeset
for help on using the changeset viewer.
