1 dnl Process this file with autoconf to create configure.
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()])
12 AC_INIT(Mesa, mesa_version(), mesa3d@sourceforge.net)
13 AC_CONFIG_AUX_DIR(bin)
16 dnl Substitute the version number into shell variables
17 MESA_MAJOR=mesa_major()
18 MESA_MINOR=mesa_minor()
28 AC_PATH_PROG(MAKE, make)
29 AC_PATH_PROG(MKDEP, makedepend)
30 AC_PATH_PROG(SED, sed)
32 dnl Make sure the pkg-config macros are defined
33 m4_ifdef([PKG_PROG_PKG_CONFIG],,[
34 AC_MSG_ERROR([The pkg-config autoconf macros are not defined.
35 Did you run 'make configure'?])]
39 dnl LIB_DIR - library basename
40 LIB_DIR=`echo $libdir | $SED 's%.*/%%'`
43 dnl Cache LDFLAGS so we can add EXTRA_LIB_PATH and restore it later
44 _SAVE_LDFLAGS="$LDFLAGS"
45 AC_ARG_VAR(EXTRA_LIB_PATH,[Extra -L paths for the linker])
46 AC_SUBST(EXTRA_LIB_PATH)
48 dnl Cache CPPFLAGS so we can add *_INCLUDES and restore it later
49 _SAVE_CPPFLAGS="$CPPFLAGS"
50 AC_ARG_VAR(X11_INCLUDES,[Extra -I paths for X11 headers])
51 AC_SUBST(X11_INCLUDES)
56 if test "x$GCC" = xyes; then
57 DEFINES="-D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_BSD_SOURCE"
61 DEFINES="$DEFINES -D_SVID_SOURCE -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN"
65 dnl Add flags for gcc and g++
66 if test "x$GCC" = xyes; then
67 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -std=c99 -ffast-math"
69 if test "x$GXX" = xyes; then
70 CXXFLAGS="$CXXFLAGS -Wall"
73 dnl These should be unnecessary, but let the user set them if they want
74 AC_ARG_VAR(OPT_FLAGS, [Additional optimization flags for the compiler.
75 Default is to use CFLAGS.])
76 AC_ARG_VAR(ARCH_FLAGS, [Additional architecture specific flags for the
77 compiler. Default is to use CFLAGS.])
82 dnl shared/static libraries, mimic libtool options
85 [AS_HELP_STRING([--enable-static],
86 [build static libraries @<:@default=disabled@:>@])],
87 enable_static="$enableval",
90 case "x$enable_static" in
92 x ) enable_static=no ;;
94 AC_MSG_ERROR([Static library option '$enable_static' is not a valid])
98 [AS_HELP_STRING([--disable-shared],
99 [build shared libraries @<:@default=enabled@:>@])],
100 enable_shared="$enableval",
103 case "x$enable_shared" in
105 x ) enable_shared=yes ;;
107 AC_MSG_ERROR([Shared library option '$enable_shared' is not a valid])
111 dnl Can't have static and shared libraries, default to static if user
112 dnl explicitly requested. If both disabled, set to static since shared
113 dnl was explicitly requirested.
114 case "x$enable_static$enable_shared" in
116 AC_MSG_WARN([Can't build static and shared libraries, disabling shared])
120 AC_MSG_WARN([Can't disable both static and shared libraries, enabling static])
128 AC_ARG_VAR(MKLIB_OPTIONS,[Options for the Mesa library script, mklib])
129 if test "$enable_static" = yes; then
130 MKLIB_OPTIONS="$MKLIB_OPTIONS -static"
132 AC_SUBST(MKLIB_OPTIONS)
135 dnl other compiler options
138 [AS_HELP_STRING([--enable-debug],
139 [use debug compiler flags and macros @<:@default=disabled@:>@])],
140 enable_debug="$enableval",
143 if test "x$enable_debug" = xyes; then
144 DEFINES="$DEFINES -DDEBUG"
145 if test "x$GCC" = xyes; then
148 if test "x$GXX" = xyes; then
149 CXXFLAGS="$CXXFLAGS -g"
152 dnl These will be used near the end in the arch specific options
154 [AS_HELP_STRING([--disable-asm],
155 [disable assembly usage @<:@default=enabled on supported plaforms@:>@])],
156 enable_asm="$enableval",
163 if test "$enable_static" = yes; then
164 GL_LIB_NAME='lib$(GL_LIB).a'
165 GLU_LIB_NAME='lib$(GLU_LIB).a'
166 GLUT_LIB_NAME='lib$(GLUT_LIB).a'
167 GLW_LIB_NAME='lib$(GLW_LIB).a'
168 OSMESA_LIB_NAME='lib$(OSMESA_LIB).a'
170 GL_LIB_NAME='lib$(GL_LIB).so'
171 GLU_LIB_NAME='lib$(GLU_LIB).so'
172 GLUT_LIB_NAME='lib$(GLUT_LIB).so'
173 GLW_LIB_NAME='lib$(GLW_LIB).so'
174 OSMESA_LIB_NAME='lib$(OSMESA_LIB).so'
176 AC_SUBST(GL_LIB_NAME)
177 AC_SUBST(GLU_LIB_NAME)
178 AC_SUBST(GLUT_LIB_NAME)
179 AC_SUBST(GLW_LIB_NAME)
180 AC_SUBST(OSMESA_LIB_NAME)
183 dnl Driver configuration. Options are xlib, dri and osmesa right now.
184 dnl More later: directfb, fbdev, ...
187 [AS_HELP_STRING([--with-driver=DRIVER],
188 [driver for Mesa: xlib,dri,osmesa @<:@default=xlib@:>@])],
189 mesa_driver="$withval",
191 dnl Check for valid option
192 case "x$mesa_driver" in
196 AC_MSG_ERROR([Driver '$mesa_driver' is not a valid option])
201 dnl Driver specific build directories
206 case "$mesa_driver" in
211 SRC_DIRS="glx/x11 $SRC_DIRS"
221 AC_SUBST(DRIVER_DIRS)
222 AC_SUBST(WINDOW_SYSTEM)
225 dnl User supplied program configuration
227 if test -d "$srcdir/progs/demos"; then
233 [AS_HELP_STRING([--with-demos@<:@=DIRS...@:>@],
234 [optional comma delimited demo directories to build
235 @<:@default=yes if source available@:>@])],
236 with_demos="$withval",
237 with_demos="$default_demos")
238 if test "x$with_demos" = x; then
242 dnl If $with_demos is yes, directories will be added as libs available
244 case "$with_demos" in
247 # verify the requested demos directories exist
248 demos=`IFS=,; echo $with_demos`
249 for demo in $demos; do
250 test -d "$srcdir/progs/$demo" || \
251 AC_MSG_ERROR([Program directory '$demo' doesn't exist])
253 PROGRAM_DIRS="$demos"
258 dnl Find out if X is available. The variables have_x or no_x will be
259 dnl set and used later in the driver setups
261 if test -n "$PKG_CONFIG"; then
262 AC_MSG_CHECKING([pkg-config files for X11 are available])
263 if $PKG_CONFIG --exists x11; then
275 dnl Use the autoconf macro if no pkg-config files
276 if test "$x11_pkgconfig" = no; then
280 dnl We need X for xlib and dri, so bomb now if it's not found
281 case "$mesa_driver" in
283 if test "$no_x" = yes; then
284 AC_MSG_ERROR([X11 development libraries needed for $mesa_driver driver])
290 dnl libGL configuration per driver
292 case "$mesa_driver" in
294 if test "$x11_pkgconfig" = yes; then
295 PKG_CHECK_MODULES(XLIBGL, x11 xext)
296 X11_INCLUDES="$X11_INCLUDES $XLIBGL_CFLAGS"
297 GL_LIB_DEPS="$XLIBGL_LIBS"
299 # should check these...
300 X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
301 GL_LIB_DEPS="$X_LIBS -lX11 -lXext"
303 GL_LIB_DEPS="$GL_LIB_DEPS -lm -lpthread"
305 # if static, move the external libraries to the programs
306 # and empty the libraries for libGL
307 if test "$enable_static" = yes; then
308 APP_LIB_DEPS="$APP_LIB_DEPS $GL_LIB_DEPS"
313 # DRI must be shared, I think
314 if test "$enable_static" = yes; then
315 AC_MSG_ERROR([Can't use static libraries for DRI drivers])
319 PKG_CHECK_MODULES(LIBDRM, libdrm)
321 # find the DRI deps for libGL
322 if test "$x11_pkgconfig" = yes; then
323 PKG_CHECK_MODULES(DRIGL, x11 xext xxf86vm xdamage xfixes)
324 X11_INCLUDES="$X11_INCLUDES $DRIGL_CFLAGS"
325 GL_LIB_DEPS="$DRIGL_LIBS"
327 # should check these...
328 X11_INCLUDES="$X11_INCLUDES $X_CFLAGS"
329 GL_LIB_DEPS="$X_LIBS -lX11 -lXext -lXxf86vm -lXdamage -lXfixes"
332 # need DRM libs, -lpthread, etc.
333 GL_LIB_DEPS="$GL_LIB_DEPS $LIBDRM_LIBS -lm -lpthread -ldl"
336 # No libGL for osmesa
340 AC_SUBST(GL_LIB_DEPS)
345 if test "$mesa_driver" = xlib; then
346 DEFINES="$DEFINES -DUSE_XSHM"
352 AC_ARG_ENABLE(glx-tls,
353 [AS_HELP_STRING([--enable-glx-tls],
354 [enable TLS support in GLX @<:@default=disabled@:>@])],
355 GLX_USE_TLS="$enableval",
357 dnl Directory for DRI drivers
358 AC_ARG_WITH(dri-driverdir,
359 [AS_HELP_STRING([--with-dri-driverdir=DIR],
360 [directory for the DRI drivers @<:@/usr/X11R6/lib/modules/dri@:>@])],
361 DRI_DRIVER_INSTALL_DIR="$withval",
362 DRI_DRIVER_INSTALL_DIR='/usr/X11R6/lib/modules/dri')
363 AC_SUBST(DRI_DRIVER_INSTALL_DIR)
364 dnl Direct rendering or just indirect rendering
365 AC_ARG_ENABLE(driglx-direct,
366 [AS_HELP_STRING([--disable-driglx-direct],
367 [enable direct rendering in GLX for DRI @<:@default=enabled@:>@])],
368 driglx_direct="$enableval",
371 dnl Which drivers to build - default is chosen by platform
372 AC_ARG_WITH(dri-drivers,
373 [AS_HELP_STRING([--with-dri-drivers@<:@=DIRS...@:>@],
374 [comma delimited DRI drivers to build @<:@default=auto by platform@:>@])],
375 with_dri_drivers="$withval",
376 with_dri_drivers=yes)
377 if test "x$with_dri_drivers" = x; then
381 dnl If $with_dri_drivers is yes, directories will be added through
384 case "$with_dri_drivers" in
387 # verify the requested driver directories exist
388 dri_drivers=`IFS=,; echo $with_dri_drivers`
389 for driver in $dri_drivers; do
390 test -d "$srcdir/src/mesa/drivers/dri/$driver" || \
391 AC_MSG_ERROR([DRI driver directory '$driver' doesn't exist])
393 DRI_DIRS="$dri_drivers"
397 dnl Just default to no EGL for now
401 dnl Set DRI_DIRS, DEFINES and LIB_DEPS
402 if test "$mesa_driver" = dri; then
404 if test "x$GLX_USE_TLS" = xyes; then
405 DEFINES="$DEFINES -DGLX_USE_TLS -DPTHREADS"
408 if test "x$USING_EGL" = x1; then
413 if test "x$DRI_DIRS" = x; then
414 DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon s3v \
415 savage sis tdfx trident unichrome ffb"
418 # Platform specific settings and drivers to build
421 DEFINES="$DEFINES -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER"
422 DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS"
423 if test "x$driglx_direct" = xyes; then
424 DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
429 # ffb, gamma, and sis are missing because they have not be
430 # converted to use the new interface. i810 are missing
431 # because there is no x86-64 system where they could *ever*
433 if test "x$DRI_DIRS" = x; then
434 DRI_DIRS="i915 i965 mach64 mga r128 r200 r300 radeon \
435 savage tdfx unichrome"
439 # Build only the drivers for cards that exist on PowerPC.
440 # At some point MGA will be added, but not yet.
441 if test "x$DRI_DIRS" = x; then
442 DRI_DIRS="mach64 r128 r200 r300 radeon tdfx"
448 DEFINES="$DEFINES -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1"
449 DEFINES="$DEFINES -DIN_DRI_DRIVER -DHAVE_ALIAS"
450 DEFINES="$DEFINES -DGLX_INDIRECT_RENDERING"
451 if test "x$driglx_direct" = xyes; then
452 DEFINES="$DEFINES -DGLX_DIRECT_RENDERING"
454 if test "x$GXX" = xyes; then
455 CXXFLAGS="$CXXFLAGS -ansi -pedantic"
458 # ffb and gamma are missing because they have not been converted
459 # to use the new interface.
460 if test "x$DRI_DIRS" = x; then
461 DRI_DIRS="i810 i915 i965 mach64 mga r128 r200 r300 radeon tdfx \
462 unichrome savage sis"
466 DRI_DIRS=`echo "$DRI_DIRS" | $SED 's/ */ /g'`
471 AC_ARG_WITH(expat, AS_HELP_STRING([--with-expat=DIR],
472 [expat install directory]),[
473 EXPAT_INCLUDES="-I$withval/include"
474 CPPFLAGS="$CPPFLAGS $EXPAT_INCLUDES"
475 LDFLAGS="$LDFLAGS -L$withval/$LIB_DIR"
476 EXPAT_LIB="-L$withval/$LIB_DIR -lexpat"
478 AC_CHECK_HEADER(expat.h,,AC_MSG_ERROR([Expat required for DRI.]))
479 AC_CHECK_LIB(expat, XML_ParserCreate,,
480 AC_MSG_ERROR([Expat required for DRI.]))
482 # put all the necessary libs together
483 DRI_LIB_DEPS="$LIBDRM_LIBS $EXPAT_LIB -lm -lpthread -ldl"
486 AC_SUBST(EXPAT_INCLUDES)
487 AC_SUBST(DRI_LIB_DEPS)
490 dnl OSMesa configuration
492 if test "$mesa_driver" = xlib; then
493 default_xlib_osmesa=yes
495 default_xlib_osmesa=no
497 AC_ARG_ENABLE(xlib-osmesa,
498 [AS_HELP_STRING([--disable-xlib-osmesa],
499 [enable OSMesa on Xlib libGL @<:@default=enabled for xlib driver@:>@])],
500 xlib_osmesa="$enableval",
501 xlib_osmesa="$default_xlib_osmesa")
502 if test "x$xlib_osmesa" = xyes; then
503 if test "$mesa_driver" = xlib; then
504 DRIVER_DIRS="$DRIVER_DIRS osmesa"
506 AC_MSG_ERROR([Can only enable OSMesa on libGL for Xlib])
510 dnl Configure the channel bits for OSMesa (libOSMesa, libOSMesa16, ...)
511 AC_ARG_WITH(osmesa-bits,
512 [AS_HELP_STRING([--with-osmesa-bits=BITS],
513 [OSMesa channel bits and library name: 8, 16, 32 @<:@default=8@:>@])],
514 osmesa_bits="$withval",
516 if test "$mesa_driver" != osmesa && test "x$osmesa_bits" != x8; then
517 AC_MSG_WARN([Ignoring OSMesa channel bits for non-OSMesa driver])
520 case "x$osmesa_bits" in
525 OSMESA_LIB="OSMesa$osmesa_bits"
526 DEFINES="$DEFINES -DCHAN_BITS=$osmesa_bits -DDEFAULT_SOFTWARE_DEPTH_BITS=31"
529 AC_MSG_ERROR([OSMesa bits '$osmesa_bits' is not a valid option])
534 case "$mesa_driver" in
536 # only link librararies with osmesa if shared
537 if test "$enable_static" = no; then
538 OSMESA_LIB_DEPS="-lm -lpthread"
545 # Link OSMesa to libGL otherwise
547 # only link librararies with osmesa if shared
548 if test "$enable_static" = no; then
549 OSMESA_MESA_DEPS='-l$(GL_LIB)'
555 AC_SUBST(OSMESA_LIB_DEPS)
556 AC_SUBST(OSMESA_MESA_DEPS)
559 dnl GLU configuration
562 [AS_HELP_STRING([--disable-glu],
563 [enable OpenGL Utility library @<:@default=enabled@:>@])],
564 enable_glu="$enableval",
566 if test "x$enable_glu" = xyes; then
567 SRC_DIRS="$SRC_DIRS glu"
569 case "$mesa_driver" in
571 # If GLU is available and we have libOSMesa (not 16 or 32),
572 # we can build the osdemos
573 if test "$with_demos" = yes && test "$osmesa_bits" = 8; then
574 PROGRAM_DIRS="$PROGRAM_DIRS osdemos"
577 # Link libGLU to libOSMesa instead of libGL
579 if test "$enable_static" = no; then
580 GLU_MESA_DEPS='-l$(OSMESA_LIB)'
586 # If GLU is available, we can build the xdemos
587 if test "$with_demos" = yes; then
588 PROGRAM_DIRS="$PROGRAM_DIRS xdemos"
591 # If static, empty GLU_LIB_DEPS and add libs for programs to link
592 if test "$enable_static" = no; then
594 GLU_MESA_DEPS='-l$(GL_LIB)'
598 APP_LIB_DEPS="$APP_LIB_DEPS -lstdc++"
603 AC_SUBST(GLU_LIB_DEPS)
604 AC_SUBST(GLU_MESA_DEPS)
607 dnl GLw configuration
610 [AS_HELP_STRING([--disable-glw],
611 [enable Xt/Motif widget library @<:@default=enabled@:>@])],
612 enable_glw="$enableval",
614 dnl Don't build GLw on osmesa
615 if test "x$enable_glw" = xyes && test "$mesa_driver" = osmesa; then
616 AC_MSG_WARN([Disabling GLw since the driver is OSMesa])
619 if test "x$enable_glw" = xyes; then
620 SRC_DIRS="$SRC_DIRS glw"
621 if test "$x11_pkgconfig" = yes; then
622 PKG_CHECK_MODULES(GLW, x11 xt)
623 GLW_LIB_DEPS="$GLW_LIBS"
625 # should check these...
626 GLW_LIB_DEPS="$X_LIBS -lX11 -lXt"
629 # If static, empty GLW_LIB_DEPS and add libs for programs to link
630 if test "$enable_static" = no; then
631 GLW_MESA_DEPS='-l$(GL_LIB)'
633 APP_LIB_DEPS="$APP_LIB_DEPS $GLW_LIB_DEPS"
638 AC_SUBST(GLW_LIB_DEPS)
639 AC_SUBST(GLW_MESA_DEPS)
642 dnl GLUT configuration
644 if test -f "$srcdir/include/GL/glut.h"; then
650 [AS_HELP_STRING([--disable-glut],
651 [enable GLUT library @<:@default=enabled if source available@:>@])],
652 enable_glut="$enableval",
653 enable_glut="$default_glut")
655 dnl Can't build glut if GLU not available
656 if test "x$enable_glu$enable_glut" = xnoyes; then
657 AC_MSG_WARN([Disabling glut since GLU is disabled])
660 dnl Don't build glut on osmesa
661 if test "x$enable_glut" = xyes && test "$mesa_driver" = osmesa; then
662 AC_MSG_WARN([Disabling glut since the driver is OSMesa])
666 if test "x$enable_glut" = xyes; then
667 SRC_DIRS="$SRC_DIRS glut/glx"
669 if test "x$GCC" = xyes; then
670 GLUT_CFLAGS="-fexceptions"
672 if test "$x11_pkgconfig" = yes; then
673 PKG_CHECK_MODULES(GLUT, x11 xmu xi)
674 GLUT_LIB_DEPS="$GLUT_LIBS"
676 # should check these...
677 GLUT_LIB_DEPS="$X_LIBS -lX11 -lXmu -lXi"
679 GLUT_LIB_DEPS="$GLUT_LIB_DEPS -lm"
681 # If glut is available, we can build most programs
682 if test "$with_demos" = yes; then
683 PROGRAM_DIRS="$PROGRAM_DIRS demos redbook samples glsl"
686 # If static, empty GLUT_LIB_DEPS and add libs for programs to link
687 if test "$enable_static" = no; then
688 GLUT_MESA_DEPS='-l$(GLU_LIB) -l$(GL_LIB)'
690 APP_LIB_DEPS="$APP_LIB_DEPS $GLUT_LIB_DEPS"
695 AC_SUBST(GLUT_LIB_DEPS)
696 AC_SUBST(GLUT_MESA_DEPS)
697 AC_SUBST(GLUT_CFLAGS)
700 dnl Program library dependencies
701 dnl Only libm is added here if necessary as the libraries should
702 dnl be pulled in by the linker
704 if test "x$APP_LIB_DEPS" = x; then
707 AC_SUBST(APP_LIB_DEPS)
708 AC_SUBST(PROGRAM_DIRS)
710 dnl Arch/platform-specific settings
717 AC_SUBST(ASM_SOURCES)
724 if test "x$enable_asm" = xyes; then
725 ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
726 ASM_SOURCES='$(X86_SOURCES)'
731 if test "x$enable_asm" = xyes; then
732 ASM_FLAGS="-DUSE_X86_64_ASM"
733 ASM_SOURCES='$(X86-64_SOURCES)'
734 ASM_API='$(X86-64_API)'
738 if test "x$enable_asm" = xyes; then
739 ASM_FLAGS="-DUSE_PPC_ASM -DUSE_VMX_ASM"
740 ASM_SOURCES='$(PPC_SOURCES)'
750 if test "x$enable_asm" = xyes; then
751 ASM_FLAGS="-DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM"
752 ASM_SOURCES='$(X86_SOURCES)'
757 if test "x$enable_asm" = xyes; then
758 ASM_FLAGS="-DUSE_X86_64_ASM"
759 ASM_SOURCES='$(X86-64_SOURCES)'
760 ASM_API='$(X86-64_API)'
767 dnl Restore LDFLAGS and CPPFLAGS
768 LDFLAGS="$_SAVE_LDFLAGS"
769 CPPFLAGS="$_SAVE_CPPFLAGS"
771 dnl Substitute the config
772 AC_OUTPUT([configs/autoconf])
774 dnl Replace the configs/current symlink
775 if test -f configs/current || test -L configs/current; then
776 rm -f configs/current
778 ln -s autoconf configs/current
781 dnl Output some configuration info for the user
784 echo " prefix: $prefix"
785 echo " exec_prefix: $exec_prefix"
786 echo " libdir: $libdir"
790 echo " Driver: $mesa_driver"
791 case "$mesa_driver" in
793 if echo "$DRIVER_DIRS" | grep 'osmesa' >/dev/null 2>&1; then
794 echo " OSMesa: lib$OSMESA_LIB"
800 # cleanup the drivers var
801 dri_dirs=`echo $DRI_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
802 echo " DRI drivers: $dri_dirs"
803 echo " DRI driver dir: $DRI_DRIVER_INSTALL_DIR"
809 echo " Shared libs: $enable_shared"
810 echo " Static libs: $enable_static"
811 echo " GLU: $enable_glu"
812 echo " GLw: $enable_glw"
813 echo " glut: $enable_glut"
816 # cleanup the programs var for display
817 program_dirs=`echo $PROGRAM_DIRS | $SED 's/^ *//;s/ */ /;s/ *$//'`
818 if test "x$program_dirs" = x; then
821 echo " Demos: $program_dirs"
825 # cleanup the CFLAGS/CXXFLAGS/DEFINES vars
826 cflags=`echo $CFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
827 $SED 's/^ *//;s/ */ /;s/ *$//'`
828 cxxflags=`echo $CXXFLAGS $OPT_FLAGS $PIC_FLAGS $ARCH_FLAGS | \
829 $SED 's/^ *//;s/ */ /;s/ *$//'`
830 defines=`echo $DEFINES $ASM_FLAGS | $SED 's/^ *//;s/ */ /;s/ *$//'`
832 echo " CFLAGS: $cflags"
833 echo " CXXFLAGS: $cxxflags"
834 echo " Macros: $defines"
837 echo " Run 'make' to build Mesa"