AC_INIT(./src/) AC_CANONICAL_SYSTEM dnl What target are we compiling for? AC_ARG_ENABLE(target, [ --enable-target What target are we compiling for? (default=noarch)] , , [enable_target="noarch"]) AC_MSG_CHECKING("what target we are compiling for") AC_MSG_RESULT($enable_target) dnl Shall we use the cps namespace? AC_ARG_ENABLE(namespace, [ --enable-namespace Build the library inside a 'cps' namespace. (default=no for QCDOC, yes otherwise)] , , [enable_namespace="no"]) AC_MSG_CHECKING("whether we are using the namespace") AC_MSG_RESULT($enable_namespace) if test "$enable_namespace" = "yes"; then ENABLE_NAMESPACE='--enable-namespace=yes' else ENABLE_NAMESPACE='' fi case "$enable_target" in qcdoc) BUILD=$build HOST=powerpc-gnu-elf ENABLE_TARGET='--enable-target=qcdoc' ;; bgl) BUILD=$build HOST=powerpc-bgl-blrts-gnu ENABLE_TARGET='--enable-target=bgl' ;; bgp) BUILD=$build HOST=powerpc-bgp-linux ENABLE_TARGET='--enable-target=bgp' ;; bgq) BUILD=$build HOST=powerpc64-bgq-linux ENABLE_TARGET='--enable-target=bgq' ;; *) BUILD=$build HOST=$host ENABLE_TARGET='' ;; esac AC_SUBST(BUILD) AC_SUBST(HOST) AC_SUBST(ENABLE_TARGET) AC_SUBST(ENABLE_NAMESPACE) dnl AC_SUBST(QOS) AC_OUTPUT(config_wrapper)