configure.ac revision bc56b754e1a6a1db9ccadf64d6dda8a74140e1a3
1#                                               -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ([2.56])
5AC_INIT([libjpeg-turbo], [1.3.80])
6BUILD=`date +%Y%m%d`
7
8AM_INIT_AUTOMAKE([-Wall foreign dist-bzip2])
9AC_PREFIX_DEFAULT(/opt/libjpeg-turbo)
10
11m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
12
13# Checks for programs.
14SAVED_CFLAGS=${CFLAGS}
15SAVED_CPPFLAGS=${CPPFLAGS}
16AC_PROG_CPP
17AC_PROG_CC
18m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
19AM_PROG_AS
20AM_PROG_CC_C_O
21AC_PROG_INSTALL
22AC_PROG_LIBTOOL
23AC_PROG_LN_S
24
25# When the prefix is /opt/libjpeg-turbo, we assume that an "official" binary is
26# being created, and thus we install things into specific locations.
27
28old_prefix=${prefix}
29if test "x$prefix" = "xNONE" -a "x$ac_default_prefix" != "x"; then
30  prefix=$ac_default_prefix
31fi
32DATADIR=`eval echo ${datadir}`
33DATADIR=`eval echo $DATADIR`
34if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
35  datadir='${prefix}'
36fi
37DATADIR=`eval echo ${datarootdir}`
38DATADIR=`eval echo $DATADIR`
39if test "$DATADIR" = "/opt/libjpeg-turbo/share"; then
40  datarootdir='${prefix}'
41fi
42
43old_exec_prefix=${exec_prefix}
44if test "x$exec_prefix" = "xNONE"; then
45  exec_prefix=${prefix}
46fi
47
48if test "x${libdir}" = 'x${exec_prefix}/lib' -o "x${libdir}" = 'x${prefix}/lib'; then
49  LIBDIR=`eval echo ${libdir}`
50  LIBDIR=`eval echo $LIBDIR`
51  if test "$LIBDIR" = "/opt/libjpeg-turbo/lib"; then
52    case $host_os in
53      darwin*)
54        ;;
55      *)
56        AC_CHECK_SIZEOF(long)
57        if test "${ac_cv_sizeof_long}" = "8"; then
58          libdir='${exec_prefix}/lib64'
59        elif test "${ac_cv_sizeof_long}" = "4"; then
60          libdir='${exec_prefix}/lib32'
61        fi
62        ;;
63    esac
64  fi
65fi
66exec_prefix=${old_exec_prefix}
67prefix=${old_prefix}
68
69# Check whether compiler supports pointers to undefined structures
70AC_MSG_CHECKING(whether compiler supports pointers to undefined structures)
71AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], ,
72  AC_MSG_RESULT(yes),
73  [AC_MSG_RESULT(no)
74   AC_DEFINE([INCOMPLETE_TYPES_BROKEN], [1],
75     [Compiler does not support pointers to undefined structures.])])
76
77if test "x${GCC}" = "xyes"; then
78  if test "x${SAVED_CFLAGS}" = "x"; then
79    CFLAGS=-O3
80  fi
81  if test "x${SAVED_CPPFLAGS}" = "x"; then
82    CPPFLAGS=-Wall
83  fi
84fi
85
86AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
87if test "x${SUNCC}" = "xyes"; then
88  if test "x${SAVED_CFLAGS}" = "x"; then
89    CFLAGS=-xO5
90  fi
91fi
92
93# Checks for libraries.
94
95# Checks for header files.
96AC_HEADER_STDC
97AC_CHECK_HEADERS([stddef.h stdlib.h locale.h string.h])
98AC_CHECK_HEADER([sys/types.h],
99  AC_DEFINE([NEED_SYS_TYPES_H], 1, [Define if you need to include <sys/types.h> to get size_t.]))
100
101# Checks for typedefs, structures, and compiler characteristics.
102AC_C_CONST
103AC_C_CHAR_UNSIGNED
104AC_C_INLINE
105AC_TYPE_SIZE_T
106AC_CHECK_TYPES([unsigned char, unsigned short])
107
108AC_MSG_CHECKING([if right shift is signed])
109AC_TRY_RUN(
110  [#include <stdio.h>
111   int is_shifting_signed (long arg) {
112     long res = arg >> 4;
113
114     if (res == -0x7F7E80CL)
115       return 1; /* right shift is signed */
116
117     /* see if unsigned-shift hack will fix it. */
118     /* we can't just test exact value since it depends on width of long... */
119     res |= (~0L) << (32-4);
120     if (res == -0x7F7E80CL)
121       return 0; /* right shift is unsigned */
122
123     printf("Right shift isn't acting as I expect it to.\n");
124     printf("I fear the JPEG software will not work at all.\n\n");
125     return 0; /* try it with unsigned anyway */
126   }
127   int main (void) {
128     exit(is_shifting_signed(-0x7F7E80B1L));
129   }],
130  [AC_MSG_RESULT(no)
131   AC_DEFINE([RIGHT_SHIFT_IS_UNSIGNED], 1,
132     [Define if your (broken) compiler shifts signed values as if they were unsigned.])],
133  [AC_MSG_RESULT(yes)],
134  [AC_MSG_RESULT(Assuming that right shift is signed on target machine.)])
135
136# Checks for library functions.
137AC_CHECK_FUNCS([memset memcpy], [],
138  [AC_DEFINE([NEED_BSD_STRINGS], 1,
139     [Define if you have BSD-like bzero and bcopy in <strings.h> rather than memset/memcpy in <string.h>.])])
140
141AC_MSG_CHECKING([libjpeg API version])
142AC_ARG_VAR(JPEG_LIB_VERSION, [libjpeg API version (62, 70, or 80)])
143if test "x$JPEG_LIB_VERSION" = "x"; then
144  AC_ARG_WITH([jpeg7],
145    AC_HELP_STRING([--with-jpeg7],
146      [Emulate libjpeg v7 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
147  AC_ARG_WITH([jpeg8],
148    AC_HELP_STRING([--with-jpeg8],
149      [Emulate libjpeg v8 API/ABI (this makes libjpeg-turbo backward incompatible with libjpeg v6b.)]))
150  if test "x${with_jpeg8}" = "xyes"; then
151    JPEG_LIB_VERSION=80
152  else
153    if test "x${with_jpeg7}" = "xyes"; then
154      JPEG_LIB_VERSION=70
155    else
156      JPEG_LIB_VERSION=62
157    fi
158  fi
159fi
160JPEG_LIB_VERSION_DECIMAL=`expr $JPEG_LIB_VERSION / 10`.`expr $JPEG_LIB_VERSION % 10`
161AC_SUBST(JPEG_LIB_VERSION_DECIMAL)
162AC_MSG_RESULT([$JPEG_LIB_VERSION_DECIMAL])
163AC_DEFINE_UNQUOTED(JPEG_LIB_VERSION, [$JPEG_LIB_VERSION],
164  [libjpeg API version])
165
166AC_ARG_VAR(SO_MAJOR_VERSION,
167  [Major version of the libjpeg-turbo shared library (default is determined by the API version)])
168AC_ARG_VAR(SO_MINOR_VERSION,
169  [Minor version of the libjpeg-turbo shared library (default is determined by the API version)])
170if test "x$SO_MAJOR_VERSION" = "x"; then
171  case "$JPEG_LIB_VERSION" in
172    62)  SO_MAJOR_VERSION=$JPEG_LIB_VERSION ;;
173    *)   SO_MAJOR_VERSION=`expr $JPEG_LIB_VERSION / 10` ;;
174  esac
175fi
176if test "x$SO_MINOR_VERSION" = "x"; then
177  case "$JPEG_LIB_VERSION" in
178    80)  SO_MINOR_VERSION=2 ;;
179    *)   SO_MINOR_VERSION=0 ;;
180  esac
181fi
182
183RPM_CONFIG_ARGS=
184
185# Memory source/destination managers
186SO_AGE=0
187MEM_SRCDST_FUNCTIONS=
188if test "x${with_jpeg8}" != "xyes"; then
189  AC_MSG_CHECKING([whether to include in-memory source/destination managers])
190  AC_ARG_WITH([mem-srcdst],
191    AC_HELP_STRING([--without-mem-srcdst],
192      [Do not include in-memory source/destination manager functions when emulating the libjpeg v6b or v7 API/ABI]))
193  if test "x$with_mem_srcdst" != "xno"; then
194    AC_MSG_RESULT(yes)
195    AC_DEFINE([MEM_SRCDST_SUPPORTED], [1],
196      [Support in-memory source/destination managers])
197    SO_AGE=1
198    MEM_SRCDST_FUNCTIONS="global:  jpeg_mem_dest;  jpeg_mem_src;";
199  else
200    AC_MSG_RESULT(no)
201    RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-mem-srcdst"
202  fi
203fi
204
205AC_MSG_CHECKING([libjpeg shared library version])
206AC_MSG_RESULT([$SO_MAJOR_VERSION.$SO_AGE.$SO_MINOR_VERSION])
207LIBTOOL_CURRENT=`expr $SO_MAJOR_VERSION + $SO_AGE`
208AC_SUBST(LIBTOOL_CURRENT)
209AC_SUBST(SO_MAJOR_VERSION)
210AC_SUBST(SO_MINOR_VERSION)
211AC_SUBST(SO_AGE)
212AC_SUBST(MEM_SRCDST_FUNCTIONS)
213
214AC_DEFINE_UNQUOTED(LIBJPEG_TURBO_VERSION, [$VERSION], [libjpeg-turbo version])
215
216VERSION_SCRIPT=yes
217AC_ARG_ENABLE([ld-version-script],
218  AS_HELP_STRING([--disable-ld-version-script],
219    [Disable linker version script for libjpeg-turbo (default is to use linker version script if the linker supports it)]),
220  [VERSION_SCRIPT=$enableval], [])
221
222AC_MSG_CHECKING([whether the linker supports version scripts])
223SAVED_LDFLAGS="$LDFLAGS"
224LDFLAGS="$LDFLAGS -Wl,--version-script,conftest.map"
225cat > conftest.map <<EOF
226VERS_1 {
227  global: *;
228};
229EOF
230AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
231  [VERSION_SCRIPT_FLAG=-Wl,--version-script,;
232   AC_MSG_RESULT([yes (GNU style)])],
233  [])
234if test "x$VERSION_SCRIPT_FLAG" = "x"; then
235  LDFLAGS="$SAVED_LDFLAGS -Wl,-M,conftest.map"
236  AC_LINK_IFELSE([AC_LANG_PROGRAM([], [])],
237    [VERSION_SCRIPT_FLAG=-Wl,-M,;
238     AC_MSG_RESULT([yes (Sun style)])],
239    [])
240fi
241if test "x$VERSION_SCRIPT_FLAG" = "x"; then
242  VERSION_SCRIPT=no
243  AC_MSG_RESULT(no)
244fi
245LDFLAGS="$SAVED_LDFLAGS"
246
247AC_MSG_CHECKING([whether to use version script when building libjpeg-turbo])
248AC_MSG_RESULT($VERSION_SCRIPT)
249
250AM_CONDITIONAL(VERSION_SCRIPT, test "x$VERSION_SCRIPT" = "xyes")
251AC_SUBST(VERSION_SCRIPT_FLAG)
252
253# Check for non-broken inline under various spellings
254AC_MSG_CHECKING(for inline)
255ljt_cv_inline=""
256AC_TRY_COMPILE(, [} inline __attribute__((always_inline)) int foo() { return 0; }
257int bar() { return foo();], ljt_cv_inline="inline __attribute__((always_inline))",
258AC_TRY_COMPILE(, [} __inline__ int foo() { return 0; }
259int bar() { return foo();], ljt_cv_inline="__inline__",
260AC_TRY_COMPILE(, [} __inline int foo() { return 0; }
261int bar() { return foo();], ljt_cv_inline="__inline",
262AC_TRY_COMPILE(, [} inline int foo() { return 0; }
263int bar() { return foo();], ljt_cv_inline="inline"))))
264AC_MSG_RESULT($ljt_cv_inline)
265AC_DEFINE_UNQUOTED([INLINE],[$ljt_cv_inline],[How to obtain function inlining.])
266
267# Arithmetic coding support
268AC_MSG_CHECKING([whether to include arithmetic encoding support])
269AC_ARG_WITH([arith-enc],
270  AC_HELP_STRING([--without-arith-enc],
271    [Do not include arithmetic encoding support]))
272if test "x$with_arith_enc" = "xno"; then
273  AC_MSG_RESULT(no)
274  RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-enc"
275else
276  AC_DEFINE([C_ARITH_CODING_SUPPORTED], [1], [Support arithmetic encoding])
277  AC_MSG_RESULT(yes)
278fi
279AM_CONDITIONAL([WITH_ARITH_ENC], [test "x$with_arith_enc" != "xno"])
280
281AC_MSG_CHECKING([whether to include arithmetic decoding support])
282AC_ARG_WITH([arith-dec],
283  AC_HELP_STRING([--without-arith-dec],
284    [Do not include arithmetic decoding support]))
285if test "x$with_arith_dec" = "xno"; then
286  AC_MSG_RESULT(no)
287  RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-arith-dec"
288else
289  AC_DEFINE([D_ARITH_CODING_SUPPORTED], [1], [Support arithmetic decoding])
290  AC_MSG_RESULT(yes)
291fi
292AM_CONDITIONAL([WITH_ARITH_DEC], [test "x$with_arith_dec" != "xno"])
293
294AM_CONDITIONAL([WITH_ARITH],
295  [test "x$with_arith_dec" != "xno" -o "x$with_arith_enc" != "xno"])
296
297# TurboJPEG support
298AC_MSG_CHECKING([whether to build TurboJPEG C wrapper])
299AC_ARG_WITH([turbojpeg],
300  AC_HELP_STRING([--without-turbojpeg],
301    [Do not include the TurboJPEG wrapper library and associated test programs]))
302if test "x$with_turbojpeg" = "xno"; then
303  AC_MSG_RESULT(no)
304  RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-turbojpeg"
305else
306  AC_MSG_RESULT(yes)
307fi
308
309# Java support
310AC_ARG_VAR(JAVAC, [Java compiler command (default: javac)])
311if test "x$JAVAC" = "x"; then
312  JAVAC=javac
313fi
314AC_SUBST(JAVAC)
315AC_ARG_VAR(JAVACFLAGS, [Java compiler flags])
316AC_SUBST(JAVACFLAGS)
317AC_ARG_VAR(JAR, [Java archive command (default: jar)])
318if test "x$JAR" = "x"; then
319  JAR=jar
320fi
321AC_SUBST(JAR)
322AC_ARG_VAR(JAVA, [Java runtime command (default: java)])
323if test "x$JAVA" = "x"; then
324  JAVA=java
325fi
326AC_SUBST(JAVA)
327AC_ARG_VAR(JNI_CFLAGS,
328  [C compiler flags needed to include jni.h (default: -I/System/Library/Frameworks/JavaVM.framework/Headers on OS X, '-I/usr/java/include -I/usr/java/include/solaris' on Solaris, and '-I/usr/java/default/include -I/usr/java/default/include/linux' on Linux)])
329
330AC_MSG_CHECKING([whether to build TurboJPEG Java wrapper])
331AC_ARG_WITH([java],
332  AC_HELP_STRING([--with-java], [Build Java wrapper for the TurboJPEG library]))
333if test "x$with_turbojpeg" = "xno"; then
334  with_java=no
335fi
336
337WITH_JAVA=0
338if test "x$with_java" = "xyes"; then
339  AC_MSG_RESULT(yes)
340
341  case $host_os in
342    darwin*)
343      DEFAULT_JNI_CFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
344      ;;
345    solaris*)
346      DEFAULT_JNI_CFLAGS='-I/usr/java/include -I/usr/java/include/solaris'
347      ;;
348    linux*)
349      DEFAULT_JNI_CFLAGS='-I/usr/java/default/include -I/usr/java/default/include/linux'
350      ;;
351  esac
352  if test "x$JNI_CFLAGS" = "x"; then
353    JNI_CFLAGS=$DEFAULT_JNI_CFLAGS
354  fi
355
356  SAVE_CPPFLAGS=${CPPFLAGS}
357  CPPFLAGS="${CPPFLAGS} ${JNI_CFLAGS}"
358  AC_CHECK_HEADERS([jni.h], [DUMMY=1],
359    [AC_MSG_ERROR([Could not find JNI header file])])
360  CPPFLAGS=${SAVE_CPPFLAGS}
361  AC_SUBST(JNI_CFLAGS)
362
363  RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --with-java"
364  JAVA_RPM_CONTENTS_1='%dir %{_datadir}/classes'
365  JAVA_RPM_CONTENTS_2=%{_datadir}/classes/turbojpeg.jar
366  WITH_JAVA=1
367else
368  AC_MSG_RESULT(no)
369fi
370AM_CONDITIONAL([WITH_JAVA], [test "x$with_java" = "xyes"])
371AC_SUBST(WITH_JAVA)
372AC_SUBST(JAVA_RPM_CONTENTS_1)
373AC_SUBST(JAVA_RPM_CONTENTS_2)
374
375# optionally force using gas-preprocessor.pl for compatibility testing
376AC_ARG_WITH([gas-preprocessor],
377  AC_HELP_STRING([--with-gas-preprocessor],
378    [Force using gas-preprocessor.pl on ARM.]))
379if test "x${with_gas_preprocessor}" = "xyes"; then
380  case $host_os in
381    darwin*)
382      CCAS="gas-preprocessor.pl -fix-unreq $CC"
383      ;;
384    *)
385      CCAS="gas-preprocessor.pl -no-fix-unreq $CC"
386      ;;
387  esac
388  AC_SUBST([CCAS])
389fi
390
391# SIMD is optional
392AC_ARG_WITH([simd],
393  AC_HELP_STRING([--without-simd], [Do not include SIMD extensions]))
394if test "x${with_simd}" != "xno"; then
395  require_simd=no
396  if test "x${with_simd}" = "xyes"; then
397    require_simd=yes
398  fi
399  # Check if we're on a supported CPU
400  AC_MSG_CHECKING([if we have SIMD optimisations for cpu type])
401  case "$host_cpu" in
402    x86_64 | amd64)
403      AC_MSG_RESULT([yes (x86_64)])
404      AC_PROG_NASM
405      simd_arch=x86_64
406      ;;
407    i*86 | x86 | ia32)
408      AC_MSG_RESULT([yes (i386)])
409      AC_PROG_NASM
410      simd_arch=i386
411      ;;
412    arm*)
413      AC_MSG_RESULT([yes (arm)])
414      AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used])
415      AC_CHECK_COMPATIBLE_ARM_ASSEMBLER_IFELSE(
416        [AC_MSG_RESULT([yes])
417         simd_arch=arm],
418        [AC_MSG_RESULT([no])
419         with_simd=no])
420      if test "x${with_simd}" = "xno"; then
421        if test "x${require_simd}" = "xyes"; then
422          AC_MSG_ERROR([SIMD support can't be enabled.])
423        else
424          AC_MSG_WARN([SIMD support can't be enabled.  Performance will suffer.])
425        fi
426      fi
427      ;;
428    aarch64*)
429      AC_MSG_RESULT([yes (arm64)])
430      AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used])
431      AC_CHECK_COMPATIBLE_ARM64_ASSEMBLER_IFELSE(
432        [AC_MSG_RESULT([yes])
433         simd_arch=aarch64],
434        [AC_MSG_RESULT([no])
435         with_simd=no])
436      if test "x${with_simd}" = "xno"; then
437        if test "x${require_simd}" = "xyes"; then
438          AC_MSG_ERROR([SIMD support can't be enabled.])
439        else
440          AC_MSG_WARN([SIMD support can't be enabled.  Performance will suffer.])
441        fi
442      fi
443      ;;
444    mipsel*)
445      AC_MSG_RESULT([yes (mipsel)])
446      AC_MSG_CHECKING([if the assembler is GNU-compatible and can be used])
447      AC_CHECK_COMPATIBLE_MIPSEL_ASSEMBLER_IFELSE(
448        [AC_MSG_RESULT([yes])
449         simd_arch=mipsel],
450        [AC_MSG_RESULT([no])
451         with_simd=no])
452      if test "x${with_simd}" = "xno"; then
453        if test "x${require_simd}" = "xyes"; then
454          AC_MSG_ERROR([SIMD support can't be enabled.])
455        else
456          AC_MSG_WARN([SIMD support can't be enabled.  Performance will suffer.])
457        fi
458      fi
459      ;;
460    *)
461      AC_MSG_RESULT([no ("$host_cpu")])
462      with_simd=no;
463      if test "x${require_simd}" = "xyes"; then
464        AC_MSG_ERROR([SIMD support not available for this CPU.])
465      else
466        AC_MSG_WARN([SIMD support not available for this CPU.  Performance will suffer.])
467      fi
468      ;;
469  esac
470
471  if test "x${with_simd}" != "xno"; then
472    AC_DEFINE([WITH_SIMD], [1], [Use accelerated SIMD routines.])
473  fi
474else
475  RPM_CONFIG_ARGS="$RPM_CONFIG_ARGS --without-simd"
476fi
477
478AM_CONDITIONAL([WITH_SIMD], [test "x$with_simd" != "xno"])
479AM_CONDITIONAL([WITH_SSE_FLOAT_DCT], [test "x$simd_arch" = "xx86_64" -o "x$simd_arch" = "xi386"])
480AM_CONDITIONAL([SIMD_I386], [test "x$simd_arch" = "xi386"])
481AM_CONDITIONAL([SIMD_X86_64], [test "x$simd_arch" = "xx86_64"])
482AM_CONDITIONAL([SIMD_ARM], [test "x$simd_arch" = "xarm"])
483AM_CONDITIONAL([SIMD_ARM_64], [test "x$simd_arch" = "xaarch64"])
484AM_CONDITIONAL([SIMD_MIPSEL], [test "x$simd_arch" = "xmipsel"])
485AM_CONDITIONAL([X86_64], [test "x$host_cpu" = "xx86_64" -o "x$host_cpu" = "xamd64"])
486AM_CONDITIONAL([WITH_TURBOJPEG], [test "x$with_turbojpeg" != "xno"])
487
488AC_ARG_VAR(PKGNAME, [distribution package name (default: libjpeg-turbo)])
489if test "x$PKGNAME" = "x"; then
490  PKGNAME=$PACKAGE_NAME
491fi
492AC_SUBST(PKGNAME)
493
494case "$host_cpu" in
495  x86_64)
496    RPMARCH=x86_64
497    DEBARCH=amd64
498    ;;
499  i*86 | x86 | ia32)
500    RPMARCH=i386
501    DEBARCH=i386
502    ;;
503esac
504
505AC_SUBST(RPMARCH)
506AC_SUBST(RPM_CONFIG_ARGS)
507AC_SUBST(DEBARCH)
508AC_SUBST(BUILD)
509AC_DEFINE_UNQUOTED([BUILD], "$BUILD", [libjpeg-turbo build number])
510
511# NOTE: autoheader automatically modifies the input file of the first
512# invocation of AC_CONFIG_HEADERS, so we put config.h first to prevent
513# jconfig.h.in from being clobbered.  config.h is used only internally, whereas
514# jconfig.h contains macros that are relevant to external programs (macros that
515# specify which features were built into the library.)
516AC_CONFIG_HEADERS([config.h])
517AC_CONFIG_HEADERS([jconfig.h])
518AC_CONFIG_HEADERS([jconfigint.h])
519AC_CONFIG_FILES([pkgscripts/libjpeg-turbo.spec.tmpl:release/libjpeg-turbo.spec.in])
520AC_CONFIG_FILES([pkgscripts/makecygwinpkg.tmpl:release/makecygwinpkg.in])
521AC_CONFIG_FILES([pkgscripts/makedpkg.tmpl:release/makedpkg.in])
522AC_CONFIG_FILES([pkgscripts/makemacpkg.tmpl:release/makemacpkg.in])
523AC_CONFIG_FILES([pkgscripts/uninstall.tmpl:release/uninstall.in])
524if test "x$with_turbojpeg" != "xno"; then
525  AC_CONFIG_FILES([tjbenchtest])
526fi
527if test "x$with_java" = "xyes"; then
528  AC_CONFIG_FILES([tjbenchtest.java])
529  AC_CONFIG_FILES([tjexampletest])
530fi
531AC_CONFIG_FILES([libjpeg.map])
532AC_CONFIG_FILES([Makefile simd/Makefile])
533AC_CONFIG_FILES([java/Makefile])
534AC_CONFIG_FILES([md5/Makefile])
535AC_OUTPUT
536