ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/configure.in
(Generate patch)

Comparing SheepShaver/src/Unix/configure.in (file contents):
Revision 1.29 by gbeauche, 2004-06-26T15:26:17Z vs.
Revision 1.30 by gbeauche, 2004-06-27T22:12:52Z

# Line 273 | Line 273 | no:linux*)
273    ;;
274   esac
275  
276 + dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES)
277 + AC_DEFUN(AC_CHECK_FRAMEWORK, [
278 +  AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl
279 +  AC_CACHE_CHECK([whether compiler supports framework $1],
280 +    ac_Framework, [
281 +    saved_LIBS="$LIBS"
282 +    LIBS="$LIBS -framework $1"
283 +    AC_TRY_LINK(
284 +      [$2], [int main(void) { return 0; }],
285 +      [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
286 +    )
287 +  ])
288 +  AS_IF([test AS_VAR_GET(ac_Framework) = yes],
289 +    [AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework $1 is available.])]
290 +  )
291 +  AS_VAR_POPDEF([ac_Framework])dnl
292 + ])
293 +
294 + dnl Check for some MacOS X frameworks
295 + AC_CHECK_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>])
296 + AC_CHECK_FRAMEWORK(IOKit, [#include <IOKit/IOKitLib.h>])
297 +
298   dnl Select system-dependant sources.
299   SERIALSRC=serial_unix.cpp
300   ETHERSRC=../dummy/ether_dummy.cpp
# Line 292 | Line 314 | darwin*)
314    if [[ "x$EMULATED_PPC" = "xno" ]]; then
315      EXTRASYSSRCS="Darwin/paranoia.cpp Linux/asm_linux.S"
316    fi
317 +  if [[ "x$ac_cv_framework_IOKit" = "xyes" ]]; then
318 +    EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/sys_darwin.cpp"
319 +  fi
320    ;;
321   esac
322  
# Line 300 | Line 325 | if [[ "x$WANT_SDL" = "xyes" ]]; then
325    AC_DEFINE(USE_SDL, 1, [Define to enble SDL support])
326   fi
327   if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
328 <  VIDEOSRCS="../SDL/video_sdl.cpp ../dummy/clip_dummy.cpp"
328 >  VIDEOSRCS="../SDL/video_sdl.cpp"
329    AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support])
330 +  KEYCODES="../SDL/keycodes"
331 +  if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
332 +    EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/clip_macosx.cpp"
333 +  else
334 +    EXTRASYSSRCS="$EXTRASYSSRCS ../dummy/clip_dummy.cpp"
335 +  fi
336   else
337 <  VIDEOSRCS="video_x.cpp clip_unix.cpp"
337 >  VIDEOSRCS="video_x.cpp"
338 >  KEYCODES="keycodes"
339 >  EXTRASYSSRCS="$EXTRASYSSRCS clip_unix.cpp"
340   fi
341  
342   SYSSRCS="$VIDEOSRCS $SERIALSRC $ETHERSRC $SCSISRC $AUDIOSRC $SEMSRC $UISRCS $MONSRCS $EXTRASYSSRCS"
# Line 868 | Line 901 | AC_SUBST(DYNGEN_OP_FLAGS)
901   AC_SUBST(SYSSRCS)
902   AC_SUBST(CPUSRCS)
903   AC_SUBST(BLESS)
904 + AC_SUBST(KEYCODES)
905   AC_OUTPUT(Makefile)
906  
907   dnl Print summary.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines