Mercurial > octave-antonio
comparison m4/acinclude.m4 @ 20151:88c0f8f56a4f
acinclude.m4: Use simpler AC_PREPROC_IFELSE test for checking SETPLACEHOLDERTEXT.
* acinclude.m4 (OCTAVE_CHECK_FUNC_SETPLACEHOLDERTEXT): Replace
AC_COMPILE_IFELSE with AC_PREPROC_IFELSE for SETPLACEHOLDERTEXT function check.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 May 2015 13:14:23 -0700 |
parents | 0afc06948ba7 |
children |
comparison
equal
deleted
inserted
replaced
20149:0afc06948ba7 | 20151:88c0f8f56a4f |
---|---|
415 AC_CACHE_CHECK([whether Qt has SetPlaceholderText function], | 415 AC_CACHE_CHECK([whether Qt has SetPlaceholderText function], |
416 [octave_cv_func_setplaceholdertext], | 416 [octave_cv_func_setplaceholdertext], |
417 [AC_LANG_PUSH(C++) | 417 [AC_LANG_PUSH(C++) |
418 ac_octave_save_CPPFLAGS="$CPPFLAGS" | 418 ac_octave_save_CPPFLAGS="$CPPFLAGS" |
419 CPPFLAGS="$QT_CPPFLAGS $CPPFLAGS" | 419 CPPFLAGS="$QT_CPPFLAGS $CPPFLAGS" |
420 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ | 420 AC_PREPROC_IFELSE([AC_LANG_PROGRAM([[ |
421 #include <Qt/qglobal.h> | 421 #include <Qt/qglobal.h> |
422 ]], [[ | 422 ]], [[ |
423 #if QT_VERSION < 0x040700 | 423 #if QT_VERSION < 0x040700 |
424 #error No SetPlacholderText function available. | 424 #error No SetPlacholderText function available. |
425 #endif | 425 #endif |