Changeset 36647 for lang/objective-cplusplus/i3
- Timestamp:
- 02/07/10 18:02:19 (3 years ago)
- Files:
-
- 1 modified
-
lang/objective-cplusplus/i3/trunk/configure.ac (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/objective-cplusplus/i3/trunk/configure.ac
r36646 r36647 19 19 20 20 AC_DEFUN([I3_CHECK_PROGRAM_IFELSE], [ 21 AC_COMPILE_IFELSE([ AC_LANG_PROGRAM([[$1]], [[$2]])], [22 AC_LINK_IFELSE([ AC_LANG_PROGRAM([[$1]], [[$2]])], [21 AC_COMPILE_IFELSE([$1], [ 22 AC_LINK_IFELSE([$1], [ 23 23 if test "cross_compiling" = "yes"; then 24 AC_RUN_IFELSE([ AC_LANG_PROGRAM([[$1]], [[$2]])], [$3], [$4])24 AC_RUN_IFELSE([$1], [$2], [$3]) 25 25 else 26 true; $ 326 true; $2 27 27 fi 28 ], [$ 4])29 ], [$ 4])28 ], [$3]) 29 ], [$3]) 30 30 ]) 31 31 … … 34 34 CXXFLAGS_ORIG="$CXXFLAGS" 35 35 CXXFLAGS="$CXXFLAGS $1" 36 I3_CHECK_PROGRAM_IFELSE([ ], [],36 I3_CHECK_PROGRAM_IFELSE([AC_LANG_PROGRAM([[]], [[]])], 37 37 [AC_MSG_RESULT([yes])], 38 38 [AC_MSG_RESULT([no]); CXXFLAGS="$CXXFLAGS_ORIG"]) … … 151 151 LDFLAGS="$LDFLAGS -x objective-c++" 152 152 153 I3_CHECK_PROGRAM_IFELSE([ 153 I3_CHECK_PROGRAM_IFELSE([AC_LANG_PROGRAM([[ 154 154 #import <Foundation/Foundation.h> 155 155 #import <AppKit/AppKit.h> … … 163 163 @end 164 164 int result = EXIT_FAILURE; 165 ] ,166 [ 165 ]], 166 [[ 167 167 NS_DURING 168 168 { … … 177 177 NS_ENDHANDLER; 178 178 return result; 179 ], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no])]) 179 ]])], [AC_MSG_RESULT([yes])], 180 [AC_MSG_RESULT([no]); AC_MSG_ERROR([Objective-C++ toolset does not work])]) 180 181 181 182 LDFLAGS="$LDFLAGS_ORIG" … … 239 240 AM_GNU_GETTEXT 240 241 #AC_LANG_POP 241 #LIBS="${LIBS} ${LIBINTL}"242 LIBS="${LIBS} ${LIBINTL}" 242 243 243 244 # --------------------------------------- … … 284 285 #include <stdlib.h> 285 286 #include <semaphore.h> 286 ]],287 [[287 ]], 288 [[ 288 289 sem_t sem; 289 290 if (sem_init(&sem, 0, 0) == 0) { … … 293 294 return EXIT_FAILURE; 294 295 } 295 ]])],296 ]])], 296 297 [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_UNNAMED_SEMAPHORE, 1, [Unnamed semaphore])], 297 298 [AC_MSG_RESULT([no])], … … 392 393 393 394 AC_MSG_CHECKING([run simple test program]) 394 I3_CHECK_PROGRAM_IFELSE( [395 I3_CHECK_PROGRAM_IFELSE(AC_LANG_PROGRAM([[ 395 396 #include <boost/pool/pool.hpp> 396 397 #include <stdlib.h> 397 398 #include <cstdio> 398 399 #include <iostream> 399 ] ,400 [ 400 ]], 401 [[ 401 402 boost::pool<> p(10); 402 ], [AC_MSG_RESULT([yes])], [AC_MSG_ERROR([no])]) 403 ]]), [AC_MSG_RESULT([yes])], 404 [AC_MSG_RESULT([no]); AC_MSG_ERROR([simple test program does not work])]) 403 405 404 406
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)