AX_GCC_OPTION(VARIABLE, OPTION, VALUE-IF-SUCCESSFUL, VALUE-IF-NOT-SUCCESFUL) ,
2005年01月22日
Francesco Salvestrini <salvestrini@users.sourceforge.net>
GPLWithACException
This program is free software; you can
redistribute it and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation. As a special exception, the respective
Autoconf Macro's copyright owner gives unlimited permission to copy, distribute and modify
the configure scripts that are the output of Autoconf when processing the Macro. You
need not follow the terms of the
GNU General Public License when using or distributing such scripts
cryp.to ac-archive's C Support (released)
AX_GCC_OPTION checks wheter gcc accepts the passed OPTION. If it accepts the OPTION then then macro sets VARIABLE to VALUE-IF-SUCCESSFUL, otherwise it sets VARIABLE to VALUE-IF-UNSUCCESSFUL.
AC_DEFUN([AX_GCC_OPTION], [ AC_REQUIRE([AC_PROG_CC]) if test "x$GCC" = "xyes"; then AC_MSG_CHECKING([if gcc accepts 2ドル option]) if AC_TRY_COMMAND($CC 2ドル) >/dev/null 2>&1; then 1ドル=3ドル AC_MSG_RESULT([yes]) else 1ドル=4ドル AC_MSG_RESULT([no]) fi else unset 1ドル AC_MSG_RESULT([sorry, no gcc available]) fi ])