On 04/30/2012 03:31 PM, Peter Breitenlohner wrote: > On Mon, 30 Apr 2012, Stefano Lattarini wrote: > >> Hi Peter, thanks for the patch. However, I've opted for a more >> "semantic" approach, implemented by the attached test case. > > Hi Stefano, > > fine with me (except for a typo s/autocon,/autoconf,/. But please note that > these tests will fail if gcc/g++ does not support Objective C/C++ > Luckily no -- the tests will get skipped. For example:
$ OBJC=gcc-3.4.6 sh t/objc-deps.sh # my gcc-3.4.6 don't support Objective C objc-deps: exec /bin/sh ./t/objc-deps.sh ... + aclocal-1.12 -Werror + autoconf + automake-1.12 --foreign -Werror -Wall --add-missing + ./configure --enable-dependency-tracking checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether the Objective C compiler works... no configure: error: in `/home/stefano/src/am/branches/objc++-support/t/objc-deps.dir': configure: error: Objective C compiler cannot create executables See `config.log' for more details + exit_status=77 ... objc-deps: exit 77 Regards, Stefano