• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:no +full:- +full:test

6 		[libffi_header_sys_mman_h=yes], [libffi_header_sys_mman_h=no])
7 AC_CHECK_FUNC([mmap], [libffi_func_mmap=yes], [libffi_func_mmap=no])
8 if test "$libffi_header_sys_mman_h" != yes \
9 || test "$libffi_func_mmap" != yes; then
10 ac_cv_func_mmap_file=no
11 ac_cv_func_mmap_dev_zero=no
12 ac_cv_func_mmap_anon=no
14 AC_CACHE_CHECK([whether read-only mmap of a plain file works],
23 ac_cv_func_mmap_file=no ;;
41 ac_cv_func_mmap_dev_zero=no ;;
59 ac_cv_decl_map_anon=no)])
61 if test $ac_cv_decl_map_anon = no; then
62 ac_cv_func_mmap_anon=no
67 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
73 ac_cv_func_mmap_anon=no ;;
80 if test $ac_cv_func_mmap_file = yes; then
82 [Define if read-only mmap of a plain file works.])
84 if test $ac_cv_func_mmap_dev_zero = yes; then
88 if test $ac_cv_func_mmap_anon = yes; then
94 dnl ----------------------------------------------------------------------
95 dnl This whole bit snagged from libstdc++-v3, via libatomic.
99 dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING)
100 dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, permit a|b|c)
101 dnl (FEATURE, DEFAULT, HELP-ARG, HELP-STRING, SHELL-CODE-HANDLER)
106 m4_define([_g_switch],[--enable-$1])dnl
122 yes|no) ;;
123 *) AC_MSG_ERROR(Argument to enable/disable $1 must be yes or no) ;;
127 [enable_]m4_bpatsubst([$1],-,_)[=][$2])
138 dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible
139 dnl OPT_LDFLAGS='-Wl,-O1' if possible
150 # If we're not using GNU ld, then there's no point in even trying these
153 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
154 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
161 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
162 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
164 if test x${with_gnu_ld+set} != xset; then
165 if test x${ac_cv_prog_gnu_ld+set} != xset; then
167 with_gnu_ld=no
173 # Start by getting the version number. I think the libtool test already
175 libat_ld_is_gold=no
176 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
180 ldver=`$LD --version 2>/dev/null |
181 …sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9…
184 $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
186 # Set --gc-sections.
187 if test "$with_gnu_ld" = "notbroken"; then
194 CFLAGS='-x c++ -Wl,--gc-sections'
196 # Check for -Wl,--gc-sections
197 # XXX This test is broken at the moment, as symbols required for linking
198 # are now in libsupc++ (not built yet). In addition, this test has
199 # cored on solaris in the past. In addition, --gc-sections doesn't
203 AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
211 ], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes])
212 if test "$ac_test_CFLAGS" = set; then
218 if test "$ac_sectionLDflags" = "yes"; then
219 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
225 if test x"$with_gnu_ld" = x"yes"; then
226 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
240 dnl SECTION_LDFLAGS='-Wl,--gc-sections' if possible
241 dnl OPT_LDFLAGS='-Wl,-O1' if possible
252 # If we're not using GNU ld, then there's no point in even trying these
255 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
256 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
263 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
264 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
266 if test x${with_gnu_ld+set} != xset; then
267 if test x${ac_cv_prog_gnu_ld+set} != xset; then
269 with_gnu_ld=no
275 # Start by getting the version number. I think the libtool test already
277 libat_ld_is_gold=no
278 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
281 libat_ld_is_lld=no
282 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
286 ldver=`$LD --version 2>/dev/null |
287 …sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9…
290 $AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`
292 # Set --gc-sections.
293 if test "$with_gnu_ld" = "notbroken"; then
300 CFLAGS='-x c++ -Wl,--gc-sections'
302 # Check for -Wl,--gc-sections
303 # XXX This test is broken at the moment, as symbols required for linking
304 # are now in libsupc++ (not built yet). In addition, this test has
305 # cored on solaris in the past. In addition, --gc-sections doesn't
309 AC_MSG_CHECKING([for ld that supports -Wl,--gc-sections])
317 ], [ac_sectionLDflags=yes],[ac_sectionLDflags=no], [ac_sectionLDflags=yes])
318 if test "$ac_test_CFLAGS" = set; then
324 if test "$ac_sectionLDflags" = "yes"; then
325 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
331 if test x"$with_gnu_ld" = x"yes"; then
332 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
344 dnl --enable-symvers=style adds a version script to the linker call when
347 dnl --disable-symvers does not.
349 dnl Where DEFAULT is either 'yes' or 'no'. Passing `yes' tries to
351 dnl 'no' disables versioning.
357 [permit yes|no|gnu*|sun])
364 if test x$enable_symvers = xyes ; then
365 # FIXME The following test is too strict, in theory.
366 if test $enable_shared = no || test "x$LD" = x; then
367 enable_symvers=no
369 if test $with_gnu_ld = yes ; then
374 solaris2.[[5-9]]* | solaris2.1[[0-9]]*)
377 enable_symvers=no ;;
383 # Check if 'sun' was requested on non-Solaris 2 platforms.
384 if test x$enable_symvers = xsun ; then
394 enable_symvers=no
400 if test $enable_symvers != no; then
403 CFLAGS=' -lgcc_s'
404 AC_TRY_LINK(, [return 0;], libat_shared_libgcc=yes, libat_shared_libgcc=no)
406 if test $libat_shared_libgcc = no; then
411 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
412 -shared -shared-libgcc -o conftest.so \
413 conftest.c -v 2>&1 >/dev/null \
414 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
416 rm -f conftest.c conftest.so
417 if test x${libat_libgcc_s_suffix+set} = xset; then
418 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
432 # Change "yes" into either "no" or a style name.
433 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
434 if test $with_gnu_ld = yes; then
435 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
437 elif test $libat_ld_is_gold = yes ; then
439 elif test $libat_ld_is_lld = yes ; then
447 if test $libat_gnu_ld_version -ge 21200 ; then
452 enable_symvers=no
456 enable_symvers=no
459 elif test $enable_symvers = sun; then
467 enable_symvers=no
470 if test $enable_symvers = gnu; then
475 AM_CONDITIONAL(LIBFFI_BUILD_VERSIONED_SHLIB, test $enable_symvers != no)
476 AM_CONDITIONAL(LIBFFI_BUILD_VERSIONED_SHLIB_GNU, test $enable_symvers = gnu)
477 AM_CONDITIONAL(LIBFFI_BUILD_VERSIONED_SHLIB_SUN, test $enable_symvers = sun)