Changeset 740 for vendor/current/lib/replace/autoconf-2.60.m4
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/lib/replace/autoconf-2.60.m4
r414 r740 182 182 m4_ifndef([AC_USE_SYSTEM_EXTENSIONS],[ 183 183 AC_DEFUN([AC_USE_SYSTEM_EXTENSIONS], 184 [ 185 AC_BEFORE([$0], [AC_COMPILE_IFELSE]) 186 AC_BEFORE([$0], [AC_RUN_IFELSE]) 187 188 AC_REQUIRE([AC_GNU_SOURCE]) 189 AC_REQUIRE([AC_AIX]) 190 AC_REQUIRE([AC_MINIX]) 184 [AC_BEFORE([$0], [AC_COMPILE_IFELSE])dnl 185 AC_BEFORE([$0], [AC_RUN_IFELSE])dnl 186 187 AC_CHECK_HEADER([minix/config.h], [MINIX=yes], [MINIX=]) 188 if test "$MINIX" = yes; then 189 AC_DEFINE([_POSIX_SOURCE], [1], 190 [Define to 1 if you need to in order for `stat' and other 191 things to work.]) 192 AC_DEFINE([_POSIX_1_SOURCE], [2], 193 [Define to 2 if the system does not provide POSIX.1 features 194 except with this defined.]) 195 AC_DEFINE([_MINIX], [1], 196 [Define to 1 if on MINIX.]) 197 fi 191 198 192 199 AH_VERBATIM([__EXTENSIONS__], 193 [/* Enable extensions on Solaris. */ 200 [/* Enable extensions on AIX 3, Interix. */ 201 #ifndef _ALL_SOURCE 202 # undef _ALL_SOURCE 203 #endif 204 /* Enable GNU extensions on systems that have them. */ 205 #ifndef _GNU_SOURCE 206 # undef _GNU_SOURCE 207 #endif 208 /* Enable threading extensions on Solaris. */ 209 #ifndef _POSIX_PTHREAD_SEMANTICS 210 # undef _POSIX_PTHREAD_SEMANTICS 211 #endif 212 /* Enable extensions on HP NonStop. */ 213 #ifndef _TANDEM_SOURCE 214 # undef _TANDEM_SOURCE 215 #endif 216 /* Enable general extensions on Solaris. */ 194 217 #ifndef __EXTENSIONS__ 195 218 # undef __EXTENSIONS__ 196 219 #endif 197 #ifndef _POSIX_PTHREAD_SEMANTICS 198 # undef _POSIX_PTHREAD_SEMANTICS 199 #endif]) 220 ]) 200 221 AC_CACHE_CHECK([whether it is safe to define __EXTENSIONS__], 201 222 [ac_cv_safe_to_define___extensions__], 202 223 [AC_COMPILE_IFELSE( 203 [AC_LANG_PROGRAM([ 224 [AC_LANG_PROGRAM([[ 204 225 # define __EXTENSIONS__ 1 205 AC_INCLUDES_DEFAULT])],226 ]AC_INCLUDES_DEFAULT])], 206 227 [ac_cv_safe_to_define___extensions__=yes], 207 228 [ac_cv_safe_to_define___extensions__=no])]) 208 229 test $ac_cv_safe_to_define___extensions__ = yes && 209 230 AC_DEFINE([__EXTENSIONS__]) 231 AC_DEFINE([_ALL_SOURCE]) 232 AC_DEFINE([_GNU_SOURCE]) 210 233 AC_DEFINE([_POSIX_PTHREAD_SEMANTICS]) 211 ]) 212 ]) 234 AC_DEFINE([_TANDEM_SOURCE]) 235 ])# AC_USE_SYSTEM_EXTENSIONS 236 ])
Note:
See TracChangeset
for help on using the changeset viewer.