]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
BuildSystem: Enable ./configure in Solaris 11.
authorAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 09:59:35 +0000 (11:59 +0200)
committerAlexander Traud <pabstraud@compuserve.com>
Thu, 21 Jun 2018 10:15:23 +0000 (04:15 -0600)
ASTERISK-27931

Change-Id: If298ce7f03be227a3687b9c20d382c9c55a72404

autoconf/ast_check_raii.m4
configure

index e39a43d2e188d6fe437992f02b9d27d7e9040e59..571dc1891f55bf4ab7f23e86327d151fb2c79d76 100644 (file)
@@ -33,11 +33,11 @@ AC_DEFUN([AST_CHECK_RAII], [
                        AST_C_COMPILER_FAMILY="gcc"
                ],[
                        AC_MSG_CHECKING(for clang -fblocks)
-                       if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
+                       if test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
                                AST_CLANG_BLOCKS_LIBS=""
                                AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
                                AC_MSG_RESULT(yes)
-                       elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
+                       elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
                                AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
                                AST_CLANG_BLOCKS="-fblocks"
                                AC_MSG_RESULT(yes)
index 91fe3160aebeeb2f0d7054ca222a712d1f642e91..37529675d359fb2f693e9425461ac0e19dfc20b3 100755 (executable)
--- a/configure
+++ b/configure
@@ -9045,12 +9045,12 @@ else
 
                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clang -fblocks" >&5
 $as_echo_n "checking for clang -fblocks... " >&6; }
-                       if test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
+                       if test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c - 2>&1`" = ""; then
                                AST_CLANG_BLOCKS_LIBS=""
                                AST_CLANG_BLOCKS="-Wno-unknown-warning-option -fblocks"
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
-                       elif test "`echo "int main(){return ^{return 42;}();}" | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
+                       elif test "`echo 'int main(){return ^{return 42;}();}' | ${CC} -o /dev/null -fblocks -x c -lBlocksRuntime - 2>&1`" = ""; then
                                AST_CLANG_BLOCKS_LIBS="-lBlocksRuntime"
                                AST_CLANG_BLOCKS="-fblocks"
                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5