fixing rv10, this isnt the cleanest solution (parsing the packet header in the codec...
[libav.git] / configure
CommitLineData
de6d9b64 1#!/bin/sh
0f3cb305 2#
5cbcf02c 3# ffmpeg configure script (c) 2000, 2001, 2002 Fabrice Bellard
0f3cb305
FB
4#
5# set temporary file name
57514323 6if test ! -z "$TMPDIR" ; then
0f3cb305 7 TMPDIR1="${TMPDIR}"
57514323 8elif test ! -z "$TEMPDIR" ; then
0f3cb305 9 TMPDIR1="${TEMPDIR}"
3d204385 10else
0f3cb305 11 TMPDIR1="/tmp"
3d204385
NK
12fi
13
0f3cb305
FB
14TMPC="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.c"
15TMPO="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.o"
16TMPS="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.S"
17TMPH="${TMPDIR1}/ffmpeg-conf-${RANDOM}-$$-${RANDOM}.h"
18
de6d9b64
FB
19# default parameters
20prefix="/usr/local"
0f3cb305 21cross_prefix=""
de6d9b64
FB
22cc="gcc"
23ar="ar"
be7109c1 24ranlib="ranlib"
4a908fbc 25make="make"
0f3cb305 26strip="strip"
de6d9b64 27cpu=`uname -m`
0f3cb305 28mmx="default"
ab6c65f6 29altivec="default"
d46aba26 30mmi="default"
de6d9b64 31case "$cpu" in
ef0bc4c9 32 i386|i486|i586|i686|i86pc|BePC)
de6d9b64 33 cpu="x86"
de6d9b64 34 ;;
6ed7422a
FB
35 armv4l)
36 cpu="armv4l"
6ed7422a 37 ;;
91d1f1a4
NK
38 alpha)
39 cpu="alpha"
91d1f1a4 40 ;;
a43bd1d7 41 "Power Macintosh"|ppc)
90cee0c3
MN
42 cpu="powerpc"
43 ;;
d46aba26
LS
44 mips)
45 cpu="mips"
46 ;;
de6d9b64 47 *)
0f3cb305 48 cpu="unknown"
de6d9b64
FB
49 ;;
50esac
51gprof="no"
5cbcf02c
FB
52v4l="yes"
53audio_oss="yes"
54network="yes"
0147f198 55zlib="yes"
a6741398 56mp3lame="no"
81e0d0b4 57vorbis="no"
5cbcf02c 58a52="yes"
57514323 59a52bin="no"
daf8e955 60win32="no"
3f027ca7 61cygwin="no"
83286d2a 62lshared="no"
ef0bc4c9 63extralibs="-lm"
c02dbee1 64simpleidct="yes"
0f3cb305 65bigendian="no"
68892110 66vhook="no"
1eb2212e 67mpegaudio_hp="yes"
e1707f52 68SHFLAGS=-shared
ef0bc4c9
FR
69
70# OS specific
71targetos=`uname -s`
72case $targetos in
73BeOS)
74prefix="/boot/home/config"
75# helps building libavcodec
e1707f52
MN
76CFLAGS="-O3 -DPIC -fomit-frame-pointer"
77SHFLAGS=-nostart
78# disable linux things
79audio_oss="no"
5cbcf02c 80v4l="no"
ef0bc4c9
FR
81# no need for libm, but the inet stuff
82# Check for BONE
83if (echo $BEINCLUDES|grep 'headers/be/bone' >/dev/null); then
84extralibs="-lbind -lsocket"
85else
86echo "Not sure building for net_server will succeed... good luck."
87extralibs="-lsocket"
88fi ;;
4a908fbc 89BSD/OS)
5cbcf02c 90v4l="no"
6063bce7 91audio_oss="yes"
4a908fbc
AB
92extralibs="-lpoll -lgnugetopt -lm"
93make="gmake"
94;;
90cee0c3 95Darwin)
a43bd1d7 96cc="cc"
90cee0c3
MN
97v4l="no"
98audio_oss="no"
99CFLAGS="-no-cpp-precomp -pipe -O3 -fomit-frame-pointer"
a43bd1d7 100SHFLAGS="-dynamiclib"
90cee0c3 101extralibs=""
a43bd1d7 102darwin="yes"
90cee0c3 103;;
3f027ca7
FB
104CYGWIN*)
105v4l="no"
106audio_oss="yes"
107extralibs=""
108cygwin="yes"
109test -f /usr/include/inttypes.h || \
110test -f /usr/local/include/inttypes.h || \
111echo "Missing inttypes.h, please copy cygwin_inttypes.h to" \
112 "/usr/include/inttypes.h !!!"
113;;
ef0bc4c9
FR
114*) ;;
115esac
de6d9b64 116
0f3cb305
FB
117# find source path
118# XXX: we assume an absolute path is given when launching configure,
119# except in './configure' case.
120source_path=${0%configure}
121source_path=${source_path%/}
122source_path_used="yes"
123if test -z "$source_path" -o "$source_path" = "." ; then
124 source_path=`pwd`
125 source_path_used="no"
de6d9b64
FB
126fi
127
68892110
PG
128cat > $TMPC << EOF
129#include <dlfcn.h>
130int main( void ) { return (int) dlopen("foo", 0); }
131EOF
132
133if $cc -o $TMPO $TMPC -ldl 2> /dev/null ; then
134: vhook=yes
135fi
136
137cat > $TMPC << EOF
138#include <X11/Xlib.h>
139#include <Imlib2.h>
140int main( void ) { return (int) imlib_load_font("foo"); }
141EOF
142
143imlib2=no
144if $cc -o $TMPO $TMPC -lImlib2 2> /dev/null ; then
145imlib2=yes
146fi
147
de6d9b64
FB
148for opt do
149 case "$opt" in
150 --prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
151 ;;
0f3cb305
FB
152 --source-path=*) source_path=`echo $opt | cut -d '=' -f 2`
153 ;;
154 --cross-prefix=*) cross_prefix=`echo $opt | cut -d '=' -f 2`
155 ;;
de6d9b64
FB
156 --cc=*) cc=`echo $opt | cut -d '=' -f 2`
157 ;;
4a908fbc
AB
158 --make=*) make=`echo $opt | cut -d '=' -f 2`
159 ;;
0f3cb305
FB
160 --extra-cflags=*) CFLAGS="${opt#--extra-cflags=}"
161 ;;
162 --extra-ldflags=*) LDFLAGS=${opt#--extra-ldflags=}
163 ;;
164 --extra-libs=*) extralibs=${opt#--extra-libs=}
165 ;;
de6d9b64
FB
166 --cpu=*) cpu=`echo $opt | cut -d '=' -f 2`
167 ;;
168 --disable-mmx) mmx="no"
169 ;;
ab6c65f6
BF
170 --disable-altivec) altivec="no"
171 ;;
de6d9b64
FB
172 --enable-gprof) gprof="yes"
173 ;;
5cbcf02c
FB
174 --disable-v4l) v4l="no"
175 ;;
176 --disable-audio-oss) audio_oss="no"
177 ;;
178 --disable-network) network="no"
179 ;;
0147f198
FR
180 --disable-zlib) zlib="no"
181 ;;
5cbcf02c 182 --disable-a52) a52="no"
6ed7422a 183 ;;
57514323
ZK
184 --enable-a52bin) a52bin="yes" ; extralibs="-ldl $extralibs"
185 ;;
a6741398
J
186 --enable-mp3lame) mp3lame="yes"
187 ;;
81e0d0b4
MH
188 --enable-vorbis) vorbis="yes"
189 ;;
68892110
PG
190 --disable-vhook) vhook="no"
191 ;;
c02dbee1 192 --disable-simple_idct) simpleidct="no"
045ed63f 193 ;;
daf8e955
FB
194 --enable-win32) win32="yes"
195 ;;
83286d2a 196 --enable-shared) lshared="yes"
0319c531 197 ;;
1eb2212e
FB
198 --disable-mpegaudio-hp) mpegaudio_hp="no"
199 ;;
de6d9b64
FB
200 esac
201done
202
0f3cb305
FB
203# compute mmx state
204if test $mmx = "default"; then
205 if test $cpu = "x86"; then
206 mmx="yes"
207 else
208 mmx="no"
209 fi
210fi
211
ab6c65f6
BF
212# Can only do AltiVec on PowerPC
213if test $altivec = "default"; then
214 if test $cpu = "powerpc"; then
215 altivec="yes"
216 else
217 altivec="no"
218 fi
219fi
220
221# See does our compiler support Motorola AltiVec C API
222if test $altivec = "yes"; then
223cat > $TMPC << EOF
224int main(void) {
225 vector signed int v1, v2, v3;
226 v1 = vec_add(v2,v3);
227 return 0;
228}
229EOF
230$cc -o $TMPO $TMPC -faltivec 2> /dev/null || altivec="no"
231fi
232
d46aba26
LS
233# Can only do mmi on mips
234if test $mmi = "default"; then
235 if test $cpu = "mips"; then
236 mmi="yes"
237 else
238 mmi="no"
239 fi
240fi
241
242# See does our compiler support mmi
243if test $mmi = "yes"; then
244cat > $TMPC << EOF
245int main(void) {
246 __asm__ ("lq \$2, 0(\$2)");
247 return 0;
248}
249EOF
250$cc -o $TMPO $TMPC 2> /dev/null || mmi="no"
251fi
252
daf8e955
FB
253# Checking for CFLAGS
254if test -z "$CFLAGS"; then
29482cb4 255 CFLAGS="-O3"
daf8e955
FB
256fi
257
57514323 258if test "$win32" = "yes" ; then
daf8e955 259 cross_prefix="i386-mingw32msvc-"
5cbcf02c
FB
260 v4l="no"
261 audio_oss="no"
262 network="no"
daf8e955
FB
263fi
264
0f3cb305
FB
265cc="${cross_prefix}${cc}"
266ar="${cross_prefix}${ar}"
be7109c1 267ranlib="${cross_prefix}${ranlib}"
0f3cb305
FB
268strip="${cross_prefix}${strip}"
269
3d204385 270# ---
a3999908
MN
271# big/little endian test
272cat > $TMPC << EOF
273#include <inttypes.h>
274int main(int argc, char ** argv){
275 volatile uint32_t i=0x01234567;
276 return (*((uint8_t*)(&i))) == 0x67;
277}
278EOF
279
280if $cc -o $TMPO $TMPC 2>/dev/null ; then
281$TMPO && bigendian="yes"
282else
283echo big/little test failed
284fi
285
286# ---
3d204385
NK
287# check availability of some header files
288
289cat > $TMPC << EOF
290#include <malloc.h>
291int main( void ) { return 0; }
292EOF
293
294_memalign=no
295_malloc_h=no
296if $cc -o $TMPO $TMPC 2> /dev/null ; then
297_malloc_h=yes
298_memalign=yes
299# check for memalign - atmos
300cat > $TMPC << EOF
301#include <malloc.h>
302int main ( void ) {
303char *string = NULL;
304string = memalign(64, sizeof(char));
305return 0;
306}
307EOF
308$cc -o $TMPO $TMPC 2> /dev/null || _memalign=no
309fi
310
68892110
PG
311cat > $TMPC << EOF
312#define _GNU_SOURCE
313#include <time.h>
314int main( void ) { return *strptime("", "", 0); }
315EOF
316
317strptime=no
318if $cc -o $TMPO $TMPC 2> /dev/null ; then
319 strptime=yes
320fi
321
0147f198
FR
322if test "$zlib" = "yes"; then
323# check for zlib - mmu_man
324cat > $TMPC << EOF
325#include <zlib.h>
326int main ( void ) {
327if (zlibVersion() != ZLIB_VERSION)
328 puts("zlib version differs !!!");
329 return 1;
330return 0;
331}
332EOF
333$cc -o $TMPO $TMPC -lz 2> /dev/null || zlib="no"
334# $TMPO 2> /dev/null > /dev/null || zlib="no"
335# XXX: more tests needed - runtime test
336fi
337if test "$zlib" = "yes"; then
338extralibs="$extralibs -lz"
339fi
340
c13e1abd
FH
341_restrict=
342for restrict_keyword in restrict __restrict__ __restrict; do
343 echo "void foo(char * $restrict_keyword p);" > $TMPC
344 if $cc -c -o $TMPO $TMPC 2> /dev/null; then
345 _restrict=$restrict_keyword
346 break;
347 fi
348done
349
6063bce7 350if test x"$1" = x"-h" -o x"$1" = x"--help" ; then
0f3cb305
FB
351cat << EOF
352
353Usage: configure [options]
354Options: [defaults in brackets after descriptions]
355
356EOF
357echo "Standard options:"
358echo " --help print this message"
359echo " --prefix=PREFIX install in PREFIX [$prefix]"
0f3cb305 360echo " --enable-mp3lame enable mp3 encoding via libmp3lame [default=no]"
81e0d0b4 361echo " --enable-vorbis enable vorbis support via libvorbisenc [default=no]"
0f3cb305 362echo " --enable-win32 enable win32 cross compile"
5cbcf02c 363echo " --disable-a52 disable GPL'ed A52 support [default=no]"
0f3cb305
FB
364echo " --enable-a52bin open liba52.so.0 at runtime [default=no]"
365echo " --enable-shared build shared libraries [default=no]"
366echo ""
367echo "Advanced options (experts only):"
368echo " --source-path=PATH path of source code [$source_path]"
369echo " --cross-prefix=PREFIX use PREFIX for compile tools [$cross_prefix]"
370echo " --cc=CC use C compiler CC [$cc]"
4a908fbc 371echo " --make=MAKE use specified make [$make]"
0f3cb305
FB
372echo " --extra-cflags=ECFLAGS add ECFLAGS to CFLAGS [$CFLAGS]"
373echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
374echo " --extra-libs=ELIBS add ELIBS [$ELIBS]"
375echo " --cpu=CPU force cpu to CPU [$cpu]"
376echo " --disable-mmx disable mmx usage"
ab6c65f6 377echo " --disable-altivec disable AltiVec usage"
5cbcf02c 378echo " --disable-audio-oss disable OSS audio support [default=no]"
6063bce7 379echo " --disable-v4l disable video4linux grabbing [default=no]"
5cbcf02c 380echo " --disable-network disable network support [default=no]"
0147f198 381echo " --disable-zlib disable zlib [default=no]"
5cbcf02c 382echo " --disable-simple_idct disable simple IDCT routines [default=no]"
68892110 383# echo " --disable-vhook disable video hooking support"
0f3cb305 384echo " --enable-gprof enable profiling with gprof [$gprof]"
1eb2212e
FB
385echo " --disable-mpegaudio-hp faster (but less accurate)"
386echo " mpegaudio decoding [default=no]"
0f3cb305
FB
387echo ""
388echo "NOTE: The object files are build at the place where configure is launched"
389exit 1
390fi
391
de6d9b64 392echo "Install prefix $prefix"
0f3cb305 393echo "Source path $source_path"
de6d9b64 394echo "C compiler $cc"
4a908fbc 395echo "make $make"
de6d9b64 396echo "CPU $cpu"
0f3cb305 397echo "Big Endian $bigendian"
de6d9b64 398echo "MMX enabled $mmx"
d46aba26 399echo "MMI enabled $mmi"
ab6c65f6 400echo "AltiVec enabled $altivec"
de6d9b64 401echo "gprof enabled $gprof"
0147f198 402echo "zlib enabled $zlib"
a6741398 403echo "mp3lame enabled $mp3lame"
81e0d0b4 404echo "vorbis enabled $vorbis"
5cbcf02c 405echo "a52 support $a52"
57514323 406echo "a52 dlopened $a52bin"
68892110
PG
407# echo "Video hooking $vhook"
408
409if test "$vhook" = "yes" ; then
410: echo "Imlib2 support $imlib2"
411fi
de6d9b64 412
980fc7b8 413echo "Creating config.mak and config.h"
de6d9b64 414
980fc7b8 415echo "# Automatically generated by configure - do not modify" > config.mak
045ed63f 416echo "/* Automatically generated by configure - do not modify */" > $TMPH
de6d9b64 417
980fc7b8 418echo "prefix=$prefix" >> config.mak
4a908fbc 419echo "MAKE=$make" >> config.mak
980fc7b8
FB
420echo "CC=$cc" >> config.mak
421echo "AR=$ar" >> config.mak
be7109c1 422echo "RANLIB=$ranlib" >> config.mak
0f3cb305 423echo "STRIP=$strip" >> config.mak
a9b3f630 424echo "OPTFLAGS=$CFLAGS" >> config.mak
0f3cb305 425echo "LDFLAGS=$LDFLAGS" >> config.mak
e1707f52 426echo "SHFLAGS=$SHFLAGS" >> config.mak
57514323 427if test "$cpu" = "x86" ; then
980fc7b8 428 echo "TARGET_ARCH_X86=yes" >> config.mak
045ed63f 429 echo "#define ARCH_X86 1" >> $TMPH
0f3cb305 430elif test "$cpu" = "armv4l" ; then
6ed7422a 431 echo "TARGET_ARCH_ARMV4L=yes" >> config.mak
045ed63f 432 echo "#define ARCH_ARMV4L 1" >> $TMPH
0f3cb305 433elif test "$cpu" = "alpha" ; then
91d1f1a4 434 echo "TARGET_ARCH_ALPHA=yes" >> config.mak
045ed63f 435 echo "#define ARCH_ALPHA 1" >> $TMPH
0f3cb305
FB
436elif test "$cpu" = "powerpc" ; then
437 echo "TARGET_ARCH_POWERPC=yes" >> config.mak
438 echo "#define ARCH_POWERPC 1" >> $TMPH
d46aba26
LS
439elif test "$cpu" = "mips" ; then
440 echo "TARGET_ARCH_MIPS=yes" >> config.mak
441 echo "#define ARCH_MIPS 1" >> $TMPH
0f3cb305
FB
442fi
443if test "$bigendian" = "yes" ; then
444 echo "WORDS_BIGENDIAN=yes" >> config.mak
445 echo "#define WORDS_BIGENDIAN 1" >> $TMPH
91d1f1a4 446fi
57514323 447if test "$mmx" = "yes" ; then
980fc7b8 448 echo "TARGET_MMX=yes" >> config.mak
045ed63f 449 echo "#define HAVE_MMX 1" >> $TMPH
de6d9b64 450fi
d46aba26
LS
451if test "$mmi" = "yes" ; then
452 echo "TARGET_MMI=yes" >> config.mak
453 echo "#define HAVE_MMI 1" >> $TMPH
454fi
ab6c65f6
BF
455if test "$altivec" = "yes" ; then
456 echo "TARGET_ALTIVEC=yes" >> config.mak
457 echo "#define HAVE_ALTIVEC 1" >> $TMPH
458fi
57514323 459if test "$gprof" = "yes" ; then
980fc7b8 460 echo "TARGET_GPROF=yes" >> config.mak
045ed63f 461 echo "#define HAVE_GPROF 1" >> $TMPH
de6d9b64 462fi
68892110
PG
463if test "$strptime" = "yes" ; then
464 echo "#define HAVE_STRPTIME 1" >> $TMPH
465else
466 echo "BUILD_STRPTIME=yes" >> config.mak
467fi
468if test "$imlib2" = "yes" ; then
469 echo "HAVE_IMLIB2=yes" >> config.mak
470fi
471if test "$vhook" = "yes" ; then
472 echo "BUILD_VHOOK=yes" >> config.mak
473 echo "#define HAVE_VHOOK 1" >> $TMPH
474 extralibs="$extralibs -ldl"
475fi
57514323 476if test "$lshared" = "yes" ; then
0319c531 477 echo "BUILD_SHARED=yes" >> config.mak
5cbcf02c 478 echo "PIC=-fPIC" >> config.mak
0319c531 479fi
ef0bc4c9 480echo "EXTRALIBS=$extralibs" >> config.mak
0319c531 481echo -n "VERSION=" >>config.mak
0f3cb305 482head $source_path/VERSION >>config.mak
0319c531 483echo "" >>config.mak
d771bcae 484# if you do not want to use encoders, disable that.
045ed63f 485echo "#define CONFIG_ENCODERS 1" >> $TMPH
d771bcae
FB
486echo "CONFIG_ENCODERS=yes" >> config.mak
487
488# if you do not want to use decoders, disable that.
045ed63f 489echo "#define CONFIG_DECODERS 1" >> $TMPH
d771bcae
FB
490echo "CONFIG_DECODERS=yes" >> config.mak
491
5cbcf02c
FB
492# AC3
493if test "$a52" = "yes" ; then
494 echo "#define CONFIG_AC3 1" >> $TMPH
495 echo "CONFIG_AC3=yes" >> config.mak
d771bcae 496
5cbcf02c
FB
497 if test "$a52bin" = "yes" ; then
498 echo "#define CONFIG_A52BIN 1" >> $TMPH
499 echo "CONFIG_A52BIN=yes" >> config.mak
500 fi
501fi
502
1eb2212e
FB
503# mpeg audio high precision mode
504if test "$mpegaudio_hp" = "yes" ; then
505 echo "#define CONFIG_MPEGAUDIO_HP 1" >> $TMPH
506fi
507
5cbcf02c
FB
508if test "$v4l" = "yes" ; then
509 echo "#define CONFIG_VIDEO4LINUX 1" >> $TMPH
510 echo "CONFIG_VIDEO4LINUX=yes" >> config.mak
511fi
512
513if test "$audio_oss" = "yes" ; then
514 echo "#define CONFIG_AUDIO_OSS 1" >> $TMPH
515 echo "CONFIG_AUDIO_OSS=yes" >> config.mak
57514323
ZK
516fi
517
5cbcf02c
FB
518if test "$network" = "yes" ; then
519 echo "#define CONFIG_NETWORK 1" >> $TMPH
520 echo "CONFIG_NETWORK=yes" >> config.mak
6ed7422a 521fi
daf8e955 522
0147f198
FR
523if test "$zlib" = "yes" ; then
524 echo "#define CONFIG_ZLIB 1" >> $TMPH
525 echo "CONFIG_ZLIB=yes" >> config.mak
526fi
527
57514323 528if test "$mp3lame" = "yes" ; then
045ed63f 529 echo "#define CONFIG_MP3LAME 1" >> $TMPH
a6741398
J
530 echo "CONFIG_MP3LAME=yes" >> config.mak
531fi
532
81e0d0b4
MH
533if test "$vorbis" = "yes" ; then
534 echo "#define CONFIG_VORBIS 1" >> $TMPH
535 echo "CONFIG_VORBIS=yes" >> config.mak
536fi
537
57514323 538if test "$win32" = "yes" ; then
045ed63f 539 echo "#define CONFIG_WIN32 1" >> $TMPH
daf8e955
FB
540 echo "CONFIG_WIN32=yes" >> config.mak
541fi
3d204385 542
3f027ca7
FB
543if test "$cygwin" = "yes" ; then
544 # setup correct exesuffix
545 echo "CONFIG_WIN32=yes" >> config.mak
546fi
547
90cee0c3
MN
548if test "$darwin" = "yes"; then
549 echo "#define CONFIG_DARWIN 1" >> $TMPH
550 echo "CONFIG_DARWIN=yes" >> config.mak
551fi
552
57514323 553if test "$_malloc_h" = "yes" ; then
045ed63f 554 echo "#define HAVE_MALLOC_H 1" >> $TMPH
3d204385 555else
045ed63f 556 echo "#undef HAVE_MALLOC_H" >> $TMPH
3d204385
NK
557fi
558
57514323 559if test "$_memalign" = "yes" ; then
045ed63f
ZK
560 echo "#define HAVE_MEMALIGN 1" >> $TMPH
561else
562 echo "#undef HAVE_MEMALIGN" >> $TMPH
563fi
564
57514323 565if test "$simpleidct" = "yes" ; then
045ed63f
ZK
566 echo "#define SIMPLE_IDCT 1" >> $TMPH
567fi
568
c13e1abd
FH
569echo "#define restrict $_restrict" >> $TMPH
570
0f3cb305
FB
571# build tree in object directory if source path is different from current one
572if test "$source_path_used" = "yes" ; then
573 DIRS="libav libavcodec libavcodec/alpha libavcodec/armv4l libavcodec/i386 \
59925ef2 574 libavcodec/ppc libavcodec/liba52 libavcodec/mlib tests"
0f3cb305
FB
575 FILES="Makefile libav/Makefile libavcodec/Makefile tests/Makefile"
576 for dir in $DIRS ; do
577 mkdir -p $dir
578 done
579 for f in $FILES ; do
580 ln -sf $source_path/$f $f
581 done
582fi
583echo "SRC_PATH=$source_path" >> config.mak
584
a7c02e25 585diff $TMPH config.h >/dev/null 2>&1
045ed63f
ZK
586if test $? -ne 0 ; then
587 mv -f $TMPH config.h
3d204385 588else
045ed63f 589 echo "config.h is unchanged"
3d204385
NK
590fi
591
045ed63f 592rm -f $TMPO $TMPC $TMPS $TMPH