| 1 | dnl |
|---|
| 2 | dnl Configure.ac for openlibraries |
|---|
| 3 | dnl |
|---|
| 4 | |
|---|
| 5 | AC_INIT |
|---|
| 6 | AC_CONFIG_SRCDIR([src/openobjectlib/sg/core.hpp]) |
|---|
| 7 | AM_CONFIG_HEADER([openlibraries_global_config.hpp]) |
|---|
| 8 | |
|---|
| 9 | dnl |
|---|
| 10 | dnl Require autoconf version 2.56 |
|---|
| 11 | dnl |
|---|
| 12 | AC_PREREQ(2.56) |
|---|
| 13 | |
|---|
| 14 | dnl |
|---|
| 15 | dnl Versioning |
|---|
| 16 | dnl |
|---|
| 17 | OL_MAJOR=0 |
|---|
| 18 | OL_MINOR=5 |
|---|
| 19 | OL_SUB=0 |
|---|
| 20 | |
|---|
| 21 | OL_LT_CURRENT=0 |
|---|
| 22 | OL_LT_REVISION=5 |
|---|
| 23 | OL_LT_AGE=0 |
|---|
| 24 | |
|---|
| 25 | AC_SUBST(OL_MAJOR) |
|---|
| 26 | AC_SUBST(OL_MINOR) |
|---|
| 27 | AC_SUBST(OL_SUB) |
|---|
| 28 | |
|---|
| 29 | AC_SUBST(OL_LT_CURRENT) |
|---|
| 30 | AC_SUBST(OL_LT_REVISION) |
|---|
| 31 | AC_SUBST(OL_LT_AGE) |
|---|
| 32 | |
|---|
| 33 | dnl |
|---|
| 34 | AM_INIT_AUTOMAKE("openlibraries", 0.5.0) |
|---|
| 35 | |
|---|
| 36 | dnl Check for programs |
|---|
| 37 | AC_PROG_CXX |
|---|
| 38 | AC_HEADER_STDC |
|---|
| 39 | AC_PROG_MAKE_SET |
|---|
| 40 | AC_PROG_INSTALL |
|---|
| 41 | AC_PROG_LN_S |
|---|
| 42 | |
|---|
| 43 | dnl Check if specific olibs should be disabled |
|---|
| 44 | AC_ARG_ENABLE(glew, AC_HELP_STRING([--disable-glew], [disable GLEW dependent parts]), [enableglew=$enableval], [enableglew=yes]) |
|---|
| 45 | if test "$enableglew" = "no" ; then |
|---|
| 46 | AC_MSG_WARN([*** GLEW is disabled - continuing build with non-opengl dependent components ***]) |
|---|
| 47 | fi |
|---|
| 48 | |
|---|
| 49 | AC_ARG_ENABLE(openassetlib, AC_HELP_STRING([--with-openassetlib], [disable openassetlib]), [enableassetlib=$enableval], [enableassetlib=yes]) |
|---|
| 50 | if test "x$enableassetlib" = "xyes" && test "x$enableglew" = "xyes" ; then |
|---|
| 51 | AC_DEFINE(HAVE_OPENASSETLIB,1,[Defined if you have openassetlib]) |
|---|
| 52 | fi |
|---|
| 53 | AM_CONDITIONAL(HAVE_OPENASSETLIB, [test "x$enableassetlib" = "xyes" && test "x$enableglew" = "xyes"]) |
|---|
| 54 | |
|---|
| 55 | AC_ARG_ENABLE(openeffectlib, AC_HELP_STRING([--with-openeffectlib], [disable openeffectlib]), [enableeffectlib=$enableval], [enableeffectlib=yes]) |
|---|
| 56 | if test "x$enableeffectlib" = "xyes" && test "x$enableglew" = "xyes" ; then |
|---|
| 57 | AC_DEFINE(HAVE_OPENEFFECTLIB,1,[Defined if you have openeffectlib]) |
|---|
| 58 | fi |
|---|
| 59 | AM_CONDITIONAL(HAVE_OPENEFFECTLIB, [test "x$enableeffectlib" = "xyes" && test "x$enableglew" = "xyes"]) |
|---|
| 60 | |
|---|
| 61 | AC_ARG_ENABLE(openobjectlib, AC_HELP_STRING([--with-openobjectlib], [disable openobjectlib]), [enableobjectlib=$enableval], [enableobjectlib=yes]) |
|---|
| 62 | if test "x$enableobjectlib" = "xyes" && test "x$enableglew" = "xyes" ; then |
|---|
| 63 | AC_DEFINE(HAVE_OPENOBJECTLIB, 1,[Defined if you have openobjectlib]) |
|---|
| 64 | fi |
|---|
| 65 | AM_CONDITIONAL(HAVE_OPENOBJECTLIB, [test "x$enableobjectlib" = "xyes" && test "x$enableglew" = "xyes"]) |
|---|
| 66 | |
|---|
| 67 | AC_ARG_ENABLE(pool, AC_HELP_STRING([--disable-pool], [disable memory pooling]), [enablepool=$enableval], [enablepool=yes]) |
|---|
| 68 | if test "$enablepool" = "yes" ; then |
|---|
| 69 | AC_DEFINE(HAVE_POOLING, 1,[Define this if you want memory pooling]) |
|---|
| 70 | fi |
|---|
| 71 | |
|---|
| 72 | dnl libtool |
|---|
| 73 | AC_LIBTOOL_DLOPEN |
|---|
| 74 | AC_DISABLE_STATIC |
|---|
| 75 | AC_PROG_LIBTOOL |
|---|
| 76 | AC_SUBST(LIBTOOL_DEPS) |
|---|
| 77 | |
|---|
| 78 | dnl dl support |
|---|
| 79 | AC_CHECK_LIB(dl, dlopen, |
|---|
| 80 | have_dl=yes DL_LIBS="-ldl", |
|---|
| 81 | AC_MSG_ERROR([*** dynamic loading support is not available. Compilation will fail. ***])) |
|---|
| 82 | AC_SUBST(DL_LIBS) |
|---|
| 83 | |
|---|
| 84 | dnl determine libdir name. tests for 64bit. (from xine-lib). |
|---|
| 85 | AC_MSG_CHECKING([if compiler is 64bit]) |
|---|
| 86 | case $host in |
|---|
| 87 | *-*-linux*) |
|---|
| 88 | # Test if the compiler is 64bit |
|---|
| 89 | echo 'int i;' > conftest.$ac_ext |
|---|
| 90 | ol_cv_cc_64bit_output=no |
|---|
| 91 | if AC_TRY_EVAL(ac_compile); then |
|---|
| 92 | case `/usr/bin/file conftest.$ac_objext` in |
|---|
| 93 | *"ELF 64"*) |
|---|
| 94 | ol_cv_cc_64bit_output=yes |
|---|
| 95 | ;; |
|---|
| 96 | esac |
|---|
| 97 | fi |
|---|
| 98 | rm -rf conftest* |
|---|
| 99 | ;; |
|---|
| 100 | esac |
|---|
| 101 | |
|---|
| 102 | case $host_cpu:$ol_cv_cc_64bit_output in |
|---|
| 103 | powerpc64:yes | x86_64:yes) |
|---|
| 104 | OL_LIBNAME="lib64" |
|---|
| 105 | if test "$libdir" = '${exec_prefix}/lib'; then |
|---|
| 106 | libdir='${exec_prefix}/lib64' |
|---|
| 107 | fi |
|---|
| 108 | ;; |
|---|
| 109 | *:*) |
|---|
| 110 | OL_LIBNAME="lib" |
|---|
| 111 | ;; |
|---|
| 112 | esac |
|---|
| 113 | AC_MSG_RESULT([$OL_LIBNAME]) |
|---|
| 114 | AC_SUBST(OL_LIBNAME) |
|---|
| 115 | |
|---|
| 116 | dnl C math library. |
|---|
| 117 | AC_CHECK_LIB(m, sin) |
|---|
| 118 | |
|---|
| 119 | dnl zlib support |
|---|
| 120 | AC_CHECK_ZLIB( ) |
|---|
| 121 | |
|---|
| 122 | dnl bzip2 support |
|---|
| 123 | AC_CHECK_BZIP2( ) |
|---|
| 124 | |
|---|
| 125 | dnl SQLite support |
|---|
| 126 | AC_CHECK_SQLITE3( ) |
|---|
| 127 | |
|---|
| 128 | dnl check for X11 |
|---|
| 129 | AC_PATH_XTRA |
|---|
| 130 | if test x"$no_x" != "xyes"; then |
|---|
| 131 | AC_DEFINE(HAVE_X11,1,[Define this if you have X11R6 installed]) |
|---|
| 132 | fi |
|---|
| 133 | AM_CONDITIONAL(HAVE_X11, [test x"$no_x" != "xyes"]) |
|---|
| 134 | |
|---|
| 135 | dnl OpenGL, GLU, GLUT support |
|---|
| 136 | OPL_EXTRA_LIBS="" |
|---|
| 137 | AC_MSG_CHECKING([the OpenGL environment]) |
|---|
| 138 | case $host in |
|---|
| 139 | *-*-linux*) |
|---|
| 140 | AC_CHECK_OPENGL( ) |
|---|
| 141 | ;; |
|---|
| 142 | *-apple-darwin*) |
|---|
| 143 | if test "x$enableglew" = "xyes" ; then |
|---|
| 144 | AC_MSG_RESULT([Apple Darwin build. OpenGL defaults on OSX...]) |
|---|
| 145 | AM_CONDITIONAL(HAVE_GL_GL_H, [test x"yes" = x"yes"] ) |
|---|
| 146 | AM_CONDITIONAL(HAVE_GL_GLUT_H, [test x"yes" = x"yes"] ) |
|---|
| 147 | OPENGL_LIBS="-Xlinker -framework -Xlinker OpenGL" |
|---|
| 148 | GLUT_LIBS="-Xlinker -framework -Xlinker GLUT" |
|---|
| 149 | else |
|---|
| 150 | OPL_EXTRA_LIBS="-Xlinker -framework -Xlinker Carbon" |
|---|
| 151 | AM_CONDITIONAL(HAVE_GL_GL_H, [false]) |
|---|
| 152 | AM_CONDITIONAL(HAVE_GL_GLUT_H, [false]) |
|---|
| 153 | fi |
|---|
| 154 | AC_SUBST(OPENGL_LIBS) |
|---|
| 155 | AC_SUBST(GLUT_LIBS) |
|---|
| 156 | ;; |
|---|
| 157 | *) |
|---|
| 158 | AC_MSG_RESULT([OpenGL configuration not tested.]) |
|---|
| 159 | AM_CONDITIONAL(HAVE_GL_GL_H, [false]) |
|---|
| 160 | AM_CONDITIONAL(HAVE_GL_GLUT_H, [false]) |
|---|
| 161 | ;; |
|---|
| 162 | esac |
|---|
| 163 | AC_SUBST(OPL_EXTRA_LIBS) |
|---|
| 164 | |
|---|
| 165 | dnl GLEW support |
|---|
| 166 | AC_CHECK_GLEW( ) |
|---|
| 167 | |
|---|
| 168 | dnl NVIDIA Cg runtime support |
|---|
| 169 | AC_CHECK_CG_RUNTIME( ) |
|---|
| 170 | |
|---|
| 171 | dnl OFX support |
|---|
| 172 | AC_CHECK_OFX( ) |
|---|
| 173 | |
|---|
| 174 | dnl Umbrella Framework |
|---|
| 175 | AC_CHECK_UMBRELLA_FRAMEWORK() |
|---|
| 176 | |
|---|
| 177 | dnl Boost support |
|---|
| 178 | AC_LANG([C++]) |
|---|
| 179 | AC_CHECK_BOOST( ) |
|---|
| 180 | |
|---|
| 181 | dnl libxml2 support |
|---|
| 182 | AC_PATH_PROG(LIBXML2_CONFIG, xml2-config, no) |
|---|
| 183 | if test "x$LIBXML2_CONFIG" = "xno" ; then |
|---|
| 184 | AC_MSG_RESULT([*** libxml2 support is not available ***]) |
|---|
| 185 | else |
|---|
| 186 | XML2_CXXFLAGS=`$LIBXML2_CONFIG --cflags` |
|---|
| 187 | XML2_LIBS=`$LIBXML2_CONFIG --libs` |
|---|
| 188 | have_libxml2="yes" |
|---|
| 189 | AC_DEFINE(HAVE_LIBXML2,1,[Define this for libxml2 support]) |
|---|
| 190 | fi |
|---|
| 191 | |
|---|
| 192 | AM_CONDITIONAL(HAVE_LIBXML2, test x"$have_libxml2" = "xyes") |
|---|
| 193 | AC_SUBST(XML2_CXXFLAGS) |
|---|
| 194 | AC_SUBST(XML2_LIBS) |
|---|
| 195 | |
|---|
| 196 | dnl OpenImageLib support |
|---|
| 197 | AC_MSG_NOTICE([*** Configuring OpenImageLib ***]) |
|---|
| 198 | AC_CHECK_OPENIMAGELIB( ) |
|---|
| 199 | AC_CHECK_TIFF( ) |
|---|
| 200 | |
|---|
| 201 | AC_CHECK_QUICKTIME( ) |
|---|
| 202 | |
|---|
| 203 | SWAB_AUDIO="" |
|---|
| 204 | AC_ARG_ENABLE(swab-audio, AC_HELP_STRING([--enable-swab-audio], [enable byte swapping of audio samples]), |
|---|
| 205 | [enableswabaudio=$enableval], [enableswabaudio=no]) |
|---|
| 206 | if test x$enableswabaudio = "xyes" ; then |
|---|
| 207 | SWAB_AUDIO="-DSWAB_AUDIO" |
|---|
| 208 | fi |
|---|
| 209 | AC_SUBST(SWAB_AUDIO) |
|---|
| 210 | |
|---|
| 211 | dnl include paths |
|---|
| 212 | INCLUDES='-I$(top_srcdir)/src' |
|---|
| 213 | AC_SUBST(INCLUDES) |
|---|
| 214 | |
|---|
| 215 | dnl OpenLibraries common flags |
|---|
| 216 | dnl NOTE: we could use $(var) instead of @var@ if we want late-expansion in the generated makefiles. |
|---|
| 217 | OLIB_CXXFLAGS='-fvisibility=hidden -fvisibility-inlines-hidden' |
|---|
| 218 | AC_SUBST(OLIB_CXXFLAGS) |
|---|
| 219 | |
|---|
| 220 | OLIB_LDFLAGS='' |
|---|
| 221 | |
|---|
| 222 | case $host in |
|---|
| 223 | *-*-linux*) |
|---|
| 224 | OLIB_LDFLAGS='-Wl,-export-dynamic' |
|---|
| 225 | ;; |
|---|
| 226 | *-apple-darwin*) |
|---|
| 227 | OLIB_LDFLAGS='-Wl,-headerpad_max_install_names' |
|---|
| 228 | ;; |
|---|
| 229 | esac |
|---|
| 230 | |
|---|
| 231 | AC_SUBST(OLIB_LDFLAGS) |
|---|
| 232 | |
|---|
| 233 | dnl Check for ffmpeg's libavformat |
|---|
| 234 | AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes) |
|---|
| 235 | if test "x$HAVE_PKG_CONFIG" = "xyes" ; then |
|---|
| 236 | PKG_CHECK_MODULES(LIBAVFORMAT, libavformat, libavformat="yes", libavformat="no") |
|---|
| 237 | if test x"$libavformat" = x"no"; then |
|---|
| 238 | AC_MSG_RESULT([*** ffmpeg development environment is not available ***]) |
|---|
| 239 | else |
|---|
| 240 | AC_DEFINE(HAVE_LIBAVFORMAT,1,[Define this if you have libavformat]) |
|---|
| 241 | AC_SUBST(LIBAVFORMAT_CFLAGS) |
|---|
| 242 | AC_SUBST(LIBAVFORMAT_LIBS) |
|---|
| 243 | fi |
|---|
| 244 | fi |
|---|
| 245 | AM_CONDITIONAL(HAVE_LIBAVFORMAT, [test x"$libavformat" = "xyes"]) |
|---|
| 246 | |
|---|
| 247 | dnl mlt support |
|---|
| 248 | AC_ARG_ENABLE(mlt, AC_HELP_STRING([--disable-mlt], [disable mlt dependent parts]), [enablemlt=$enableval], [enablemlt=yes]) |
|---|
| 249 | if test "$enablemlt" = "yes" ; then |
|---|
| 250 | AC_PATH_PROG(MLT_CONFIG, mlt-config, no) |
|---|
| 251 | if test "x$MLT_CONFIG" = "xno" ; then |
|---|
| 252 | AC_MSG_RESULT([*** mlt support is not available ***]) |
|---|
| 253 | else |
|---|
| 254 | AC_DEFINE(HAVE_LIBMLT,1,[Define this for mlt support]) |
|---|
| 255 | MLT_CXXFLAGS=`$MLT_CONFIG --cflags` |
|---|
| 256 | MLT_LIBS="-lmlt++ `$MLT_CONFIG --libs`" |
|---|
| 257 | AC_SUBST(MLT_CXXFLAGS) |
|---|
| 258 | AC_SUBST(MLT_LIBS) |
|---|
| 259 | have_libmlt="yes" |
|---|
| 260 | fi |
|---|
| 261 | fi |
|---|
| 262 | AM_CONDITIONAL(HAVE_LIBMLT, [test x"$have_libmlt" = "xyes"]) |
|---|
| 263 | |
|---|
| 264 | dnl sdl support |
|---|
| 265 | AC_PATH_PROG(SDL_CONFIG, sdl-config, no) |
|---|
| 266 | if test "x$SDL_CONFIG" = "xno" ; then |
|---|
| 267 | AC_MSG_RESULT([*** sdl support is not available ***]) |
|---|
| 268 | else |
|---|
| 269 | AC_DEFINE(HAVE_LIBSDL,1,[Define this for sdl support]) |
|---|
| 270 | SDL_CXXFLAGS=`$SDL_CONFIG --cflags` |
|---|
| 271 | SDL_LIBS=`$SDL_CONFIG --libs` |
|---|
| 272 | AC_SUBST(SDL_CXXFLAGS) |
|---|
| 273 | AC_SUBST(SDL_LIBS) |
|---|
| 274 | have_libsdl="yes" |
|---|
| 275 | fi |
|---|
| 276 | AM_CONDITIONAL(HAVE_LIBSDL, [test x"$have_libsdl" = "xyes"]) |
|---|
| 277 | |
|---|
| 278 | dnl qimage support |
|---|
| 279 | AC_CHECK_QT( ) |
|---|
| 280 | |
|---|
| 281 | dnl Check for ILM OpenEXR |
|---|
| 282 | if test "x$HAVE_PKG_CONFIG" = "xyes" ; then |
|---|
| 283 | PKG_CHECK_MODULES(OPENEXR, OpenEXR, OpenEXR="yes", OpenEXR="no") |
|---|
| 284 | if test x"$OpenEXR" = x"no"; then |
|---|
| 285 | AC_MSG_RESULT([*** ILM OpenEXR development environment is not available ***]) |
|---|
| 286 | else |
|---|
| 287 | AC_DEFINE(HAVE_OPENEXR,1,[Define this if you have ILM OpenEXR]) |
|---|
| 288 | AC_SUBST(OPENEXR_CFLAGS) |
|---|
| 289 | AC_SUBST(OPENEXR_LIBS) |
|---|
| 290 | fi |
|---|
| 291 | fi |
|---|
| 292 | AM_CONDITIONAL(HAVE_OPENEXR, [test x"$OpenEXR" = "xyes"]) |
|---|
| 293 | |
|---|
| 294 | dnl Check for openal |
|---|
| 295 | AC_CHECK_OPENAL_RUNTIME( ) |
|---|
| 296 | |
|---|
| 297 | dnl Check for gpl components |
|---|
| 298 | AC_CHECK_GPL( ) |
|---|
| 299 | |
|---|
| 300 | dnl Check for Python |
|---|
| 301 | AC_CHECK_PYTHON( ) |
|---|
| 302 | |
|---|
| 303 | dnl Universal Binary Support (OS X only) |
|---|
| 304 | AC_CHECK_UNIVERSAL_BINARY_SUPPORT( ) |
|---|
| 305 | |
|---|
| 306 | dnl Fast Math support |
|---|
| 307 | AC_CHECK_FAST_MATH( ) |
|---|
| 308 | |
|---|
| 309 | SHARED_EXT="so" |
|---|
| 310 | case $host in |
|---|
| 311 | *-apple-darwin*) |
|---|
| 312 | SHARED_EXT="dylib" |
|---|
| 313 | ;; |
|---|
| 314 | esac |
|---|
| 315 | AC_SUBST(SHARED_EXT) |
|---|
| 316 | |
|---|
| 317 | dnl include, lib and plugin path |
|---|
| 318 | OPENLIBRARIES_INCLUDEPATH="$includedir/openlibraries-$OL_MAJOR.$OL_MINOR.$OL_SUB" |
|---|
| 319 | OPENLIBRARIES_LIBPATH="$libdir/openlibraries-$OL_MAJOR.$OL_MINOR.$OL_SUB" |
|---|
| 320 | OPENLIBRARIES_DATAPATH="$datadir/openlibraries-$OL_MAJOR.$OL_MINOR.$OL_SUB" |
|---|
| 321 | OPENIMAGELIB_LIBPATH="${OPENLIBRARIES_LIBPATH}/openimagelib/$OL_LIBNAME" |
|---|
| 322 | OPENIMAGELIB_PLUGINPATH="${OPENLIBRARIES_LIBPATH}/openimagelib/plugins" |
|---|
| 323 | OPENMEDIALIB_LIBPATH="${OPENLIBRARIES_LIBPATH}/openmedialib/$OL_LIBNAME" |
|---|
| 324 | OPENMEDIALIB_PLUGINPATH="${OPENLIBRARIES_LIBPATH}/openmedialib/plugins" |
|---|
| 325 | OPENEFFECTSLIB_PLUGINPATH="${OPENLIBRARIES_LIBPATH}/openeffectslib/plugins" |
|---|
| 326 | OPENOBJECTLIB_LIBPATH="${OPENLIBRARIES_LIBPATH}/openobjectlib/$OL_LIBNAME" |
|---|
| 327 | OPENOBJECTLIB_PLUGINPATH="${OPENLIBRARIES_LIBPATH}/openobjectlib/plugins" |
|---|
| 328 | OPENOBJECTLIB_MEDIAPATH="$datadir/openlibraries-$OL_MAJOR.$OL_MINOR/media" |
|---|
| 329 | OPENOBJECTLIB_SHADERSPATH="${OPENLIBRARIES_DATAPATH}/shaders" |
|---|
| 330 | OPENASSETLIB_LIBPATH="${OPENLIBRARIES_LIBPATH}/openassetlib/$OL_LIBNAME" |
|---|
| 331 | OPENASSETLIB_PLUGINPATH="${OPENLIBRARIES_LIBPATH}/openassetlib/plugins" |
|---|
| 332 | OPENPLUGINLIB_LIBPATH="${OPENLIBRARIES_LIBPATH}/openpluginlib/$OL_LIBNAME" |
|---|
| 333 | OPENEFFECTSLIB_SHADERSPATH="${OPENLIBRARIES_DATAPATH}/shaders" |
|---|
| 334 | AC_SUBST(OPENIMAGELIB_LIBPATH) |
|---|
| 335 | AC_SUBST(OPENIMAGELIB_PLUGINPATH) |
|---|
| 336 | AC_SUBST(OPENMEDIALIB_LIBPATH) |
|---|
| 337 | AC_SUBST(OPENMEDIALIB_PLUGINPATH) |
|---|
| 338 | AC_SUBST(OPENEFFECTSLIB_PLUGINPATH) |
|---|
| 339 | AC_SUBST(OPENLIBRARIES_INCLUDEPATH) |
|---|
| 340 | AC_SUBST(OPENLIBRARIES_LIBPATH) |
|---|
| 341 | AC_SUBST(OPENLIBRARIES_DATAPATH) |
|---|
| 342 | AC_SUBST(OPENOBJECTLIB_LIBPATH) |
|---|
| 343 | AC_SUBST(OPENOBJECTLIB_MEDIAPATH) |
|---|
| 344 | AC_SUBST(OPENOBJECTLIB_PLUGINPATH) |
|---|
| 345 | AC_SUBST(OPENOBJECTLIB_SHADERSPATH) |
|---|
| 346 | AC_SUBST(OPENASSETLIB_LIBPATH) |
|---|
| 347 | AC_SUBST(OPENASSETLIB_PLUGINPATH) |
|---|
| 348 | AC_SUBST(OPENPLUGINLIB_LIBPATH) |
|---|
| 349 | |
|---|
| 350 | dnl pkg config link flags |
|---|
| 351 | OPENOBJECTLIB_LDFLAGS="" |
|---|
| 352 | if test "x$enableobjectlib" = "xyes" && test "x$enableglew" = "xyes" ; then |
|---|
| 353 | OPENOBJECTLIB_LDFLAGS="-L$OPENLIBRARIES_LIBPATH/openobjectlib/$OL_LIBNAME -lopenobjectlib_sg" |
|---|
| 354 | fi |
|---|
| 355 | AC_SUBST(OPENOBJECTLIB_LDFLAGS) |
|---|
| 356 | |
|---|
| 357 | OPENASSETLIB_LDFLAGS="" |
|---|
| 358 | if test "x$enableassetlib" = "xyes" && test "x$enableglew" = "xyes" ; then |
|---|
| 359 | OPENASSETLIB_LDFLAGS="-L$OPENLIBRARIES_LIBPATH/openassetlib/$OL_LIBNAME -lopenassetlib_al" |
|---|
| 360 | fi |
|---|
| 361 | AC_SUBST(OPENASSETLIB_LDFLAGS) |
|---|
| 362 | |
|---|
| 363 | OPENMEDIALIB_LDFLAGS="-L$OPENLIBRARIES_LIBPATH/openmedialib/$OL_LIBNAME -lopenmedialib_ml" |
|---|
| 364 | AC_SUBST(OPENMEDIALIB_LDFLAGS) |
|---|
| 365 | |
|---|
| 366 | OPENIMAGELIB_LDFLAGS="-L$OPENLIBRARIES_LIBPATH/openimagelib/$OL_LIBNAME -lopenimagelib_il" |
|---|
| 367 | AC_SUBST(OPENIMAGELIB_LDFLAGS) |
|---|
| 368 | |
|---|
| 369 | OPENPLUGINLIB_LDFLAGS="-L$OPENLIBRARIES_LIBPATH/openpluginlib/$OL_LIBNAME -lopenpluginlib_pl" |
|---|
| 370 | AC_SUBST(OPENPLUGINLIB_LDFLAGS) |
|---|
| 371 | |
|---|
| 372 | dnl |
|---|
| 373 | dnl Output configuration files |
|---|
| 374 | dnl |
|---|
| 375 | AC_CONFIG_FILES([ |
|---|
| 376 | Makefile |
|---|
| 377 | src/Makefile |
|---|
| 378 | src/openpluginlib/Makefile |
|---|
| 379 | src/openpluginlib/pl/Makefile |
|---|
| 380 | src/openpluginlib/py/Makefile |
|---|
| 381 | src/openimagelib/Makefile |
|---|
| 382 | src/openimagelib/il/Makefile |
|---|
| 383 | src/openimagelib/plugins/Makefile |
|---|
| 384 | src/openimagelib/plugins/3D_lightmap/Makefile |
|---|
| 385 | src/openimagelib/plugins/dds/Makefile |
|---|
| 386 | src/openimagelib/plugins/dpx/Makefile |
|---|
| 387 | src/openimagelib/plugins/exr/Makefile |
|---|
| 388 | src/openimagelib/plugins/hdr/Makefile |
|---|
| 389 | src/openimagelib/plugins/jpg/Makefile |
|---|
| 390 | src/openimagelib/plugins/png/Makefile |
|---|
| 391 | src/openimagelib/plugins/quicktime/Makefile |
|---|
| 392 | src/openimagelib/plugins/sgi/Makefile |
|---|
| 393 | src/openimagelib/plugins/tga/Makefile |
|---|
| 394 | src/openimagelib/plugins/tiff/Makefile |
|---|
| 395 | src/openimagelib/py/Makefile |
|---|
| 396 | src/openmedialib/Makefile |
|---|
| 397 | src/openmedialib/ml/Makefile |
|---|
| 398 | src/openmedialib/plugins/Makefile |
|---|
| 399 | src/openmedialib/plugins/avformat/Makefile |
|---|
| 400 | src/openmedialib/plugins/oil/Makefile |
|---|
| 401 | src/openmedialib/plugins/openal/Makefile |
|---|
| 402 | src/openmedialib/plugins/sdl/Makefile |
|---|
| 403 | src/openmedialib/plugins/gensys/Makefile |
|---|
| 404 | src/openmedialib/plugins/quicktime/Makefile |
|---|
| 405 | src/openmedialib/plugins/ofx/Makefile |
|---|
| 406 | src/openmedialib/plugins/glew/Makefile |
|---|
| 407 | src/openmedialib/py/Makefile |
|---|
| 408 | src/openeffectslib/Makefile |
|---|
| 409 | src/openeffectslib/plugins/Makefile |
|---|
| 410 | src/openeffectslib/plugins/tonemap/Makefile |
|---|
| 411 | src/openobjectlib/Makefile |
|---|
| 412 | src/openobjectlib/sg/Makefile |
|---|
| 413 | src/openobjectlib/plugins/Makefile |
|---|
| 414 | src/openobjectlib/plugins/X3D/Makefile |
|---|
| 415 | src/openobjectlib/plugins/wavefront/Makefile |
|---|
| 416 | src/openassetlib/Makefile |
|---|
| 417 | src/openassetlib/al/Makefile |
|---|
| 418 | src/openassetlib/py/Makefile |
|---|
| 419 | src/openassetlib/plugins/Makefile |
|---|
| 420 | src/openassetlib/plugins/sqlite/Makefile |
|---|
| 421 | src/umbrella_framework/Makefile |
|---|
| 422 | media/Makefile |
|---|
| 423 | effects/Makefile |
|---|
| 424 | m4/Makefile |
|---|
| 425 | test/Makefile |
|---|
| 426 | test/openeffectslib/Makefile |
|---|
| 427 | test/openeffectslib/tm_bench/Makefile |
|---|
| 428 | test/openpluginlib/Makefile |
|---|
| 429 | test/openpluginlib/discovery/Makefile |
|---|
| 430 | test/openpluginlib/enumerate/Makefile |
|---|
| 431 | test/openpluginlib/gettimeofday/Makefile |
|---|
| 432 | test/openpluginlib/gpu_timer_query/Makefile |
|---|
| 433 | test/openpluginlib/initialization/Makefile |
|---|
| 434 | test/openpluginlib/rdtsc/Makefile |
|---|
| 435 | test/openpluginlib/pcos/Makefile |
|---|
| 436 | test/openpluginlib/pcos/key/Makefile |
|---|
| 437 | test/openpluginlib/pcos/property/Makefile |
|---|
| 438 | test/openpluginlib/pcos/subject-observer/Makefile |
|---|
| 439 | test/openpluginlib/pcos/property_container/Makefile |
|---|
| 440 | test/openimagelib/Makefile |
|---|
| 441 | test/openimagelib/GL/Makefile |
|---|
| 442 | test/openimagelib/GL/_2D/Makefile |
|---|
| 443 | test/openimagelib/GL/_2D_compressed/Makefile |
|---|
| 444 | test/openimagelib/GL/_2D_compressed_cubemap/Makefile |
|---|
| 445 | test/openimagelib/GL/_2D_crop/Makefile |
|---|
| 446 | test/openimagelib/GL/_2D_crop2/Makefile |
|---|
| 447 | test/openimagelib/GL/_2D_exr/Makefile |
|---|
| 448 | test/openimagelib/GL/_2D_scale/Makefile |
|---|
| 449 | test/openimagelib/GL/_2D_sgi/Makefile |
|---|
| 450 | test/openmedialib/Makefile |
|---|
| 451 | test/openmedialib/player/Makefile |
|---|
| 452 | test/openmedialib/store/Makefile |
|---|
| 453 | test/openobjectlib/Makefile |
|---|
| 454 | test/openobjectlib/GL/Makefile |
|---|
| 455 | test/openobjectlib/GL/multipass_draw/Makefile |
|---|
| 456 | test/openobjectlib/GL/noise_volume/Makefile |
|---|
| 457 | test/openobjectlib/GL/obj_draw/Makefile |
|---|
| 458 | test/openobjectlib/GL/texture_draw/Makefile |
|---|
| 459 | test/openassetlib/Makefile |
|---|
| 460 | openlibraries.pc |
|---|
| 461 | ]) |
|---|
| 462 | AC_OUTPUT |
|---|