2006-08-15 20:37:04 +00:00
|
|
|
AC_DEFUN([TARGET_SHIZZLE],
|
|
|
|
[
|
|
|
|
ARCH=""
|
2009-03-16 19:07:45 +00:00
|
|
|
LIBBURNIA_PKGCONFDIR="$libdir"/pkgconfig
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
AC_MSG_CHECKING([target operating system])
|
|
|
|
|
2009-03-16 19:07:45 +00:00
|
|
|
|
2006-08-15 20:37:04 +00:00
|
|
|
case $target in
|
|
|
|
*-*-linux*)
|
|
|
|
ARCH=linux
|
2006-10-12 17:33:22 +00:00
|
|
|
LIBBURN_ARCH_LIBS=
|
|
|
|
;;
|
|
|
|
*-*-freebsd*)
|
|
|
|
ARCH=freebsd
|
|
|
|
LIBBURN_ARCH_LIBS=-lcam
|
2009-03-16 19:07:45 +00:00
|
|
|
LIBBURNIA_PKGCONFDIR=$(echo "$libdir" | sed 's/\/lib$/\/libdata/')/pkgconfig
|
2006-08-15 20:37:04 +00:00
|
|
|
;;
|
|
|
|
*)
|
2009-03-05 14:53:00 +00:00
|
|
|
ARCH=
|
|
|
|
LIBBURN_ARCH_LIBS=
|
|
|
|
# AC_ERROR([You are attempting to compile for an unsupported platform])
|
2006-08-15 20:37:04 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
AC_MSG_RESULT([$ARCH])
|
|
|
|
])
|