[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: include already set in CXXCPPFLAGS ?
From: |
Peter Eisentraut |
Subject: |
Re: include already set in CXXCPPFLAGS ? |
Date: |
Mon, 3 Sep 2001 11:46:02 +0200 (CEST) |
Genty Jean-Paul writes:
> I submit this question for CXXCPPFLAGS, but it could be for any string.
>
> In a m4 macro file, is there a simple trick to detect if
> '-I/usr/local/include' is already set ?
case " $CXXCPPFLAGS " in
*" -I/usr/local/include "*) ;; # already set
*) CXXCPPFLAGS="-I/usr/local/include $CXXCPPFLAGS";; # prepend it
esac
--
Peter Eisentraut address@hidden http://funkturm.homeip.net/~peter