[Gllug] configure.in question

salsaman salsaman at xs4all.nl
Fri Nov 10 17:37:29 UTC 2006


- Tethys wrote:

> On 11/10/06, salsaman <salsaman at xs4all.nl> wrote:
>
>> if [[ $AC_CANONICAL_TARGET = *darwin* ]]; then
>> ...
>> fi
>>
>> but the above is not correct. Any ideas ?
>
>
> You should be using a double equals, and for safety's sake,
> $AC_CANONICAL_TARGET should be quoted when you dereference it. If that
> still doesn't work, try:
>
> case "$AC_CANONICAL_TARGET" in
>    *darwin*)
>        ### Do something clever here
>        ;;
>    *)
>        ### Handle non-darwin cases here
>        ;;
> esac
>
> Tet


Thanks. Actually I found it should be $target_os, not 
$AC_CANONICAL_TARGET, but the rest works.

Gabriel.

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list