Changeset 161016b in rtems


Ignore:
Timestamp:
May 8, 2007, 10:46:30 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
32556fc
Parents:
d32c7f8
Message:

2007-05-08 Ralf Corsépius <ralf.corsepius@…>

  • configure.ac: Check for working PRIxPTR.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rd32c7f8 r161016b  
     12007-05-08      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * configure.ac: Check for working PRIxPTR.
     4
    152007-05-08      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • cpukit/configure.ac

    rd32c7f8 r161016b  
    7575AC_CHECK_TYPES([uintmax_t, intmax_t])
    7676AC_CHECK_TYPES([uintptr_t, intptr_t])
     77
     78AC_CACHE_CHECK([if PRIxPTR works],
     79[rtems_cv_PRIxPTR],[
     80  AS_IF([test x"$GCC" = xyes],[
     81    save_CFLAGS=$CFLAGS
     82    CFLAGS=-Werror])
     83
     84  AC_COMPILE_IFELSE([
     85    AC_LANG_PROGRAM([
     86      #include <inttypes.h>
     87      #include <stdio.h>
     88    ],[
     89      void *ptr;
     90      printf("%" PRIxPTR "\n", (intptr_t) ptr);
     91    ])],
     92    [rtems_cv_PRIxPTR=yes],
     93    [rtems_cv_PRIxPTR=no])
     94
     95  AS_IF([test x"$GCC" = xyes],[
     96    CFLAGS=$save_CFLAGS])
     97])
    7798
    7899# These are conditionally defined by the toolchain
Note: See TracChangeset for help on using the changeset viewer.