Changeset 870 for trunk


Ignore:
Timestamp:
Oct 23, 2008, 3:22:02 PM (16 years ago)
Author:
garnier
Message:

big modifications in order to try to get all conf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Configure

    r869 r870  
    206206g4vis_xmhome=''
    207207g4vis_xmlibs=''
    208 g4_qthome=''
     208g4_qtmochome=''
     209g4_qtincdir=''
     210g4_qtlibdir=''
    209211g4ui_build_qt_session=''
    210212g4ui_use_qt=''
     
    289291g4ui_build_qt_session='n'
    290292g4ui_use_qt='n'
    291 g4_qthome=''
     293g4_qtmochome=''
     294g4_qtincdir=''
     295g4_qtlibdir=''
    292296#END QT UI OPTIONS
    293297#INITIALIZE QT UI OPTIONS
    294298g4ui_build_qt_session='n'
    295299g4ui_use_qt='n'
    296 g4_qthome=''
     300g4_qtmochome=''
     301g4_qtincdir=''
     302g4_qtlibdir=''
    297303#END QT UI OPTIONS
    298304#INITIALIZE QT VIS DRIVER OPTIONS
     
    477483override=''
    478484knowitall=''
     485echo "*********"
     486echo `pwd`
     487echo "*********"
    479488rm -f optdef.sh
    480489cat >optdef.sh <<EOS
     
    43034312# We only perform the query/probe for Linux-g++ and Darwin-g++ systems..
    43044313#
    4305 if test "x$g4system" = "xLinux-g++" -o "x$g4system" = "xDarwin-g++" ; then
     4314#if test "x$g4system" = "xLinux-g++" -o "x$g4system" = "xDarwin-g++" ; then
    43064315
    43074316# Now, IF g4ui_none HAS NOT BEEN SET TO Y, proceed to the query/probe section
     
    43184327user interface module and the use of this module in your applications
    43194328respectively.
    4320 The Qt4 headers, libraries and binaries are required to enable the
     4329The Qt headers, libraries and binaries are required to enable the
    43214330building of this module.
    4322 ### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
    4323 ### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!         ###
    43244331Do you want to enable build and use of this module?
    43254332EOM`
     
    43604367      g4_havegoodqt=no
    43614368
    4362       g4_qthome=`./loc qglobal.h no /usr/include/Qt /usr/local/include/Qt /opt/local/include/Qt /sw/include/Qt`
    4363 
    4364       echo "checking for Qt4 installation... $g4_qthome"
    4365 
    4366       #If we found an installation, proceed to other tests.
    4367       if test "x$g4_qthome" != "xno" ; then
    4368 
    4369          #Set Qt installation to good at this point
    4370          g4_havegoodqt=yes
     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" ; then
     4372        # Look for qt3 moc
     4373        g4_qtmochome=`./loc moc no /usr/lib/qt3/bin     /usr/share/qt3/bin`
     4374      fi
    43714375     
    4372         #Check that this is Qt4...
    4373         g4_qtver=`$grep QT_VERSION_STR $g4_qthome | $sed 's/.* \"\([0-9]\)\..*\"/\1/'`
    4374 
    4375         echo "checking Qt version... $g4_qtver"
    4376 
    4377         #Now strip qthome back so we can check for moc...
    4378         g4_qthome=`dirname $g4_qthome`
    4379         g4_qthome=`dirname $g4_qthome`
    4380         g4_qthome=`dirname $g4_qthome`
    4381 
    4382         #If version is o.k, check for moc
    4383         if test "x$g4_qtver" = "x4" ; then
    4384            #Check for moc
    4385            g4_qthavemoc=`./loc moc no $g4_qthome/bin`
    4386 
    4387            echo "checking for moc... $g4_qthavemoc"
    4388 
    4389            if test "x$g4_qthavemoc" = "xno" ; then
    4390               g4_havegoodqt=no
    4391            fi
    4392         else
    4393            g4_havegoodqt=no
    4394         fi #END CHECK Qt VERSION
    4395       fi #END CHECK QTHOME
     4376      # if not found
     4377      if test "x$g4_qtmochome" != "xno" ; then
     4378          echo "checking Qt moc tool in... $g4_qtmochome"
     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" ;then
     4383                           
     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"; 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                  # 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
    43964432      #
    43974433      # END QT AUTOPROBE
     
    44104446               g4message=`cat << EOM
    44114447
    4412 Autodetection failed to locate Qt4 in $qthomeloc on your system.
    4413 Please enter the path to your Qt4 install (i.e. if Qt4 is installed
    4414 in PATH/include/Qt, or PATH/include, enter PATH), or type '-' to
     4448Autodetection failed to locate Qt on your system.
     4449Please enter the path to your Qt install (i.e. if Qt is installed
     4450in PATH/include/Qt, or PATH/include  $PATH/include/qt, enter PATH), or type '-' to
    44154451CANCEL the build of the Qt UI module.
    44164452Qt path:
    44174453EOM`
    44184454               dflt="/usr"
     4455               g4_qtmochome="/usr"
    44194456               fn='d~(-)'
    44204457               rp=$g4message
     
    44254462                  g4ui_build_qt_session=n
    44264463                  g4ui_use_qt=n
    4427                   g4_qthome=""
    44284464                  echo "build/use of Qt UI module cancelled..."
    44294465                  promptend=yes
     
    44344470                  qthomeloc=$ans
    44354471                  g4_havegoodqt=no
    4436                   g4_qthome=`./loc qglobal.h no $ans/include/Qt $ans/include`
    4437 
    4438                   echo "checking for Qt4 installation... $g4_qthome"
    4439 
    4440                   #If we found an installation, proceed to other tests.
    4441                   if test "x$g4_qthome" != "xno" ; then
    4442                      #Set Qt installation to good at this point
    4443                      g4_havegoodqt=yes         
    4444 
    4445                      #Check that this is Qt4...
    4446                      g4_qtver=`$grep QT_VERSION_STR $g4_qthome | $sed 's/.* \"\([0-9]\)\..*\"/\1/'`
    4447 
    4448                      echo "checking Qt version... $g4_qtver"
    4449 
    4450                      #Now strip qthome back so we can check for moc...
    4451                      g4_qthome=`dirname $g4_qthome`
    4452 
    4453                      #At this point we could have include/Qt
    4454                      #or include
    4455                      if test `basename $g4_qthome` = "Qt" ; then
    4456                         g4_qthome=`dirname $g4_qthome`
    4457                         g4_qthome=`dirname $g4_qthome`
    4458                      else
    4459                         g4_qthome=`dirname $g4_qthome`
    4460                      fi
    4461 
    4462                      #If version is o.k, check for moc
    4463                      if test "x$g4_qtver" = "x4" ; then
    4464                         #Check for moc
    4465                         g4_qthavemoc=`./loc moc no $g4_qthome/bin`
    4466 
    4467                         echo "checking for moc... $g4_qthavemoc"
    4468 
    4469                         if test "x$g4_qthavemoc" = "xno" ; then
    4470                            g4_havegoodqt=no
    4471                         fi
    4472                      else
    4473                         g4_havegoodqt=no
    4474                      fi #END CHECK Qt VERSION
    4475                   fi #END CHECK QTHOME
    4476 
    4477                   #If we have a good Qt, end prompt
    4478                   if test "x$g4_havegoodqt" = "xyes" ; then
    4479                      promptend=yes
    4480                   fi
     4472
     4473
     4474                  # check for moc
     4475
     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
     4480
     4481Failed to locate Qt moc tool on your system.
     4482Please enter the path to your Qt moc tool install or type '-' to
     4483CANCEL the build of the Qt UI module.
     4484Qt moc path:
     4485EOM`
     4486                          fn='d~(-)'
     4487                          rp=$g4message
     4488                          . ./getfile
     4489                         
     4490                          #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
     4498                              #We want to probe for Qt in the user supplied directory
     4499                              echo " "
     4500                              # 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
     4511
     4512                  # 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
     4518
     4519                          # if version ok check for includes
     4520                          # 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
     4536
     4537Failed to locate Qt include directory on your system.
     4538Please enter the path to your Qt include directory install or type '-' to
     4539CANCEL the build of the Qt UI module.
     4540Qt include path:
     4541EOM`
     4542                                  fn='d~(-)'
     4543                                  rp=$g4message
     4544                                  . ./getfile
     4545                                 
     4546                                  #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
     4554                                     #We want to probe for Qt in the user supplied directory
     4555                                      echo " "
     4556                                      # 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
     4568                          # if qt inc ok, then check for libs
     4569                          if test "x$g4_qtincdir" != "xno" ; then
     4570
     4571                              # 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
     4585
     4586Failed to locate Qt lib directory on your system.
     4587Please enter the path to your Qt lib directory install or type '-' to
     4588CANCEL the build of the Qt UI module.
     4589Qt library path:
     4590EOM`
     4591                                      fn='d~(-)'
     4592                                      rp=$g4message
     4593                                      . ./getfile
     4594                                     
     4595                                  #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
     4603                                     #We want to probe for Qt in the user supplied directory
     4604                                          echo " "
     4605                                      # 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
    44814632               fi #END CHECK USER CANCELLATION
    44824633         done #END USER PROMPT FOR QT DETECTION
    4483 
     4634         
    44844635      fi #END USER DIRECTED QT DETECTION
    44854636      #
    44864637      #END QT USER INPUT PROBE
    44874638      ####################################################################
    4488 
     4639     
    44894640   fi #END CHECK OF G4UI_BUILD_QT_SESSION=Y
    44904641   ###########################################
    44914642
    44924643fi #END TEST G4UI_NONE=N
    4493 fi #END TEST G4SYSTEM = Linux-g++ OR Darwin-g++
     4644#fi #END TEST G4SYSTEM = Linux-g++ OR Darwin-g++
    44944645########################
    44954646echo " "
     
    57885939visualisation driver and the use of this driver in your applications
    57895940respectively.
    5790 The Qt4 headers, libraries and binaries are required to enable the
     5941The Qt headers, libraries and binaries are required to enable the
    57915942building of this module.
    5792 ### WARNING! THIS FEATURE IS EXPERIMENTAL IN THIS RELEASE! ###
    5793 ### WARNING! THIS FEATURE WILL ONLY WORK WITH Qt4!         ###
    57945943Do you want to enable build and use of this module?
    57955944EOM`
     
    58215970      ####################################################################
    58225971      # Now, if we have selected to build the driver, we need to check for
    5823       # a Qt4 installation, which may have been done for use by the UI
     5972      # a Qt installation, which may have been done for use by the UI
    58245973      # module...
    58255974      #
    58265975      if test "x$g4vis_build_openglqt_driver" = "xy" ; then
    5827                
    5828         #Now check whether g4_qthome has been set previously - if it hasn't
    5829          #proceed to probe for Qt4... (assume it's unfiltered, i.e. not
    5830         #set to '' by earlier probe if it was /usr or /usr/local
    5831          if test "x$g4_qthome" != "x" ; then
    5832             echo " "
    5833             echo "configure: Qt4 preconfigured, no recheck neccessary"
    5834         else
     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
    58355984         #################################################################
    58365985            #We repeat the search used for the UI module
    58375986           
    5838             echo " "
    5839             g4_havegoodqt=no
    5840 
    5841             g4_qthome=`./loc qglobal.h no /usr/include/Qt /usr/local/include/Qt /opt/local/include/Qt /sw/include/Qt`
    5842 
    5843             echo "checking for Qt4 installation... $g4_qthome"
    5844 
    5845             #If we found an installation, proceed to other tests.
    5846             if test "x$g4_qthome" != "xno" ; then
    5847 
    5848                #Set Qt installation to good at this point
    5849                g4_havegoodqt=yes
    5850      
    5851                 #Check that this is Qt4...
    5852                 g4_qtver=`$grep QT_VERSION_STR $g4_qthome | $sed 's/.* \"\([0-9]\)\..*\"/\1/'`
    5853 
    5854                 echo "checking Qt version... $g4_qtver"
    5855 
    5856                 #Now strip qthome back so we can check for moc...
    5857                 g4_qthome=`dirname $g4_qthome`
    5858                 g4_qthome=`dirname $g4_qthome`
    5859                 g4_qthome=`dirname $g4_qthome`
    5860 
    5861                 #If version is o.k, check for moc
    5862                 if test "x$g4_qtver" = "x4" ; then
    5863                    #Check for moc
    5864                    g4_qthavemoc=`./loc moc no $g4_qthome/bin`
    5865 
    5866                    echo "checking for moc... $g4_qthavemoc"
    5867 
    5868                    if test "x$g4_qthavemoc" = "xno" ; then
    5869                       g4_havegoodqt=no
    5870                    fi
    5871                 else
    5872                    g4_havegoodqt=no
    5873                 fi #END CHECK Qt VERSION
    5874             fi #END CHECK QTHOME
    5875             #
    5876             # END QT AUTOPROBE     
     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           
     5997            # if not found
     5998            if test "x$g4_qtmochome" = "xno" ; then
     5999                g4_havegoodqt=no
     6000            else
     6001                # 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
     6020                            g4_qtincdir=`./loc qglobal.h no $incQtFiles`
     6021                        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
     6026                        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"
     6037                       
     6038                       
     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/"
     6046                            else
     6047                                g4_qtlibdir=`./loc libqt* no $libQtFiles      /sw/lib   /sw/lib/qt`
     6048                            fi
     6049                        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
     6062            #
     6063            # END QT AUTOPROBE
     6064            ####################################################################
    58776065
    58786066
     
    58876075                     g4message=`cat << EOM
    58886076
    5889 Autodetection failed to locate Qt4 in $qthomeloc on your system.
    5890 Please enter the path to your Qt4 install (i.e. if Qt4 is installed
     6077Autodetection failed to locate Qt in $qthomeloc on your system.
     6078Please enter the path to your Qt install (i.e. if Qt is installed
    58916079in PATH/include/Qt, or PATH/include, enter PATH), or type '-' to
    58926080CANCEL the build of the Qt UI module.
     
    59136101                        g4_qthome=`./loc qglobal.h no $ans/include/Qt $ans/include`
    59146102
    5915                         echo "checking for Qt4 installation... $g4_qthome"
     6103                        echo "checking for Qt installation... $g4_qthome"
    59166104
    59176105                        #If we found an installation, proceed to other tests.
     
    59206108                           g4_havegoodqt=yes           
    59216109
    5922                            #Check that this is Qt4...
     6110                           #Check that this is Qt...
    59236111                           g4_qtver=`$grep QT_VERSION_STR $g4_qthome | $sed 's/.* \"\([0-9]\)\..*\"/\1/'`
    59246112
     
    64046592g4_make='$g4_make'
    64056593g4_make_version='$g4_make_version'
    6406 g4_qthome='$g4_qthome'
     6594g4_qtmochome='$g4_qtmochome'
     6595g4_qtincdir='$g4_qtincdir'
     6596g4_qtlibdir='$g4_qtlibdir'
    64076597g4abladata='$g4abladata'
    64086598g4base='$g4base'
Note: See TracChangeset for help on using the changeset viewer.