File:  [mozdev] / epiphany / configure.in
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Nov 27 13:48:13 2002 UTC (17 years, 4 months ago) by mpeseng
Branches: MAIN
CVS tags: HEAD
2002-11-27  Marco Pesenti Gritti  <marco@it.gnome.org>

        * data/art/epiphany-secure.png:
        * data/art/epiphany-unsecure.png: resize to 18x18
        * configure.in:
        * embed/Makefile.am:
        * embed/mozilla/Makefile.am:
        * src/Makefile.am:
        * lib/Makefile.am:
        * lib/toolbar/Makefile.am:
        * lib/widgets/Makefile.am: enable werror
        * lib/ephy-file-helpers.c: missing includes
        * lib/widgets/ephy-location-entry.c: disable completion_to by default
        (ephy_location_entry_key_press_event_cb):
        * src/statusbar.c: (statusbar_set_security_state): really fix it

    1: dnl Process this file with autoconf to produce a configure script.
    2: 
    3: AC_INIT(configure.in)
    4: AC_PREREQ(2.50)
    5: 
    6: GCONF_REQUIRED=1.0.4
    7: GDK_PIXBUF_REQUIRED=0.13.0
    8: GLIB_REQUIRED=1.2.9
    9: LIBGLADE_REQUIRED=0.13
   10: GNOME_LIBS_REQUIRED=1.2.11
   11: GNOME_REQUIRED=1.2.8
   12: GNOME_VFS_REQUIRED=1.0.1
   13: GTK_REQUIRED=1.2.9
   14: LIBXML_REQUIRED=1.8.14
   15: OAF_REQUIRED=0.6.5
   16: ORBIT_REQUIRED=0.5.7
   17: MOZILLA_REQUIRED=1.1
   18: SCROLLKEEPER_REQUIRED=0.1.4
   19: 
   20: AC_SUBST(SCROLLKEEPER_REQUIRED)
   21: AC_SUBST(GNOME_VFS_REQUIRED)
   22: AC_SUBST(LIBXML_REQUIRED)
   23: AC_SUBST(ORBIT_REQUIRED)
   24: AC_SUBST(LIBGLADE_REQUIRED)
   25: AC_SUBST(GNOME_LIBS_REQUIRED)
   26: AC_SUBST(MOZILLA_REQUIRED)
   27: 
   28: AC_ENABLE_SHARED(yes)
   29: AC_ENABLE_STATIC(no)
   30: 
   31: AM_INIT_AUTOMAKE(epiphany, 1.3)
   32: AM_CONFIG_HEADER(config.h)
   33: 
   34: #AM_MAINTAINER_MODE
   35: #if test "x$enable_maintainer_mode" = "xyes"; then
   36: #  AC_DEFINE(MAINTAINER_MODE)
   37: #fi
   38: 
   39: AM_PROG_LIBTOOL
   40: 
   41: AC_ISC_POSIX
   42: AC_PROG_CC
   43: AC_PROG_CXX
   44: AM_PROG_CC_STDC
   45: AC_HEADER_STDC
   46: AC_PROG_INTLTOOL
   47: AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
   48: 
   49: GNOME_COMPILE_WARNINGS(error)
   50: 
   51: dnl ******************************
   52: dnl Nautilus View checking
   53: dnl ******************************
   54: 
   55: build_nautilus_view=no
   56: AC_ARG_ENABLE(nautilus-view, [  --enable-nautilus-view  (auto,yes,no)
   57: 			  Enable Nautilus View Galeon Component])
   58: 
   59: AC_MSG_CHECKING(if NautilusView Galeon component is wanted)
   60: if test "x$enable_nautilus_view" = "x" ; then
   61:   enable_nautilus_view=auto
   62: fi
   63: if test "x$enable_nautilus_view" = "xauto"; then
   64:   temptest=`pkg-config --cflags libnautilus 2> /dev/null`
   65:   if test "x$temptest" = "x" ; then
   66:      enable_nautilus_view=no
   67:   else
   68:      enable_nautilus_view=yes
   69:   fi
   70: fi
   71: if test "x$enable_nautilus_view" = "xyes"; then
   72:   dnl AC_DEFINE(ENABLE_NAUTILUS_VIEW)
   73:   nautilusview_pkgs=libnautilus
   74: fi
   75: AC_MSG_RESULT($enable_nautilus_view)
   76: AM_CONDITIONAL(ENABLE_NAUTILUS_VIEW, test "x$enable_nautilus_view" = "xyes")
   77: 
   78: dnl See if nautilus is installed in other prefix than epiphany so that we can load
   79: dnl nautilus throbbers even then.  
   80: dnl Maybe FIXME: make this check not require libnautilus.pc
   81: dnl
   82: nautilus_prefix=`pkg-config --variable=prefix libnautilus 2> /dev/null`
   83: if test "x${nautilus_prefix}" != "x"; then
   84:   if test "x${prefix}" = "xNONE"; then
   85:     epiphany_prefix="${ac_default_prefix}"
   86:   else
   87:     epiphany_prefix="${prefix}"
   88:   fi
   89: 
   90:   dnl We already search for nautilus throbbers in epiphany prefix, don't add the
   91:   dnl same directory or we'd show the throbbers twice.
   92:   if test "x${nautilus_prefix}" != "x${epiphany_prefix}"; then
   93:     AC_DEFINE_UNQUOTED(NAUTILUS_PREFIX, "${nautilus_prefix}")
   94:   fi
   95: fi
   96: 
   97: PKG_CHECK_MODULES(EPIPHANY_DEPENDENCY, gtk+-2.0 libxml-2.0 libgnomeui-2.0 libglade-2.0 bonobo-activation-2.0 ORBit-2.0 libglade-2.0 gnome-vfs-2.0 gnome-vfs-module-2.0 gconf-2.0 $nautilusview_pkgs)
   98: AC_SUBST(EPIPHANY_DEPENDENCY_CFLAGS)
   99: AC_SUBST(EPIPHANY_DEPENDENCY_LIBS)
  100: 
  101: ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
  102: AC_SUBST(ORBIT_IDL)
  103: 
  104: LIBBONOBO_IDL="`$PKG_CONFIG --variable=idldir libbonobo-2.0`"
  105: AC_SUBST(LIBBONOBO_IDL)
  106: 
  107: BONOBO_ACTIVATION_IDL="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
  108: AC_SUBST(BONOBO_ACTIVATION_IDL)
  109: 
  110: PKG_CHECK_MODULES(MOZILLA_COMPONENT, mozilla-gtkmozembed)
  111: dnl AC_DEFINE(ENABLE_MOZILLA_EMBED)
  112: AC_SUBST(MOZILLA_COMPONENT_CFLAGS)
  113: AC_SUBST(MOZILLA_COMPONENT_LIBS)
  114: 
  115: MOZILLA_INCLUDE_ROOT="`$PKG_CONFIG --variable=includedir mozilla-gtkmozembed`"
  116: AC_SUBST(MOZILLA_INCLUDE_ROOT)
  117: 
  118: MOZILLA_HOME="`$PKG_CONFIG --variable=libdir mozilla-gtkmozembed`"
  119: AC_SUBST(MOZILLA_HOME)
  120: 
  121: dnl whether to build with DEBUG defined
  122: AC_ARG_WITH(mozilla-debug,
  123: 	[  --with-mozilla-debug        Use a debug mozilla build],
  124: 	CXXFLAGS="-DDEBUG $CXXFLAGS",)
  125: 
  126: AC_ARG_ENABLE(cpp-rtti,
  127:         [  --enable-cpp-rtti       Enable C++ RTTI (for cvs gcc)],,
  128:         enable_cpp_rtti=no)
  129: 
  130: if test "x$enable_cpp_rtti" = "xno"; then
  131:   CXXFLAGS="-fno-rtti $CXXFLAGS"
  132: fi
  133: 
  134: dnl Specify the gconf configuration source, 
  135: dnl default to xml::$(sysconfdir)/gconf/gconf.xml.defaults
  136: 
  137: AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
  138: 
  139: if test x"$GCONFTOOL" = xno; then
  140:   AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
  141: fi
  142: 
  143: AM_GCONF_SOURCE_2
  144: 
  145: dnl *******************************
  146: dnl Internationalization
  147: dnl ******************************* 
  148: dnl Add the languages which your application supports here.
  149: 
  150: ALL_LINGUAS=""
  151: GETTEXT_PACKAGE=epiphany-2.0
  152: AC_SUBST(GETTEXT_PACKAGE)
  153: AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
  154: AM_GLIB_GNU_GETTEXT
  155: 
  156: dnl *********************************************************************
  157: dnl ** GCC FLAGS ********************************************************
  158: dnl *********************************************************************
  159: 
  160: dnl Only use warning flags if we have gcc
  161: if test "x$GCC" = "xyes"; then
  162: 	if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
  163: 		CFLAGS="$CFLAGS -Wall"
  164: 	fi
  165: dnl -W generates way too many unused parameter warnings, ick.
  166: dnl	if test -z "`echo "$CFLAGS" | grep "\-W\>" 2> /dev/null`" ; then
  167: dnl		CFLAGS="$CFLAGS -W"
  168: dnl	fi
  169: 	if test -z "`echo "$CFLAGS" | grep "\-Wmissing-declarations" 2> /dev/null`" ; then
  170: 		CFLAGS="$CFLAGS -Wmissing-declarations"
  171: 	fi
  172: 	if test -z "`echo "$CFLAGS" | grep "\-Wmissing-prototypes" 2> /dev/null`" ; then
  173: 		CFLAGS="$CFLAGS -Wmissing-prototypes"
  174: 	fi
  175: 	if test -z "`echo "$CFLAGS" | grep "\-Wsign-compare" 2> /dev/null`" ; then
  176: 		CFLAGS="$CFLAGS -Wsign-compare"
  177: 	fi
  178: 	if test "x$disable_werror" = "xno"; then
  179:         	if test -z "`echo "$CFLAGS" | grep "\-Werror" 2> /dev/null`" ; then
  180: 	     		CFLAGS="$CFLAGS -Werror"
  181: 		fi
  182:         fi
  183: fi
  184: 
  185: dnl Only use warning flags if we have g++
  186: if test "x$GXX" = "xyes"; then
  187: 	if test -z "`echo "$CXXFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
  188: 		CXXFLAGS="$CXXFLAGS -Wall"
  189: 	fi
  190: dnl	if test -z "`echo "$CXXFLAGS" | grep "\-W\>" 2> /dev/null`" ; then
  191: dnl		CXXFLAGS="$CXXFLAGS -W"
  192: dnl	fi
  193: 	if test -z "`echo "$CXXFLAGS" | grep "\-Wmissing-declarations" 2> /dev/null`" ; then
  194: 		CXXFLAGS="$CXXFLAGS -Wmissing-declarations"
  195: 	fi
  196: 	if test -z "`echo "$CXXFLAGS" | grep "\-Wmissing-prototypes" 2> /dev/null`" ; then
  197: 		CXXFLAGS="$CXXFLAGS -Wmissing-prototypes"
  198: 	fi
  199: 	if test -z "`echo "$CXXFLAGS" | grep "\-Wsign-compare" 2> /dev/null`" ; then
  200: 		CXXFLAGS="$CXXFLAGS -Wsign-compare"
  201: 	fi
  202:         gcc_check=`$CC -v 2>&1 | grep '^gcc version 3\.'`
  203:         if test "x$disable_werror" = "xno"; then
  204:                 if test "$gcc_check" == ""; then
  205:           		if test -z "`echo "$CXXFLAGS" | grep "\-Werror" 2> /dev/null`" ; then
  206: 	        		CXXFLAGS="$CXXFLAGS -Werror"
  207: 		        fi
  208:                 fi
  209:         fi
  210:         if test "$gcc_check" != ""; then
  211:                 CXXFLAGS="$CXXFLAGS -Wno-deprecated"
  212:         fi
  213: fi
  214: 
  215: dnl uninstalled share dir to search data
  216: AC_DEFINE_UNQUOTED(SHARE_UNINSTALLED_DIR,"`pwd`/data",[path to source data dir])
  217: 
  218: AC_OUTPUT([
  219: Makefile
  220: data/Makefile
  221: data/glade/Makefile
  222: data/art/Makefile
  223: data/ui/Makefile
  224: data/GNOME_Epiphany_NautilusView.server
  225: data/epiphany.schemas
  226: data/GNOME_Epiphany_Automation.server
  227: lib/Makefile
  228: lib/widgets/Makefile
  229: lib/toolbar/Makefile
  230: embed/Makefile
  231: embed/mozilla/Makefile
  232: src/Makefile
  233: po/Makefile.in
  234: ])

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>