configure.in 27.1 KB
Newer Older
Elliot Lee's avatar
Elliot Lee committed
1 2 3 4
dnl Process this file with autoconf to produce a configure script.
AC_INIT(gimprc.in)

dnl Initialize automake stuff
Manish Singh's avatar
Manish Singh committed
5
GIMP_MAJOR_VERSION=1
Manish Singh's avatar
Manish Singh committed
6
GIMP_MINOR_VERSION=3
Manish Singh's avatar
Manish Singh committed
7
GIMP_MICRO_VERSION=0
Manish Singh's avatar
Manish Singh committed
8 9
GIMP_INTERFACE_AGE=0
GIMP_BINARY_AGE=0
10
GIMP_VERSION=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION.$GIMP_MICRO_VERSION
Elliot Lee's avatar
Elliot Lee committed
11

Manish Singh's avatar
Manish Singh committed
12 13 14 15 16 17 18 19 20 21
dnl libtool versioning
LT_RELEASE=$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
LT_CURRENT=`expr $GIMP_MICRO_VERSION - $GIMP_INTERFACE_AGE`
LT_REVISION=$GIMP_INTERFACE_AGE
LT_AGE=`expr $GIMP_BINARY_AGE - $GIMP_INTERFACE_AGE`

VERSION=$GIMP_VERSION
PACKAGE=gimp

AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
Elliot Lee's avatar
Elliot Lee committed
22

23

Elliot Lee's avatar
Elliot Lee committed
24 25 26 27 28 29 30 31 32 33
AM_CONFIG_HEADER(config.h)

dnl Initialize libtool
AM_PROG_LIBTOOL

dnl Initialize maintainer mode
AM_MAINTAINER_MODE

AC_CANONICAL_HOST

34 35 36 37 38 39 40 41 42
dnl Checks for programs.
AC_PROG_CC
AC_ISC_POSIX
AM_PROG_CC_STDC
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_CPP

Elliot Lee's avatar
Elliot Lee committed
43 44 45 46 47
AC_ARG_ENABLE(debug, [  --enable-debug          turn on debugging [default=no]],
if eval "test x$enable_debug = xyes"; then
  DEBUGFLAG="-g"
fi)

48 49 50 51
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"

dnl Why the heck isn't there already a macro for this?

Manish Singh's avatar
Manish Singh committed
52 53 54 55 56
dnl AC_ARG_WITH(gnu-make, [  --with-gnu-make         assume 'make' understands gnu extensions],
dnl,
dnl if $ac_make -v 2>/dev/null | grep 'GNU Make' >/dev/null; then
dnl   with_gnu_make=yes
dnl fi)
57

Elliot Lee's avatar
Elliot Lee committed
58 59 60 61
AC_ARG_ENABLE(ansi, [  --enable-ansi           turn on strict ansi [default=no]],
		    , enable_ansi=no)

dnl Possibly change default gimpdir from .gimp
62
gimpdir=.$PACKAGE-$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
63
AC_ARG_ENABLE(gimpdir, [  --enable-gimpdir=DIR    change default gimpdir from .gimp-1.3 to DIR],
Elliot Lee's avatar
Elliot Lee committed
64 65 66 67 68 69 70
if eval "test x$enable_gimpdir != x"; then
  if eval "test x$enable_gimpdir != xyes"; then
    gimpdir=$enable_gimpdir
  fi
fi)

if test -n "$DEBUGFLAG"; then
71
  CFLAGS="$DEBUGFLAG $CFLAGS"
Elliot Lee's avatar
Elliot Lee committed
72 73
fi

74 75 76 77 78 79 80 81 82 83 84 85 86 87
AC_MSG_CHECKING(whether make is GNU Make)
STRIP_BEGIN=
STRIP_END=
if $ac_make --version 2>/dev/null | grep '^GNU Make ' >/dev/null ; then
	STRIP_BEGIN='$(strip $(STRIP_DUMMY)'
	STRIP_END=')'
	AC_MSG_RESULT(yes)
else
	AC_MSG_RESULT(no)
fi
STRIP_DUMMY=
AC_SUBST(STRIP_DUMMY)
AC_SUBST(STRIP_BEGIN)
AC_SUBST(STRIP_END)
Manish Singh's avatar
Manish Singh committed
88

89
dnl i18n stuff
90
ALL_LINGUAS="ca cs da de en_GB es fi fr ga gl hu hr it ja ko nl no pl pt_BR ro ru sk sv tr uk zh_TW.Big5"
91

92 93
AM_GNU_GETTEXT

94 95
AC_PATH_XTRA

Sven Neumann's avatar
Sven Neumann committed
96 97 98
dnl Find pkg-config
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
if test x$PKG_CONFIG = xno ; then
99 100 101
  AC_MSG_ERROR([
*** pkg-config not found.
    See the file 'INSTALL' for help.])
Sven Neumann's avatar
Sven Neumann committed
102 103 104
fi

if ! pkg-config --atleast-pkgconfig-version 0.7 ; then
105 106 107
  AC_MSG_ERROR([
*** pkg-config too old; version 0.7 or better required.
    See the file 'INSTALL' for help.])
Sven Neumann's avatar
Sven Neumann committed
108 109
fi

110
dnl Check for GTK+
111
AM_PATH_GTK_2_0(1.3.7,,
Manish Singh's avatar
Manish Singh committed
112
  AC_MSG_ERROR(Test for GTK failed. See the file 'INSTALL' for help.))
Elliot Lee's avatar
Elliot Lee committed
113

Manish Singh's avatar
Manish Singh committed
114 115
changequote(,)dnl

Manish Singh's avatar
Manish Singh committed
116 117
dnl Evil stuff to extract GLIB stuff from gtk-config output
dnl (we want to make sure it matches with the gtk we're using)
118 119 120 121 122 123 124 125
GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^\(-I[^ ]*\).*$/\1/'`
if echo $GTK_TEMP_CFLAGS | grep 'glib/include$' > /dev/null; then
  GTK_TEMP_CFLAGS=$GTK_CFLAGS
else
  GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^-I[^ ]* \(.*\)$/\1/'`
fi
GLIB_CFLAGS=`echo $GTK_TEMP_CFLAGS | sed 's/^\(-I[^ ]*glib[^ ]*  *-I[^ ]*\).*/\1/'`

Manish Singh's avatar
Manish Singh committed
126
GLIB_LDFLAGS=`echo $GTK_LIBS | sed -e 's/^.*-lgdk[^ ]* *\(-L[^ ]*\).*$/\1/' -e 's/^.* -lgdk[^ ]* .*$//'`
127
if test -z "$GLIB_LDFLAGS" ; then
Manish Singh's avatar
Manish Singh committed
128
  GLIB_LDFLAGS=`echo $GTK_LIBS | sed 's/^ *\(-L[^ ]*\) .*$/\1/'`
Manish Singh's avatar
Manish Singh committed
129
fi 
Manish Singh's avatar
Manish Singh committed
130
GLIB_LIBS="$GLIB_LDFLAGS `echo $GTK_LIBS | sed 's/^.*\(-lglib[^ ]*\).*$/\1/'`"
Manish Singh's avatar
Manish Singh committed
131

Elliot Lee's avatar
Elliot Lee committed
132
if eval "test x$GCC = xyes"; then
Manish Singh's avatar
Manish Singh committed
133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
  case " $CFLAGS " in
  *[\ \	]-Wall[\ \	]*) ;;
  *) CFLAGS="$CFLAGS -Wall" ;;
  esac

  if test "x$enable_ansi" = "xyes"; then
    case " $CFLAGS " in
    *[\ \	]-ansi[\ \	]*) ;;
    *) CFLAGS="$CFLAGS -ansi" ;;
    esac

    case " $CFLAGS " in
    *[\ \	]-pedantic[\ \	]*) ;;
    *) CFLAGS="$CFLAGS -pedantic" ;;
    esac
Elliot Lee's avatar
Elliot Lee committed
148 149 150
  fi
fi

Manish Singh's avatar
Manish Singh committed
151 152
changequote([,])dnl

David Neary's avatar
ted  
David Neary committed
153 154
AC_CHECK_HEADERS(math.h ieeefp.h)

Manish Singh's avatar
Manish Singh committed
155 156 157 158 159 160 161 162 163 164 165 166 167 168
dnl DU4 native cc currently needs -std1 for ANSI mode (instead of K&R)
AC_MSG_CHECKING([for extra flags to get ANSI library prototypes])
gimp_save_LIBS=$LIBS
LIBS="$LIBS -lm"
AC_TRY_RUN([#include <math.h>
             int main (void) { return (log(1) != log(1.)); }],
  AC_MSG_RESULT(none needed),
  gimp_save_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS -std1"
  AC_TRY_RUN([#include <math.h>
               int main (void) { return (log(1) != log(1.)); }],
    AC_MSG_RESULT(-std1),
    AC_MSG_RESULT()
    CFLAGS=$gimp_save_CFLAGS
169 170 171 172
    AC_MSG_WARN([No ANSI prototypes found in library. (-std1 didn't work.)]),
    AC_MSG_RESULT),
  AC_MSG_RESULT())

Manish Singh's avatar
Manish Singh committed
173 174 175 176 177 178 179 180 181 182 183 184
LIBS=$gimp_save_LIBS

dnl NeXTStep cc seems to need this
AC_MSG_CHECKING([for extra flags for POSIX compliance])
AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
  AC_MSG_RESULT(none needed),
  gimp_save_CFLAGS=$CFLAGS
  CFLAGS="$CFLAGS -posix"
  AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
    AC_MSG_RESULT(-posix),
    AC_MSG_RESULT()
    CFLAGS=$gimp_save_CFLAGS
185
    AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
Manish Singh's avatar
Manish Singh committed
186

187
gimp_save_CPPFLAGS="$CPPFLAGS"
188
gimp_save_LDFLAGS="$LDFLAGS"
Manish Singh's avatar
Manish Singh committed
189 190
gimp_save_LIBS="$LIBS"

191 192
CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
LDFLAGS="$LDFLAGS `echo $GTK_LIBS | sed 's/\(.*\)\(-lgtk.*\)/\1/'`"
Manish Singh's avatar
Manish Singh committed
193 194
LIBS="$LIBS $GTK_LIBS"

195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
dnl Test for MMX stuff
have_asm_mmx=false
AC_MSG_CHECKING([for Intel Pentium architecture (IA32)])
if test "$host_cpu" = "i386" -o "$host_cpu" = "i486"\
  -o "$host_cpu" = "i586" -o "$host_cpu" = "i586"\
  -o "$host_cpu" = "i686" -o "$host_cpu" = "i786" ;
then
  AC_MSG_RESULT(yes)  
  AC_MSG_CHECKING([for support for gcc-style register parameters on Intel])
  AC_TRY_COMPILE([],
   [extern void x(
    const unsigned char *src1,
    const unsigned char *src2,
    unsigned count,
    unsigned char *dst) __attribute((regparm(3)));],

   [AC_MSG_RESULT(yes)

    AC_MSG_CHECKING([for support for MMX in assembly code])
    cat > conftest.S <<EOF
	  .text

	  psubusb %mm3, %mm4
EOF

    if $CC -c conftest.S ; then
      AC_MSG_RESULT(yes)
      rm -f conftest.*
      AC_DEFINE(HAVE_ASM_MMX)
      have_asm_mmx=true
    else
      AC_MSG_RESULT(no)
      echo "configure: failed program was:" >&AC_FD_CC
      cat conftest.S >&AC_FD_CC
      rm -rf conftest.* ;
    fi
   ],
   [AC_MSG_RESULT(no)
    AC_MSG_WARN(*** C compiler does not support  __attribute((regparm(3))), MMX code will not be built)]);
else
  AC_MSG_RESULT(no) ; 
fi
AM_CONDITIONAL(HAVE_ASM_MMX, test x$have_asm_mmx = xtrue)

239
dnl Check if building for GTK+-X11
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
gdk_target=`$PKG_CONFIG --variable=target gtk+-2.0`
if test "$gdk_target" = x11; then
  dnl Test for Xmu
    if test -z "$LIBXMU"; then
      AC_CHECK_LIB(Xmu, XmuClientWindow,
        AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
	  WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt -lSM -lICE',
	  AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
	  AC_CHECK_LIB(Xmu, XmuUpdateMapHints,
	    AC_CHECK_HEADER(X11/Xmu/WinUtil.h,
	      WEBBROWSER="webbrowser"; GIMP_REMOTE="gimp-remote"; LIBXMU='-lXmu -lXt',
	      AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU header file not found) ***)),
	  AC_MSG_WARN(*** webbrowser plug-in and gimp-remote will not be built (XMU library not found) ***), -lXt), -lXt -lSM -lICE)
    fi
  else
     AC_MSG_WARN([ 
256
*** Not building for GTK+-X11 (GDK backend is $gdk_target).
257
*** Webbrowser plug-in and gimp-remote will not be built.])
Manish Singh's avatar
Manish Singh committed
258 259
  fi

260
dnl Test for libaa
Manish Singh's avatar
Manish Singh committed
261
  if test -z "$LIBAA"; then
262
    AC_CHECK_LIB(aa, aa_printf,
263
      AC_CHECK_HEADER(aalib.h,
Manish Singh's avatar
Manish Singh committed
264
	AA='aa'; LIBAA='-laa',
265 266
	AC_MSG_WARN(*** AA plug-in will not be built (AA header file not found) ***)),
      AC_MSG_WARN(*** AA plug-in will not be built (AA library not found) ***))
267 268
  fi

Elliot Lee's avatar
Elliot Lee committed
269
dnl Test for libtiff
Manish Singh's avatar
Manish Singh committed
270
  if test -z "$LIBTIFF"; then
Elliot Lee's avatar
Elliot Lee committed
271
    AC_CHECK_LIB(tiff, TIFFReadScanline,
272
      AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
273
	TIFF='tiff'; LIBTIFF='-ltiff',
274
	AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Elliot Lee's avatar
Elliot Lee committed
275
      AC_CHECK_LIB(tiff, TIFFWriteScanline,
276
	AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
277
          TIFF='tiff'; LIBTIFF='-ltiff -ljpeg -lz',
278
	  AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Manish Singh's avatar
Manish Singh committed
279
	AC_CHECK_LIB(tiff34, TIFFFlushData,
280
	  AC_CHECK_HEADER(tiffio.h,
Manish Singh's avatar
Manish Singh committed
281
            TIFF='tiff'; LIBTIFF='-ltiff34 -ljpeg -lz',
282
	    AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF header files not found) ***)),
Manish Singh's avatar
Manish Singh committed
283
        AC_MSG_WARN(*** TIFF plug-in will not be built (TIFF library not found) ***), -ljpeg -lz -lm), -ljpeg -lz -lm), -lm)
Elliot Lee's avatar
Elliot Lee committed
284 285 286
  fi

dnl Test for libjpeg
Manish Singh's avatar
Manish Singh committed
287
  if test -z "$LIBJPEG"; then
288
    AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
289 290
      jpeg_ok=yes,
      jpeg_ok=no
Sven Neumann's avatar
Sven Neumann committed
291 292
      AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG library not found) ***)
      AC_MSG_WARN(*** XJT plug-in will not be built (JPEG library not found) ***))
293
    if test "$jpeg_ok" = yes; then
294
      AC_MSG_CHECKING([for jpeglib.h])
295
      AC_TRY_CPP(
296
[#include <stdio.h>
297 298
#undef HAVE_STDDEF_H
#undef HAVE_STDLIB_H
299
#undef PACKAGE
300 301 302 303 304 305
#undef VERSION
#include <jpeglib.h>],
	jpeg_ok=yes,
	jpeg_ok=no)
      AC_MSG_RESULT($jpeg_ok)
      if test "$jpeg_ok" = yes; then
Manish Singh's avatar
Manish Singh committed
306
	JPEG='jpeg'; XJT='xjt'; LIBJPEG='-ljpeg'
307 308 309
	AC_CHECK_LIB(jpeg, jpeg_simple_progression,	
	  AC_DEFINE(HAVE_PROGRESSIVE_JPEG),
	  AC_MSG_WARN(JPEG library does not support progressive saving.))
310 311
      else
	AC_MSG_WARN(*** JPEG plug-in will not be built (JPEG header file not found) ***)
Sven Neumann's avatar
Sven Neumann committed
312
        AC_MSG_WARN(*** XJT plug-in will not be built (JPEG header file not found) ***)
313 314
      fi
    fi
Elliot Lee's avatar
Elliot Lee committed
315 316
  fi

317 318 319 320 321 322 323 324 325
dnl Test for libz
  if test -z "$LIBZ"; then
    AC_CHECK_LIB(z, gzsetparams,
      AC_CHECK_HEADER(zlib.h,
	PSP='psp'; LIBZ='-lz',
	AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB header files not found) ***)),
      AC_MSG_WARN(*** PSP and PNG plug-ins will not be built (ZLIB library not found) ***))
  fi

Elliot Lee's avatar
Elliot Lee committed
326
dnl Test for libpng
327
  if test -z "$LIBPNG" && test -n "$LIBZ"; then
Elliot Lee's avatar
Elliot Lee committed
328
    AC_CHECK_LIB(png, png_read_info,
329 330 331 332 333 334 335
      AC_CHECK_HEADER(png.h,
	png_ok=yes,
	png_ok=no),
      AC_MSG_WARN(*** PNG plug-in will not be built (PNG library not found) ***), -lz -lm)
    if test "$png_ok" = yes; then
      AC_MSG_CHECKING([for png_structp in png.h])
      AC_TRY_COMPILE([#include <png.h>],
336
        [png_structp pp; png_infop info; png_colorp cmap; png_create_read_struct;],
337 338 339 340
        png_ok=yes,
        png_ok=no)
      AC_MSG_RESULT($png_ok)
      if test "$png_ok" = yes; then
341
        PNG='png'; LIBPNG="-lpng $LIBZ"
342 343 344 345 346 347
      else
        AC_MSG_WARN(*** PNG plug-in will not be built (PNG library is too old) ***)
      fi
    else
      AC_MSG_WARN(*** PNG plug-in will not be built (PNG header file not found) ***)
    fi
Elliot Lee's avatar
Elliot Lee committed
348 349 350
  fi

dnl Test for libmpeg
Manish Singh's avatar
Manish Singh committed
351
  if test -z "$LIBMPEG"; then
Elliot Lee's avatar
Elliot Lee committed
352
    AC_CHECK_LIB(mpeg, GetMPEGFrame,
353
      AC_CHECK_HEADER(mpeg.h,
354
	MPEG='mpeg'; LIBMPEG='-lmpeg'; GAP_DECODE_MPEG='gap_decode_mpeg',
355 356
	AC_MSG_WARN(*** MPEG plug-in will not be built (MPEG header file not found) ***)),
      AC_MSG_WARN(*** MPEG plug-in will not be built (MPEG library not found) ***))
Elliot Lee's avatar
Elliot Lee committed
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392
  fi

dnl Check for shared memory
AC_CHECK_HEADER(sys/ipc.h, AC_DEFINE(HAVE_IPC_H), no_sys_ipc=yes)
AC_CHECK_HEADER(sys/shm.h, AC_DEFINE(HAVE_SHM_H), no_sys_shm=yes)
if test "$ac_cv_header_sys_shm_h" = "yes"; then
  AC_MSG_CHECKING(whether shmctl IPC_RMID allowes subsequent attaches)
  AC_TRY_RUN([
	#include <sys/types.h>
	#include <sys/ipc.h>
	#include <sys/shm.h>
	int main()
	{
	  int id;
	  char *shmaddr;
	id = shmget (IPC_PRIVATE, 4, IPC_CREAT | 0777);
	if (id == -1)
	  exit (2);
	  shmaddr = shmat (id, 0, 0);
	  shmctl (id, IPC_RMID, 0);
	  if ((char*) shmat (id, 0, 0) == (char*) -1)
	  {
	    shmdt (shmaddr);
	    exit (1);
	  }
	  shmdt (shmaddr);
	  shmdt (shmaddr);
	  exit (0);
	}
    ],
    AC_DEFINE(IPC_RMID_DEFERRED_RELEASE)
      AC_MSG_RESULT(yes),
    AC_MSG_RESULT(no),
    AC_MSG_RESULT(assuming no))
fi

393 394 395 396 397 398 399 400 401 402 403 404 405
AC_MSG_CHECKING(checking for regex in glibc)
AC_TRY_RUN([
#include <features.h>
#include <stdio.h>
#include <regex.h>
int main()
{
#if __GLIBC__ >= 2
  return (0);
#else
  return (1);
#endif
}], AC_DEFINE(HAVE_GLIBC_REGEX)
406
    have_glibc_regex=yes
407 408 409
    AC_MSG_RESULT(yes),
    AC_MSG_RESULT(no),
    AC_MSG_RESULT(assuming no))
410
AM_CONDITIONAL(HAVE_GLIBC_REGEX, test x$have_glibc_regex = xyes)
411

Elliot Lee's avatar
Elliot Lee committed
412 413 414 415 416
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_TIME

417
AC_CHECK_HEADER(sys/param.h, AC_DEFINE(HAVE_SYS_PARAM_H))
Elliot Lee's avatar
Elliot Lee committed
418
AC_CHECK_HEADER(sys/time.h, AC_DEFINE(HAVE_SYS_TIME_H))
419 420
AC_CHECK_HEADER(sys/times.h, AC_DEFINE(HAVE_SYS_TIMES_H))
AC_CHECK_HEADER(sys/wait.h, AC_DEFINE(HAVE_SYS_WAIT_H))
Elliot Lee's avatar
Elliot Lee committed
421 422 423 424 425 426
AC_CHECK_HEADER(unistd.h, AC_DEFINE(HAVE_UNISTD_H))

AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF

Manish Singh's avatar
Manish Singh committed
427 428
AC_FUNC_ALLOCA

David Neary's avatar
ted  
David Neary committed
429 430 431 432 433 434 435 436 437 438 439 440 441 442
dnl Check for finite or isfinite
AC_CHECK_FUNCS(finite, , [
  AC_MSG_CHECKING(for finite in <math.h>)
  AC_TRY_LINK([#include <math.h>], [double f = 0.0; finite (f)], [
    AC_DEFINE(HAVE_FINITE)
    AC_MSG_RESULT(yes)], [
    AC_MSG_RESULT(no)
    AC_MSG_CHECKING(for isfinite in <math.h>)
    AC_TRY_LINK([#include <math.h>], [float f = 0.0; isfinite(f)], [
      AC_DEFINE(HAVE_ISFINITE)
      AC_MSG_RESULT(yes)], AC_MSG_RESULT(no))])])
AC_SUBST(HAVE_FINITE)
AC_SUBST(HAVE_ISFINITE)

443
dnl Check for sys/select.h
Elliot Lee's avatar
Elliot Lee committed
444 445 446 447 448

AC_MSG_CHECKING([fd_set and sys/select])
AC_TRY_COMPILE([#include <sys/types.h>],
        [fd_set readMask, writeMask;], gimp_ok=yes, gimp_ok=no)
if test $gimp_ok = no; then
Sven Neumann's avatar
Sven Neumann committed
449
    AC_EGREP_HEADER(fd_mask, sys/select.h, gimp_ok=yes)
Elliot Lee's avatar
Elliot Lee committed
450 451 452 453 454 455 456 457 458
    if test $gimp_ok = yes; then
        AC_DEFINE(HAVE_SYS_SELECT_H)
    fi
fi
AC_MSG_RESULT($gimp_ok)
if test $gimp_ok = no; then
    AC_DEFINE(NO_FD_SET)
fi

459
dnl Check for random number functions
Manish Singh's avatar
Manish Singh committed
460
LIBUCB=""
461 462 463 464 465 466
AC_CHECK_FUNC(random, [
  AC_DEFINE(RAND_FUNC, random)
  AC_DEFINE(SRAND_FUNC, srandom)],
  [AC_CHECK_LIB(ucb, random, [
    AC_DEFINE(RAND_FUNC, random)
    AC_DEFINE(SRAND_FUNC, srandom)
Manish Singh's avatar
Manish Singh committed
467
    LIBUCB='-lucb'],
468 469 470
    [AC_CHECK_FUNC(lrand48,
      [AC_DEFINE(RAND_FUNC, lrand48) AC_DEFINE(SRAND_FUNC, srand48)],
      [AC_DEFINE(RAND_FUNC, rand) AC_DEFINE(SRAND_FUNC, srand)])])])
471 472 473

dnl check for difftime
AC_CHECK_FUNC(difftime, , AC_DEFINE(NO_DIFFTIME))
474

475 476 477
dnl check for putenv (because %#@&% NeXTStep doesn't have it)
AC_CHECK_FUNC(putenv, AC_DEFINE(HAVE_PUTENV))

478 479 480 481 482
dnl check for rint
AC_CHECK_FUNC(rint, AC_DEFINE(HAVE_RINT), [
  AC_CHECK_LIB(m, rint, [
    AC_DEFINE(HAVE_RINT)])])

Manish Singh's avatar
Manish Singh committed
483
dnl check for mmap
Tor Lillqvist's avatar
Tor Lillqvist committed
484 485
AC_CHECK_FUNCS(mmap)

486 487 488 489 490 491 492 493 494 495 496 497 498
dnl check for inline
AC_MSG_CHECKING([for inline definition in glibconfig.h])
AC_EGREP_CPP(glib_defines_inline,
[#include <glibconfig.h>
#ifdef inline
   glib_defines_inline
#endif
], have_glib_inline=yes, have_glib_inline=no)
AC_MSG_RESULT($have_glib_inline)
if test "$have_glib_inline" = "no"; then
  AC_C_INLINE
fi  

499
dnl This is for the help browser
500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520
dnl AC_PATH_PROG(GNOME_CONFIG,gnome-config,no)
dnl if test "$GNOME_CONFIG" = "no"; then
dnl   dnl Test for standalone GtkXMHTML widget
dnl   HELPBROWSER=
dnl   if test -n "$LIBPNG" && test -n "$LIBJPEG" && test -n "$LIBXPM"; then
dnl     helpbrowser_save_LIBS=$LIBS
dnl     LIBS="$LIBS $LIBPNG $LIBJPEG $LIBXPM"
dnl     AC_CHECK_LIB(gtkxmhtml, gtk_xmhtml_new,
dnl       GTKXMHTML_CFLAGS=$GTK_CFLAGS
dnl       GTKXMHTML_LIBS="-lgtkxmhtml $LIBPNG $LIBJPEG $LIBXPM $GTK_LIBS"
dnl       HELPBROWSER=helpbrowser,
dnl       AC_MSG_WARN(*** Help browser plug-in will not be built (GtkXMHTML library not found) ***))
dnl     LIBS=$helpbrowser_save_LIBS
dnl   else
dnl     AC_MSG_WARN(*** Help browser plug-in will not be built (PNG, JPEG or XPM libraries not found) ***)
dnl   fi
dnl else
dnl   GTKXMHTML_CFLAGS=`$GNOME_CONFIG --cflags gnomeui`
dnl   GTKXMHTML_LIBS=`$GNOME_CONFIG --libs gtkxmhtml`
dnl   HELPBROWSER=helpbrowser
dnl fi
521 522 523

dnl Sanity check to make sure the headers are there too and that gnome-config
dnl didn't lie to us
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538
dnl if test -n "$HELPBROWSER"; then
dnl   CPPFLAGS="$CPPFLAGS $GTKXMHTML_CFLAGS"
dnl   LDFLAGS="$LDFLAGS `echo $GTKXMHTML_LIBS | sed 's/\(.*\)\(-lgtkxmhtml.*\)/\1/'`"
dnl   LIBS="$LIBS $GTKXMHTML_LIBS"

dnl   AC_MSG_CHECKING([to see if we can build with GtkXMHTML])
dnl   AC_TRY_LINK([#include <gtk-xmhtml/gtk-xmhtml.h>], [return 0;],
dnl     gtkxmhtml_ok=yes, gtkxmhtml_ok=no)
dnl   AC_MSG_RESULT($gtkxmhtml_ok)
dnl 
dnl   if test "$gtkxmhtml_ok" = no; then
dnl     AC_MSG_WARN(*** Help browser plug-in will not be built (GtkXMHTML setup busted) ***)
dnl     HELPBROWSER=
dnl   fi
dnl fi
539

540 541 542 543
CPPFLAGS="$gimp_save_CPPFLAGS"
LDFLAGS="$gimp_save_LDFLAGS"
LIBS="$gimp_save_LIBS"

544 545 546 547 548 549 550 551 552 553 554 555 556
dnl Test for libXpm
  gimp_save_LDFLAGS="$LDFLAGS"
  LDFLAGS="$LDFLAGS $X_LIBS"
  if test -z "$LIBXPM"; then
    AC_CHECK_LIB(Xpm, XpmReadFileToXpmImage,
      AC_CHECK_HEADER(X11/xpm.h,
	XPM='xpm'; LIBXPM="$X_LIBS $X_PRE_LIBS -lX11 -lXpm",
	AC_MSG_WARN(*** XPM plug-in will not be built (XPM header file not found) ***)),
      AC_MSG_WARN(*** XPM plug-in will not be built (XPM library not found) ***), $X_PRE_LIBS -lX11)
  fi
  LDFLAGS="$gimp_save_LDFLAGS"


557
dnl Threads
Manish Singh's avatar
Manish Singh committed
558 559 560 561 562 563 564 565 566 567 568 569 570
dnl AC_ARG_WITH(threads, [  --with-threads=[posix]  support threading ])
dnl GIMP_THREAD_LIBS=
dnl if test "x$with_threads" = "xposix" || test "x$with_threads" = "xyes"; then
dnl   AC_CHECK_LIB(pthread, pthread_attr_init, 
dnl     [AC_DEFINE(USE_PTHREADS)
dnl     GIMP_THREAD_LIBS="-lpthread"
dnl     GIMP_THREAD_FLAGS="-D_REENTRANT"],
dnl     # AIX has libpthreads, cause they're special. Special friends (TM)
dnl     AC_CHECK_LIB(pthreads, pthread_attr_init,
dnl       [AC_DEFINE(USE_PTHREADS)
dnl       GIMP_THREAD_LIBS="-lpthreads"
dnl       GIMP_THREAD_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
dnl fi
571

572 573
dnl Multi-Processor Support
AC_ARG_WITH(mp, [  --with-mp=[no]          support multiple processors ])
574
GIMP_MP_LIBS=
575 576 577
if test "x$with_mp" = "xyes"; then
  AC_CHECK_LIB(pthread, pthread_attr_init, 
    [AC_DEFINE(ENABLE_MP)
578 579
    GIMP_MP_LIBS="-lpthread"
    GIMP_MP_FLAGS="-D_REENTRANT"],
580 581 582
    # AIX has libpthreads, cause they're special. Special friends (TM)
    AC_CHECK_LIB(pthreads, pthread_attr_init,
      [AC_DEFINE(ENABLE_MP)
583 584
      GIMP_MP_LIBS="-lpthreads"
      GIMP_MP_FLAGS="-D_REENTRANT -D_THREAD_SAFE"]))
585 586
fi

587
gimpdatadir=$datadir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
588
gimpplugindir=$libdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION
589 590
gimpsysconfdir=$sysconfdir/$PACKAGE/$GIMP_MAJOR_VERSION.$GIMP_MINOR_VERSION

591
localedir='${prefix}/${DATADIRNAME}/locale'
Elliot Lee's avatar
Elliot Lee committed
592

593 594 595 596
brushdata=`ls -1 $srcdir/data/brushes | grep -v Makefile`
gradientdata=`ls -1 $srcdir/data/gradients | grep -v Makefile`
palettedata=`ls -1 $srcdir/data/palettes | grep -v Makefile`
patterndata=`ls -1 $srcdir/data/patterns | grep -v Makefile`
Manish Singh's avatar
Manish Singh committed
597 598 599 600 601 602

brushdata=`echo $brushdata`
gradientdata=`echo $gradientdata`
palettedata=`echo $palettedata`
patterndata=`echo $patterndata`

Elliot Lee's avatar
Elliot Lee committed
603
dnl This is for generating PDB docuemntation.
604
AC_PATH_PROGS(EMACS, emacs xemacs, :)
Elliot Lee's avatar
Elliot Lee committed
605

Sven Neumann's avatar
Sven Neumann committed
606 607 608 609 610 611
dnl This is for the developers documentation.
AC_CHECK_PROG(GTKDOC, gtkdoc-mkdb, true, false)
AM_CONDITIONAL(HAVE_GTK_DOC, $GTKDOC)
AC_SUBST(HAVE_GTK_DOC)

dnl Let people disable the gtk-doc stuff.
612
AC_ARG_ENABLE(gtk-doc, [  --enable-gtk-doc        use gtk-doc to build documentation [default=auto]], enable_gtk_doc="$enableval", enable_gtk_doc=auto)
Sven Neumann's avatar
Sven Neumann committed
613 614 615 616 617 618 619 620 621 622 623

if test x$enable_gtk_doc = xauto ; then
  if test x$GTKDOC = xtrue ; then
    enable_gtk_doc=yes
  else
    enable_gtk_doc=no
  fi
fi

AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)

624 625 626 627 628 629 630
AC_ARG_WITH(html-dir, [  --with-html-dir=PATH    path to installed docs ])
if test "x$with_html_dir" = "x" ; then
  HTML_DIR='${gimpdatadir}/devel-docs/html'
else
  HTML_DIR=$with_html_dir
fi

631 632 633 634 635 636
dnl This is for the mail plug-in
sendmail_path=":"
AC_ARG_ENABLE(sendmail_path, [  --with-sendmail=DIR     set sendmail command location],
if eval "test x$with_sendmail != x"; then
    sendmail_path=$with_sendmail
fi)
637
AC_PATH_PROG(SENDMAIL, "sendmail", $sendmail_path, $PATH:/usr/sbin:/usr/lib)
638 639 640 641 642

if test $ac_cv_path_SENDMAIL != ":"; then
  MAILER="-DMAILER=\\\"$ac_cv_path_SENDMAIL\\\""
fi

643
dnl This is for the print plug-in
644 645
GIMP_PRINT_VERSION="4.0.4"
GIMP_PRINT_RELEASE_DATE="02\ Dec\ 2000"
646

647
dnl This is for the gimp-perl plug-in
Marc Lehmann's avatar
Marc Lehmann committed
648 649
AC_ARG_ENABLE(perl, [  --disable-perl          do not build perl extension [by default enabled]
  --enable-perl[=prefix]  use specified prefix for perl (see INSTALL)])
650 651 652 653 654 655 656 657 658 659

AC_ARG_WITH(pdbgen, [  --with-pdbgen           use 'pdbgen' code generation tool],
,
with_pdbgen=$enable_maintainer_mode)

if test "x$enable_perl" != xno || test "x$with_pdbgen" = xyes ; then
   AC_PATH_PROGS(PERL,perl5 perl perl5.005 perl5.004,perl)
fi

AM_CONDITIONAL(WITH_PDBGEN, test x$with_pdbgen = xyes)
660
AM_CONDITIONAL(WITH_AUTHORSGEN, test x$enable_maintainer_mode = xyes)
661

662 663
rm -f plug-ins/perl/config.status

664
if test "x$enable_perl" != xno; then
Marc Lehmann's avatar
Marc Lehmann committed
665 666
   AC_MSG_CHECKING(for perl version >= 5.004_04)
   if test "`$PERL -e 'print $]>=5.004_04'`" = "1"; then
667 668 669
      AC_MSG_RESULT(yes)
      
      dnl perl does not allow VPATH builds (yet)
670 671
      if test ! -f plug-ins/perl/Makefile.PL; then
         mkdir plug-ins || true
672 673 674 675
         cp -r $srcdir/plug-ins/perl plug-ins/perl
      fi
      
      dnl these are gross hacks
Marc Lehmann's avatar
Marc Lehmann committed
676
      GIMP_CFLAGS_NOUI="-I\$topdir/../.. $GLIB_CFLAGS $GTK_CFLAGS"
Marc Lehmann's avatar
Marc Lehmann committed
677
      GIMP_CFLAGS="$GIMP_CFLAGS_NOUI"
678
      GIMP_LIBS_NOUI="-L\$topdir/../../libgimp/.libs -L\$topdir/../../libgimp -lgimp-$LT_RELEASE -L\$topdir/../../libgimpcolor/.libs -L\$topdir/../../libgimpcolor -lgimpcolor-$LT_RELEASE -L\$topdir/../../libgimpbase/.libs -L\$topdir/../../libgimpbase -lgimpbase-$LT_RELEASE $GLIB_LIBS $LIBS"
Marc Lehmann's avatar
Marc Lehmann committed
679
      GIMP_LIBS="$GIMP_LIBS_NOUI -lgimpui-$LT_RELEASE"
680
      GIMPTOOL="../../gimptool-1.4"
681 682
      IN_GIMP=1
      EXTENSIVE_TESTS=0
683

684
      dnl include the autoconf fragment from there
Marc Lehmann's avatar
Marc Lehmann committed
685
      sinclude(plug-ins/perl/configure.frag)
686

687
      dnl we ignore prefix
Marc Lehmann's avatar
Marc Lehmann committed
688
      if test -n "$enable_perl" && test "x$enable_perl" != xyes; then
Marc Lehmann's avatar
Marc Lehmann committed
689 690
         perl_prefix="PREFIX=$enable_perl"
      fi
691 692
      cat >plug-ins/perl/config.status <<EOF
      echo invoking perl for configuration...
Marc Lehmann's avatar
Marc Lehmann committed
693
      $PERL Makefile.PL --writemakefile $perl_prefix
694
EOF
695
      GIMP_PERL=perl
Marc Lehmann's avatar
Marc Lehmann committed
696
      GIMP_PERL_PO=plug-ins/perl/po
697 698
   else
      GIMP_PERL=
699
      GIMP_PERL_PO=
700
      AC_MSG_RESULT(no)
Marc Lehmann's avatar
Marc Lehmann committed
701
      AC_MSG_WARN(*** gimp-perl plug-in won't be build (perl5.004_04 or higher required) ***)
702 703 704
   fi
fi

705
dnl Pygimp configure stuff ...
Manish Singh's avatar
Manish Singh committed
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724
dnl AC_ARG_ENABLE(python,
dnl [  --disable-python        do not build python extension],,[enable_python=no])
dnl build_python=false
dnl if test "x$enable_python" != xno; then
dnl   AM_PATH_PYTHON
dnl   if test "x$PYTHON" != xno; then
dnl     AM_INIT_PYEXEC_MOD
dnl     if test "x$am_cv_python_makefile" != xno; then
dnl       PYGIMP_CFLAGS_NOUI="-I\$(top_srcdir) $GLIB_CFLAGS"
dnl       PYGIMP_LIBS_NOUI="-L\$(top_builddir)/libgimp/.libs -lgimp $GLIB_LIBS"
dnl 
dnl       build_python=true
dnl       AM_CHECK_PYMOD(gtk,,,build_python=false)
dnl     fi
dnl   fi
dnl fi
dnl AC_SUBST(PYGIMP_CFLAGS_NOUI)
dnl AC_SUBST(PYGIMP_LIBS_NOUI)
dnl AM_CONDITIONAL(BUILD_PYTHON, $build_python)
725 726
  

727 728 729 730 731
GIMPINSTALL=
if test "$INSTALL" = "$ac_install_sh"; then
  GIMPINSTALL="gimpinstall"
fi

Manish Singh's avatar
Manish Singh committed
732 733
if test -n "$DISTMAKE"; then
  WEBBROWSER=webbrowser TIFF=tiff JPEG=jpeg PNG=png AA=aa MPEG=mpeg
734
  XJT=xjt XPM=xpm
Manish Singh's avatar
Manish Singh committed
735 736
fi

737
dnl eek, what a hack...
738 739 740 741 742
rm -f confauthorsgen

IFS="${IFS=         }"; gimp_save_IFS="$IFS"; IFS='
'

743
for i in `sed -e '/^#/d' -e 's/\.*\[.*\]//' -e 's/^ *//' -e 's/ *$//' -e '/^$/d' < $srcdir/tools/authorsgen/contributors`; do
744 745 746 747 748 749 750
  echo $ac_n "$i, $ac_c" >> confauthorsgen
done

IFS="$gimp_save_IFS"

GIMP_CONTRIBUTORS=`sed -e 's/, $/./' < confauthorsgen`
rm -f confauthorsgen
751

752 753
AM_CONDITIONAL(STATICLIBS, test x$enable_static = xyes)

754
CPPFLAGS="${CPPFLAGS} -DGTK_DISABLE_COMPAT_H"
755

756 757 758
AC_SUBST(GIMP_MAJOR_VERSION)
AC_SUBST(GIMP_MINOR_VERSION)
AC_SUBST(GIMP_MICRO_VERSION)
759
AC_SUBST(GIMP_VERSION)
760

Manish Singh's avatar
Manish Singh committed
761 762 763 764 765
AC_SUBST(LT_RELEASE)
AC_SUBST(LT_CURRENT)
AC_SUBST(LT_REVISION)
AC_SUBST(LT_AGE)

766 767
AC_SUBST(X_LIBS)

Manish Singh's avatar
Manish Singh committed
768 769 770
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)

Sven Neumann's avatar
Sven Neumann committed
771 772
AC_SUBST(PKG_CONFIG)

773 774
AC_SUBST(HAVE_GLIBC_REGEX)

Elliot Lee's avatar
Elliot Lee committed
775 776 777
AC_SUBST(gimpdir)
AC_SUBST(gimpdatadir)
AC_SUBST(gimpplugindir)
778
AC_SUBST(gimpsysconfdir)
Manish Singh's avatar
Manish Singh committed
779
AC_SUBST(localedir)
780 781 782 783
AC_SUBST(brushdata)
AC_SUBST(gradientdata)
AC_SUBST(palettedata)
AC_SUBST(patterndata)
Sven Neumann's avatar
Sven Neumann committed
784
AC_SUBST(GIMP_REMOTE)	
Manish Singh's avatar
Manish Singh committed
785
AC_SUBST(WEBBROWSER)
Manish Singh's avatar
Manish Singh committed
786
AC_SUBST(LIBXMU)
Elliot Lee's avatar
Elliot Lee committed
787
AC_SUBST(TIFF)
Manish Singh's avatar
Manish Singh committed
788
AC_SUBST(LIBTIFF)
Elliot Lee's avatar
Elliot Lee committed
789
AC_SUBST(JPEG)
Sven Neumann's avatar
Sven Neumann committed
790
AC_SUBST(XJT)
Manish Singh's avatar
Manish Singh committed
791
AC_SUBST(LIBJPEG)
792 793
AC_SUBST(PSP)
AC_SUBST(LIBZ)
Elliot Lee's avatar
Elliot Lee committed
794
AC_SUBST(PNG)
Manish Singh's avatar
Manish Singh committed
795
AC_SUBST(LIBPNG)
796
AC_SUBST(AA)
Manish Singh's avatar
Manish Singh committed
797
AC_SUBST(LIBAA)
Elliot Lee's avatar
Elliot Lee committed
798
AC_SUBST(MPEG)
Manish Singh's avatar
Manish Singh committed
799
AC_SUBST(LIBMPEG)
800
AC_SUBST(GAP_DECODE_MPEG)
Elliot Lee's avatar
Elliot Lee committed
801
AC_SUBST(XPM)
Manish Singh's avatar
Manish Singh committed
802 803
AC_SUBST(LIBXPM)
AC_SUBST(LIBUCB)
804 805
AC_SUBST(GIMP_PRINT_VERSION)
AC_SUBST(GIMP_PRINT_RELEASE_DATE)
806
AC_SUBST(MAILER)
807 808
AC_SUBST(GIMP_THREAD_FLAGS)
AC_SUBST(GIMP_THREAD_LIBS)
809 810
AC_SUBST(GIMP_MP_FLAGS)
AC_SUBST(GIMP_MP_LIBS)
811
AC_SUBST(GIMP_PERL)
812
AC_SUBST(GIMP_PERL_PO)
813
AC_SUBST(GIMPINSTALL)
Manish Singh's avatar
Manish Singh committed
814 815 816
AC_SUBST(HELPBROWSER)
AC_SUBST(GTKXMHTML_CFLAGS)
AC_SUBST(GTKXMHTML_LIBS)
817
AC_SUBST(HTML_DIR)
Elliot Lee's avatar
Elliot Lee committed
818

819 820
AC_SUBST(GIMP_CONTRIBUTORS)

821 822 823 824 825 826
dnl easy way to skip the plug-in build
GIMP_PLUGINS=plug-ins
GIMP_MODULES=modules
AC_SUBST(GIMP_PLUGINS)
AC_SUBST(GIMP_MODULES)

Elliot Lee's avatar
Elliot Lee committed
827 828
dnl Output the Makefiles

829
AC_OUTPUT([
Sven Neumann's avatar
removed  
Sven Neumann committed
830
gimp.1
Elliot Lee's avatar
Elliot Lee committed
831
gimprc
832
gimprc_user
833
gimprc.5
Michael Natterer's avatar
Michael Natterer committed
834
gimptool-1.4
835
gimptool.1
836
gimp-remote.1
Sven Neumann's avatar
removed  
Sven Neumann committed
837
gimp.spec
838 839 840 841 842 843 844 845
Makefile
build/Makefile
build/win32/Makefile
intl/Makefile
tools/Makefile
tools/authorsgen/Makefile
tools/pdbgen/Makefile
regexrepl/Makefile
846
libgimp/Makefile
847
libgimp/makefile.mingw
848
libgimpbase/gimpversion.h
849 850
libgimpbase/Makefile
libgimpbase/makefile.mingw
851 852
libgimpcolor/Makefile
libgimpcolor/makefile.mingw
853 854
libgimpmath/Makefile
libgimpmath/makefile.mingw
855 856
libgimpwidgets/Makefile
libgimpwidgets/makefile.mingw
857
app/Makefile
858
app/makefile.mingw
Michael Natterer's avatar
Michael Natterer committed
859
app/base/Makefile
860
app/core/Makefile
861
app/gui/Makefile
862
app/paint-funcs/Makefile
863
app/pdb/Makefile
864
app/tools/Makefile
865
app/widgets/Makefile
Michael Natterer's avatar
Michael Natterer committed
866
app/xcf/Makefile
Elliot Lee's avatar
Elliot Lee committed
867
plug-ins/Makefile
868
plug-ins/makefile.mingw
Marc Lehmann's avatar
Marc Lehmann committed
869
plug-ins/perl/config.pl
870 871
plug-ins/libgck/Makefile
plug-ins/libgck/gck/Makefile
Elliot Lee's avatar
Elliot Lee committed
872 873 874
plug-ins/dbbrowser/Makefile
plug-ins/script-fu/Makefile
plug-ins/script-fu/scripts/Makefile
875
plug-ins/webbrowser/Makefile
Sven Neumann's avatar
Sven Neumann committed
876
plug-ins/xjt/Makefile
Michael Natterer's avatar
Michael Natterer committed
877 878
plug-ins/FractalExplorer/Makefile
plug-ins/FractalExplorer/fractalexplorer-examples/Makefile
879 880 881
plug-ins/Lighting/Makefile
plug-ins/MapObject/Makefile
plug-ins/bmp/Makefile
Manish Singh's avatar
Manish Singh committed
882
plug-ins/common/Makefile
883 884 885
plug-ins/faxg3/Makefile
plug-ins/fits/Makefile
plug-ins/flame/Makefile
886
plug-ins/fp/Makefile
887
plug-ins/gap/Makefile
Manish Singh's avatar
Manish Singh committed
888
plug-ins/gdyntext/Makefile
889
plug-ins/gfig/Makefile
Manish Singh's avatar
Manish Singh committed
890
plug-ins/gfig/gfig-examples/Makefile
Marc Lehmann's avatar
Marc Lehmann committed
891
plug-ins/gflare/Makefile
Sven Neumann's avatar
Sven Neumann committed
892
plug-ins/gflare/gflares/Makefile
893
plug-ins/gfli/Makefile
Manish Singh's avatar
Manish Singh committed
894 895 896 897
plug-ins/gimpressionist/Makefile
plug-ins/gimpressionist/Brushes/Makefile
plug-ins/gimpressionist/Paper/Makefile
plug-ins/gimpressionist/Presets/Makefile
Manish Singh's avatar
Manish Singh committed
898
plug-ins/helpbrowser/Makefile
899
plug-ins/ifscompose/Makefile
Sven Neumann's avatar
Sven Neumann committed
900
plug-ins/imagemap/Makefile
901 902 903 904
plug-ins/maze/Makefile
plug-ins/mosaic/Makefile
plug-ins/pagecurl/Makefile
plug-ins/print/Makefile
905
plug-ins/print/escputil.1
Sven Neumann's avatar
Sven Neumann committed
906
plug-ins/rcm/Makefile
907
plug-ins/sel2path/Makefile
908
plug-ins/sgi/Makefile
909
plug-ins/plugin-helper/Makefile
910
modules/Makefile
911
modules/makefile.mingw
Sven Neumann's avatar
Sven Neumann committed
912 913
devel-docs/Makefile
devel-docs/libgimp/Makefile
914
devel-docs/libgimpbase/Makefile
915 916 917
devel-docs/libgimpcolor/Makefile
devel-docs/libgimpmath/Makefile
devel-docs/libgimpwidgets/Makefile
918
docs/Makefile
919
tips/Makefile
920
pixmaps/Makefile
921
cursors/Makefile
922 923
themes/Makefile
themes/Default/Makefile
924 925
themes/Default/images/Makefile
themes/Default/images/tools/Makefile
Manish Singh's avatar
Manish Singh committed
926 927 928 929
data/Makefile
data/brushes/Makefile
data/gradients/Makefile
data/palettes/Makefile
930
data/patterns/Makefile
931
po/Makefile.in
932
po-libgimp/Makefile.in
933
po-plug-ins/Makefile.in
Sven Neumann's avatar
Sven Neumann committed
934
po-script-fu/Makefile.in
935
plug-ins/perl/po/Makefile.in],
936
[
937
   chmod +x gimptool-1.4
938
   sed -e "s/^     ..\/..\/..\//     ..\//" plug-ins/perl/po/Makefile > plug-ins/perl/po/Makefile.eek && mv plug-ins/perl/po/Makefile.eek plug-ins/perl/po/Makefile
939 940
   case "$CONFIG_FILES" in
   *plug-ins/perl*)
941
      if test -f plug-ins/perl/config.status; then
942
         ( cd plug-ins/perl; ${CONFIG_SHELL-/bin/sh} config.status )
943 944 945 946
      fi
      ;;
   esac
]
Elliot Lee's avatar
Elliot Lee committed
947
)