From Olivier Biot: add a "--enable-profile-build" flag to request that
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 18 Nov 2003 08:13:10 +0000 (08:13 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 18 Nov 2003 08:13:10 +0000 (08:13 +0000)
"-pg" binaries be built.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9001 f5534014-38df-0310-8fa8-9805f1628bb7

configure.in
epan/configure.in
wiretap/configure.in

index 35bb8c26968e67009fcb72eb0464c3ca9e75bdac..31e7b15f5aedfc55ffee8d44490622384db4ab47 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.232 2003/11/17 22:09:16 guy Exp $
+# $Id: configure.in,v 1.233 2003/11/18 08:13:05 guy Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -236,6 +236,22 @@ AC_ARG_ENABLE(threads,
 [  --enable-threads        use threads in ethereal.  [default=no]],enable_threads=$enableval,enable_threads=no)
 AM_CONDITIONAL(USE_THREADS, test x$enable_threads = xyes)
 
+AC_ARG_ENABLE(profile-build,
+[  --enable-profile-build  build profile-ready binaries.  [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
+AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
+AC_MSG_CHECKING(if profile builds must be generated)
+if test "x$enable_profile_build" = "xyes" ; then
+       if test -n "$GCC" ; then
+               AC_MSG_RESULT(yes)
+               CFLAGS=" -pg $CFLAGS"
+       else
+               AC_MSG_RESULT(no)
+               echo "Building profile binaries currently only supported for GCC."
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+       
 # GTK checks
 # We don't add $GLIB_LIBS to LIBS, because we don't want to force all
 # programs to be built with GTK+.
@@ -874,6 +890,7 @@ echo "                       Use plugins : $have_plugins"
 echo "               Use GTK+ v2 library : $enable_gtk2"
 if test "x$enable_gtk2" = "xyes" ; then
 echo "                       Use threads : $enable_threads"
+echo "            Build profile binaries : $enable_profile_build"
 fi
 echo "                  Use pcap library : $want_pcap"
 echo "                  Use zlib library : $zlib_message"
index f6f60712598e8871dac42ad6bb845e823ca60a12..f540653059ded3d7c42cbc3a615ce318099c13e9 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.48 2003/11/02 23:36:01 gerald Exp $
+# $Id: configure.in,v 1.49 2003/11/18 08:13:09 guy Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -106,6 +106,22 @@ else
        esac
 fi
 
+AC_ARG_ENABLE(profile-build,
+[  --enable-profile-build  build profile-ready binaries.  [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
+AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
+AC_MSG_CHECKING(if profile builds must be generated)
+if test "x$enable_profile_build" = "xyes" ; then
+       if test -n "$GCC" ; then
+               AC_MSG_RESULT(yes)
+               CFLAGS=" -pg $CFLAGS"
+       else
+               AC_MSG_RESULT(no)
+               echo "Building profile binaries currently only supported for GCC."
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+       
 # Create DATAFILE_DIR #define for config.h
 datafiledir=$datadir/ethereal
 datafiledir=`(
index dc78092247eac607600c75f0984f4c1335696a16..68374836476ddff7efc3a4aabb92628097e0a380 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.48 2003/08/21 07:25:22 guy Exp $
+# $Id: configure.in,v 1.49 2003/11/18 08:13:10 guy Exp $
 dnl
 dnl Process this file with autoconf 2.13 or later to produce a
 dnl configure script; 2.12 doesn't generate a "configure" script that
@@ -105,6 +105,22 @@ else
        esac
 fi
 
+AC_ARG_ENABLE(profile-build,
+[  --enable-profile-build  build profile-ready binaries.  [default=no]],enable_profile_build=$enableval,enable_profile_build=no)
+AM_CONDITIONAL(USE_PROFILE_BUILD, test x$enable_profile_build = xyes)
+AC_MSG_CHECKING(if profile builds must be generated)
+if test "x$enable_profile_build" = "xyes" ; then
+       if test -n "$GCC" ; then
+               AC_MSG_RESULT(yes)
+               CFLAGS=" -pg $CFLAGS"
+       else
+               AC_MSG_RESULT(no)
+               echo "Building profile binaries currently only supported for GCC."
+       fi
+else
+       AC_MSG_RESULT(no)
+fi
+       
 AC_ARG_ENABLE(gtk2,
 [  --enable-gtk2           build Glib2/Gtk2+-based (t)ethereal.  [default=no]],enable_gtk2=$enableval,enable_gtk2=no)