Add a "--without-gcc" option, similar to what tcpdump and libpcap have.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Jan 2002 23:01:33 +0000 (23:01 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 30 Jan 2002 23:01:33 +0000 (23:01 +0000)
(This isn't as useful for testing purposes as it is in tcpdump and
libpcap, as GLib is configured based on the compiler used to compile it,
so you can't necessarily build an application using GLib with a compiler
different from the one used to compile GLib, but we'll add it anyway.)

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

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

index 5100dfe5a523432d41d681b5224e75be06e6c793..3a298380b1f956c395d0534f7d2a037541951794 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.148 2002/01/30 10:05:07 guy Exp $
+# $Id: configure.in,v 1.149 2002/01/30 23:01:30 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
@@ -19,6 +19,11 @@ dnl Check for CPU / vendor / OS
 AC_CANONICAL_HOST
 
 dnl Checks for programs.
+AC_ARG_WITH(gcc, [  --without-gcc           don't use gcc])
+if test -z "$CC" -a "$with_gcc" = no ; then
+    CC=cc
+    export CC
+fi
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_RANLIB
index 89204c85abe4aad280010f92b822dabb04a4ced0..1f5b0a1a5953271353edfac39bf1fd0a829d8151 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.16 2001/12/23 21:11:24 gerald Exp $
+# $Id: configure.in,v 1.17 2002/01/30 23:01:31 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
@@ -20,6 +20,11 @@ dnl Check for CPU / vendor / OS
 AC_CANONICAL_HOST
 
 dnl Checks for programs.
+AC_ARG_WITH(gcc, [  --without-gcc           don't use gcc])
+if test -z "$CC" -a "$with_gcc" = no ; then
+    CC=cc
+    export CC
+fi
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_YACC
index f309c4ae915c17f5abea7ee471742eac71c94034..1dd28a2332032c61ece242a7b1df23666bf63061 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.32 2002/01/09 23:21:55 gram Exp $
+# $Id: configure.in,v 1.33 2002/01/30 23:01:33 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
@@ -19,6 +19,11 @@ AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_HOST
 
 dnl Checks for programs.
+AC_ARG_WITH(gcc, [  --without-gcc           don't use gcc])
+if test -z "$CC" -a "$with_gcc" = no ; then
+    CC=cc
+    export CC
+fi
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_YACC