The attachment adds the necessary (cached) check for aio.h before enabling fbtl:posix.
-Paul

On 2/17/2012 12:55 AM, Paul Hargrove wrote:
OpenBSD lacks an aio.h header.
configure knows this:

    $ grep aio.h configure.log
    checking aio.h usability... no
    checking aio.h presence... no
    checking for aio.h... no


Yet fbtl/posix is enabled, despite needing aio.h:

    checking if MCA component fbtl:posix can compile... yes


I am guessing this problem will appear on any platform w/o aio.h.

I think is just a simple matter of requiring OPAL_HAVE_AIO_H when "checking if component fbtl:posix can compile".

-Paul

--
Paul H. Hargrove phhargr...@lbl.gov <mailto:phhargr...@lbl.gov>
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

--
Paul H. Hargrove                          phhargr...@lbl.gov
Future Technologies Group
HPC Research Department                   Tel: +1-510-495-2352
Lawrence Berkeley National Laboratory     Fax: +1-510-486-6900

Index: ompi/mca/fbtl/posix/configure.m4
===================================================================
--- ompi/mca/fbtl/posix/configure.m4	(revision 0)
+++ ompi/mca/fbtl/posix/configure.m4	(revision 0)
@@ -0,0 +1,34 @@
+# -*- shell-script -*-
+#
+# Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
+#                         University Research and Technology
+#                         Corporation.  All rights reserved.
+# Copyright (c) 2004-2005 The University of Tennessee and The University
+#                         of Tennessee Research Foundation.  All rights
+#                         reserved.
+# Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, 
+#                         University of Stuttgart.  All rights reserved.
+# Copyright (c) 2004-2012 The Regents of the University of California.
+#                         All rights reserved.
+# Copyright (c) 2010      Cisco Systems, Inc.  All rights reserved.
+# Copyright (c) 2008-2011 University of Houston. All rights reserved.
+# $COPYRIGHT$
+# 
+# Additional copyrights may follow
+# 
+# $HEADER$
+#
+
+
+# MCA_fbtl_posix_CONFIG(action-if-can-compile, 
+#                        [action-if-cant-compile])
+# ------------------------------------------------
+AC_DEFUN([MCA_ompi_fbtl_posix_CONFIG],[
+    AC_CHECK_HEADER([aio.h],
+                    [fbtl_posix_happy="yes"],
+                    [fbtl_posix_happy="no"])
+
+    AS_IF([test "$fbtl_posix_happy" = "yes"],
+          [$1],
+          [$2])
+])dnl

Reply via email to