diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-07-06 20:40:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-07-06 20:40:50 +0000 |
commit | 78b3b038e17097671f07427732a18a837c33a44c (patch) | |
tree | 886ec7323a363ca81cb8efa03a353abc34abf27c /acinclude.m4 | |
parent | 26543ab3d4271ca6927a020de79666b1f9d24c0e (diff) |
From Nix:
Don't add "-I/usr/include" to CFLAGS or CPPFLAGS; GCC 3.1 warns
about it, and it's not necessary.
Expand the plugin directory path used for installation at
installation time, rather than configuration time, so the user
can reset "prefix" at installation time.
svn path=/trunk/; revision=5828
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 38a05706fc..eddede08d0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -2,7 +2,7 @@ dnl Macros that test for specific features. dnl This file is part of the Autoconf packaging for Ethereal. dnl Copyright (C) 1998-2000 by Gerald Combs. dnl -dnl $Id: acinclude.m4,v 1.44 2002/04/08 01:34:38 guy Exp $ +dnl $Id: acinclude.m4,v 1.45 2002/07/06 20:40:42 guy Exp $ dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by @@ -273,8 +273,10 @@ AC_DEFUN(AC_ETHEREAL_PCAP_CHECK, for pcap_dir in /usr/include/pcap /usr/local/include/pcap $prefix/include do if test -d $pcap_dir ; then - CFLAGS="$CFLAGS -I$pcap_dir" - CPPFLAGS="$CPPFLAGS -I$pcap_dir" + if test x$pcap_dir != x/usr/include; then + CFLAGS="$CFLAGS -I$pcap_dir" + CPPFLAGS="$CPPFLAGS -I$pcap_dir" + fi found_pcap_dir=" $found_pcap_dir -I$pcap_dir" fi done |