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

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.29 by gbeauche, 2004-06-27T18:14:43Z vs.
Revision 1.30 by gbeauche, 2004-06-27T22:06:02Z

# Line 258 | Line 258 | AC_HEADER_STDC
258   AC_CHECK_HEADERS(unistd.h fcntl.h sys/types.h sys/time.h sys/mman.h mach/mach.h)
259   AC_CHECK_HEADERS(readline.h history.h readline/readline.h readline/history.h)
260   AC_CHECK_HEADERS(linux/if.h linux/if_tun.h net/if.h net/if_tun.h)
261 + AC_CHECK_HEADERS(AvailabilityMacros.h)
262  
263   dnl Checks for typedefs, structures, and compiler characteristics.
264   AC_C_BIGENDIAN
# Line 350 | Line 351 | AC_CHECK_FILE([/dev/ptc],
351   dnl (end of code from openssh-3.2.2p1 configure.ac)
352  
353  
354 + dnl AC_CHECK_FRAMEWORK($1=NAME, $2=INCLUDES)
355 + AC_DEFUN(AC_CHECK_FRAMEWORK, [
356 +  AS_VAR_PUSHDEF([ac_Framework], [ac_cv_framework_$1])dnl
357 +  AC_CACHE_CHECK([whether compiler supports framework $1],
358 +    ac_Framework, [
359 +    saved_LIBS="$LIBS"
360 +    LIBS="$LIBS -framework $1"
361 +    AC_TRY_LINK(
362 +      [$2], [int main(void) { return 0; }],
363 +      [AS_VAR_SET(ac_Framework, yes)], [AS_VAR_SET(ac_Framework, no); LIBS="$saved_LIBS"]
364 +    )
365 +  ])
366 +  AS_IF([test AS_VAR_GET(ac_Framework) = yes],
367 +    [AC_DEFINE(AS_TR_CPP(HAVE_FRAMEWORK_$1), 1, [Define if framework $1 is available.])]
368 +  )
369 +  AS_VAR_POPDEF([ac_Framework])dnl
370 + ])
371 +
372 + dnl Check for some MacOS X frameworks
373 + AC_CHECK_FRAMEWORK(Carbon, [#include <Carbon/Carbon.h>])
374 + AC_CHECK_FRAMEWORK(IOKit, [#include <IOKit/IOKitLib.h>])
375 +
376   dnl Select system-dependant source files.
377   SERIALSRC=serial_unix.cpp
378   ETHERSRC=../dummy/ether_dummy.cpp
# Line 410 | Line 433 | irix*)
433    dnl Do a test compile of an empty function
434    AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
435    CFLAGS="$ocflags"
436 <
436 >  ;;
437 > darwin*)
438 >  if [[ "x$ac_cv_framework_IOKit" = "xyes" ]]; then
439 >    EXTRASYSSRCS="../MacOSX/sys_darwin.cpp"
440 >  fi
441    ;;
442   esac
443   dnl SDL overrides
# Line 418 | Line 445 | if [[ "x$WANT_SDL" = "xyes" ]]; then
445    AC_DEFINE(USE_SDL, 1, [Define to enble SDL support])
446   fi
447   if [[ "x$WANT_SDL_VIDEO" = "xyes" ]]; then
448 <  VIDEOSRCS="../SDL/video_sdl.cpp ../dummy/clip_dummy.cpp"
448 >  VIDEOSRCS="../SDL/video_sdl.cpp"
449    AC_DEFINE(USE_SDL_VIDEO, 1, [Define to enable SDL video graphics support])
450    KEYCODES="../SDL/keycodes"
451 +  if [[ "x$ac_cv_framework_Carbon" = "xyes" ]]; then
452 +    EXTRASYSSRCS="$EXTRASYSSRCS ../MacOSX/clip_macosx.cpp"
453 +  else
454 +    EXTRASYSSRCS="$EXTRASYSSRCS ../dummy/clip_dummy.cpp"
455 +  fi
456   else
457 <  VIDEOSRCS="video_x.cpp clip_unix.cpp"
457 >  VIDEOSRCS="video_x.cpp"
458    KEYCODES="keycodes"
459 +  EXTRASYSSRCS="$EXTRASYSSRCS clip_unix.cpp"
460   fi
461  
462   dnl Use 68k CPU natively?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines