autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiler characteristics


From: Vincent Torri
Subject: Re: Compiler characteristics
Date: Sun, 6 Sep 2009 12:14:50 +0200 (CEST)


How do you test to see if the compiler supports a given option?

Specifically, gcc -municode

i would do that:

CFLAGS_save="${CFLAGS}"
CFLAGS="${CFLAGS} -municode"
AC_COMPILE_IFELSE(
   [AC_LANG_PROGRAM([[]])],
   [have_unicode="yes"],
   [have_unicode="no"])
AC_MSG_CHECKING([whether the compiler supports -municode])
AC_MSG_RESULT([${have_unicode}])
CFLAGS="${CFLAGS_save}"

Vincent Torri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]