Changeset 871 for trunk/Configure


Ignore:
Timestamp:
Oct 23, 2008, 4:30:54 PM (16 years ago)
Author:
garnier
Message:

come adjustments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r870 r871  
    43634363   #
    43644364   if test "x$g4ui_build_qt_session" = "xy" ; then
    4365 
    4366       echo " "
    4367       g4_havegoodqt=no
    4368 
     4365       
     4366       echo " "
     4367       g4_havegoodqt=no
     4368       
    43694369      # 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" ; then
     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" ; then
    43724372        # Look for qt3 moc
    4373         g4_qtmochome=`./loc moc no /usr/lib/qt3/bin     /usr/share/qt3/bin`
    4374       fi
    4375      
     4373           g4_qtmochome=`./loc moc no /usr/lib/qt3/bin     /usr/share/qt3/bin`
     4374       fi
     4375       
    43764376      # if not found
    4377       if test "x$g4_qtmochome" != "xno" ; then
    4378           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"
    43794379          # 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" ;then
    4383                             
     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               
    43844384              # 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"; 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                  
     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                   
    44064406                  # 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" ; 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 QTVER
     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" ; 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
    44324432      #
    44334433      # END QT AUTOPROBE
     
    44394439      # locate Qt...
    44404440      #
    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
    44474446
    44484447Autodetection failed to locate Qt on your system.
     
    44524451Qt path:
    44534452EOM`
    4454                dflt="/usr"
    4455                g4_qtmochome="/usr"
    4456                fn='d~(-)'
    4457                rp=$g4message
    4458                . ./getfile
     4453           dflt="/usr"
     4454           g4_qtmochome="/usr"
     4455           fn='d~(-)'
     4456           rp=$g4message
     4457           . ./getfile
    44594458
    44604459               #Check for user cancellation
    4461                if test "x$ans" = "x-" ; then
    4462                   g4ui_build_qt_session=n
    4463                   g4ui_use_qt=n
    4464                   echo "build/use of Qt UI module cancelled..."
    4465                   promptend=yes
    4466 
    4467                else
     4460           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
    44684467                  #We want to probe for Qt in the user supplied directory
    4469                   echo " "
    4470                   qthomeloc=$ans
    4471                   g4_havegoodqt=no
     4468               echo " "
     4469               qthomeloc=$ans
     4470               g4_havegoodqt=no
    44724471
    44734472
    44744473                  # check for moc
    44754474
    4476                   g4_qtmochome=`./loc moc no $ans/bin`
    4477                   if test "x$g4_qtmochome" = "xno" ; then
    4478                       while test "x$promptend" = "xno" ; do
    4479                           g4message=`cat << EOM
     4475               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
    44804479
    44814480Failed to locate Qt moc tool on your system.
     
    44844483Qt moc path:
    44854484EOM`
    4486                           fn='d~(-)'
    4487                           rp=$g4message
    4488                           . ./getfile
    4489                           
     4485                       fn='d~(-)'
     4486                       rp=$g4message
     4487                       . ./getfile
     4488                       
    44904489                          #Check for user cancellation
    4491                           if test "x$ans" = "x-" ; then
    4492                               g4ui_build_qt_session=n
    4493                               g4ui_use_qt=n
    4494                               echo "build/use of Qt UI module cancelled..."
    4495                               promptend=yes
    4496                               
    4497                           else
     4490                       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
    44984497                              #We want to probe for Qt in the user supplied directory
    4499                               echo " "
     4498                           echo " "
    45004499                              # check for moc
    4501                               g4_qtmochome=`./loc moc no $ans/bin`
    4502                               if test "x$g4_qtmochome" != "xno" ; then
    4503                                   promptend=yes
    4504                               fi
    4505                           fi
    4506                       done
    4507                   fi # ASK FOR QT MOC
    4508                   if test "x$g4_qtmochome" != "xno" ; then
    4509                       echo "checking Qt moc tool in... $g4_qtmochome"
    4510                   fi
     4500                           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
    45114510
    45124511                  # if moc ok, then check for version
    4513                   if test "x$g4_qtmochome" != "xno" ; then
    4514                       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";then
     4512               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
    45184517
    45194518                          # if version ok check for includes
    45204519                          # 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"; then
    4524                               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" ; then
    4527                                   g4_qtincdir=`dirname $g4_qtincdir`
    4528                                   g4_qtincdir=`dirname $g4_qtincdir`
    4529                               fi
    4530                           else
    4531                               g4_qtincdir=`./loc qglobal.h no $incQtFiles`
    4532                           fi
    4533                           if test "x$g4_qtincdir" = "xno" ; then
    4534                               while test "x$promptend" = "xno" ; do
    4535                                   g4message=`cat << EOM
     4520                       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
    45364535
    45374536Failed to locate Qt include directory on your system.
     
    45404539Qt include path:
    45414540EOM`
    4542                                   fn='d~(-)'
    4543                                   rp=$g4message
    4544                                   . ./getfile
    4545                                   
     4541                               fn='d~(-)'
     4542                               rp=$g4message
     4543                               . ./getfile
     4544                               
    45464545                                  #Check for user cancellation
    4547                                   if test "x$ans" = "x-" ; then
    4548                                       g4ui_build_qt_session=n
    4549                                       g4ui_use_qt=n
    4550                                       echo "build/use of Qt UI module cancelled..."
    4551                                       promptend=yes
    4552                                       
    4553                                   else
     4546                               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
    45544553                                     #We want to probe for Qt in the user supplied directory
    4555                                       echo " "
     4554                                   echo " "
    45564555                                      # check for include
    4557                                       g4_qtincdir=`./loc qglobal.h no $ans`
    4558                                       if test "x$g4_qtincdir" != "xno" ; then
    4559                                           promptend=yes
    4560                                       fi
    4561                                   fi
    4562                               done
    4563                           fi # ASK FOR QT INC
    4564                           if test "x$g4_qtincdir" != "xno" ; then
    4565                               g4_qtincdir=`dirname $g4_qtincdir`
    4566                               echo "checking Qt inc dir in... $g4_qtincdir"
    4567                           fi
     4556                                   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
    45684567                          # if qt inc ok, then check for libs
    4569                           if test "x$g4_qtincdir" != "xno" ; then
     4568                       if test "x$g4_qtincdir" != "xno" ; then
    45704569
    45714570                              # 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" ; then
    4575                                   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                               else
    4580                                   g4_qtlibdir=`./loc libqt* no $libQtFiles`
    4581                               fi
    4582                               if test "x$g4_qtlibdir" = "xno" ; then
    4583                                   while test "x$promptend" = "xno" ; do
    4584                                       g4message=`cat << EOM
     4571                           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
    45854584
    45864585Failed to locate Qt lib directory on your system.
     
    45894588Qt library path:
    45904589EOM`
    4591                                       fn='d~(-)'
    4592                                       rp=$g4message
    4593                                       . ./getfile
    4594                                       
     4590                                   fn='d~(-)'
     4591                                   rp=$g4message
     4592                                   . ./getfile
     4593                                   
    45954594                                  #Check for user cancellation
    4596                                       if test "x$ans" = "x-" ; then
    4597                                           g4ui_build_qt_session=n
    4598                                           g4ui_use_qt=n
    4599                                           echo "build/use of Qt UI module cancelled..."
    4600                                           promptend=yes
    4601                                           
    4602                                       else
     4595                                   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
    46034602                                     #We want to probe for Qt in the user supplied directory
    4604                                           echo " "
     4603                                       echo " "
    46054604                                      # check for libraries
    4606                                           if test "X$g4osname" = "XDarwin" && test "X$g4_qtincdir" = "X/Library/Frameworks" ; then
    4607                                               g4_qtlibdir=`./loc QtCore* no $libQtFiles /Library/Frameworks/`
    4608                                           else
    4609                                               g4_qtlibdir=`./loc libqt* no $libQtFiles`
    4610                                           fi
    4611                                           if test "x$g4_qtlibdir" != "xno" ; then
    4612                                               promptend=yes
    4613                                           fi
    4614                                       fi
    4615                                   done
    4616                               fi # END OF LIB CHECK
    4617                               if test "x$g4_qtlibdir" != "xno" ; then
    4618                                   g4_qtlibdir=`dirname $g4_qtlibdir`
    4619                                   echo "checking Qt lib dir in... $g4_qtlibdir"
    4620                                   promptend=yes
    4621                                   g4_havegoodqt=yes
    4622                               fi
    4623                               
    4624                           else # END OF INC CHECK
    4625                               g4_qtincdir=no
    4626                           fi                     
    4627                       else # END OF VERSION CHECK
    4628                           g4_qtmochome=no
    4629                       fi
    4630                   fi # END OF MOC CHECK
    4631 
    4632                fi #END CHECK USER CANCELLATION
    4633          done #END USER PROMPT FOR QT DETECTION
    4634         
    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
    46364635      #
    46374636      #END QT USER INPUT PROBE
     
    59275926#
    59285927if test "x$g4system" = "xLinux-g++" -o "x$g4system" = "xDarwin-g++" ; then
    5929 
     5928   
    59305929   # Only proceed further if g4vis_none is not set
    5931    if test "x$g4vis_none" = "xn" ; then
     5930    if test "x$g4vis_none" = "xn" ; then
    59325931      #Query the user on whether to activate the module
    5933       g4message=`cat << EOM
     5932        g4message=`cat << EOM
    59345933
    59355934    G4VIS_BUILD_OPENGLQT_DRIVER
     
    59435942Do you want to enable build and use of this module?
    59445943EOM`
    5945 
     5944       
    59465945      #Read the user response
    5947       dflt=$g4vis_build_openglqt_driver
    5948       rp=$g4message
    5949       . ./myread
    5950       gans=$ans
    5951 
    5952       #
    5953       # Check response
    5954       #
    5955       case $gans in
    5956            n*|N*)
    5957                 g4vis_build_openglqt_driver=n
    5958                 g4vis_use_openglqt=n
    5959                 ;;
    5960            y*|Y*)
    5961                 g4vis_build_openglqt_driver=y
    5962                 g4vis_use_openglqt=y
    5963                 ;;
    5964       esac
    5965 
    5966       ###################
    5967 
    5968 
    5969 
    5970       ####################################################################
    5971       # Now, if we have selected to build the driver, we need to check for
    5972       # a Qt installation, which may have been done for use by the UI
    5973       # module...
    5974       #
    5975       if test "x$g4vis_build_openglqt_driver" = "xy" ; then
    5976          
    5977         #Now check whether g4_qthome has been set previously - if it hasn't
    5978         #proceed to probe for Qt... (assume it's unfiltered, i.e. not
    5979         #set to '' by earlier probe if it was /usr or /usr/local
    5980         if test "x$g4_qtmochome" != "x" && test "x$g4_qtlibdir" != "x" && test "x$g4_qtincdir" != "x"  ; then
    5981             echo " "
    5982             echo "configure: Qt preconfigured, no recheck neccessary"
    5983         else
     5946        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
    59845983         #################################################################
    59855984            #We repeat the search used for the UI module
    5986            
    5987             echo " "
    5988             g4_havegoodqt=no
    5989            
    5990              # Look for qt4 moc
    5991             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" ; then
    5993              # Look for qt3 moc
    5994                 g4_qtmochome=`./loc moc no /usr/lib/qt3/bin     /usr/share/qt3/bin`
    5995             fi
    5996            
     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               
    59975996            # 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"
    60015999                # 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/"
    60206010                            g4_qtincdir=`./loc qglobal.h no $incQtFiles`
     6011                            if test "x$g4_qtincdir" != "xno" ; then
     6012                                g4_qtincdir="/Library/Frameworks"
     6013                            fi
    60216014                        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`
    60266016                        fi
    6027                     else
    6028                         g4_qtincdir=`./loc qglobal.h no $incFiles`
    6029                     fi  #END CHECK QTLIBS
    6030                    
    6031                    
    6032                     if test "x$g4_qtincdir" != "xno" ; then
    6033                         if test "x$g4_qtincdir" != "x/Library/Frameworks/" ; then
    6034                             g4_qtincdir=`dirname $g4_qtincdir`
    6035                         fi
    6036                         echo "checking Qt includes dir in... $g4_qtincdir"
    60376017                       
    60386018                       
    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`
    60466035                            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"
    60486044                            fi
    60496045                        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
    60626053            #
    60636054            # END QT AUTOPROBE
    60646055            ####################################################################
    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...
    60696065            #
    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
     6072Autodetection failed to locate Qt on your system.
    60786073Please 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 '-' to
     6074in PATH/include/Qt, or PATH/include  $PATH/include/qt, enter PATH), or type '-' to
    60806075CANCEL the build of the Qt UI module.
    60816076Qt path:
    60826077EOM`
    6083                      dflt="/usr"
    6084                      fn='d~(-)'
    6085                      rp=$g4message
    6086                      . ./getfile
    6087 
    6088                      #Check for user cancellation
    6089                      if test "x$ans" = "x-" ; then
    6090                         g4ui_build_qt_session=n
    6091                         g4ui_use_qt=n
    6092                         g4_qthome=""
    6093                         echo "build/use of OpenGl Qt driver cancelled..."
    6094                         promptend=yes
    6095 
    6096                      else
     6078                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
    60976092                        #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
     6105Failed to locate Qt moc tool on your system.
     6106Please enter the path to your Qt moc tool install or type '-' to
     6107CANCEL the build of the Qt UI module.
     6108Qt moc path:
     6109EOM`
     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
     6161Failed to locate Qt include directory on your system.
     6162Please enter the path to your Qt include directory install or type '-' to
     6163CANCEL the build of the Qt UI module.
     6164Qt include path:
     6165EOM`
     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
     6210Failed to locate Qt lib directory on your system.
     6211Please enter the path to your Qt lib directory install or type '-' to
     6212CANCEL the build of the Qt UI module.
     6213Qt library path:
     6214EOM`
     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               
    61496258            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       
    61596266      #
    61606267      # Put a filter in here on /usr and /usr/local as QTHOME in line
     
    61666273        # g4_qthome=""
    61676274      #fi
    6168        
    6169 
    6170    fi #END TEST G4VIS_NONE IS N
    6171 
     6275       
     6276
     6277    fi #END TEST G4VIS_NONE IS N
     6278   
    61726279fi #END TEST G4SYSTEM IS Linux-g++ OR Darwin-g++
    61736280
Note: See TracChangeset for help on using the changeset viewer.