bumped version to 0.9.1, preparing for release
[swftools.git] / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2
3 dnl old autoconf
4 AC_INIT(src/)
5
6 dnl new autoconf
7 dnl AC_INIT
8 dnl AC_CONFIG_SRCDIR([src/])
9
10 # ------------------- option parsing -------------------------------
11
12 DEBUG=
13 CHECKMEM=
14 PROFILING=
15 ENABLE_WARNINGS=
16 OPTIMIZE=
17 DISABLE_LAME=
18
19 AC_ARG_ENABLE(checkmem,
20 [  --enable-checkmem       turn on ccmalloc debugging], CHECKMEM=true)
21 AC_ARG_ENABLE(debug,
22 [  --enable-debug          turn on debugging], DEBUG=true)
23 AC_ARG_ENABLE(profiling,
24 [  --enable-profiling      turn on profiling], PROFILING=true)
25 AC_ARG_ENABLE(warnings,
26 [  --enable-warnings       turn on compiler warnings], ENABLE_WARNINGS=true)
27 AC_ARG_ENABLE(optimizations,
28 [  --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)], OPTIMIZE=true)
29 AC_ARG_ENABLE(lame,
30 [  --disable-lame          don't compile any L.A.M.E. mp3 encoding code in],
31
32 if test "x$enable_lame" = "xno";then
33     DISABLE_LAME=yes
34 fi,DISABLE_LAME=)
35
36 PACKAGE=swftools
37 VERSION=0.9.1
38
39 # ------------------------------------------------------------------
40
41 if test "x${srcdir}" != "x."; then
42     echo "--srcdir is not supported"
43     exit 1
44 fi
45
46 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
47 if test "x$ENABLE_WARNINGS" '!=' "x";then
48     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
49 fi
50
51 if test "x$CHECKMEM" '!=' "x";then
52     DEBUG=yes
53 fi
54 if test "x$PROFILING" '!=' "x";then
55     DEBUG=yes
56 fi
57 if test "x$DEBUG" '!=' "x";then
58     if test "x$PROFILING" = "x";then
59         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
60         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
61         LDFLAGS="-g $LDFLAGS"
62     else
63         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
64         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
65         LDFLAGS="-g -pg $LDFLAGS"
66     fi
67 else if test "x$OPTIMIZE" '!=' "x"; then
68     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
69     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
70 else
71     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
72     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
73 fi
74 fi
75
76 CFLAGS="-fPIC $CFLAGS"
77 CXXFLAGS="-fPIC $CFLAGS"
78
79 #OLDGCC=1
80 #if test "x$OLDGCC" '!=' "x";then
81 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
82 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
83 #     CFLAGS="$CFLAGS -ansi -pendantic"
84 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
85 #fi
86
87 export PACKAGE VERSION CFLAGS CXXFLAGS
88
89 dnl Checks for programs.
90
91 AC_CANONICAL_HOST
92
93 SLEXT="so"
94 SHARED="-shared"
95 MACOSX=
96 case $host_os in
97     *darwin* ) 
98         MACOSX=yes
99         CFLAGS="$CFLAGS"
100         CXXFLAGS="$CXXFLAGS -fno-rtti"
101         SHARED="-bundle"
102         SLEXT="bundle"
103         if test -d /opt/local/include && test -d /opt/local/lib; then
104             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
105             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
106         fi
107         # Use fink packages if available.
108         #if test -d /sw/include && test -d /sw/lib; then
109         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
110         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
111         #fi
112         ;;
113 esac
114
115 AC_SUBST(SHARED)
116
117 dnl Checks for programs.
118  AC_PROG_CC
119  AC_PROG_CXX
120
121
122 RFX_CHECK_OLDGCC
123
124 if test "x$GCC_IS_OK" '=' "x";then
125     echo "***************************************************"
126     echo "* Your gcc is too old to compile this!"
127     echo "* "
128     echo "* The last version compileable by this compiler is "
129     echo "* swftools 0.7.0, which you can download from "
130     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
131     echo "* ."
132     echo "* Newer versions require at least gcc 3.0.0 "
133     echo "***************************************************"
134     exit 1
135 fi
136     
137 if test "x$CHECKMEM" '!=' "x";then
138     CC="ccmalloc $CC"
139     CXX="ccmalloc $CXX"
140     #echo running again
141     #unset ac_cv_prog_CC
142     #unset ac_cv_prog_CXX
143     #AC_PROG_CC
144     #AC_PROG_CXX
145 fi
146  AC_PROG_CPP
147
148  AC_PROG_RANLIB
149  AC_PROG_MAKE_SET
150  AC_PROG_INSTALL
151  AC_PROG_LN_S
152  AC_CHECK_PROGS(UNCOMPRESS, gzip uncompress compress, )
153
154 dnl PKG_PROG_PKG_CONFIG
155
156 dnl Checks for system services
157 OBJEXT="o"
158 AREXT=".a"
159 CXXLIBS="-lstdc++"
160
161 AC_EXEEXT
162
163 if test "x$EXEEXT" = "x.exe";then
164     OBJEXT="obj"
165     AREXT=".lib"
166     CXXLIBS=""
167 fi
168 AC_SUBST(OBJEXT)
169 AC_SUBST(AREXT)
170
171 RFX_CHECK_MING
172
173 if test "x${MINGW}" != "xyes"; then
174     # no mingW
175     AC_DEFINE([O_BINARY], [0], [Not defined on mingw])
176 else
177     # mingW
178     SLEXT="dll"
179     CXXLIBS=""
180 fi
181 export SLEXT
182 AC_SUBST(SLEXT)
183 AC_SUBST(CXXLIBS)
184
185 # The following tries to make use of includes and libraries in
186 # /usr/local, too. Notice: A -I/usr/local/include might break
187 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include, 
188 # especially on systems which link /usr/local to /usr, so it has yet
189 # to be seen how useful this is.
190 if test -d /usr/local/lib; then
191     LDFLAGS="$LDFLAGS -L/usr/local/lib"
192 fi
193 if test -d /usr/local/include; then
194 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
195 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
196     echo > /dev/null
197 fi
198 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
199     # if the user has a special prefix (like /opt), there might also be $prefix/lib
200     # and $prefix/include, which should be included in our search paths for libraries
201     # and includes.
202     LDFLAGS="$LDFLAGS -L${libdir}"
203     CPPFLAGS="$CPPFLAGS -I${includedir}"
204     # TODO- test whether gcc still works after this
205 fi
206
207 #Mac OS:
208 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
209
210
211 # this must be done after (I believe) AC_PROG_MAKE_SET
212 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
213     if test "$MACOSX";then
214         STRIP=dsymutil
215     else
216         STRIP="@echo debug enabled, not stripping "
217     fi
218     export STRIP
219     AC_SUBST(STRIP)
220 fi
221
222 dnl Checks for libraries.
223  AC_CHECK_LIB(m, sin,, 
224  echo "Error: Math library not found.";
225  exit;
226  )
227  AC_CHECK_LIB(z, deflate,, ZLIBMISSING=true)
228
229 if test "x$ZLIBMISSING" = "xtrue";then
230     echo 
231     echo "ERROR:"
232     echo "You need zlib to compile swftools"
233     echo
234     exit
235 fi
236
237 AC_CHECK_LIB(pdf, PDF_open_file,, PDFLIBMISSING=true)
238 AC_CHECK_LIB(jpeg, jpeg_write_raw_data,, JPEGLIBMISSING=true)
239 AC_CHECK_LIB(ungif, DGifOpen,, UNGIFMISSING=true)
240 if test "$UNGIFMISSING";then
241     UNGIFMISSING=
242     AC_CHECK_LIB(gif, DGifOpen,, UNGIFMISSING=true)
243 fi
244 AC_CHECK_LIB(zzip, zzip_file_open,, ZZIPMISSING=true)
245
246 RFX_CHECK_BYTEORDER
247 AC_SUBST(WORDS_BIGENDIAN)
248 RFX_CHECK_SYSTEM_BACKTICKS
249 AC_SUBST(SYSTEM_BACKTICKS)
250
251 AC_ARG_PROGRAM
252
253 dnl Checks for header files.
254  AC_CONFIG_HEADER(config.h)
255  AC_HEADER_DIRENT
256  AC_HEADER_STDC
257
258  AC_CHECK_HEADERS(zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h zzip/lib.h)
259
260 AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
261 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])
262 AC_SUBST(PACKAGE)
263 AC_SUBST(VERSION)
264
265 AC_SUBST(HAVE_UNISTD_H)
266 AC_SUBST(EXEEXT)
267
268 dnl Checks for typedefs, structures, and compiler characteristics.
269  AC_C_CONST
270  AC_C_INLINE
271  AC_TYPE_OFF_T
272  AC_TYPE_SIZE_T
273  AC_STRUCT_TM
274  AC_CHECK_TYPE(boolean,int) #needed for jpeglib
275  AC_CHECK_FUNCS(popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo open64 calloc)
276
277 AC_CHECK_SIZEOF([signed char])
278 AC_CHECK_SIZEOF([signed short])
279 AC_CHECK_SIZEOF([signed])
280 AC_CHECK_SIZEOF([signed long long])
281 AC_CHECK_SIZEOF([void*])
282
283 RFX_CHECK_FREETYPE
284
285 RFX_CHECK_FONTCONFIG
286
287 RFX_CHECK_FFTW
288
289 # RFX_CHECK_OPENGL
290 # if test "$HAVE_OPENGL";then
291 #     DEVICE_OPENGL='devices/opengl.$(O)'
292 #     AC_SUBST(DEVICE_OPENGL)
293 # fi
294 AC_SUBST(DEVICE_OPENGL)
295
296 lame_in_source= 
297 lame_makefile=
298 if test "x${DISABLE_LAME}" = "xtrue"; then
299     echo "*" Disabling lame support...
300 else
301     # old lame code at lib/lame
302     if test -f lib/lame/Makefile.in; then
303         lame_in_source='$(lame_objects)'
304         lame_makefile="lib/lame/Makefile"
305         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
306         AC_DEFINE([HAVE_LAME], [1], [have/use internal l.a.m.e. mp3 library])
307     else
308         if test -d /usr/include/lame; then
309             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
310         else
311             if test -d /usr/local/include/lame; then
312                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
313             fi
314         fi
315         AC_CHECK_LIB(mp3lame, lame_init,, NO_LIBMP3LAME=1)
316         HASLAMEHEADER=
317         AC_CHECK_HEADERS(lame.h,HASLAMEHEADER=1)
318         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
319             AC_DEFINE([HAVE_LAME], [1])
320         fi
321     fi
322 fi
323 AC_SUBST(lame_in_source)
324
325 splash_in_source='$(splash_objects)'
326 xpdf_in_source='$(xpdf_objects)'
327
328 dnl if test "x$USE_POPPLER" = "xtrue"; then
329 dnl     xpdf_in_source=
330 dnl     splash_in_source=
331 dnl     AC_DEFINE([HAVE_POPPLER],[1],[use poppler])
332 dnl     PKG_CHECK_MODULES([POPPLER],[poppler poppler-splash],,[poppler_pkgconfig=no])
333 dnl     if test "x$poppler_pkgconfig" = "xno"; then
334 dnl         AC_LANG_PUSH([C++])
335 dnl         AC_CHECK_HEADERS([OutputDev.h],[
336 dnl            AC_CHECK_LIB([poppler],[main],,[])
337 dnl         ],[AC_MSG_ERROR([No poppler library found. This library is required.])])
338 dnl         AC_LANG_POP
339 dnl     else
340 dnl     CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
341 dnl         AC_DEFINE([HAVE_POPPLER], [1])
342 dnl         LIBS="$LIBS $POPPLER_LIBS"
343 dnl     fi
344 dnl fi
345
346 AC_SUBST([xpdf_in_source])
347 AC_SUBST([splash_in_source])
348
349 # ------------------------------------------------------------------
350
351 RFX_CHECK_LOWERCASE_UPPERCASE
352 RFX_CHECK_AVI2SWF
353 if test "x${AVIFILE}" = "xtrue"; then
354     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
355     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
356     AC_DEFINE([HAVE_AVIFILE], [1], [Define if avifile is present])
357 fi
358
359 if test "x${WIN32}" != "x"; then
360     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
361     #if test "x${AVIFIL32}" != "x"; then
362     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
363     #fi
364     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
365     AVIFIL32=true
366 fi
367
368 AC_SUBST(VIDEO_LIBS)
369 AC_SUBST(VIDEO_CFLAGS)
370 # ------------------------------------------------------------------
371
372 if test "x${UNCOMPRESS}" = "xgzip"; then
373     AC_DEFINE([USE_GZIP], [1], [Define if gzip is present])
374 fi
375 AC_SUBST(USE_GZIP)
376
377 # ------------------------------------------------------------------
378
379 RFX_CHECK_PYTHON
380
381 if test "x$PYTHON_OK" '!=' "xyes";then
382     echo all install uninstall clean: > lib/python/Makefile
383     # fail silently- the most users won't have any need for the
384     # python interface anyway
385 else
386     pythongfx="lib/python/Makefile"
387 fi
388
389 # ------------------------------------------------------------------
390
391 RFX_CHECK_RUBY
392
393 if test "x$RUBY_OK" '!=' "xyes";then
394     echo all install uninstall clean: > lib/ruby/Makefile
395     # fail silently- the most users won't have any need for the
396     # ruby interface anyway
397 else
398     if test -f "lib/ruby/Makefile.in";then
399         rubygfx="lib/ruby/Makefile"
400     fi
401 fi
402
403 # ------------------------------------------------------------------
404
405 AC_MSG_CHECKING([for missing libraries])
406
407 if test "x$ZLIBMISSING" = "xtrue";then
408     MISSINGLIBS="${MISSINGLIBS} zlib"
409     DISABLEPNG2SWF=true
410     PARTIAL=true
411 fi
412 if test "x$JPEGLIBMISSING" = "xtrue";then
413     MISSINGLIBS="${MISSINGLIBS} jpeglib"
414     DISABLEPDF2SWF=true
415     DISABLEJPEG2SWF=true
416     PARTIAL=true
417 fi
418 if test "x$PDFLIBMISSING" = "xtrue";then
419     DISABLEPDF2PDF=true;
420 fi
421 #if test "x$T1LIBMISSING" = "xtrue";then
422 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
423 #fi
424 if test "x$UNGIFMISSING" = "xtrue";then
425     DISABLEGIF2SWF=true
426     MISSINGLIBS="${MISSINGLIBS} ungif"
427     PARTIAL=true
428 fi
429
430 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
431     DISABLEPDF2PDF=true;
432 fi
433 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
434     DISABLEPDF2SWF=true;
435     DISABLEJPEG2SWF=true;
436     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
437     PARTIAL=true
438 fi
439 if test "x$HAVE_FREETYPE" '!=' "x1"; then
440     DISABLEPDF2SWF=true;
441     MISSINGLIBS="${MISSINGLIBS} freetype"
442     PARTIAL=true
443 fi
444 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
445 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
446 #fi
447 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
448     DISABLEGIF2SWF=true
449     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
450     PARTIAL=true
451 fi
452 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
453     DISABLEPNG2SWF=true;
454     MISSINGLIBS="${MISSINGLIBS} zlib.h"
455     PARTIAL=true
456 fi
457 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
458 #    MISSINGLIBS="${MISSINGLIBS} avifile"
459 #fi
460
461 AC_MSG_RESULT(${MISSINGLIBS})
462
463 # ------------------------------------------------------------------
464
465 if test "x${MISSINGLIBS}" '!=' "x"; then
466   echo "***************************************************"
467   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
468 fi
469
470 avi2swf="avi2swf/Makefile"
471 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
472  #don't whine, avi2swf is outdated anyway
473  #echo "* Disabling avi2swf tool..."
474  echo all install uninstall clean: > avi2swf/Makefile
475  avi2swf=
476 fi
477
478 pdf2swf_makefile="lib/pdf/Makefile"
479 PDF2SWF='pdf2swf$(E)'
480 LIBPDF='libpdf$(A)'
481
482 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
483   echo "* Disabling pdf2swf tool..."
484   rm -f lib/pdf/Makefile
485   echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
486   pdf2swf_makefile=""
487   PDF2SWF=
488   LIBPDF=
489 fi
490 AC_SUBST(PDF2SWF)
491 AC_SUBST(LIBPDF)
492
493 PDF2PDF='pdf2pdf$(E)'
494 DEVICE_PDF='devices/pdf.$(O)'
495 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
496   #echo "* Disabling pdf2pdf tool..."
497   PDF2PDF=
498   DEVICE_PDF=
499 fi
500 AC_SUBST(DEVICE_PDF)
501 AC_SUBST(PDF2PDF)
502
503 if test "x${ZLIBMISSING}" = "xtrue"; then
504   echo
505   echo "* Warning! Without zlib, you will not be able to read"
506   echo "* or write compressed Flash MX files!"
507 fi
508
509 JPEG2SWF='jpeg2swf$(E)'
510 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
511   echo "* Disabling jpeg2swf tool..."
512   JPEG2SWF=
513 fi
514 export JPEG2SWF
515 AC_SUBST(JPEG2SWF)
516
517 GIF2SWF='gif2swf$(E)'
518 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
519   echo "* Disabling gif2swf tool..."
520   GIF2SWF=
521 fi
522 export GIF2SWF
523 AC_SUBST(GIF2SWF)
524
525 PNG2SWF='png2swf$(E)'
526 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
527   echo "* Disabling png2swf tool..."
528   PNG2SWF=
529 fi
530 export PNG2SWF
531 AC_SUBST(PNG2SWF)
532
533 if test "x${MISSINGLIBS}" '!=' "x"; then
534   if test "x${PARTIAL}" '=' "x"; then
535     echo "* (never mind)"
536   fi
537   echo "***************************************************"
538 fi
539
540 # ------------------------------------------------------------------
541
542 AH_TOP([
543 #ifndef __config_h__
544 #define __config_h__
545 ])
546
547 AH_BOTTOM([
548 #ifdef HAVE_ZLIB_H
549 #ifdef HAVE_LIBZ
550 #define HAVE_ZLIB
551 #endif
552 #endif
553
554 #ifdef HAVE_JPEGLIB_H
555 #ifdef HAVE_LIBJPEG
556 #define HAVE_JPEGLIB
557 #endif
558 #endif
559
560 #ifdef HAVE_FT2BUILD_H
561 #define HAVE_FREETYPE_H 1
562 #endif
563
564 #ifdef HAVE_GL_GL_H
565 #ifdef HAVE_GL_GLUT_H
566 #ifdef HAVE_OPENGL
567 #define USE_OPENGL
568 #endif
569 #endif
570 #endif
571
572 #ifdef HAVE_POPPLER
573 #define GString GooString
574 #define GHash GooHash
575 #endif
576
577 #ifdef HAVE_ZZIP_LIB_H
578 #ifdef HAVE_LIBZZIP
579 #define HAVE_ZZIP 1
580 #endif
581 #endif
582
583 // supply a substitute calloc function if necessary
584 #ifndef HAVE_CALLOC
585 #define calloc rfx_calloc_replacement
586 #endif
587
588 #endif // __config_h__
589 ])
590
591 if test -f "release.in"; then release_in="./release"; fi
592 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
593 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${rubygfx} ${lame_makefile} lib/readers/Makefile"
594 AC_OUTPUT(${FILES})
595
596 dnl new autoconf
597 dnl AC_CONFIG_FILES([${FILES}])
598 dnl AC_OUTPUT
599
600 #
601 # On development trees, create snapshots of config.status
602 #
603 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
604     if test "x${MINGW}" = "xyes"; then
605         echo cp config.status config.status.win32
606         cp config.status config.status.win32
607     else
608         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
609             echo cp config.status config.status.linux
610             cp config.status config.status.linux
611         fi
612         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
613             echo cp config.status config.status.debug
614             cp config.status config.status.debug
615         fi
616         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
617             echo cp config.status config.status.optimize
618             cp config.status config.status.optimize
619         fi
620     fi
621 fi