File: md_check_arg_compiler_helper.m4

package info (click to toggle)
libphidgets 0.3.8-1.2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,996 kB
  • ctags: 257
  • sloc: sh: 8,803; ansic: 1,753; makefile: 276
file content (18 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
AC_DEFUN([MD_CHECK_ARG_COMPILER_HELPER],
  AC_BEFORE([$0], [AC_PROG_LIBTOOL])
  [
    AC_BEFORE([MD_CHECK_ARG_COMPILER_HELPER], [AC_PROG_LIBTOOL])
    MD_CHECK_ARG_WITH($1, $2,
      [
        AC_CHECK_PROG(HAVE_$1, $path, yes)
        if test "$HAVE_$1" = "yes"; then
          AC_MSG_NOTICE([$path found. using $1.])
          CC="$path $CC"
          CXX="$path $CXX"
          $3
        else
          AC_MSG_WARN([$path not found. not using $1.])
          $4
        fi
      ])
  ])