Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate

Advertising

DMZ
Saturday, April 21st, 2007 at 8:39:52am UTC 

  1. 110-129
  2. dnl Set the minimum version of toolkit libs used by mozilla
  3. dnl ========================================================
  4. GLIB_VERSION=1.2.0
  5. GTK_VERSION=1.2.0
  6. LIBIDL_VERSION=0.6.3
  7. PERL_VERSION=5.006
  8. QT_VERSION=3.2.0
  9. QT_VERSION_NUM=320
  10. LIBART_VERSION=2.3.4
  11. CAIRO_VERSION=1.4.2
  12. GLITZ_VERSION=0.4.0
  13. GTK2_VERSION=1.3.7
  14. MAKE_VERSION=3.78
  15. WINDRES_VERSION=2.14.90
  16. W32API_VERSION=3.8
  17. GNOMEVFS_VERSION=2.0
  18. GNOMEUI_VERSION=2.2.0
  19. GCONF_VERSION=1.2.1
  20. LIBGNOME_VERSION=2.0
  21. STARTUP_NOTIFICATION_VERSION=0.8
  22.  
  23.  
  24. 4670-4739
  25. if test "$MOZ_ENABLE_QT"
  26. then
  27.     MOZ_ARG_WITH_STRING(qtdir,
  28.     [  --with-qtdir=\$dir       Specify Qt directory ],
  29.     [ QTDIR=$withval])
  30.  
  31.     if test -z "$QTDIR"; then
  32.       QTDIR="/usr"
  33.     fi
  34.     QTINCDIR="/include/qt"
  35.     if test ! -d "$QTDIR$QTINCDIR"; then
  36.        QTINCDIR="/include/X11/qt"
  37.     fi
  38.     if test ! -d "$QTDIR$QTINCDIR"; then
  39.        QTINCDIR="/include"
  40.     fi
  41.  
  42.     if test -x "$QTDIR/bin/moc"; then
  43.       HOST_MOC="$QTDIR/bin/moc"
  44.     else
  45.       AC_CHECK_PROGS(HOST_MOC, moc, "")
  46.     fi
  47.     if test -z "$HOST_MOC"; then
  48.       AC_MSG_ERROR([no acceptable moc preprocessor found])
  49.     fi
  50.     MOC=$HOST_MOC
  51.  
  52.     QT_CFLAGS="-I${QTDIR}${QTINCDIR} -DQT_GENUINE_STR -DQT_NO_STL"
  53.     if test -z "$MOZ_DEBUG"; then
  54.       QT_CFLAGS="$QT_CFLAGS -DQT_NO_DEBUG -DNO_DEBUG"
  55.     fi
  56.     _SAVE_LDFLAGS=$LDFLAGS
  57.     QT_LDFLAGS=-L${QTDIR}/lib
  58.     LDFLAGS="$LDFLAGS $QT_LDFLAGS"
  59.     AC_LANG_SAVE
  60.     AC_LANG_CPLUSPLUS
  61.     AC_CHECK_LIB(qt, main, QT_LIB=-lqt,
  62.         AC_CHECK_LIB(qt-mt, main, QT_LIB=-lqt-mt,
  63.             AC_MSG_ERROR([Cannot find QT libraries.])))
  64.     LDFLAGS=$_SAVE_LDFLAGS
  65.     QT_LIBS="-L/usr/X11R6/lib $QT_LDFLAGS $QT_LIB -lXext -lX11"
  66.  
  67.     MOZ_QT_LDFLAGS=$QT_LIBS
  68.     MOZ_QT_CFLAGS=$QT_CFLAGS
  69.  
  70.     _SAVE_CXXFLAGS=$CXXFLAGS
  71.     _SAVE_LIBS=$LIBS
  72.  
  73.     CXXFLAGS="$CXXFLAGS $QT_CFLAGS"
  74.     LIBS="$LIBS $QT_LIBS"
  75.    
  76.     AC_MSG_CHECKING(Qt - version >= $QT_VERSION)
  77.     AC_TRY_COMPILE([#include <qglobal.h>],
  78.     [
  79.         #if (QT_VERSION < $QT_VERSION_NUM)
  80.             #error  "QT_VERSION too old"
  81.         #endif
  82.     ],result="yes",result="no")
  83.  
  84.     AC_MSG_RESULT("$result")
  85.     if test "$result" = "no"; then
  86.         AC_MSG_ERROR([Qt Mozilla requires at least version $QT_VERSION of Qt])
  87.     fi
  88.     CXXFLAGS=$_SAVE_CXXFLAGS
  89.     LIBS=$_SAVE_LIBS
  90.  
  91.     AC_LANG_RESTORE
  92. fi
  93. fi # COMPILE_ENVIRONMENT

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will not expire by default. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right