source: trunk/essentials/sys-devel/automake-1.10/m4/upc.m4

Last change on this file was 3147, checked in by bird, 18 years ago

automake 1.10

File size: 832 bytes
Line 
1# Find a compiler for Unified Parallel C. -*- Autoconf -*-
2
3# Copyright (C) 2006 Free Software Foundation, Inc.
4#
5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,
7# with or without modifications, as long as this notice is preserved.
8
9AC_DEFUN([AM_PROG_UPC],
10[dnl We need OBJEXT and EXEEXT, but Autoconf doesn't offer any public
11dnl macro to compute them. Use AC_PROG_CC instead.
12AC_REQUIRE([AC_PROG_CC])dnl
13AC_ARG_VAR([UPC], [Unified Parallel C compiler command])dnl
14AC_ARG_VAR([UPCFLAGS], [Unified Parallel C compiler flags])dnl
15AC_CHECK_TOOLS([UPC], [m4_default([$1], [upcc upc])], [:])
16if test "$UPC" = :; then
17 AC_MSG_ERROR([no Unified Parallel C compiler was found], [77])
18fi
19_AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([UPC])])dnl
20])
Note: See TracBrowser for help on using the repository browser.