File: acinclude.m4

package info (click to toggle)
chmlib 2%3A0.39-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,592 kB
  • ctags: 335
  • sloc: sh: 8,783; ansic: 2,619; makefile: 90
file content (14 lines) | stat: -rw-r--r-- 385 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dnl PR_CHECK_CC_OPT
dnl ---------------------
dnl Check whether the C compiler accepts the given option
AC_DEFUN([PR_CHECK_CC_OPT]
  [AC_MSG_CHECKING([whether ${CC-cc} accepts -[$1]])
   echo 'void f(){}' > conftest.c
   if test -z "`${CC-cc} -c -$1 conftest.c 2>&1`"; then
     AC_MSG_RESULT(yes)
     CFLAGS="$CFLAGS -$1"
   else
     AC_MSG_RESULT(no)
   fi
   rm -f conftest*
  ])