Fresco/Fresco-C++ configure.ac,1.35,1.36

Tobias Hunger <[email protected]> Thu, 28 Aug 2003 11:16:44 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Fresco-C++
In directory purcel:/tmp/cvs-serv24278/Fresco-C++

Modified Files:
	configure.ac 
Log Message:
Make configure fail on missing corba environment. Closes: bug277


Index: configure.ac
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++/configure.ac,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- configure.ac	14 May 2003 22:42:10 -0000	1.35
+++ configure.ac	28 Aug 2003 16:16:40 -0000	1.36
@@ -48,12 +48,16 @@
 dnl ------------------------------------------------------------------
 
 FRESCO_ORB
-MAKEFILE=
-if test ".$ORB" = .omniORB ; then
-  MAKEFILE="Makefile.omniorb.in"
-elif test ".$ORB" = .TAO ; then
-  MAKEFILE="Makefile.tao.in"
-fi
+MAKEFILE="UNKNOWN"
+case $supported_orb_found in
+omniORB)
+    MAKEFILE="Makefile.omniorb"
+    ;;
+TAO)
+    MAKEFILE="Makefile.tao"
+    ;;
+esac
+AC_SUBST(MAKEFILE)
 
 dnl ------------------------------------------------------------------
 dnl General flags
@@ -91,7 +95,7 @@
 AC_CONFIG_FILES([config/Fresco-C++-config], [chmod +x config/Fresco-C++-config])
 AC_CONFIG_FILES([bin/Fresco-C++-config:config/Fresco-C++-build-config.in], [chmod +x bin/Fresco-C++-config])
 AC_CONFIG_FILES([config/Fresco-C++.spec])
-AC_CONFIG_FILES([Makefile src/Makefile:config/$MAKEFILE])
+AC_CONFIG_FILES([Makefile src/Makefile:config/${MAKEFILE}.in])
 
 mkdir -p lib
 mkdir -p bin