Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 1 | dnl Process this file with autoconf to create configure. |
| 2 | |
| 3 | AC_PREREQ(2.59) |
| 4 | |
| 5 | dnl Versioning |
| 6 | dnl Make version number available to autoconf and configure |
| 7 | m4_define(mesa_major, 7) |
| 8 | m4_define(mesa_minor, 1) |
| 9 | m4_define(mesa_tiny, 0) |
| 10 | m4_define(mesa_version, [mesa_major().mesa_minor().mesa_tiny()]) |
| 11 | |
| 12 | AC_INIT(Mesa, mesa_version(), mesa3d@sourceforge.net) |
| 13 | AC_CONFIG_AUX_DIR(bin) |
| 14 | AC_CANONICAL_HOST |
| 15 | |
| 16 | dnl Substitute the version number into shell variables |
| 17 | MESA_MAJOR=mesa_major() |
| 18 | MESA_MINOR=mesa_minor() |
| 19 | MESA_TINY=mesa_tiny() |
| 20 | AC_SUBST(MESA_MAJOR) |
| 21 | AC_SUBST(MESA_MINOR) |
| 22 | AC_SUBST(MESA_TINY) |
| 23 | |
| 24 | dnl Check for progs |
| 25 | AC_PROG_CPP |
| 26 | AC_PROG_CC |
| 27 | AC_PROG_CXX |
| 28 | AC_PATH_PROG(MAKE, make) |
| 29 | AC_PATH_PROG(MKDEP, makedepend) |
| 30 | AC_PATH_PROG(SED, sed) |
| 31 | PKG_PROG_PKG_CONFIG() |
| 32 | |
| 33 | dnl LIB_DIR - library basename |
| 34 | LIB_DIR=`echo $libdir | $SED 's%.*/%%'` |
| 35 | AC_SUBST(LIB_DIR) |
| 36 | |
| 37 | dnl Cache LDFLAGS so we can add EXTRA_LIB_PATH and restore it later |
| 38 | _SAVE_LDFLAGS="$LDFLAGS" |
| 39 | AC_ARG_VAR(EXTRA_LIB_PATH,[Extra -L paths for the linker]) |
| 40 | AC_SUBST(EXTRA_LIB_PATH) |
| 41 | |
| 42 | dnl Cache CPPFLAGS so we can add *_INCLUDES and restore it later |
| 43 | _SAVE_CPPFLAGS="$CPPFLAGS" |
| 44 | AC_ARG_VAR(X11_INCLUDES,[Extra -I paths for X11 headers]) |
| 45 | AC_SUBST(X11_INCLUDES) |
| 46 | |
| 47 | dnl Compiler macros |
| 48 | DEFINES="" |
| 49 | AC_SUBST(DEFINES) |
| 50 | if test "x$GCC" = xyes; then |
| 51 | DEFINES="-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE" |
| 52 | fi |
| 53 | case "$host_os" in |
| 54 | linux*) |
| 55 | DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN" |
| 56 | ;; |
| 57 | esac |
| 58 | |
| 59 | dnl Add flags for gcc and g++ |
| 60 | if test "x$GCC" = xyes; then |
| 61 | CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math" |
| 62 | fi |
| 63 | if test "x$GXX" = xyes; then |
| 64 | CXXFLAGS="$CXXFLAGS -Wall" |
| 65 | fi |
| 66 | |
| 67 | dnl These should be unnecessary, but let the user set them if they want |
| 68 | AC_ARG_VAR(OPT_FLAGS, [Additional optimization flags for the compiler. |
| 69 | Default is to use CFLAGS.]) |
| 70 | AC_ARG_VAR(ARCH_FLAGS, [Additional architecture specific flags for the |
| 71 | compiler. Default is to use CFLAGS.]) |
| 72 | AC_SUBST(OPT_FLAGS) |
| 73 | AC_SUBST(ARCH_FLAGS) |
| 74 | |
| 75 | dnl |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 76 | dnl shared/static libraries, mimic libtool options |
| 77 | dnl |
| 78 | AC_ARG_ENABLE(static, |
| 79 | [AS_HELP_STRING([--enable-static], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 80 | [build static libraries @<:@default=disabled@:>@])], |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 81 | enable_static="$enableval", |
| 82 | enable_static=no |
| 83 | ) |
| 84 | case "x$enable_static" in |
| 85 | xyes|xno ) ;; |
| 86 | x ) enable_static=no ;; |
| 87 | * ) |
| 88 | AC_MSG_ERROR([Static library option '$enable_static' is not a valid]) |
| 89 | ;; |
| 90 | esac |
| 91 | AC_ARG_ENABLE(shared, |
| 92 | [AS_HELP_STRING([--disable-shared], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 93 | [build shared libraries @<:@default=enabled@:>@])], |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 94 | enable_shared="$enableval", |
| 95 | enable_shared=yes |
| 96 | ) |
| 97 | case "x$enable_shared" in |
| 98 | xyes|xno ) ;; |
| 99 | x ) enable_shared=yes ;; |
| 100 | * ) |
| 101 | AC_MSG_ERROR([Shared library option '$enable_shared' is not a valid]) |
| 102 | ;; |
| 103 | esac |
| 104 | |
| 105 | dnl Can't have static and shared libraries, default to static if user |
| 106 | dnl explicitly requested. If both disabled, set to static since shared |
| 107 | dnl was explicitly requirested. |
| 108 | case "x$enable_static$enable_shared" in |
| 109 | xyesyes ) |
| 110 | AC_MSG_WARN([Can't build static and shared libraries, disabling shared]) |
| 111 | enable_shared=no |
| 112 | ;; |
| 113 | xnono ) |
| 114 | AC_MSG_WARN([Can't disable both static and shared libraries, enabling static]) |
| 115 | enable_static=yes |
| 116 | ;; |
| 117 | esac |
| 118 | |
| 119 | dnl |
| 120 | dnl mklib options |
| 121 | dnl |
| 122 | AC_ARG_VAR(MKLIB_OPTIONS,[Options for the Mesa library script, mklib]) |
| 123 | if test "$enable_static" = yes; then |
| 124 | MKLIB_OPTIONS="$MKLIB_OPTIONS -static" |
| 125 | fi |
| 126 | AC_SUBST(MKLIB_OPTIONS) |
| 127 | |
| 128 | |
| 129 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 130 | dnl library names |
| 131 | dnl |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 132 | if test "$enable_static" = yes; then |
| 133 | GL_LIB_NAME='lib$(GL_LIB).a' |
| 134 | GLU_LIB_NAME='lib$(GLU_LIB).a' |
| 135 | GLUT_LIB_NAME='lib$(GLUT_LIB).a' |
| 136 | GLW_LIB_NAME='lib$(GLW_LIB).a' |
| 137 | OSMESA_LIB_NAME='lib$(OSMESA_LIB).a' |
| 138 | else |
| 139 | GL_LIB_NAME='lib$(GL_LIB).so' |
| 140 | GLU_LIB_NAME='lib$(GLU_LIB).so' |
| 141 | GLUT_LIB_NAME='lib$(GLUT_LIB).so' |
| 142 | GLW_LIB_NAME='lib$(GLW_LIB).so' |
| 143 | OSMESA_LIB_NAME='lib$(OSMESA_LIB).so' |
| 144 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 145 | AC_SUBST(GL_LIB_NAME) |
| 146 | AC_SUBST(GLU_LIB_NAME) |
| 147 | AC_SUBST(GLUT_LIB_NAME) |
| 148 | AC_SUBST(GLW_LIB_NAME) |
| 149 | AC_SUBST(OSMESA_LIB_NAME) |
| 150 | |
| 151 | dnl |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 152 | dnl Driver configuration. Options are x11 (Xlib), dri and osmesa right now. |
| 153 | dnl More later: directfb, fbdev, ... |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 154 | dnl |
| 155 | AC_ARG_WITH(driver, |
| 156 | [AS_HELP_STRING([--with-driver=DRIVER], |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 157 | [driver for Mesa: x11,dri,osmesa @<:@default=x11@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 158 | mesa_driver="$withval", |
| 159 | mesa_driver="x11") |
| 160 | dnl Check for valid option |
| 161 | case "x$mesa_driver" in |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 162 | xx11|xdri|xosmesa) |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 163 | ;; |
| 164 | *) |
| 165 | AC_MSG_ERROR([Driver '$mesa_driver' is not a valid option]) |
| 166 | ;; |
| 167 | esac |
| 168 | |
| 169 | dnl |
| 170 | dnl Driver specific build directories |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 171 | dnl |
| 172 | SRC_DIRS="mesa" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 173 | GLU_DIRS="sgi" |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 174 | WINDOW_SYSTEM="" |
| 175 | case "$mesa_driver" in |
| 176 | x11) |
| 177 | DRIVER_DIRS="x11" |
| 178 | ;; |
| 179 | dri) |
| 180 | SRC_DIRS="glx/x11 $SRC_DIRS" |
| 181 | DRIVER_DIRS="dri" |
| 182 | WINDOW_SYSTEM="dri" |
| 183 | ;; |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 184 | osmesa) |
| 185 | DRIVER_DIRS="osmesa" |
| 186 | ;; |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 187 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 188 | AC_SUBST(SRC_DIRS) |
| 189 | AC_SUBST(GLU_DIRS) |
| 190 | AC_SUBST(DRIVER_DIRS) |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 191 | AC_SUBST(WINDOW_SYSTEM) |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 192 | |
| 193 | dnl |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 194 | dnl User supplied program configuration |
| 195 | dnl |
| 196 | if test -d "$srcdir/progs/demos"; then |
| 197 | default_demos=yes |
| 198 | else |
| 199 | default_demos=no |
| 200 | fi |
| 201 | AC_ARG_WITH(demos, |
| 202 | [AS_HELP_STRING([--with-demos@<:@=DIRS...@:>@], |
| 203 | [optional comma delimited demo directories to build |
| 204 | @<:@default=yes if source available@:>@])], |
| 205 | with_demos="$withval", |
| 206 | with_demos="$default_demos") |
| 207 | if test "x$with_demos" = x; then |
| 208 | with_demos=no |
| 209 | fi |
| 210 | |
| 211 | dnl If $with_demos is yes, directories will be added as libs available |
| 212 | PROGRAM_DIRS="" |
| 213 | case "$with_demos" in |
| 214 | no|yes) ;; |
| 215 | *) |
| 216 | # verify the requested demos directories exist |
| 217 | demos=`IFS=,; echo $with_demos` |
| 218 | for demo in $demos; do |
| 219 | test -d "$srcdir/progs/$demo" || \ |
| 220 | AC_MSG_ERROR([Program directory '$demo' doesn't exist]) |
| 221 | done |
| 222 | PROGRAM_DIRS="$demos" |
| 223 | ;; |
| 224 | esac |
| 225 | |
| 226 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 227 | dnl Find out if X is available. The variables have_x or no_x will be |
| 228 | dnl set and used later in the driver setups |
| 229 | dnl |
| 230 | if test -n "$PKG_CONFIG"; then |
| 231 | AC_MSG_CHECKING([pkg-config files for X11 are available]) |
| 232 | if $PKG_CONFIG --exists x11; then |
| 233 | x11_pkgconfig=yes |
| 234 | have_x=yes |
| 235 | AC_MSG_RESULT(yes) |
| 236 | else |
| 237 | x11_pkgconfig=no |
| 238 | no_x=yes |
| 239 | AC_MSG_RESULT(no) |
| 240 | fi |
| 241 | else |
| 242 | x11_pkgconfig=no |
| 243 | fi |
| 244 | dnl Use the autoconf macro if no pkg-config files |
| 245 | if test "$x11_pkgconfig" = no; then |
| 246 | AC_PATH_XTRA |
| 247 | fi |
| 248 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 249 | dnl We need X for xlib and dri, so bomb now if it's not found |
| 250 | case "$mesa_driver" in |
| 251 | x11|dri) |
| 252 | if test "$no_x" = yes; then |
| 253 | AC_MSG_ERROR([X11 development libraries needed for $mesa_driver driver]) |
| 254 | fi |
| 255 | ;; |
| 256 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 257 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 258 | dnl |
| 259 | dnl libGL configuration per driver |
| 260 | dnl |
| 261 | case "$mesa_driver" in |
| 262 | x11) |
| 263 | if test "$x11_pkgconfig" = yes; then |
| 264 | PKG_CHECK_MODULES(X11GL, x11 xext) |
| 265 | X11_INCLUDES="$X11_INCLUDES $X11GL_CFLAGS" |
| 266 | GL_LIB_DEPS="$X11GL_LIBS" |
| 267 | else |
| 268 | # should check these... |
| 269 | X11_INCLUDES="$X11_INCLUDES $X_CFLAGS" |
| 270 | GL_LIB_DEPS="$X_LIBS -lX11 -lXext" |
| 271 | fi |
| 272 | GL_LIB_DEPS="$GL_LIB_DEPS -lm -lpthread" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 273 | |
| 274 | # if static, move the external libraries to the programs |
| 275 | # and empty the libraries for libGL |
| 276 | if test "$enable_static" = yes; then |
| 277 | APP_LIB_DEPS="$APP_LIB_DEPS $GL_LIB_DEPS" |
| 278 | GL_LIB_DEPS="" |
| 279 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 280 | ;; |
| 281 | dri) |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 282 | # DRI must be shared, I think |
| 283 | if test "$enable_static" = yes; then |
| 284 | AC_MSG_ERROR([Can't use static libraries for DRI drivers]) |
| 285 | fi |
| 286 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 287 | # Check for libdrm |
| 288 | PKG_CHECK_MODULES(LIBDRM, libdrm) |
| 289 | |
| 290 | # find the DRI deps for libGL |
| 291 | if test "$x11_pkgconfig" = yes; then |
| 292 | PKG_CHECK_MODULES(DRIGL, x11 xext xxf86vm xdamage xfixes) |
| 293 | X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS" |
| 294 | GL_LIB_DEPS="$DRIGL_LIBS" |
| 295 | else |
| 296 | # should check these... |
| 297 | X11_INCLUDES="$X11_INCLUDES $X_CFLAGS" |
| 298 | GL_LIB_DEPS="$X_LIBS -lX11 -lXext -lXxf86vm -lXdamage -lXfixes" |
| 299 | fi |
| 300 | |
| 301 | # need DRM libs, -lpthread, etc. |
| 302 | GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread -ldl" |
| 303 | ;; |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 304 | osmesa) |
| 305 | # No libGL for osmesa |
| 306 | GL_LIB_DEPS="" |
| 307 | ;; |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 308 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 309 | AC_SUBST(GL_LIB_DEPS) |
| 310 | |
| 311 | dnl |
| 312 | dnl More X11 setup |
| 313 | dnl |
| 314 | if test "$mesa_driver" = x11; then |
| 315 | DEFINES="$DEFINES -DUSE_XSHM" |
| 316 | fi |
| 317 | |
| 318 | dnl |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 319 | dnl More DRI setup |
| 320 | dnl |
| 321 | AC_ARG_ENABLE(glx-tls, |
| 322 | [AS_HELP_STRING([--enable-glx-tls], |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 323 | [enable TLS support in GLX @<:@default=disabled@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 324 | GLX_USE_TLS="$enableval", |
| 325 | GLX_USE_TLS=no) |
| 326 | dnl Directory for DRI drivers |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 327 | AC_ARG_WITH(dri-driverdir, |
| 328 | [AS_HELP_STRING([--with-dri-driverdir=DIR], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 329 | [directory for the DRI drivers @<:@/usr/X11R6/lib/modules/dri@:>@])], |
| 330 | DRI_DRIVER_INSTALL_DIR="$withval", |
| 331 | DRI_DRIVER_INSTALL_DIR='/usr/X11R6/lib/modules/dri') |
| 332 | AC_SUBST(DRI_DRIVER_INSTALL_DIR) |
| 333 | dnl Direct rendering or just indirect rendering |
| 334 | AC_ARG_ENABLE(driglx-direct, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 335 | [AS_HELP_STRING([--disable-driglx-direct], |
| 336 | [enable direct rendering in GLX for DRI @<:@default=enabled@:>@])], |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 337 | driglx_direct="$enableval", |
| 338 | driglx_direct="yes") |
| 339 | |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 340 | dnl Which drivers to build - default is chosen by platform |
| 341 | AC_ARG_WITH(dri-drivers, |
| 342 | [AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@], |
| 343 | [comma delimited DRI drivers to build @<:@default=auto by platform@:>@])], |
| 344 | with_dri_drivers="$withval", |
| 345 | with_dri_drivers=yes) |
| 346 | if test "x$with_dri_drivers" = x; then |
| 347 | with_dri_drivers=no |
| 348 | fi |
| 349 | |
| 350 | dnl If $with_dri_drivers is yes, directories will be added through |
| 351 | dnl platform checks |
| 352 | DRI_DIRS="" |
| 353 | case "$with_dri_drivers" in |
| 354 | no|yes) ;; |
| 355 | *) |
| 356 | # verify the requested driver directories exist |
| 357 | dri_drivers=`IFS=,; echo $with_dri_drivers` |
| 358 | for driver in $dri_drivers; do |
| 359 | test -d "$srcdir/src/mesa/drivers/dri/$driver" || \ |
| 360 | AC_MSG_ERROR([DRI driver directory '$driver' doesn't exist]) |
| 361 | done |
| 362 | DRI_DIRS="$dri_drivers" |
| 363 | ;; |
| 364 | esac |
| 365 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 366 | dnl Just default to no EGL for now |
| 367 | USING_EGL=0 |
| 368 | AC_SUBST(USING_EGL) |
| 369 | |
| 370 | dnl Set DRI_DIRS, DEFINES and LIB_DEPS |
| 371 | if test "$mesa_driver" = dri; then |
| 372 | # Use TLS in GLX? |
| 373 | if test "x$GLX_USE_TLS" = xyes; then |
| 374 | DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS" |
| 375 | fi |
| 376 | |
| 377 | if test "x$USING_EGL" = x1; then |
| 378 | PROGRAM_DIRS="egl" |
| 379 | fi |
| 380 | |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 381 | # default drivers |
| 382 | if test "x$DRI_DIRS" = x; then |
| 383 | DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \ |
| 384 | savage sis tdfx trident unichrome ffb" |
| 385 | fi |
| 386 | |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 387 | # Platform specific settings and drivers to build |
| 388 | case "$host_os" in |
| 389 | linux*) |
| 390 | DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER" |
| 391 | DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS" |
| 392 | if test "x$driglx_direct" = xyes; then |
| 393 | DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" |
| 394 | fi |
| 395 | |
| 396 | case "$host_cpu" in |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 397 | x86_64) |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 398 | # ffb, gamma, and sis are missing because they have not be |
| 399 | # converted to use the new interface. i810 are missing |
| 400 | # because there is no x86-64 system where they could *ever* |
| 401 | # be used. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 402 | if test "x$DRI_DIRS" = x; then |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 403 | DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \ |
| 404 | savage tdfx unichrome" |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 405 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 406 | ;; |
| 407 | powerpc*) |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 408 | # Build only the drivers for cards that exist on PowerPC. |
| 409 | # At some point MGA will be added, but not yet. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 410 | if test "x$DRI_DIRS" = x; then |
| 411 | DRI_DIRS="mach64 r128 r200 r300 radeon tdfx" |
| 412 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 413 | ;; |
| 414 | esac |
| 415 | ;; |
| 416 | freebsd*) |
| 417 | DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1" |
| 418 | DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS" |
| 419 | DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING" |
| 420 | if test "x$driglx_direct" = xyes; then |
| 421 | DEFINES="$DEFINES -DGLX_DIRECT_RENDERING" |
| 422 | fi |
| 423 | if test "x$GXX" = xyes; then |
| 424 | CXXFLAGS="$CXXFLAGS -ansi -pedantic" |
| 425 | fi |
| 426 | |
Dan Nicholson | a76e245 | 2007-12-07 11:25:08 -0800 | [diff] [blame] | 427 | # ffb and gamma are missing because they have not been converted |
| 428 | # to use the new interface. |
Dan Nicholson | af3d2f2 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 429 | if test "x$DRI_DIRS" = x; then |
| 430 | DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \ |
| 431 | unichrome savage sis" |
| 432 | fi |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 433 | ;; |
| 434 | esac |
| 435 | DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'` |
| 436 | |
| 437 | # Check for expat |
| 438 | EXPAT_INCLUDES="" |
| 439 | EXPAT_LIB=-lexpat |
| 440 | AC_ARG_WITH(expat, AS_HELP_STRING([--with-expat=DIR], |
| 441 | [expat install directory]),[ |
| 442 | EXPAT_INCLUDES="-I$withval/include" |
| 443 | CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES" |
| 444 | LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR" |
| 445 | EXPAT_LIB="-L$withval/$LIB_DIR -lexpat" |
| 446 | ]) |
| 447 | AC_CHECK_HEADER(expat.h,,AC_MSG_ERROR([Expat required for DRI.])) |
| 448 | AC_CHECK_LIB(expat, XML_ParserCreate,, |
| 449 | AC_MSG_ERROR([Expat required for DRI.])) |
| 450 | |
| 451 | # put all the necessary libs together |
| 452 | DRI_LIB_DEPS="$LIBDRM_LIBS $EXPAT_LIB -lm -lpthread -ldl" |
| 453 | fi |
| 454 | AC_SUBST(DRI_DIRS) |
| 455 | AC_SUBST(EXPAT_INCLUDES) |
| 456 | AC_SUBST(DRI_LIB_DEPS) |
| 457 | |
| 458 | dnl |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 459 | dnl OSMesa configuration |
| 460 | dnl |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 461 | if test "$mesa_driver" = x11; then |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 462 | default_x11_osmesa=yes |
| 463 | else |
| 464 | default_x11_osmesa=no |
Dan Nicholson | 44d9914 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 465 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 466 | AC_ARG_ENABLE(x11-osmesa, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 467 | [AS_HELP_STRING([--disable-x11-osmesa], |
| 468 | [enable OSMesa on X11 libGL @<:@default=enabled for x11 driver@:>@])], |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 469 | x11_osmesa="$enableval", |
| 470 | x11_osmesa="$default_x11_osmesa") |
| 471 | if test "x$x11_osmesa" = xyes; then |
| 472 | if test "$mesa_driver" = x11; then |
| 473 | DRIVER_DIRS="$DRIVER_DIRS osmesa" |
| 474 | else |
| 475 | AC_MSG_ERROR([Can only enable OSMesa on libGL for X11]) |
| 476 | fi |
| 477 | fi |
| 478 | |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 479 | dnl Configure the channel bits for OSMesa (libOSMesa, libOSMesa16, ...) |
| 480 | AC_ARG_WITH(osmesa-bits, |
| 481 | [AS_HELP_STRING([--with-osmesa-bits=BITS], |
| 482 | [OSMesa channel bits and library name: 8, 16, 32 @<:@default=8@:>@])], |
| 483 | osmesa_bits="$withval", |
| 484 | osmesa_bits=8) |
| 485 | if test "$mesa_driver" != osmesa && test "x$osmesa_bits" != x8; then |
| 486 | AC_MSG_WARN([Ignoring OSMesa channel bits for non-OSMesa driver]) |
| 487 | osmesa_bits=8 |
| 488 | fi |
| 489 | case "x$osmesa_bits" in |
| 490 | x8) |
| 491 | OSMESA_LIB=OSMesa |
| 492 | ;; |
| 493 | x16|x32) |
| 494 | OSMESA_LIB="OSMesa$osmesa_bits" |
| 495 | DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31" |
| 496 | ;; |
| 497 | *) |
| 498 | AC_MSG_ERROR([OSMesa bits '$osmesa_bits' is not a valid option]) |
| 499 | ;; |
| 500 | esac |
| 501 | AC_SUBST(OSMESA_LIB) |
| 502 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 503 | case "$mesa_driver" in |
| 504 | osmesa) |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 505 | # only link librararies with osmesa if shared |
| 506 | if test "$enable_static" = no; then |
| 507 | OSMESA_LIB_DEPS="-lm -lpthread" |
| 508 | else |
| 509 | OSMESA_LIB_DEPS="" |
| 510 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 511 | OSMESA_MESA_DEPS="" |
| 512 | ;; |
| 513 | *) |
| 514 | # Link OSMesa to libGL otherwise |
| 515 | OSMESA_LIB_DEPS="" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 516 | # only link librararies with osmesa if shared |
| 517 | if test "$enable_static" = no; then |
| 518 | OSMESA_MESA_DEPS='-l$(GL_LIB)' |
| 519 | else |
| 520 | OSMESA_MESA_DEPS="" |
| 521 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 522 | ;; |
| 523 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 524 | AC_SUBST(OSMESA_LIB_DEPS) |
| 525 | AC_SUBST(OSMESA_MESA_DEPS) |
| 526 | |
| 527 | dnl |
| 528 | dnl GLU configuration |
| 529 | dnl |
| 530 | AC_ARG_ENABLE(glu, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 531 | [AS_HELP_STRING([--disable-glu], |
| 532 | [enable OpenGL Utility library @<:@default=enabled@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 533 | enable_glu="$enableval", |
| 534 | enable_glu=yes) |
| 535 | if test "x$enable_glu" = xyes; then |
| 536 | SRC_DIRS="$SRC_DIRS glu" |
| 537 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 538 | case "$mesa_driver" in |
| 539 | osmesa) |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 540 | # If GLU is available and we have libOSMesa (not 16 or 32), |
| 541 | # we can build the osdemos |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 542 | if test "$with_demos" = yes && test "$osmesa_bits" = 8; then |
Dan Nicholson | 6689f9e | 2007-12-05 21:04:15 -0800 | [diff] [blame] | 543 | PROGRAM_DIRS="$PROGRAM_DIRS osdemos" |
| 544 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 545 | |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 546 | # Link libGLU to libOSMesa instead of libGL |
| 547 | GLU_LIB_DEPS="" |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 548 | if test "$enable_static" = no; then |
| 549 | GLU_MESA_DEPS='-l$(OSMESA_LIB)' |
| 550 | else |
| 551 | GLU_MESA_DEPS="" |
| 552 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 553 | ;; |
| 554 | *) |
| 555 | # If GLU is available, we can build the xdemos |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 556 | if test "$with_demos" = yes; then |
| 557 | PROGRAM_DIRS="$PROGRAM_DIRS xdemos" |
| 558 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 559 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 560 | # If static, empty GLU_LIB_DEPS and add libs for programs to link |
| 561 | if test "$enable_static" = no; then |
| 562 | GLU_LIB_DEPS="-lm" |
| 563 | GLU_MESA_DEPS='-l$(GL_LIB)' |
| 564 | else |
| 565 | GLU_LIB_DEPS="" |
| 566 | GLU_MESA_DEPS="" |
| 567 | APP_LIB_DEPS="$APP_LIB_DEPS -lstdc++" |
| 568 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 569 | ;; |
| 570 | esac |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 571 | fi |
| 572 | AC_SUBST(GLU_LIB_DEPS) |
| 573 | AC_SUBST(GLU_MESA_DEPS) |
| 574 | |
| 575 | dnl |
| 576 | dnl GLw configuration |
| 577 | dnl |
| 578 | AC_ARG_ENABLE(glw, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 579 | [AS_HELP_STRING([--disable-glw], |
| 580 | [enable Xt/Motif widget library @<:@default=enabled@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 581 | enable_glw="$enableval", |
| 582 | enable_glw=yes) |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 583 | dnl Don't build GLw on osmesa |
| 584 | if test "x$enable_glw" = xyes && test "$mesa_driver" = osmesa; then |
| 585 | AC_MSG_WARN([Disabling GLw since the driver is OSMesa]) |
| 586 | enable_glw=no |
| 587 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 588 | if test "x$enable_glw" = xyes; then |
| 589 | SRC_DIRS="$SRC_DIRS glw" |
| 590 | if test "$x11_pkgconfig" = yes; then |
| 591 | PKG_CHECK_MODULES(GLW, x11 xt) |
| 592 | GLW_LIB_DEPS="$GLW_LIBS" |
| 593 | else |
| 594 | # should check these... |
| 595 | GLW_LIB_DEPS="$X_LIBS -lX11 -lXt" |
| 596 | fi |
| 597 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 598 | # If static, empty GLW_LIB_DEPS and add libs for programs to link |
| 599 | if test "$enable_static" = no; then |
| 600 | GLW_MESA_DEPS='-l$(GL_LIB)' |
| 601 | else |
| 602 | APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS" |
| 603 | GLW_LIB_DEPS="" |
| 604 | GLW_MESA_DEPS="" |
| 605 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 606 | fi |
| 607 | AC_SUBST(GLW_LIB_DEPS) |
| 608 | AC_SUBST(GLW_MESA_DEPS) |
| 609 | |
| 610 | dnl |
| 611 | dnl GLUT configuration |
| 612 | dnl |
| 613 | if test -f "$srcdir/include/GL/glut.h"; then |
| 614 | default_glut=yes |
| 615 | else |
| 616 | default_glut=no |
| 617 | fi |
| 618 | AC_ARG_ENABLE(glut, |
Dan Nicholson | 79ad458 | 2007-12-07 19:11:01 -0800 | [diff] [blame] | 619 | [AS_HELP_STRING([--disable-glut], |
| 620 | [enable GLUT library @<:@default=enabled if source available@:>@])], |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 621 | enable_glut="$enableval", |
| 622 | enable_glut="$default_glut") |
| 623 | |
| 624 | dnl Can't build glut if GLU not available |
| 625 | if test "x$enable_glu$enable_glut" = xnoyes; then |
| 626 | AC_MSG_WARN([Disabling glut since GLU is disabled]) |
| 627 | enable_glut=no |
| 628 | fi |
Dan Nicholson | 979ff51 | 2007-12-05 18:47:01 -0800 | [diff] [blame] | 629 | dnl Don't build glut on osmesa |
| 630 | if test "x$enable_glut" = xyes && test "$mesa_driver" = osmesa; then |
| 631 | AC_MSG_WARN([Disabling glut since the driver is OSMesa]) |
| 632 | enable_glut=no |
| 633 | fi |
| 634 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 635 | if test "x$enable_glut" = xyes; then |
| 636 | SRC_DIRS="$SRC_DIRS glut/glx" |
| 637 | GLUT_CFLAGS="" |
| 638 | if test "x$GCC" = xyes; then |
| 639 | GLUT_CFLAGS="-fexceptions" |
| 640 | fi |
| 641 | if test "$x11_pkgconfig" = yes; then |
Dan Nicholson | 70d0c83 | 2007-12-07 11:12:20 -0800 | [diff] [blame] | 642 | PKG_CHECK_MODULES(GLUT, x11 xmu xi) |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 643 | GLUT_LIB_DEPS="$GLUT_LIBS" |
| 644 | else |
| 645 | # should check these... |
Dan Nicholson | 70d0c83 | 2007-12-07 11:12:20 -0800 | [diff] [blame] | 646 | GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 647 | fi |
| 648 | GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm" |
| 649 | |
| 650 | # If glut is available, we can build most programs |
Dan Nicholson | 8e4d147 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 651 | if test "$with_demos" = yes; then |
| 652 | PROGRAM_DIRS="$PROGRAM_DIRS demos redbook samples glsl" |
| 653 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 654 | |
Dan Nicholson | 8858633 | 2007-11-15 08:59:57 -0800 | [diff] [blame] | 655 | # If static, empty GLUT_LIB_DEPS and add libs for programs to link |
| 656 | if test "$enable_static" = no; then |
| 657 | GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)' |
| 658 | else |
| 659 | APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS" |
| 660 | GLUT_LIB_DEPS="" |
| 661 | GLUT_MESA_DEPS="" |
| 662 | fi |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 663 | fi |
| 664 | AC_SUBST(GLUT_LIB_DEPS) |
| 665 | AC_SUBST(GLUT_MESA_DEPS) |
| 666 | AC_SUBST(GLUT_CFLAGS) |
| 667 | |
| 668 | dnl |
| 669 | dnl Program library dependencies |
| 670 | dnl Only libm is added here if necessary as the libraries should |
| 671 | dnl be pulled in by the linker |
| 672 | dnl |
| 673 | if test "x$APP_LIB_DEPS" = x; then |
| 674 | APP_LIB_DEPS="-lm" |
| 675 | fi |
| 676 | AC_SUBST(APP_LIB_DEPS) |
| 677 | AC_SUBST(PROGRAM_DIRS) |
| 678 | |
| 679 | dnl Arch/platform-specific settings |
| 680 | PIC_FLAGS="" |
| 681 | ASM_FLAGS="" |
| 682 | ASM_SOURCES="" |
| 683 | ASM_API="" |
| 684 | AC_SUBST(PIC_FLAGS) |
| 685 | AC_SUBST(ASM_FLAGS) |
| 686 | AC_SUBST(ASM_SOURCES) |
| 687 | AC_SUBST(ASM_API) |
| 688 | case "$host_os" in |
| 689 | linux*) |
| 690 | PIC_FLAGS="-fPIC" |
| 691 | case "$host_cpu" in |
| 692 | i*86) |
| 693 | ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM" |
| 694 | ASM_SOURCES='$(X86_SOURCES)' |
| 695 | ASM_API='$(X86_API)' |
| 696 | ;; |
| 697 | x86_64) |
| 698 | ASM_FLAGS="-DUSE_X86_64_ASM" |
| 699 | ASM_SOURCES='$(X86-64_SOURCES)' |
| 700 | ASM_API='$(X86-64_API)' |
| 701 | ;; |
| 702 | powerpc) |
| 703 | ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM" |
| 704 | ASM_SOURCES='$(PPC_SOURCES)' |
| 705 | ;; |
| 706 | esac |
| 707 | ;; |
| 708 | freebsd*) |
| 709 | PIC_FLAGS="-fPIC" |
| 710 | case "$host_os" in |
| 711 | i*86) |
| 712 | PIC_FLAGS="" |
| 713 | ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM" |
| 714 | ASM_SOURCES='$(X86_SOURCES)' |
| 715 | ASM_API='$(X86_API)' |
| 716 | ;; |
| 717 | x86_64) |
| 718 | ASM_FLAGS="-DUSE_X86_64_ASM" |
| 719 | ASM_SOURCES='$(X86-64_SOURCES)' |
| 720 | ASM_API='$(X86-64_API)' |
| 721 | ;; |
| 722 | esac |
| 723 | ;; |
| 724 | esac |
| 725 | |
| 726 | dnl Restore LDFLAGS and CPPFLAGS |
| 727 | LDFLAGS="$_SAVE_LDFLAGS" |
| 728 | CPPFLAGS="$_SAVE_CPPFLAGS" |
| 729 | |
| 730 | dnl Substitute the config |
| 731 | AC_OUTPUT([configs/autoconf]) |
| 732 | |
Dan Nicholson | aab38cf | 2007-12-11 08:21:51 -0800 | [diff] [blame^] | 733 | dnl Replace the configs/current symlink |
| 734 | if test -f configs/current || test -L configs/current; then |
| 735 | rm -f configs/current |
| 736 | fi |
| 737 | ln -s autoconf configs/current |
| 738 | |
Dan Nicholson | 9cad8e3 | 2007-11-30 08:49:57 -0800 | [diff] [blame] | 739 | dnl |
| 740 | dnl Output some configuration info for the user |
| 741 | dnl |
| 742 | echo "" |
| 743 | echo " prefix: $prefix" |
| 744 | echo " exec_prefix: $exec_prefix" |
| 745 | echo " libdir: $libdir" |
| 746 | |
| 747 | dnl Driver info |
| 748 | echo "" |
| 749 | echo " Driver: $mesa_driver" |
| 750 | case "$mesa_driver" in |
| 751 | x11|osmesa) |
| 752 | if echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1; then |
| 753 | echo " OSMesa: lib$OSMESA_LIB" |
| 754 | else |
| 755 | echo " OSMesa: no" |
| 756 | fi |
| 757 | ;; |
| 758 | dri) |
| 759 | # cleanup the drivers var |
| 760 | dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'` |
| 761 | echo " DRI drivers: $dri_dirs" |
| 762 | echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR" |
| 763 | ;; |
| 764 | esac |
| 765 | |
| 766 | dnl Libraries |
| 767 | echo "" |
| 768 | echo " Shared libs: $enable_shared" |
| 769 | echo " Static libs: $enable_static" |
| 770 | echo " GLU: $enable_glu" |
| 771 | echo " GLw: $enable_glw" |
| 772 | echo " glut: $enable_glut" |
| 773 | |
| 774 | dnl Programs |
| 775 | # cleanup the programs var for display |
| 776 | program_dirs=`echo $PROGRAM_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'` |
| 777 | if test "x$program_dirs" = x; then |
| 778 | echo " Demos: no" |
| 779 | else |
| 780 | echo " Demos: $program_dirs" |
| 781 | fi |
| 782 | |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 783 | echo "" |
Dan Nicholson | aab38cf | 2007-12-11 08:21:51 -0800 | [diff] [blame^] | 784 | echo " Run 'make' to build Mesa" |
Dan Nicholson | dca1b79 | 2007-10-23 09:25:58 -0700 | [diff] [blame] | 785 | echo "" |