/[pcsx2_0.9.7]/branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/configure.ac
ViewVC logotype

Annotation of /branch/debug/0.X/0.9.X/0.9.7/r3113/plugins/CDVDiso/src/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 59 - (hide annotations) (download)
Tue Sep 7 06:17:51 2010 UTC (10 years, 7 months ago) by william
File size: 2487 byte(s)
create working branch for pcsx2-0.9.7-r3113-debug
1 william 31 AC_INIT(CDVDiso, 0.9,arcum42@gmail.com)
2    
3     AM_INIT_AUTOMAKE(CDVDiso,0.9)
4    
5     AC_PROG_CC([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
6     AC_PROG_CXX([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
7     AC_PROG_CPP([gcc g++ cl KCC CC cxx cc++ xlC aCC c++])
8    
9     AC_PROG_INSTALL
10     AC_PROG_RANLIB
11    
12     dnl necessary for compiling assembly
13     AM_PROG_AS
14    
15     AC_SUBST(CDVDiso_CURRENT, 0)
16     AC_SUBST(CDVDiso_REVISION, 9)
17     AC_SUBST(CDVDiso_AGE, 0)
18     AC_SUBST(CDVDiso_RELEASE,[$CDVDiso_CURRENT].[$CDVDiso_REVISION].[$CDVDiso_AGE])
19     AC_SUBST(CDVDiso_SONAME,libCDVDiso.so.[$CDVDiso_CURRENT].[$CDVDiso_REVISION].[$CDVDiso_AGE])
20    
21     CFLAGS=
22     CPPFLAGS=
23     CXXFLAGS=
24     CCASFLAGS=
25    
26     dnl Check for debug build
27     AC_MSG_CHECKING(debug build)
28     AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug], [debug build]),
29     debug=$enableval,debug=no)
30     if test "x$debug" == xyes
31     then
32     AC_DEFINE(PCSX2_DEBUG,1,[PCSX2_DEBUG])
33     CFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
34     CPPFLAGS+=" -g -fPIC -Wall -Wno-unused-value -m32 "
35     CXXFLAGS+=" -g -fPIC -Wall -Wno-unused-value -fpermissive -m32 "
36     CCASFLAGS+=" -m32 "
37     else
38     AC_DEFINE(NDEBUG,1,[NDEBUG])
39     CFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
40     CPPFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -m32 "
41     CXXFLAGS+=" -O3 -fomit-frame-pointer -fPIC -Wno-unused-value -fpermissive -m32 "
42     CCASFLAGS+=" -m32 "
43     fi
44     AM_CONDITIONAL(DEBUGBUILD, test x$debug = xyes)
45     AC_MSG_RESULT($debug)
46    
47     AC_DEFINE(__LINUX__,1,[__LINUX__])
48     AC_DEFINE(_FILE_OFFSET_BITS,64,[_FILE_OFFSET_BITS])
49    
50     dnl Check for dev build
51     AC_MSG_CHECKING(for development build...)
52     AC_ARG_ENABLE(devbuild, AC_HELP_STRING([--enable-devbuild], [Special Build for developers that simplifies testing and adds extra checks]),
53     devbuild=$enableval,devbuild=no)
54     if test "x$devbuild" == xyes
55     then
56     AC_DEFINE(CDVDiso_DEVBUILD,1,[CDVDiso_DEVBUILD])
57     fi
58     AC_MSG_RESULT($devbuild)
59     AM_CONDITIONAL(RELEASE_TO_PUBLIC, test x$devbuild = xno)
60    
61     AC_CHECK_FUNCS([ _aligned_malloc _aligned_free ], AC_DEFINE(HAVE_ALIGNED_MALLOC))
62    
63     dnl gtk
64     AC_MSG_CHECKING(gtk2+)
65     AC_CHECK_PROG(GTK_CONFIG, pkg-config, pkg-config)
66     LIBS+=$(pkg-config --libs gtk+-2.0)
67    
68     dnl bindir = pcsx2exe
69    
70     dnl assuming linux environment
71     so_ext=".so.$CDVDiso_RELEASE"
72     SHARED_LDFLAGS="-shared"
73     AC_SUBST(so_ext)
74     AC_SUBST(SHARED_LDFLAGS)
75    
76     AC_CHECK_LIB(stdc++,main,[LIBS="$LIBS -lstdc++"])
77     AC_CHECK_LIB(z,main,[LIBS="$LIBS -lz"])
78     AC_CHECK_LIB(bz2,main,[LIBS="$LIBS -lbz2"])
79    
80     AC_OUTPUT([
81     Makefile
82     ])
83    
84     echo "Configuration:"
85     echo " Debug build? $debug"
86     echo " Dev build? $devbuild"

  ViewVC Help
Powered by ViewVC 1.1.22