summaryrefslogblamecommitdiffstats
path: root/libpit/configure.ac
blob: 484782898e2f012c1be3209cc4de41393f9a575a (plain) (tree)
1
2
3
4
5
6
7
8
                                                                                                       




                                                

                                            


         
                                     








                                                
                   



                                                  
                              



                                                    
                   



                                                    
                   







                                                    
AC_INIT([libpit], [1.4], [bug-report@glassechidna.com.au], [libpit], [http://www.glassechidna.com.au/])
AC_PREREQ([2.59])
AC_CANONICAL_TARGET
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.10 -Wall no-define foreign])
AC_CONFIG_HEADERS([config.h])
AM_PROG_AR
m4_pattern_allow([AM_PROG_PR], [AM_PROG_AR])

LT_INIT()

AC_SUBST([LIBPIT_API_VERSION], [1.4])
AC_CONFIG_FILES([Makefile])

AM_MAINTAINER_MODE

AC_MSG_CHECKING([operating system])
case $target in
*-linux*)
	AC_DEFINE(OS_LINUX, [], [Linux backend])
	AC_MSG_RESULT([Linux])
	AC_PROG_CXX
	;;
*-darwin*)
	AC_DEFINE(OS_DARWIN, [], [Darwin backend])
	AC_MSG_RESULT([Darwin/MacOS X])
	AC_PROG_CXX([clang++])
	;;
*-mingw*)
	AC_DEFINE(OS_WINDOWS, [], [Windows backend])
	AC_MSG_RESULT([Windows])
	AC_PROG_CXX
	;;
*-cygwin*)
	AC_DEFINE(OS_WINDOWS, [], [Windows backend])
	AC_MSG_RESULT([Windows])
	AC_PROG_CXX
	;;
*)
	AC_MSG_ERROR([unsupported operating system])
esac

AC_C_BIGENDIAN

AC_OUTPUT