Index: ompi/mca/io/romio/romio/configure.in
===================================================================
--- ompi/mca/io/romio/romio/configure.in	(revision 14962)
+++ ompi/mca/io/romio/romio/configure.in	(working copy)
@@ -1365,7 +1365,7 @@
     # aio_read correctly

     AC_MSG_CHECKING([for obsolete two-argument aio_write])
-    AC_TRY_RUN([
+    AC_TRY_COMPILE([
 #include <sys/types.h>
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>
@@ -1376,13 +1376,10 @@
 #ifdef HAVE_SYS_AIO_H
 #include <sys/aio.h>
 #endif
-	int main(int argc, char **argv)
-	{
+        ],[
 		int fd;
 		struct aiocb *aiocbp;
 		if (argc > 10) aio_write(fd, aiocbp);
-		return 0;
-	}
 	],
 	aio_two_arg_write=yes
 	AC_MSG_RESULT(yes),
@@ -1398,7 +1395,7 @@
     fi

     AC_MSG_CHECKING([for obsolete two-argument aio_suspend])
-    AC_TRY_RUN([
+    AC_TRY_COMPILE([
 #include <sys/types.h>
 #ifdef HAVE_SIGNAL_H
 #include <signal.h>
@@ -1409,12 +1406,9 @@
 #ifdef HAVE_SYS_AIO_H
 #include <sys/aio.h>
 #endif
-	int main(int argc, char **argv)
-	{
-		struct aiocb *aiocbp;
-		if (argc > 10) aio_suspend(1, &aiocbp);
-		return 0;
-	}
+        ],[
+            struct aiocb *aiocbp;
+            if (argc > 10) aio_suspend(1, &aiocbp);
 	],
 	aio_two_arg_suspend=yes
 	AC_MSG_RESULT(yes),
