"Fossies" - the Fresh Open Source Software Archive

Member "google-gadgets-for-linux-0.11.2/configure.ac" (27 Jan 2010, 56444 Bytes) of package /linux/misc/old/google-gadgets-for-linux-0.11.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #
    2 # Copyright 2008 Google Inc.
    3 #
    4 # Licensed under the Apache License, Version 2.0 (the "License");
    5 # you may not use this file except in compliance with the License.
    6 # You may obtain a copy of the License at
    7 #
    8 #      http://www.apache.org/licenses/LICENSE-2.0
    9 #
   10 # Unless required by applicable law or agreed to in writing, software
   11 # distributed under the License is distributed on an "AS IS" BASIS,
   12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13 # See the License for the specific language governing permissions and
   14 # limitations under the License.
   15 #
   16 
   17 # Process this file with autoconf to produce a configure script
   18 
   19 # Specifies:
   20 #  Package name
   21 #  Version
   22 #  Bug report address
   23 AC_INIT([google-gadgets-for-linux],
   24         [0.11.2],
   25         [google-gadgets-for-linux-dev@googlegroups.com])
   26 
   27 # Requires autoconf version >= 2.50
   28 AC_PREREQ([2.50])
   29 
   30 # Specifies a source file in the source directory.
   31 AC_CONFIG_SRCDIR([ggadget/common.h])
   32 
   33 # Tells autoconf where to find necessary build scripts and macros.
   34 AC_CONFIG_AUX_DIR([autotools])
   35 AC_CONFIG_MACRO_DIR([autotools])
   36 
   37 
   38 # Save the user defined CFLAGS and CXXFLAGS, then restore them later.
   39 # So that the value set by AC_PROG_CC and AC_PROG_CXX won't be used,
   40 # even if they are empty.
   41 ggl_save_CFLAGS=$CFLAGS
   42 ggl_save_CPPFLAGS=$CPPFLAGS
   43 ggl_save_CXXFLAGS=$CXXFLAGS
   44 ggl_save_LDFLAGS=$LDFLAGS
   45 
   46 ###########################################################
   47 ##          Some definitions of Version macros.          ##
   48 ###########################################################
   49 
   50 # Version numbers of Google Gadgets for Linux package.
   51 GGL_MAJOR_VERSION=0
   52 GGL_MINOR_VERSION=11
   53 GGL_MICRO_VERSION=2
   54 
   55 GGL_VERSION_UNQUOTED="$GGL_MAJOR_VERSION.$GGL_MINOR_VERSION.$GGL_MICRO_VERSION"
   56 GGL_VERSION="\"$GGL_VERSION_UNQUOTED\""
   57 
   58 AC_SUBST(GGL_MAJOR_VERSION)
   59 AC_SUBST(GGL_MINOR_VERSION)
   60 AC_SUBST(GGL_MICRO_VERSION)
   61 AC_SUBST(GGL_VERSION_UNQUOTED)
   62 AC_SUBST(GGL_VERSION)
   63 
   64 
   65 # libtool versioning for libggadget
   66 
   67 # Increment if the interface has additions, changes, removals.
   68 LIBGGADGET_CURRENT=0
   69 
   70 # Increment any time the source changes; set to 0 if you increment
   71 # LIBGGADGET_CURRENT
   72 LIBGGADGET_REVISION=0
   73 
   74 # Increment if any interfaces have been added; set to 0
   75 # if any interfaces have been removed. removal has
   76 # precedence over adding, so set to 0 if both happened.
   77 LIBGGADGET_AGE=0
   78 
   79 LIBGGADGET_VERSION=$LIBGGADGET_CURRENT:$LIBGGADGET_REVISION:$LIBGGADGET_AGE
   80 
   81 AC_SUBST(LIBGGADGET_CURRENT)
   82 AC_SUBST(LIBGGADGET_REVISION)
   83 AC_SUBST(LIBGGADGET_AGE)
   84 AC_SUBST(LIBGGADGET_VERSION)
   85 
   86 # Define a string for the earliest version that this release has
   87 # binary compatibility with. This is used for module locations.
   88 #
   89 LIBGGADGET_BINARY_VERSION_UNQUOTED="1.0.0"
   90 LIBGGADGET_BINARY_VERSION="\"$LIBGGADGET_BINARY_VERSION_UNQUOTED\""
   91 AC_SUBST(LIBGGADGET_BINARY_VERSION_UNQUOTED)
   92 AC_SUBST(LIBGGADGET_BINARY_VERSION)
   93 
   94 # This string is used in auto update request. It should be updated to the
   95 # time of a release build is made. Its format is yymmdd-HHMMSS.
   96 GGL_VERSION_TIMESTAMP="\"100127-000000\""
   97 AC_SUBST(GGL_VERSION_TIMESTAMP)
   98 
   99 # Define the version of Google Desktop Gadget API that this release supports.
  100 GGL_API_MAJOR_VERSION=5
  101 GGL_API_MINOR_VERSION=8
  102 GGL_API_VERSION_UNQUOTED="$GGL_API_MAJOR_VERSION.$GGL_API_MINOR_VERSION.0.0"
  103 GGL_API_VERSION="\"$GGL_API_VERSION_UNQUOTED\""
  104 AC_SUBST(GGL_API_MAJOR_VERSION)
  105 AC_SUBST(GGL_API_MINOR_VERSION)
  106 AC_SUBST(GGL_API_VERSION_UNQUOTED)
  107 AC_SUBST(GGL_API_VERSION)
  108 
  109 # Define a string for the earliest version that this release cannot
  110 # coexist with. This is used for directory hierarchies.
  111 #
  112 GGL_EPOCH=-1.0
  113 AC_SUBST(GGL_EPOCH)
  114 
  115 GGL_BASE_DIR=google-gadgets
  116 AC_SUBST(GGL_BASE_DIR)
  117 
  118 # Check build and host system types
  119 AC_CANONICAL_BUILD
  120 AC_CANONICAL_HOST
  121 
  122 ###########################################################
  123 ##                      Config options.                  ##
  124 ###########################################################
  125 
  126 # Host conditions.
  127 build_gtk_host=yes
  128 build_qt_host=yes
  129 
  130 # Library conditions.
  131 build_libggadget_dbus=yes
  132 build_libggadget_gtk=yes
  133 build_libggadget_npapi=yes
  134 build_libggadget_qt=yes
  135 
  136 # Extension conditions.
  137 # analytics_usage_collector will always be built.
  138 build_curl_xml_http_request=yes
  139 build_dbus_script_class=yes
  140 # default_framework will always be built.
  141 # default_options will always be built.
  142 # google_gadget_manager will always be built.
  143 build_gst_audio_framework=yes
  144 build_gst_video_element=yes
  145 build_gtk_edit_element=yes
  146 build_gtk_flash_element=yes
  147 build_gtk_system_framework=yes
  148 build_gtkmoz_browser_element=yes
  149 build_libxml2_xml_parser=yes
  150 # linux_system_framework will only be enabled for Linux system.
  151 build_linux_system_framework=no
  152 build_qt_edit_element=yes
  153 build_qt_script_runtime=yes
  154 build_qt_system_framework=yes
  155 build_qt_xml_http_request=yes
  156 build_qtwebkit_browser_element=yes
  157 build_smjs_script_runtime=yes
  158 build_webkit_script_runtime=yes
  159 build_gtkwebkit_browser_element=yes
  160 build_soup_xml_http_request=yes
  161 
  162 #================ compile options ==============
  163 AC_ARG_ENABLE([debug],
  164               AS_HELP_STRING([--enable-debug], [enable debug]),
  165               [enable_debug=$enableval],
  166               [enable_debug=no])
  167 
  168 AC_ARG_ENABLE([werror],
  169               AS_HELP_STRING([--disable-werror],
  170                              [Don't make all compile warnings into errors.]),
  171               [use_werror=$withval],
  172               [use_werror=yes])
  173 
  174 AC_ARG_ENABLE([stack-protector],
  175               AS_HELP_STRING([--disable-stack-protector],
  176                              [Disable stack protector.]),
  177               [enable_stack_protector=$enableval],
  178               [enable_stack_protector=yes])
  179 
  180 #================ with options =================
  181 AC_ARG_WITH([oem-brand],
  182             AC_HELP_STRING([--with-oem-brand=code],
  183                            [Specify the OEM brand code.]),
  184             [ggl_oem_brand=$withval],
  185             [ggl_oem_brand=""])
  186 
  187 AC_ARG_WITH([memcheck-command],
  188             AS_HELP_STRING([--with-memcheck-command=CMD],
  189                 [Specify a memory check command for running unit tests.]),
  190             [memcheck_command=$withval],
  191             [memcheck_command=""])
  192 
  193 AC_ARG_WITH([gst-audio-sink],
  194             AS_HELP_STRING([--with-gst-audio-sink=audiosink],
  195                 [Use a specified audiosink instead of autoaudiosink.]),
  196             [default_gst_audio_sink=$withval],
  197             [default_gst_audio_sink="autoaudiosink"])
  198 
  199 AC_ARG_WITH([browser-plugins-dir],
  200             AS_HELP_STRING([--with-browser-plugins-dir=plugins directory],
  201                 [Specifiy directory of browser plugins. But when the program is
  202                  running, the environment variable BROWSER_PLUGINS_DIR has
  203                  higher priority if it's set. ]),
  204             [default_browser_plugins_dir=$withval],
  205             [default_browser_plugins_dir="$libdir/firefox/plugins"])
  206 
  207 AC_ARG_WITH([gtkmozembed],
  208             AC_HELP_STRING(
  209                 [--with-gtkmozembed=@<:@libxul|xulrunner|firefox2|firefox|seamonkey@:>@],
  210                 [Selects with gecko engine to build against, it affects the
  211                  search rule of spidermonkey library (libmozjs) as well.]),
  212             [with_gtkmozembed=$withval],
  213             [with_gtkmozembed=auto])
  214 
  215 AC_ARG_WITH([mozjs-libname],
  216             AC_HELP_STRING([--with-mozjs-libname=libmozjs.so],
  217                 [Specify the file name of spidermonkey library to be
  218                  dynamically loaded. It only takes effect when using a
  219                  xulrunner library which supports XPCOM_GLUE.]),
  220             [with_mozjs_libname=$withval],
  221             [with_mozjs_libname=libmozjs.so])
  222 
  223 AC_ARG_WITH([ssl-ca-file],
  224             AS_HELP_STRING([--with-ssl-ca-file=/path/to/ca-certificates.crt],
  225                 [Specifiy CA certificates file used by soup-xml-http-request
  226                  extension. If it's set to empty, then SSL certificate won't be
  227                  checked when accessing https:// sites. CAUTION: it should
  228                  always be set to a valid CA file, otherwise there will be
  229                  serious security issue. It's not set by default.]),
  230             [default_ssl_ca_file=$withval],
  231             [default_ssl_ca_file=""])
  232 
  233 #=================== host options =================
  234 AC_ARG_ENABLE([gtk-host],
  235               AS_HELP_STRING([--disable-gtk-host],
  236                              [don't build gtk host]),
  237               [build_gtk_host=$enableval],
  238               [build_gtk_host=yes])
  239 
  240 AC_ARG_ENABLE([qt-host],
  241               AS_HELP_STRING([--disable-qt-host],
  242                              [don't build qt host]),
  243               [build_qt_host=$enableval],
  244               [build_qt_host=yes])
  245 
  246 #================== library options ===============
  247 AC_ARG_ENABLE([libggadget-dbus],
  248               AS_HELP_STRING([--disable-libggadget-dbus],
  249                              [don't build libggadget-dbus]),
  250               [build_libggadget_dbus=$enableval],
  251               [build_libggadget_dbus=yes])
  252 
  253 AC_ARG_ENABLE([libggadget-gtk],
  254               AS_HELP_STRING([--disable-libggadget-gtk],
  255                              [don't build libggadget-gtk]),
  256               [build_libggadget_gtk=$enableval],
  257               [build_libggadget_gtk=yes])
  258 
  259 AC_ARG_ENABLE([libggadget-npapi],
  260               AS_HELP_STRING([--disable-libggadget-npapi],
  261                              [don't build libggadget-npapi]),
  262               [build_libggadget_npapi=$enableval],
  263               [build_libggadget_npapi=yes])
  264 
  265 AC_ARG_ENABLE([libggadget-qt],
  266               AS_HELP_STRING([--disable-libggadget-qt],
  267                              [don't build libggadget-qt]),
  268               [build_libggadget_qt=$enableval],
  269               [build_libggadget_qt=yes])
  270 
  271 #================== extension options ==============
  272 AC_ARG_ENABLE([curl-xml-http-request],
  273               AS_HELP_STRING([--disable-curl-xml-http-request],
  274                              [don't build curl-xml-http-request]),
  275               [build_curl_xml_http_request=$enableval],
  276               [build_curl_xml_http_request=yes])
  277 
  278 AC_ARG_ENABLE([soup-xml-http-request],
  279               AS_HELP_STRING([--disable-soup-xml-http-request],
  280                              [don't build soup-xml-http-request]),
  281               [build_soup_xml_http_request=$enableval],
  282               [build_soup_xml_http_request=yes])
  283 
  284 AC_ARG_ENABLE([dbus-script-class],
  285               AS_HELP_STRING([--disable-dbus-script-class],
  286                              [don't build dbus-script-class]),
  287               [build_dbus_script_class=$enableval],
  288               [build_dbus_script_class=yes])
  289 
  290 AC_ARG_ENABLE([gst-audio-framework],
  291               AS_HELP_STRING([--disable-gst-audio-framework],
  292                              [don't build gst-audio-framework]),
  293               [build_gst_audio_framework=$enableval],
  294               [build_gst_audio_framework=yes])
  295 
  296 AC_ARG_ENABLE([gst-video-element],
  297               AS_HELP_STRING([--disable-gst-video-element],
  298                              [don't build gst-video-element]),
  299               [build_gst_video_element=$enableval],
  300               [build_gst_video_element=yes])
  301 
  302 AC_ARG_ENABLE([gtk-edit-element],
  303               AS_HELP_STRING([--disable-gtk-edit-element],
  304                              [don't build gtk-edit-element]),
  305               [build_gtk_edit_element=$enableval],
  306               [build_gtk_edit_element=yes])
  307 
  308 AC_ARG_ENABLE([gtk-flash-element],
  309               AS_HELP_STRING([--disable-gtk-flash-element],
  310                              [don't build gtk-flash-element]),
  311               [build_gtk_flash_element=$enableval],
  312               [build_gtk_flash_element=yes])
  313 
  314 AC_ARG_ENABLE([gtk-system-framework],
  315               AS_HELP_STRING([--disable-gtk-system-framework],
  316                              [don't build gtk-system-framework]),
  317               [build_gtk_system_framework=$enableval],
  318               [build_gtk_system_framework=yes])
  319 
  320 AC_ARG_ENABLE([gtkmoz-browser-element],
  321               AS_HELP_STRING([--disable-gtkmoz-browser-element],
  322                              [don't build gtkmoz-browser-element]),
  323               [build_gtkmoz_browser_element=$enableval],
  324               [build_gtkmoz_browser_element=yes])
  325 
  326 AC_ARG_ENABLE([libxml2-xml-parser],
  327               AS_HELP_STRING([--disable-libxml2-xml-parser],
  328                              [don't build libxml2-xml-parser]),
  329               [build_libxml2_xml_parser=$enableval],
  330               [build_libxml2_xml_parser=yes])
  331 
  332 AC_ARG_ENABLE([qt-edit-framework],
  333               AS_HELP_STRING([--disable-qt-edit-framework],
  334                              [don't build qt-edit-framework]),
  335               [build_qt_edit_framework=$enableval],
  336               [build_qt_edit_framework=yes])
  337 
  338 AC_ARG_ENABLE([qt-script-runtime],
  339               AS_HELP_STRING([--disable-qt-script-runtime],
  340                              [don't build qt-script-runtime]),
  341               [build_qt_script_runtime=$enableval],
  342               [build_qt_script_runtime=yes])
  343 
  344 AC_ARG_ENABLE([qt-system-framework],
  345               AS_HELP_STRING([--disable-qt-system-framework],
  346                              [don't build qt-system-framework]),
  347               [build_qt_system_framework=$enableval],
  348               [build_qt_system_framework=yes])
  349 
  350 AC_ARG_ENABLE([qt-xml-http-request],
  351               AS_HELP_STRING([--disable-qt-xml-http-request],
  352                              [don't build qt-xml-http-request]),
  353               [build_qt_xml_http_request=$enableval],
  354               [build_qt_xml_http_request=yes])
  355 
  356 AC_ARG_ENABLE([qtwebkit-browser-element],
  357               AS_HELP_STRING([--disable-qtwebkit-browser-element],
  358                              [don't build qtwebkit-browser-element]),
  359               [build_qtwebkit_browser_element=$enableval],
  360               [build_qtwebkit_browser_element=yes])
  361 
  362 AC_ARG_ENABLE([smjs-script-runtime],
  363               AS_HELP_STRING([--disable-smjs-script-runtime],
  364                              [don't build smjs-script-runtime]),
  365               [build_smjs_script_runtime=$enableval],
  366               [build_smjs_script_runtime=yes])
  367 
  368 AC_ARG_ENABLE([webkit-script-runtime],
  369               AS_HELP_STRING([--disable-webkit-script-runtime],
  370                              [don't build webkit-script-runtime]),
  371               [build_webkit_script_runtime=$enableval],
  372               [build_webkit_script_runtime=yes])
  373 
  374 AC_ARG_ENABLE([gtkwebkit-browser-element],
  375               AS_HELP_STRING([--disable-gtkwebkit-browser-element],
  376                              [don't build gtkwebkit-browser-element]),
  377               [build_gtkwebkit_browser_element=$enableval],
  378               [build_gtkwebkit_browser_element=yes])
  379 
  380 #================ other options =======================
  381 AC_ARG_ENABLE([update-mime-database],
  382               AC_HELP_STRING([--disable-update-mime-database],
  383                              [don't run update-mime-database after install]),
  384               [enable_update_mime_database=$enableval],
  385               [enable_update_mime_database=yes])
  386 
  387 AC_ARG_ENABLE([update-desktop-database],
  388               AC_HELP_STRING([--disable-update-desktop-database],
  389                              [don't run update-desktop-database after install]),
  390               [enable_update_desktop_database=$enableval],
  391               [enable_update_desktop_database=yes])
  392 
  393 AC_ARG_ENABLE([xdg-icon-resource],
  394               AC_HELP_STRING([--disable-xdg-icon-resource],
  395                              [don't run xdg-icon-resource after install]),
  396               [enable_xdg_icon_resource=$enableval],
  397               [enable_xdg_icon_resource=yes])
  398 
  399 AC_ARG_ENABLE([xdgmime],
  400               AC_HELP_STRING([--disable-xdgmime],
  401                              [disable built-in xdgmime support]),
  402               [enable_xdgmime=$enableval],
  403               [enable_xdgmime=yes])
  404 
  405 # correct option dependencies.
  406 if test x$build_libggadget_dbus != xyes; then
  407   build_dbus_script_class=no
  408 fi
  409 
  410 if test x$build_libggadget_gtk != xyes; then
  411   build_gtk_host=no
  412   build_gtk_edit_element=no
  413   build_gtk_flash_element=no
  414   build_gtk_system_framework=no
  415   build_gtkmoz_browser_element=no
  416 fi
  417 
  418 if test x$build_libggadget_qt != xyes; then
  419   build_qt_host=no
  420   build_qt_edit_element=no
  421   build_qt_script_runtime=no
  422   build_qt_system_framework=no
  423   build_qt_xml_http_request=no
  424   build_qtwebkit_browser_element=no
  425 fi
  426 
  427 if test x$build_libggadget_npapi != xyes; then
  428   build_gtk_flash_element=no
  429 fi
  430 
  431 ###########################################################
  432 ##                      Default dirs.                    ##
  433 ###########################################################
  434 GGL_MODULE_DIR=$libdir/$GGL_BASE_DIR/modules
  435 GGL_INCLUDE_DIR=$includedir/$GGL_BASE_DIR
  436 GGL_SYSDEPS_INCLUDE_DIR=$libdir/$GGL_BASE_DIR/include
  437 GGL_LIBEXEC_DIR=$libdir/$GGL_BASE_DIR
  438 GGL_RESOURCE_DIR=$datadir/$GGL_BASE_DIR
  439 
  440 AC_SUBST(GGL_MODULE_DIR)
  441 AC_SUBST(GGL_INCLUDE_DIR)
  442 AC_SUBST(GGL_SYSDEPS_INCLUDE_DIR)
  443 AC_SUBST(GGL_LIBEXEC_DIR)
  444 AC_SUBST(GGL_RESOURCE_DIR)
  445 
  446 ###########################################################
  447 ##                 Default compiler options.             ##
  448 ###########################################################
  449 
  450 # Check -fstack-protector and -fstack-protector-all
  451 has_stack_protector=no
  452 if test x$enable_stack_protector = xyes; then
  453   GGL_CHECK_STACK_PROTECTOR([has_stack_protector=yes], [has_stack_protector=no])
  454 fi
  455 
  456 if test x$enable_debug = xyes; then
  457   DEFAULT_COMPILE_FLAGS="-g -O0 -Wall"
  458   DEBUG_MACROS="_DEBUG";
  459   if test x$has_stack_protector = xyes; then
  460     DEFAULT_COMPILE_FLAGS="$DEFAULT_COMPILE_FLAGS -fstack-protector-all"
  461   fi
  462 else
  463   DEFAULT_COMPILE_FLAGS="-O2 -Wall"
  464   DEBUG_MACROS="NDEBUG";
  465   if test x$has_stack_protector = xyes; then
  466     DEFAULT_COMPILE_FLAGS="$DEFAULT_COMPILE_FLAGS -fstack-protector"
  467   fi
  468 fi
  469 
  470 if test x$use_werror = xyes; then
  471   DEFAULT_COMPILE_FLAGS="$DEFAULT_COMPILE_FLAGS -Werror"
  472 fi
  473 
  474 
  475 # Enable stdc const macros by default, like INT64_C etc.
  476 PREDEFINED_MACROS="-D__STDC_CONSTANT_MACROS \
  477                    -D$DEBUG_MACROS \
  478                    -DGGL_MODULE_DIR=\\\"$GGL_MODULE_DIR\\\" \
  479                    -DGGL_INCLUDE_DIR=\\\"$GGL_INCLUDE_DIR\\\" \
  480                    -DGGL_SYSDEPS_INCLUDE_DIR=\\\"$GGL_SYSDEPS_INCLUDE_DIR\\\" \
  481                    -DGGL_LIBEXEC_DIR=\\\"$GGL_LIBEXEC_DIR\\\" \
  482                    -DGGL_RESOURCE_DIR=\\\"$GGL_RESOURCE_DIR\\\""
  483 
  484 case $host_os in
  485   *interix* | *mks* | *winnt* | *cygwin* | *mingw* )
  486     ggl_host_type=windows
  487     PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_WINDOWS=1"
  488     GGL_PLATFORM_SHORT="\"win\""
  489     GGL_PLATFORM="\"windows\""
  490     ;;
  491   *darwin* )
  492     ggl_host_type=macosx
  493     PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_MACOSX=1"
  494     GGL_PLATFORM_SHORT="\"mac\""
  495     GGL_PLATFORM="\"mac\""
  496     ;;
  497   *linux* )
  498     ggl_host_type=linux
  499     PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_LINUX=1"
  500     GGL_PLATFORM_SHORT="\"linux\""
  501     GGL_PLATFORM="\"linux\""
  502     build_linux_system_framework=yes
  503     ;;
  504   *solaris* )
  505     ggl_host_type=solaris
  506     PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_HOST_SOLARIS=1"
  507     GGL_PLATFORM_SHORT="\"solaris\""
  508     GGL_PLATFORM="\"solaris\""
  509     ;;
  510   * )
  511     ggl_host_type=unknown
  512     ;;
  513 esac
  514 
  515 AC_SUBST(GGL_PLATFORM_SHORT)
  516 AC_SUBST(GGL_PLATFORM)
  517 
  518 # Check OEM brand code.
  519 if test x$ggl_oem_brand != x; then
  520   GGL_OEM_BRAND=$ggl_oem_brand
  521   AC_SUBST(GGL_OEM_BRAND)
  522   PREDEFINED_MACROS="$PREDEFINED_MACROS \"-DGGL_OEM_BRAND=\\\"$GGL_OEM_BRAND\\\"\""
  523 fi
  524 
  525 AM_CONDITIONAL([GGL_HOST_WINDOWS], [test x$ggl_host_type = xwindows])
  526 AM_CONDITIONAL([GGL_HOST_MACOSX], [test x$ggl_host_type = xmacosx])
  527 AM_CONDITIONAL([GGL_HOST_LINUX], [test x$ggl_host_type = xlinux])
  528 AM_CONDITIONAL([GGL_HOST_SOLARIS], [test x$ggl_host_type = xsolaris])
  529 
  530 AC_SUBST(PREDEFINED_MACROS)
  531 AC_SUBST(DEFAULT_COMPILE_FLAGS)
  532 
  533 ###########################################################
  534 ##                  Start Configuration.                 ##
  535 ###########################################################
  536 
  537 # Init automake stuff
  538 AM_INIT_AUTOMAKE([tar-ustar])
  539 
  540 # Initializes libtool
  541 AC_LIBLTDL_INSTALLABLE
  542 AC_LIBTOOL_DLOPEN
  543 AC_PROG_LIBTOOL
  544 AC_SUBST(LIBLTDL)
  545 AC_SUBST(LTDLINCL)
  546 AC_SUBST(LIBTOOL_DEPS)
  547 AC_CONFIG_SUBDIRS([libltdl])
  548 AM_CONDITIONAL(GGL_BUILD_LIBLTDL, [test x$enable_ltdl_install = xyes])
  549 
  550 # Initialize pkg-config
  551 PKG_PROG_PKG_CONFIG([0.20])
  552 
  553 # Checks for programs.
  554 AC_PROG_CC
  555 AC_PROG_CXX
  556 AC_PROG_LN_S
  557 AC_PROG_SED
  558 
  559 # Checks for zip command.
  560 AC_PATH_PROG([ZIP], [zip])
  561 
  562 # Do compile test for C and C++ source code.
  563 AC_LANG(C)
  564 AC_LANG(C++)
  565 
  566 # Checks for standard header files.
  567 AC_HEADER_STDC
  568 AC_CHECK_HEADERS([stdint.h],[has_stdint=yes],[has_stdint=no])
  569 
  570 if test x$has_stdint = xno; then
  571   AC_MSG_ERROR([Google Gadgets for Linux depends on stdint.h])
  572 fi
  573 
  574 # Check necessary data types
  575 AC_TYPE_SIZE_T
  576 AC_CHECK_SIZEOF(char)
  577 AC_CHECK_SIZEOF(short int)
  578 AC_CHECK_SIZEOF(int)
  579 AC_CHECK_SIZEOF(long int)
  580 AC_CHECK_SIZEOF(size_t)
  581 AC_CHECK_SIZEOF(double)
  582 AC_CHECK_SIZEOF(wchar_t)
  583 
  584 GGL_SIZEOF_CHAR=$ac_cv_sizeof_char
  585 GGL_SIZEOF_SHORT_INT=$ac_cv_sizeof_short_int
  586 GGL_SIZEOF_INT=$ac_cv_sizeof_int
  587 GGL_SIZEOF_LONG_INT=$ac_cv_sizeof_long_int
  588 GGL_SIZEOF_SIZE_T=$ac_cv_sizeof_size_t
  589 GGL_SIZEOF_DOUBLE=$ac_cv_sizeof_double
  590 GGL_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
  591 
  592 AC_SUBST(GGL_SIZEOF_CHAR)
  593 AC_SUBST(GGL_SIZEOF_SHORT_INT)
  594 AC_SUBST(GGL_SIZEOF_INT)
  595 AC_SUBST(GGL_SIZEOF_LONG_INT)
  596 AC_SUBST(GGL_SIZEOF_SIZE_T)
  597 AC_SUBST(GGL_SIZEOF_DOUBLE)
  598 AC_SUBST(GGL_SIZEOF_WCHAR_T)
  599 
  600 if test x$ac_cv_type_size_t != xyes; then
  601   AC_MSG_ERROR([
  602 No type size_t, but google Gadgets for Linux needs it!
  603 This problem might be caused by missing C++ compiler, please make sure there is
  604 an usable C++ compiler installed, for example the g++ compiler.
  605 ])
  606 fi
  607 
  608 # check for bytesex stuff
  609 AC_C_BIGENDIAN(
  610   [PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_BIG_ENDIAN"],
  611   [PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_LITTLE_ENDIAN"],
  612 )
  613 
  614 # Check necessary libraries
  615 
  616 # Check zlib
  617 has_zlib=no
  618 GGL_CHECK_ZLIB([1.2.3], [has_zlib=yes], [has_zlib=no])
  619 if test x$has_zlib != xyes; then
  620   AC_MSG_ERROR([zlib is not available, but it's mandatory.])
  621 fi
  622 
  623 # Check pthread lib
  624 has_pthread=no
  625 AC_CHECK_LIB([pthread], [pthread_create], [has_pthread=yes], [has_pthread=no])
  626 if test x$has_pthread = xyes; then
  627   PTHREAD_LIBS="-lpthread"
  628   AC_SUBST(PTHREAD_LIBS)
  629   PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_PTHREAD=1"
  630 fi
  631 
  632 # Check Xlib
  633 has_xlib=no
  634 AC_PATH_XTRA
  635 if test "x$no_x" != "xyes"; then
  636   PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_X11=1"
  637   X_LIBS="$X_LIBS $X_PRE_LIBS -lX11"
  638   AC_SUBST(X_CFLAGS)
  639   AC_SUBST(X_LIBS)
  640   AC_SUBST(X_PRE_LIBS)
  641   has_xlib=yes
  642 else
  643   build_libggadget_npapi=no
  644   build_gtk_flash_element=no
  645   build_gtkmoz_browser_element=no
  646 fi
  647 
  648 # Check qt4
  649 has_qt4=no
  650 has_qtnetwork=no
  651 has_qtwebkit=no
  652 has_qtscript=no
  653 if test x$build_libggadget_qt = xyes; then
  654   if test x$ggl_host_type = xlinux; then
  655     PKG_CHECK_MODULES(QT4, [QtGui >= 4.3 QtCore >= 4.3 QtNetwork >= 4.3],
  656                       [has_qt4=yes
  657                        MOC=`$PKG_CONFIG --variable=moc_location QtCore`],
  658                       [has_qt4=no])
  659     PKG_CHECK_MODULES(QT4NETWORK, [QtCore >= 4.3 QtNetwork >= 4.3],
  660                       [has_qtnetwork=yes],
  661                       [has_qtnetwork=no])
  662     PKG_CHECK_MODULES(QT4WEBKIT,
  663                       [QtGui >= 4.3 QtCore >= 4.3 QtNetwork >= 4.3 QtWebKit],
  664                       [has_qtwebkit=yes],
  665                       [has_qtwebkit=no])
  666     PKG_CHECK_MODULES(QT4SCRIPT, [QtCore >= 4.4 QtScript >= 4.4],
  667                       [has_qtscript=yes],
  668                       [has_qtscript=no])
  669   elif test x$ggl_host_type = xmacosx; then
  670     # There is no pkgconfig for Qt on MacOSX, just do header check.
  671     AC_CHECK_HEADERS([QtCore/QtCore QtGui/QtGui QtNetwork/QtNetwork],
  672                      [has_qt4=yes], [has_qt4=no])
  673     AC_CHECK_HEADERS([QtNetwork/QtNetwork],
  674                      [has_qtnetwork=yes], [has_qtnetwork=no])
  675     AC_CHECK_HEADERS([QtWebKit/QtWebKit],
  676                      [has_qtwebkit=yes], [has_qtwebkit=no])
  677     # FIXME: Version should be checked. Only 4.4 and above are supported
  678     AC_CHECK_HEADERS([QtScript/QtScript],
  679                      [has_qtscript=yes], [has_qtscript=no])
  680     if test x$has_qt4 = xyes; then
  681       QT4_LIBS="-framework QtGui \
  682                 -framework Carbon -framework AppKit -framework QtCore \
  683                 -framework QtNetwork \
  684                 -framework ApplicationServices -lz -lm"
  685       AC_PATH_PROG([MOC], [moc])
  686     fi
  687     if test x$has_qtnetwork = xyes; then
  688       QT4NETWORK_LIBS="-framework QtCore -framework QtNetwork -lz -lm"
  689     fi
  690     if test x$has_qtwebkit = xyes; then
  691       QT4WEBKIT_LIBS="-framework QtGui -framework Carbon -framework AppKit \
  692                       -framework QtCore -framework QtNetwork \
  693                       -framework QtWebKit -lz -lm"
  694     fi
  695     if test x$has_qtscript = xyes; then
  696       QT4SCRIPT_LIBS="-framework QtCore -framework QtScript -lz -lm"
  697     fi
  698   else
  699     AC_MSG_WARN([Qt support is not available for $ggl_host_type])
  700   fi
  701 
  702   # MOC is mandatory to build qt related code.
  703   AC_SUBST(MOC)
  704   if test "x$MOC" = "x"; then
  705     AC_MSG_WARN([Can not find moc command, which is mandatory for Qt support.])
  706     has_qt4=no
  707     has_qtnetwork=no
  708     has_qtwebkit=no
  709     has_qtscript=no
  710   fi
  711 
  712   if test x$has_qt4 != xyes; then
  713     AC_MSG_WARN([Qt >= 4.3 is required by libggadget-qt.])
  714     build_libggadget_qt=no
  715     build_qt_host=no
  716     build_qt_edit_element=no
  717     build_qt_script_runtime=no
  718     build_qt_system_framework=no
  719     build_qt_xml_http_request=no
  720     build_qtwebkit_browser_element=no
  721   fi
  722 
  723   if test x$has_qtnetwork != xyes -a x$build_qt_xml_http_request = xyes; then
  724     AC_MSG_WARN([QtNetwork >= 4.3 is required by qt-xml-http-request.])
  725     build_qt_xml_http_request=no
  726   fi
  727 
  728   if test x$has_qtwebkit != xyes -a x$build_qtwebkit_browser_element = xyes; then
  729     AC_MSG_WARN([QtWebkit >= 4.4 is required by qtwebkit-browser-element.])
  730     build_qtwebkit_browser_element=no
  731   fi
  732 
  733   if test x$has_qtscript != xyes -a x$build_qt_script_runtime = xyes; then
  734     AC_MSG_WARN([QtScript >= 4.4 is required by qt-script-runtime.])
  735     build_qt_script_runtime=no
  736   fi
  737 fi
  738 
  739 # Check gtk2 related libraries.
  740 has_gtk2=no
  741 if test x$build_libggadget_gtk = xyes; then
  742   PKG_CHECK_MODULES(GTK2,
  743                     [cairo >= 1.0.0
  744                      pango  >= 1.10.0
  745                      glib-2.0 >= 2.10.0
  746                      gtk+-2.0 >= 2.8.0
  747                      gdk-2.0 >= 2.8.0
  748                      gthread-2.0 >= 2.8.0
  749                      fontconfig >= 2.0.0],
  750                      [has_gtk2=yes], [has_gtk2=no])
  751 
  752   if test x$has_gtk2 != xyes; then
  753     AC_MSG_WARN([Gtk+ >= 2.8.0 is required by libggadget-gtk.])
  754     build_libggadget_gtk=no
  755     build_gtk_host=no
  756     build_gtk_edit_element=no
  757     build_gtk_flash_element=no
  758     build_gtk_system_framework=no
  759     build_gtkmoz_browser_element=no
  760   else
  761     gtk2_target=`$PKG_CONFIG --variable=target gtk+-2.0`
  762   fi
  763 fi
  764 
  765 # Check gstreamer-0.10 related libraries.
  766 has_gstreamer=no
  767 has_gstreamer_video=no
  768 if test x$build_gst_audio_framework = xyes -o \
  769         x$build_gst_video_element = xyes; then
  770   PKG_CHECK_MODULES(GSTREAMER,
  771                     [gstreamer-0.10 >= 0.10.0
  772                      gstreamer-base-0.10 >= 0.10.0
  773                      gstreamer-plugins-base-0.10 >= 0.10.0],
  774                     [has_gstreamer=yes], [has_gstreamer=no])
  775   if test x$has_gstreamer = xyes; then
  776     CPPFLAGS="$CPPFLAGS $GSTREAMER_CFLAGS"
  777     AC_CHECK_HEADERS([gst/video/gstvideosink.h],
  778                      [has_gstreamer_video=yes], [has_gstreamer_video=no])
  779     if test x$has_gstreamer_video = xyes; then
  780       GSTVIDEOSINK_LIBRARIES="-lgstvideo-0.10"
  781       AC_SUBST(GSTVIDEOSINK_LIBRARIES)
  782     fi
  783     CPPFLAGS=$ggl_save_CPPFLAGS
  784   fi
  785 
  786   if test x$has_gstreamer != xyes; then
  787     AC_MSG_WARN([gstreamer >= 0.10.0 is required by gst-audio-framework and gst-video-element.])
  788     build_gst_audio_framework=no
  789     build_gst_video_element=no
  790   else
  791     if test x$has_gstreamer_video != xyes -a \
  792             x$build_gst_video_element = xyes; then
  793       AC_MSG_WARN([gstvideo >= 0.10.0 is required by gst-video-element.])
  794       build_gst_video_element=no
  795     fi
  796   fi
  797 fi
  798 
  799 # Check libcurl.
  800 has_libcurl=no
  801 if test x$build_curl_xml_http_request = xyes; then
  802   LIBCURL_CHECK_CONFIG([yes], [7.15.0], [has_libcurl=yes], [has_libcurl=no])
  803 
  804   if test x$libcurl_feature_SSL != xyes -o \
  805           x$libcurl_protocol_HTTPS != xyes; then
  806     AC_MSG_WARN([Libcurl without support SSL or HTTPS may not usable.])
  807   fi
  808 
  809   if test x$has_libcurl != xyes; then
  810     AC_MSG_WARN([libcurl >= 7.15.0 is required by curl-xml-http-request.])
  811     build_curl_xml_http_request=no
  812   fi
  813 fi
  814 
  815 # Check libsoup.
  816 has_libsoup=no
  817 has_libsoup_gnome=no
  818 if test x$build_soup_xml_http_request = xyes; then
  819   PKG_CHECK_MODULES(LIBSOUP, [libsoup-2.4 >= 2.26.0],
  820                     [has_libsoup=yes], [has_libsoup=no])
  821 
  822   if test x$has_libsoup = xyes; then
  823     PKG_CHECK_MODULES(LIBSOUP_GNOME, [libsoup-gnome-2.4 >= 2.26.0],
  824                       [has_libsoup_gnome=yes], [has_libsoup_gnome=no])
  825     if test x$has_libsoup_gnome = xyes; then
  826       LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS $LIBSOUP_GNOME_CFLAGS -DHAVE_LIBSOUP_GNOME"
  827       LIBSOUP_LIBS="$LIBSOUP_LIBS $LIBSOUP_GNOME_LIBS"
  828     fi
  829     LDFLAGS="$LIBSOUP_LIBS"
  830     AC_CHECK_FUNC(soup_message_headers_get_one,
  831                   [has_soup_message_headers_get_one=yes])
  832     if test x$has_soup_message_headers_get_one = xyes; then
  833       LIBSOUP_CFLAGS="$LIBSOUP_CFLAGS -DHAVE_SOUP_MESSAGE_HEADERS_GET_ONE"
  834     fi
  835     LDFLAGS=$ggl_save_LDFLAGS
  836   else
  837     AC_MSG_WARN([libsoup-2.4 >= 2.26.0 is required by soup-xml-http-request.])
  838     build_soup_xml_http_request=no
  839   fi
  840 fi
  841 
  842 # Check libxml2.
  843 has_libxml2=no
  844 if test x$build_libxml2_xml_parser = xyes; then
  845   AM_PATH_XML2([2.4.0], [has_libxml2=yes], [has_libxml2=no])
  846 
  847   if test x$has_libxml2 != xyes; then
  848     AC_MSG_WARN([libxml2 >= 2.4.0 is required by libxml2-xml-parser.])
  849     build_libxml2_xml_parser=no
  850   fi
  851 fi
  852 
  853 # Check D-Bus library
  854 has_dbus=no
  855 if test x$build_libggadget_dbus = xyes; then
  856   PKG_CHECK_MODULES(DBUS, [dbus-1 >= 1.0.2], [has_dbus=yes],
  857                     [PKG_CHECK_MODULES(DBUS, [dbus-1 >= 0.60],
  858                                        [has_dbus=old], [has_dbus=no])])
  859 
  860   if test x$has_dbus != xno; then
  861     PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_DBUS_LIBRARY"
  862     if test x$has_dbus = xold; then
  863       PREDEFINED_MACROS="$PREDEFINED_MACROS -DDBUS_API_SUBJECT_TO_CHANGE=1"
  864     fi
  865     LDFLAGS="$DBUS_LIBS"
  866     AC_CHECK_FUNC(dbus_watch_get_unix_fd, [has_dbus_watch_get_unix_fd=yes])
  867     if test x$has_dbus_watch_get_unix_fd = xyes; then
  868       PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_DBUS_WATCH_GET_UNIX_FD"
  869     fi
  870     LDFLAGS=$ggl_save_LDFLAGS
  871   else
  872     AC_MSG_WARN([DBus >= 0.60 is required by libggadget-dbus.])
  873     build_libggadget_dbus=no
  874     build_dbus_script_class=no
  875   fi
  876 fi
  877 
  878 # Check librsvg
  879 has_librsvg=no
  880 if test x$build_libggadget_gtk = xyes; then
  881   PKG_CHECK_MODULES(RSVG, [librsvg-2.0 >= 2.14.0],
  882                     [has_librsvg=yes], [has_librsvg=no])
  883   if test x$has_librsvg = xyes; then
  884     PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_RSVG_LIBRARY"
  885   fi
  886 fi
  887 
  888 # Check startup-notification library
  889 has_startup_notification=no
  890 PKG_CHECK_MODULES(STARTUP_NOTIFICATION, [libstartup-notification-1.0 >= 0.8],
  891                   [has_startup_notification=yes], [has_startup_notification=no])
  892 if test x$has_startup_notification = xyes; then
  893   PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_STARTUP_NOTIFICATION"
  894 fi
  895 
  896 # Check NetworkManager
  897 has_network_manager=no
  898 PKG_CHECK_MODULES(NETWORK_MANAGER,
  899                   [NetworkManager >= 0.7], [has_network_manager=yes],
  900                   [PKG_CHECK_MODULES(NETWORK_MANAGER,
  901                    [NetworkManager >= 0.6], [has_network_manager=old],
  902                    [has_network_manager=no])])
  903 
  904 if test x$has_network_manager != xno; then
  905   PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_NETWORK_MANAGER"
  906   if test x$has_network_manager != xold; then
  907     PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_NEW_NETWORK_MANAGER_API"
  908   fi
  909 else
  910   AC_MSG_WARN([Development package of NetworkManager is not installed,]
  911               [network/wireless support of framework.system won't be built.])
  912 fi
  913 
  914 # Check gtkmozembed
  915 # Check priority:
  916 #  xulrunner 1.9: libxul-embedding-unstable and mozilla-js
  917 #  xulrunner 1.8: xulrunner-gtkmozembed and xulrunner-js
  918 #  firefox 2.0: firefox2-gtkmozembed and firefox2-js
  919 #  firefox 1.5: firefox-gtkmozembed and firefox-js
  920 #  seamonkey 1.1: seamonkey-gtkmozembed seamonkey-js
  921 #  microb(Maemo): microb-engine and microb-engine-js
  922 #
  923 # Add more rules here if your distribution doesn't support above rules.
  924 has_gtkmozembed=no
  925 has_libmozjs=no
  926 if test x$build_smjs_script_runtime = xyes -o \
  927         x$build_gtkmoz_browser_element = xyes; then
  928   gtkmozembed_list=""
  929   if test x$with_gtkmozembed = xauto; then
  930     gtkmozembed_list="libxul-embedding-unstable \
  931                       libxul-embedding \
  932                       xulrunner-gtkmozembed \
  933                       firefox2-gtkmozembed \
  934                       firefox-gtkmozembed \
  935                       seamonkey-gtkmozembed \
  936                       microb-engine"
  937   else
  938     case $with_gtkmozembed in
  939       libxul)
  940         gtkmozembed_list="libxul-embedding-unstable libxul-embedding"
  941         ;;
  942       xulrunner)
  943         gtkmozembed_list="xulrunner-gtkmozembed"
  944         ;;
  945       firefox2)
  946         gtkmozembed_list="firefox2-gtkmozembed"
  947         ;;
  948       firefox)
  949         gtkmozembed_list="firefox-gtkmozembed"
  950         ;;
  951       seamonkey)
  952         gtkmozembed_list="seamonkey-gtkmozembed"
  953         ;;
  954       microb)
  955         gtkmozembed_list="microb-engine"
  956         ;;
  957       *)
  958         AC_MSG_ERROR([--with-gtkmozembed, invalid value])
  959         ;;
  960     esac
  961   fi
  962 
  963   for gtkmozembed in $gtkmozembed_list; do
  964     PKG_CHECK_MODULES(GTKMOZEMBED, [$gtkmozembed],
  965                       [has_gtkmozembed=$gtkmozembed], [has_gtkmozembed=no])
  966     if test x$has_gtkmozembed != xno; then
  967       break
  968     fi
  969   done
  970 
  971   # Check spidermonkey
  972   # If gtkmozembed is available, then use bundled libmozjs.so.
  973   # If libmozjs is not available, then set has_gtkmozembed to false as well,
  974   # because gtkmoz-browser-child needs libmozjs.
  975   libmozjs_list=""
  976   case $has_gtkmozembed in
  977     libxul-embedding-unstable | libxul-embedding)
  978       libmozjs_list="mozilla-js"
  979       ;;
  980     xulrunner-gtkmozembed)
  981       libmozjs_list="xulrunner-js"
  982       ;;
  983     firefox2-gtkmozembed)
  984       libmozjs_list="firefox2-js"
  985       ;;
  986     firefox-gtkmozembed)
  987       libmozjs_list="firefox-js"
  988       ;;
  989     seamonkey-gtkmozembed)
  990       libmozjs_list="seamonkey-js"
  991       ;;
  992     microb-engine)
  993       libmozjs_list="microb-engine-js"
  994       ;;
  995     *)
  996       libmozjs_list="mozilla-js xulrunner-js firefox2-js \
  997                     firefox-js seamonkey-js microb-engine-js"
  998       ;;
  999   esac
 1000 
 1001   for libmozjs in $libmozjs_list; do
 1002     PKG_CHECK_MODULES(LIBMOZJS, [$libmozjs],
 1003                       [has_libmozjs=$libmozjs], [has_libmozjs=no])
 1004     if test x$has_libmozjs != xno; then
 1005       break
 1006     fi
 1007   done
 1008 
 1009   if test x$has_gtkmozembed != xno; then
 1010     # Add additional include dirs for mozilla 1.8 and pre 1.9
 1011     EMBED_INCDIR=`$PKG_CONFIG --variable=includedir $has_gtkmozembed`
 1012     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR"
 1013     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/content"
 1014     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/dom"
 1015     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/xpconnect"
 1016     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/widget"
 1017     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/gtkembedmoz"
 1018     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/xpcom"
 1019     GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/string"
 1020     GTKMOZEMBED_LDFLAGS=""
 1021     MOZILLA_FIVE_HOME=`$PKG_CONFIG --variable=libdir $has_gtkmozembed`
 1022     if test "x$MOZILLA_FIVE_HOME" = "x"; then
 1023     # Some distributions doesn't have libdir, so try to extract libdir from LIBS.
 1024     # It usually occurs on some pre xulrunner 1.9 versions.
 1025     # @<:@ and @:>@ will be replace by [ and ] by M4. Really evil.
 1026     # FIXME: Following method might not work on systems other than Linux.
 1027       MOZILLA_FIVE_HOME=`echo $GTKMOZEMBED_LIBS | $SED -e 's/.*-L\(@<:@^ @:>@*\) .*/\1/'`
 1028       # Try to find out the correct xulrunner path.
 1029       if test -e "$MOZILLA_FIVE_HOME/libxpcom.so"; then
 1030         XPCOM_PATH=`readlink -f $MOZILLA_FIVE_HOME/libxpcom.so`
 1031         MOZILLA_FIVE_HOME=`dirname $XPCOM_PATH`
 1032       fi
 1033     fi
 1034     if test "x$MOZILLA_FIVE_HOME" != "x" -a -d "$MOZILLA_FIVE_HOME"; then
 1035       GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -DMOZILLA_FIVE_HOME=\\\"$MOZILLA_FIVE_HOME\\\""
 1036       GTKMOZEMBED_LDFLAGS="$GTKMOZEMBED_LDFLAGS -R$MOZILLA_FIVE_HOME"
 1037     fi
 1038 
 1039     AC_SUBST(GTKMOZEMBED_LDFLAGS)
 1040   fi
 1041 
 1042   if test x$has_libmozjs != xno; then
 1043     # Add additional include dirs
 1044     LIBMOZJS_INCDIR=`$PKG_CONFIG --variable=includedir $has_libmozjs`
 1045     if (echo $LIBMOZJS_CFLAGS | grep '/stable') > /dev/null 2>&1; then
 1046       if test -f $LIBMOZJS_INCDIR/unstable/jsapi.h; then
 1047         LIBMOZJS_CFLAGS="$LIBMOZJS_CFLAGS -I$LIBMOZJS_INCDIR/unstable"
 1048       fi
 1049     fi
 1050 
 1051     # Find out the real path of libmozjs.so
 1052     LIBMOZJS_LIBDIR=`$PKG_CONFIG --variable=libdir $has_libmozjs`
 1053     if test "x$LIBMOZJS_LIBDIR" = "x"; then
 1054     # Some distributions doesn't have libdir, so try to extract libdir from LIBS.
 1055     # It usually occurs on some pre xulrunner 1.9 versions.
 1056     # @<:@ and @:>@ will be replace by [ and ] by M4. Really evil.
 1057     # FIXME: Following method might not work on systems other than Linux.
 1058       LIBMOZJS_LIBDIR=`echo $LIBMOZJS_LIBS | $SED -e 's/.*-L\(@<:@^ @:>@*\) .*/\1/'`
 1059       # Try to find out the correct xulrunner path.
 1060       if test -e "$LIBMOZJS_LIBDIR/libmozjs.so"; then
 1061         LIBMOZJS_PATH=`readlink -f $LIBMOZJS_LIBDIR/libmozjs.so`
 1062         LIBMOZJS_LIBDIR=`dirname $LIBMOZJS_PATH`
 1063       fi
 1064     fi
 1065 
 1066     # GGL_CHECK_LIBMOZJS requires LIBMOZJS_LIBDIR
 1067     GGL_CHECK_LIBMOZJS([170], [], [has_libmozjs=no])
 1068     if test x$has_libmozjs != xno; then
 1069       # If gtkmozembed is available and uses xpcomglue, then use xpcomglue for
 1070       # libmozjs as well.
 1071       if (echo $GTKMOZEMBED_CFLAGS | grep XPCOM_GLUE) > /dev/null 2>&1; then
 1072         AC_MSG_NOTICE([Uses xulrunner's xpcomglue to load libmozjs.])
 1073         LIBMOZJS_CFLAGS="$LIBMOZJS_CFLAGS $GTKMOZEMBED_CFLAGS"
 1074         # Use libs of gtkmozembed instead of libmozjs's own library here to
 1075         # avoid direct linking to libmozjs. As xpcomglue is used, the only
 1076         # library shall be a static xpcomglue lib.
 1077         # No more library dependency will be introduced.
 1078         LIBMOZJS_LIBS="$GTKMOZEMBED_LIBS"
 1079       else
 1080         # If there is no xpcomglue support, then gtkmoz_browser_element needs
 1081         # link to libmozjs explicitly.
 1082         GTKMOZEMBED_LIBS="$GTKMOZEMBED_LIBS $LIBMOZJS_LIBS"
 1083       fi
 1084       if test x$with_mozjs_libname != x; then
 1085         LIBMOZJS_CFLAGS="$LIBMOZJS_CFLAGS -DGGL_MOZJS_LIBNAME=\\\"$with_mozjs_libname\\\""
 1086       fi
 1087       if test "x$LIBMOZJS_LIBDIR" != "x" -a \
 1088               "x$LIBMOZJS_LIBDIR" != "$libdir"; then
 1089         LIBMOZJS_LDFLAGS="-R$LIBMOZJS_LIBDIR"
 1090         AC_SUBST(LIBMOZJS_LDFLAGS)
 1091       fi
 1092     fi
 1093   fi
 1094 
 1095   if test x$has_libmozjs = xno; then
 1096     has_gtkmozembed=no
 1097     if test x$build_smjs_script_runtime = xyes; then
 1098       AC_MSG_WARN([libmozjs >= 1.7 is required by smjs-script-runtime.])
 1099       build_smjs_script_runtime=no
 1100     fi
 1101   else
 1102     AC_MSG_NOTICE([Uses libmozjs from $has_libmozjs])
 1103   fi
 1104 
 1105   if test x$has_gtkmozembed = xno; then
 1106     if test x$build_gtkmoz_browser_element = xyes; then
 1107       AC_MSG_WARN([gtkmozembed is required by gtkmoz-browser-element.])
 1108       build_gtkmoz_browser_element=no
 1109     fi
 1110   else
 1111     AC_MSG_NOTICE([Uses gtkmozembed from $has_gtkmozembed])
 1112   fi
 1113 fi
 1114 
 1115 # Check WebKit/JavaScriptCore
 1116 has_javascriptcore=no
 1117 if test x$build_webkit_script_runtime = xyes; then
 1118   PKG_CHECK_MODULES(JAVA_SCRIPT_CORE, [webkit-1.0 >= 1.0.3],
 1119                     [has_javascriptcore=yes],
 1120                     [has_javascriptcore=no])
 1121   if test x$has_javascriptcore = xyes; then
 1122     CPPFLAGS="$CPPFLAGS $JAVA_SCRIPT_CORE_CFLAGS"
 1123     AC_CHECK_HEADERS([JavaScriptCore/JavaScript.h],
 1124                      [has_JavaScript_h=yes],
 1125                      [has_JavaScript_h=no])
 1126     AC_CHECK_HEADERS([JavaScriptCore/JavaScriptCore.h],
 1127                      [has_JavaScriptCore_h=yes],
 1128                      [has_JavaScriptCore_h=no])
 1129     CPPFLAGS="$ggl_save_CPPFLAGS"
 1130     if test x$has_JavaScript_h = xyes; then
 1131       PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_JAVA_SCRIPT_H"
 1132     fi
 1133     if test x$has_JavaScriptCore_h = xyes; then
 1134       PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_JAVA_SCRIPT_CORE_H"
 1135     fi
 1136   fi
 1137 
 1138   if test x$has_javascriptcore != xyes -a x$ggl_host_type = xmacosx; then
 1139     # Use system built-in JavaScriptCore.framework
 1140     # No gtk webkit support on mac yet.
 1141     AC_CHECK_HEADERS([JavaScriptCore/JavaScriptCore.h],
 1142                      [has_javascriptcore=yes],
 1143                      [has_javascriptcore=no])
 1144     if test x$has_javascriptcore = xyes; then
 1145       JAVA_SCRIPT_CORE_LIBS="-framework JavaScriptCore"
 1146       PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_JAVA_SCRIPT_CORE_H"
 1147     fi
 1148   else
 1149     AC_MSG_WARN([JavaScriptCore support is not available for $ggl_host_type])
 1150   fi
 1151 
 1152   if test x$has_javascriptcore != xyes; then
 1153     AC_MSG_WARN([WebKit/JavaScriptCore is required by webkit-script-runtime.])
 1154     build_webkit_script_runtime=no;
 1155   fi
 1156 fi
 1157 
 1158 # Check gtk webkit for gtkwebkit-browser-element
 1159 has_gtkwebkit=no
 1160 if test x$build_gtkwebkit_browser_element = xyes; then
 1161   PKG_CHECK_MODULES([GTKWEBKIT], [webkit-1.0 >= 1.0.3],
 1162                     [has_gtkwebkit=yes], [has_gtkwebkit=no])
 1163   if test x$has_gtkwebkit != xyes; then
 1164     AC_MSG_WARN([GtkWebKit is required by gtkwebkit-browser-element])
 1165     build_gtkwebkit_browser_element=no;
 1166   elif test x$build_webkit_script_runtime = xyes; then
 1167     PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_GTK_WEBKIT_SUPPORT_JSC"
 1168   fi
 1169 fi
 1170 
 1171 # Check necessary functions
 1172 AC_CHECK_FUNC(mkdtemp, [PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_MKDTEMP"])
 1173 AC_CHECK_FUNC(mmap, [PREDEFINED_MACROS="$PREDEFINED_MACROS -DHAVE_MMAP"])
 1174 
 1175 # Check flex
 1176 AC_PROG_LEX
 1177 if test "x$LEX" != "xflex"; then
 1178   LEX="$SHELL $abs_top_srcdir/autotools/missing flex"
 1179 fi
 1180 
 1181 # Check update-mime-database
 1182 AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)
 1183 if test x$UPDATE_MIME_DATABASE = xno; then
 1184   enable_update_mime_database=no
 1185 fi
 1186 
 1187 # Check update-desktop-database
 1188 AC_PATH_PROG(UPDATE_DESKTOP_DATABASE, update-desktop-database, no)
 1189 if test x$UPDATE_DESKTOP_DATABASE = xno; then
 1190   enable_update_desktop_database=no
 1191 fi
 1192 
 1193 # Check xdg-icon-resource
 1194 AC_PATH_PROG(XDG_ICON_RESOURCE, xdg-icon-resource, no)
 1195 if test x$XDG_ICON_RESOURCE = xno; then
 1196   enable_xdg_icon_resource=no
 1197 fi
 1198 
 1199 # Check distribution information
 1200 GGL_CHECK_DIST_INFO
 1201 if test "x$GGL_DIST_INFO" != "x"; then
 1202   PREDEFINED_MACROS="$PREDEFINED_MACROS \"-DGGL_DIST_INFO=\\\"$GGL_DIST_INFO\\\"\""
 1203 fi
 1204 
 1205 ###########################################################
 1206 ##                  Process Config options.              ##
 1207 ###########################################################
 1208 
 1209 if test x$enable_shared != xyes; then
 1210   PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_DISABLE_SHARED"
 1211 fi
 1212 
 1213 if test x$ZIP = x; then
 1214   AC_MSG_WARN([Can't generate resource file bundle without zip command.])
 1215 fi
 1216 
 1217 #Check memory check command
 1218 if test x$memcheck_command != x; then
 1219   AC_CHECK_PROGS([MEMCHECK_COMMAND], [$memcheck_command])
 1220   AC_SUBST(MEMCHECK_COMMAND)
 1221 fi
 1222 
 1223 # Check mandatory dependencies
 1224 if test x$build_gtk_host = xyes; then
 1225   has_gtk_script_engine=no
 1226   if test x$build_smjs_script_runtime = xyes -o \
 1227           x$build_webkit_script_runtime = xyes; then
 1228     has_gtk_script_engine=yes
 1229   fi
 1230   has_gtk_xml_http_request=no
 1231   if test x$build_curl_xml_http_request = xyes -o \
 1232           x$build_soup_xml_http_request = xyes; then
 1233     has_gtk_xml_http_request=yes
 1234   fi
 1235   if test x$has_gtk_xml_http_request != xyes -o \
 1236           x$build_libxml2_xml_parser != xyes -o \
 1237           x$has_gtk_script_engine != xyes; then
 1238     AC_MSG_WARN([gtk host won't work because of missing dependencies])
 1239     build_gtk_host=no
 1240   fi
 1241 fi
 1242 
 1243 if test x$build_qt_host = xyes; then
 1244   has_qt_script_engine=no
 1245   if test x$build_smjs_script_runtime = xyes -o \
 1246           x$build_qt_script_runtime = xyes; then
 1247     has_qt_script_engine=yes
 1248   fi
 1249   if test x$build_qt_xml_http_request != xyes -o \
 1250           x$build_libxml2_xml_parser != xyes -o \
 1251           x$has_qt_script_engine != xyes; then
 1252     AC_MSG_WARN([qt host won't work because of missing dependencies.])
 1253     build_qt_host=no
 1254   fi
 1255 fi
 1256 
 1257 #Gstreamer audiosink
 1258 if test "x$default_gst_audio_sink" != "x"; then
 1259   PREDEFINED_MACROS="$PREDEFINED_MACROS \
 1260                      -DGGL_DEFAULT_GST_AUDIO_SINK=\\\"$default_gst_audio_sink\\\""
 1261 fi
 1262 
 1263 #Browser plugins directory
 1264 if test "x$default_browser_plugins_dir" != "x"; then
 1265   PREDEFINED_MACROS="$PREDEFINED_MACROS \
 1266                      -DGGL_DEFAULT_BROWSER_PLUGINS_DIR=\\\"$default_browser_plugins_dir\\\""
 1267 fi
 1268 
 1269 #ssl ca file for soup-xml-http-request
 1270 if test "x$default_ssl_ca_file" != "x" -a "x$default_ssl_ca_file" != "xno"; then
 1271   PREDEFINED_MACROS="$PREDEFINED_MACROS \
 1272                      -DGGL_DEFAULT_SSL_CA_FILE=\\\"$default_ssl_ca_file\\\""
 1273 fi
 1274 
 1275 #xdgmime
 1276 if test x$enable_xdgmime = xyes; then
 1277   PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_ENABLE_XDGMIME"
 1278 fi
 1279 
 1280 GGL_GTK_HTML_SCRIPT_ENGINE=xulrunner
 1281 if test x$build_smjs_script_runtime = xyes -a \
 1282         x$build_gtkmoz_browser_element = xyes; then
 1283   GGL_GTK_HTML_SCRIPT_ENGINE=xulrunner
 1284 elif test x$build_webkit_script_runtime = xyes -a \
 1285           x$build_gtkwebkit_browser_element = xyes; then
 1286   GGL_GTK_HTML_SCRIPT_ENGINE=webkit
 1287 fi
 1288 
 1289 PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_GTK_HTML_SCRIPT_ENGINE=\\\"$GGL_GTK_HTML_SCRIPT_ENGINE\\\""
 1290 
 1291 GGL_GTK_XML_HTTP_REQUEST=soup
 1292 if test x$build_soup_xml_http_request = xyes; then
 1293   GGL_GTK_XML_HTTP_REQUEST=soup
 1294 elif test x$build_curl_xml_http_request = xyes; then
 1295   GGL_GTK_XML_HTTP_REQUEST=curl
 1296 fi
 1297 
 1298 PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_GTK_XML_HTTP_REQUEST=\\\"$GGL_GTK_XML_HTTP_REQUEST\\\""
 1299 
 1300 GGL_QT_SCRIPT_ENGINE=smjs
 1301 if test x$build_smjs_script_runtime = xyes; then
 1302   GGL_QT_SCRIPT_ENGINE=smjs
 1303 elif test x$build_qt_script_runtime = xyes; then
 1304   GGL_QT_SCRIPT_ENGINE=qt
 1305 fi
 1306 
 1307 PREDEFINED_MACROS="$PREDEFINED_MACROS -DGGL_QT_SCRIPT_ENGINE=\\\"$GGL_QT_SCRIPT_ENGINE\\\""
 1308 
 1309 AM_CONDITIONAL(
 1310   [GGL_BUILD_GTK_HOST],
 1311   [test x$build_gtk_host = xyes])
 1312 
 1313 AM_CONDITIONAL(
 1314   [GGL_BUILD_QT_HOST],
 1315   [test x$build_qt_host = xyes])
 1316 
 1317 AM_CONDITIONAL(
 1318   [GGL_BUILD_LIBGGADGET_DBUS],
 1319   [test x$build_libggadget_dbus = xyes])
 1320 
 1321 AM_CONDITIONAL(
 1322   [GGL_BUILD_LIBGGADGET_GTK],
 1323   [test x$build_libggadget_gtk = xyes])
 1324 
 1325 AM_CONDITIONAL(
 1326   [GGL_BUILD_LIBGGADGET_NPAPI],
 1327   [test x$build_libggadget_npapi = xyes])
 1328 
 1329 AM_CONDITIONAL(
 1330   [GGL_BUILD_LIBGGADGET_QT],
 1331   [test x$build_libggadget_qt = xyes])
 1332 
 1333 AM_CONDITIONAL(
 1334   [GGL_BUILD_CURL_XML_HTTP_REQUEST],
 1335   [test x$build_curl_xml_http_request = xyes])
 1336 
 1337 AM_CONDITIONAL(
 1338   [GGL_BUILD_SOUP_XML_HTTP_REQUEST],
 1339   [test x$build_soup_xml_http_request = xyes])
 1340 
 1341 AM_CONDITIONAL(
 1342   [GGL_BUILD_DBUS_SCRIPT_CLASS],
 1343   [test x$build_dbus_script_class = xyes])
 1344 
 1345 AM_CONDITIONAL(
 1346   [GGL_BUILD_GST_AUDIO_FRAMEWORK],
 1347   [test x$build_gst_audio_framework = xyes])
 1348 
 1349 AM_CONDITIONAL(
 1350   [GGL_BUILD_GST_VIDEO_ELEMENT],
 1351   [test x$build_gst_video_element = xyes])
 1352 
 1353 AM_CONDITIONAL(
 1354   [GGL_BUILD_GTK_EDIT_ELEMENT],
 1355   [test x$build_gtk_edit_element = xyes])
 1356 
 1357 AM_CONDITIONAL(
 1358   [GGL_BUILD_GTK_FLASH_ELEMENT],
 1359   [test x$build_gtk_flash_element = xyes])
 1360 
 1361 AM_CONDITIONAL(
 1362   [GGL_BUILD_GTK_SYSTEM_FRAMEWORK],
 1363   [test x$build_gtk_system_framework = xyes])
 1364 
 1365 AM_CONDITIONAL(
 1366   [GGL_BUILD_GTKMOZ_BROWSER_ELEMENT],
 1367   [test x$build_gtkmoz_browser_element = xyes])
 1368 
 1369 AM_CONDITIONAL(
 1370   [GTK2_TARGET_X11],
 1371   [test x$gtk2_target = xx11])
 1372 
 1373 AM_CONDITIONAL(
 1374   [GGL_BUILD_LIBXML2_XML_PARSER],
 1375   [test x$build_libxml2_xml_parser = xyes])
 1376 
 1377 AM_CONDITIONAL(
 1378   [GGL_BUILD_QT_EDIT_ELEMENT],
 1379   [test x$build_qt_edit_element = xyes])
 1380 
 1381 AM_CONDITIONAL(
 1382   [GGL_BUILD_QT_SCRIPT_RUNTIME],
 1383   [test x$build_qt_script_runtime = xyes])
 1384 
 1385 AM_CONDITIONAL(
 1386   [GGL_BUILD_QT_SYSTEM_FRAMEWORK],
 1387   [test x$build_qt_system_framework = xyes])
 1388 
 1389 AM_CONDITIONAL(
 1390   [GGL_BUILD_QT_XML_HTTP_REQUEST],
 1391   [test x$build_qt_xml_http_request = xyes])
 1392 
 1393 AM_CONDITIONAL(
 1394   [GGL_BUILD_QTWEBKIT_BROWSER_ELEMENT],
 1395   [test x$build_qtwebkit_browser_element = xyes])
 1396 
 1397 AM_CONDITIONAL(
 1398   [GGL_BUILD_SMJS_SCRIPT_RUNTIME],
 1399   [test x$build_smjs_script_runtime = xyes])
 1400 
 1401 AM_CONDITIONAL(
 1402   [GGL_BUILD_WEBKIT_SCRIPT_RUNTIME],
 1403   [test x$build_webkit_script_runtime = xyes])
 1404 
 1405 AM_CONDITIONAL(
 1406   [GGL_BUILD_GTKWEBKIT_BROWSER_ELEMENT],
 1407   [test x$build_gtkwebkit_browser_element = xyes])
 1408 
 1409 AM_CONDITIONAL(
 1410   [GGL_ENABLE_UPDATE_MIME_DATABASE],
 1411   [test x$enable_update_mime_database = xyes])
 1412 
 1413 AM_CONDITIONAL(
 1414   [GGL_ENABLE_UPDATE_DESKTOP_DATABASE],
 1415   [test x$enable_update_desktop_database = xyes])
 1416 
 1417 AM_CONDITIONAL(
 1418   [GGL_ENABLE_XDG_ICON_RESOURCE],
 1419   [test x$enable_xdg_icon_resource = xyes])
 1420 
 1421 AM_CONDITIONAL(
 1422   [GGL_ENABLE_XDGMIME],
 1423   [test x$enable_xdgmime = xyes])
 1424 
 1425 AM_CONDITIONAL([GGL_HAVE_XLIB], [test x$has_xlib = xyes])
 1426 AM_CONDITIONAL([GGL_HAVE_ZIP], [test x$ZIP != x])
 1427 AM_CONDITIONAL([GGL_HAVE_GTK2], [test x$has_gtk2 = xyes])
 1428 AM_CONDITIONAL([GGL_HAVE_RSVG], [test x$has_librsvg = xyes])
 1429 AM_CONDITIONAL([GGL_HAVE_NETWORK_MANAGER], [test x$has_network_manager != xno])
 1430 AM_CONDITIONAL([GGL_CROSS_COMPILING], [test x$cross_compiling = xyes])
 1431 AM_CONDITIONAL([GGL_DISABLE_SHARED], [test x$enable_shared != xyes])
 1432 
 1433 # Clear the default CFLAGS and CXXFLAGS
 1434 CFLAGS=$ggl_save_CFLAGS
 1435 CPPFLAGS=$ggl_save_CPPFLAGS
 1436 CXXFLAGS=$ggl_save_CXXFLAGS
 1437 LDFLAGS=$ggl_save_LDFLAGS
 1438 
 1439 ###########################################################
 1440 ##                      Output files.                    ##
 1441 ###########################################################
 1442 AC_SUBST(ac_aux_dir)
 1443 
 1444 # Workaround a bug in autoconf 2.59, which doesn't export these variables.
 1445 AC_SUBST(abs_srcdir)
 1446 AC_SUBST(abs_builddir)
 1447 AC_SUBST(abs_top_srcdir)
 1448 AC_SUBST(abs_top_builddir)
 1449 
 1450 # Specifies configurable headers.
 1451 AC_CONFIG_HEADERS([config.h])
 1452 
 1453 # Specifies configurable files.
 1454 AC_CONFIG_FILES([Makefile
 1455                  extensions/Makefile
 1456                  extensions/analytics_usage_collector/Makefile
 1457                  extensions/curl_xml_http_request/Makefile
 1458                  extensions/dbus_script_class/Makefile
 1459                  extensions/default_framework/Makefile
 1460                  extensions/default_options/Makefile
 1461                  extensions/default_options/tests/Makefile
 1462                  extensions/google_gadget_manager/Makefile
 1463                  extensions/google_gadget_manager/tests/Makefile
 1464                  extensions/gst_audio_framework/Makefile
 1465                  extensions/gst_video_element/Makefile
 1466                  extensions/gtk_edit_element/Makefile
 1467                  extensions/gtk_system_framework/Makefile
 1468                  extensions/gtkmoz_browser_element/Makefile
 1469                  extensions/libxml2_xml_parser/Makefile
 1470                  extensions/linux_system_framework/Makefile
 1471                  extensions/linux_system_framework/tests/Makefile
 1472                  extensions/gtk_flash_element/Makefile
 1473                  extensions/qt_edit_element/Makefile
 1474                  extensions/qt_script_runtime/Makefile
 1475                  extensions/qt_script_runtime/tests/Makefile
 1476                  extensions/qt_system_framework/Makefile
 1477                  extensions/qt_xml_http_request/Makefile
 1478                  extensions/qtwebkit_browser_element/Makefile
 1479                  extensions/smjs_script_runtime/Makefile
 1480                  extensions/smjs_script_runtime/tests/Makefile
 1481                  extensions/webkit_script_runtime/Makefile
 1482                  extensions/webkit_script_runtime/tests/Makefile
 1483                  extensions/gtkwebkit_browser_element/Makefile
 1484                  extensions/html_flash_element/Makefile
 1485                  extensions/soup_xml_http_request/Makefile
 1486                  extensions/soup_xml_http_request/tests/Makefile
 1487                  gadgets/Makefile
 1488                  gadgets/analog_clock/Makefile
 1489                  gadgets/designer/Makefile
 1490                  gadgets/designer/gadget/Makefile
 1491                  gadgets/designer/blank_gadget/Makefile
 1492                  gadgets/digital_alarm_clock/Makefile
 1493                  gadgets/igoogle/Makefile
 1494                  gadgets/photos/Makefile
 1495                  gadgets/rss/Makefile
 1496                  gadgets/gadget_browser/Makefile
 1497                  ggadget/Makefile
 1498                  ggadget/libggadget-1.0.pc
 1499                  ggadget/sysdeps.h
 1500                  ggadget/tests/Makefile
 1501                  ggadget/tests/test_modules/Makefile
 1502                  ggadget/dbus/Makefile
 1503                  ggadget/dbus/tests/Makefile
 1504                  ggadget/dbus/libggadget-dbus-1.0.pc
 1505                  ggadget/npapi/Makefile
 1506                  ggadget/npapi/tests/Makefile
 1507                  ggadget/npapi/libggadget-npapi-1.0.pc
 1508                  ggadget/gtk/Makefile
 1509                  ggadget/gtk/tests/Makefile
 1510                  ggadget/gtk/libggadget-gtk-1.0.pc
 1511                  ggadget/js/Makefile
 1512                  ggadget/js/tests/Makefile
 1513                  ggadget/js/libggadget-js-1.0.pc
 1514                  ggadget/qt/Makefile
 1515                  ggadget/qt/tests/Makefile
 1516                  ggadget/qt/libggadget-qt-1.0.pc
 1517                  ggadget/xdg/Makefile
 1518                  ggadget/xdg/tests/Makefile
 1519                  ggadget/xdg/libggadget-xdg-1.0.pc
 1520                  hosts/Makefile
 1521                  hosts/gtk/Makefile
 1522                  hosts/qt/Makefile
 1523                  resources/Makefile
 1524                  third_party/Makefile
 1525                  third_party/codesighs/Makefile
 1526                  third_party/editline/Makefile
 1527                  third_party/unzip/Makefile
 1528                  third_party/xdgmime/Makefile
 1529                  unittest/Makefile
 1530                  xdg/Makefile
 1531                  ])
 1532 AC_OUTPUT
 1533 
 1534 AC_MSG_RESULT([
 1535 Build options:
 1536   Version                         $GGL_VERSION
 1537   Install prefix                  $prefix
 1538   Install included libltdl        $enable_ltdl_install
 1539   Build shared libs               $enable_shared
 1540   Build static libs               $enable_static
 1541   Enable debug                    $enable_debug
 1542   Host type                       $ggl_host_type
 1543   Cross Compiling                 $cross_compiling
 1544   OEM brand                       $ggl_oem_brand
 1545 
 1546  Libraries:
 1547   Build libggadget-dbus           $build_libggadget_dbus
 1548   Build libggadget-gtk            $build_libggadget_gtk
 1549   Build libggadget-npapi          $build_libggadget_npapi
 1550   Build libggadget-qt             $build_libggadget_qt
 1551 
 1552  Extensions:
 1553   Build curl-xml-http-request     $build_curl_xml_http_request
 1554   Build soup-xml-http-request     $build_soup_xml_http_request
 1555   Build dbus-script-class         $build_dbus_script_class
 1556   Build gst-audio-framework       $build_gst_audio_framework
 1557   Build gst-video-element         $build_gst_video_element
 1558   Build gtk-edit-element          $build_gtk_edit_element
 1559   Build gtk-flash-element         $build_gtk_flash_element
 1560   Build gtk-system-framework      $build_gtk_system_framework
 1561   Build gtkmoz-browser-element    $build_gtkmoz_browser_element
 1562   Build libxml2-xml-parser        $build_libxml2_xml_parser
 1563   Build linux-system-framework    $build_linux_system_framework
 1564   Build qt-edit-element           $build_qt_edit_element
 1565   Build qt-script-runtime         $build_qt_script_runtime
 1566   Build qt-system-framework       $build_qt_system_framework
 1567   Build qt-xml-http-request       $build_qt_xml_http_request
 1568   Build qtwebkit-browser          $build_qtwebkit_browser_element
 1569   Build smjs-script-runtime       $build_smjs_script_runtime
 1570   Build webkit-script-runtime     $build_webkit_script_runtime
 1571   Build gtkwebkit-browser-element $build_gtkwebkit_browser_element
 1572 
 1573  Other features:
 1574   GTK SVG Support                 $has_librsvg
 1575   NetworkManager support          $has_network_manager
 1576   Startup notification support    $has_startup_notification
 1577   Built-in xdgmime support        $enable_xdgmime
 1578   Browser plugins directory       $default_browser_plugins_dir
 1579   Default gstreamer audio sink    $default_gst_audio_sink
 1580   SSL CA certificate file         $default_ssl_ca_file
 1581   Memory check command            $memcheck_command
 1582 
 1583  Hosts:
 1584   Build gtk host                  $build_gtk_host
 1585   Build qt host                   $build_qt_host
 1586 ])
 1587 
 1588 if test x$build_gtk_host != xyes -a x$build_qt_host != xyes; then
 1589   AC_MSG_WARN([Neither gtk host nor qt host will be built !!!]
 1590               [Nothing can be used to run Google Gadgets for Linux.])
 1591 fi