2
2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for cups-filters 1.0.20.
6
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
3
# Generated by GNU Autoconf 2.69 for cups-filters 1.0.22.
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
9
# This configure script is free software; the Free Software Foundation
135
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
137
160
if test "x$CONFIG_SHELL" = x; then
138
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
222
246
if test "x$CONFIG_SHELL" != x; then :
223
# We cannot yet assume a decent shell, so we have to provide a
224
# neutralization value for shells without unset; and this also
225
# works around shells that cannot unset nonexistent variables.
226
# Preserve -v and -x to the replacement shell.
229
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232
*v*x* | *x*v* ) as_opts=-vx ;;
237
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
248
# We cannot yet assume a decent shell, so we have to provide a
249
# neutralization value for shells without unset; and this also
250
# works around shells that cannot unset nonexistent variables.
251
# Preserve -v and -x to the replacement shell.
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256
*v*x* | *x*v* ) as_opts=-vx ;;
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262
# Admittedly, this is quite paranoid, since all the known shells bail
263
# out after a failed `exec'.
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
240
268
if test x$as_have_required = xno; then :
457
493
chmod +x "$as_me.lineno" ||
458
494
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497
# already done that, so ensure we don't try to do so again and fall
498
# in an infinite loop. This has already happened in practice.
499
_as_can_reexec=no; export _as_can_reexec
460
500
# Don't try to exec as it changes $[0], causing all sort of problems
461
501
# (the dirname of $[0] is not the place where we might find the
462
502
# original and so on. Autoconf is especially sensitive to this).
491
531
# ... but there are two gotchas:
492
532
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493
533
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494
# In both cases, we have to default to `cp -p'.
534
# In both cases, we have to default to `cp -pR'.
495
535
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
497
537
elif ln conf$$.file conf$$ 2>/dev/null; then
505
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506
546
rmdir conf$$.dir 2>/dev/null
515
if test -x / >/dev/null 2>&1; then
518
if ls -dL / >/dev/null 2>&1; then
525
if test -d "$1"; then
531
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532
???[sx]*):;;*)false;;esac;fi
536
as_executable_p=$as_test_x
556
as_executable_p=as_fn_executable_p
538
558
# Sed expression to map a string onto a valid CPP name.
539
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1532
1554
linker flags for POPPLER, overriding pkg-config
1533
1555
ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1534
1556
ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1558
C compiler flags for LIBQPDF, overriding pkg-config
1560
linker flags for LIBQPDF, overriding pkg-config
1536
1562
Use these variables to override the choices made by `configure' or to help
1537
1563
it to find libraries and programs with nonstandard names/locations.
1599
1625
test -n "$ac_init_help" && exit $ac_status
1600
1626
if $ac_init_version; then
1602
cups-filters configure 1.0.20
1603
generated by GNU Autoconf 2.68
1628
cups-filters configure 1.0.22
1629
generated by GNU Autoconf 2.69
1605
Copyright (C) 2010 Free Software Foundation, Inc.
1631
Copyright (C) 2012 Free Software Foundation, Inc.
1606
1632
This configure script is free software; the Free Software Foundation
1607
1633
gives unlimited permission to copy, distribute and modify it.
2970
2996
test -z "$as_dir" && as_dir=.
2971
2997
for ac_prog in mkdir gmkdir; do
2972
2998
for ac_exec_ext in '' $ac_executable_extensions; do
2973
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2999
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2974
3000
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2975
3001
'mkdir (GNU coreutils) '* | \
2976
3002
'mkdir (coreutils) '* | \
5061
5086
for ac_prog in sed gsed; do
5062
5087
for ac_exec_ext in '' $ac_executable_extensions; do
5063
5088
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5064
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5089
as_fn_executable_p "$ac_path_SED" || continue
5065
5090
# Check for GNU ac_path_SED and select it if it is found.
5066
5091
# Check for GNU $ac_path_SED
5067
5092
case `"$ac_path_SED" --version 2>&1` in
5137
5162
for ac_prog in grep ggrep; do
5138
5163
for ac_exec_ext in '' $ac_executable_extensions; do
5139
5164
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5140
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5165
as_fn_executable_p "$ac_path_GREP" || continue
5141
5166
# Check for GNU ac_path_GREP and select it if it is found.
5142
5167
# Check for GNU $ac_path_GREP
5143
5168
case `"$ac_path_GREP" --version 2>&1` in
17057
17082
$as_echo "#define HAVE_LIBZ /**/" >>confdefs.h
17086
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQPDF" >&5
17087
$as_echo_n "checking for LIBQPDF... " >&6; }
17089
if test -n "$LIBQPDF_CFLAGS"; then
17090
pkg_cv_LIBQPDF_CFLAGS="$LIBQPDF_CFLAGS"
17091
elif test -n "$PKG_CONFIG"; then
17092
if test -n "$PKG_CONFIG" && \
17093
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0\""; } >&5
17094
($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0") 2>&5
17096
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17097
test $ac_status = 0; }; then
17098
pkg_cv_LIBQPDF_CFLAGS=`$PKG_CONFIG --cflags "libqpdf >= 3.0" 2>/dev/null`
17099
test "x$?" != "x0" && pkg_failed=yes
17106
if test -n "$LIBQPDF_LIBS"; then
17107
pkg_cv_LIBQPDF_LIBS="$LIBQPDF_LIBS"
17108
elif test -n "$PKG_CONFIG"; then
17109
if test -n "$PKG_CONFIG" && \
17110
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libqpdf >= 3.0\""; } >&5
17111
($PKG_CONFIG --exists --print-errors "libqpdf >= 3.0") 2>&5
17113
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17114
test $ac_status = 0; }; then
17115
pkg_cv_LIBQPDF_LIBS=`$PKG_CONFIG --libs "libqpdf >= 3.0" 2>/dev/null`
17116
test "x$?" != "x0" && pkg_failed=yes
17126
if test $pkg_failed = yes; then
17127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128
$as_echo "no" >&6; }
17130
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17131
_pkg_short_errors_supported=yes
17133
_pkg_short_errors_supported=no
17135
if test $_pkg_short_errors_supported = yes; then
17136
LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libqpdf >= 3.0" 2>&1`
17138
LIBQPDF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libqpdf >= 3.0" 2>&1`
17140
# Put the nasty error message in config.log where it belongs
17141
echo "$LIBQPDF_PKG_ERRORS" >&5
17143
as_fn_error $? "Package requirements (libqpdf >= 3.0) were not met:
17145
$LIBQPDF_PKG_ERRORS
17147
Consider adjusting the PKG_CONFIG_PATH environment variable if you
17148
installed software in a non-standard prefix.
17150
Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17151
and LIBQPDF_LIBS to avoid the need to call pkg-config.
17152
See the pkg-config man page for more details." "$LINENO" 5
17153
elif test $pkg_failed = untried; then
17154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17155
$as_echo "no" >&6; }
17156
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17157
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17158
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17159
is in your PATH or set the PKG_CONFIG environment variable to the full
17160
path to pkg-config.
17162
Alternatively, you may set the environment variables LIBQPDF_CFLAGS
17163
and LIBQPDF_LIBS to avoid the need to call pkg-config.
17164
See the pkg-config man page for more details.
17166
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17167
See \`config.log' for more details" "$LINENO" 5; }
17169
LIBQPDF_CFLAGS=$pkg_cv_LIBQPDF_CFLAGS
17170
LIBQPDF_LIBS=$pkg_cv_LIBQPDF_LIBS
17171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17172
$as_echo "yes" >&6; }
17060
17176
# ================
17061
17177
# Poppler features
17062
17178
# ================
18171
18289
# ... but there are two gotchas:
18172
18290
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18173
18291
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18174
# In both cases, we have to default to `cp -p'.
18292
# In both cases, we have to default to `cp -pR'.
18175
18293
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18177
18295
elif ln conf$$.file conf$$ 2>/dev/null; then
18185
18303
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18186
18304
rmdir conf$$.dir 2>/dev/null
18240
18358
as_mkdir_p=false
18243
if test -x / >/dev/null 2>&1; then
18244
as_test_x='test -x'
18246
if ls -dL / >/dev/null 2>&1; then
18253
if test -d "$1"; then
18259
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18260
???[sx]*):;;*)false;;esac;fi
18264
as_executable_p=$as_test_x
18362
# as_fn_executable_p FILE
18363
# -----------------------
18364
# Test if FILE is an executable regular file.
18365
as_fn_executable_p ()
18367
test -f "$1" && test -x "$1"
18368
} # as_fn_executable_p
18369
as_test_x='test -x'
18370
as_executable_p=as_fn_executable_p
18266
18372
# Sed expression to map a string onto a valid CPP name.
18267
18373
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18282
18388
# report actual input values of CONFIG_FILES etc. instead of their
18283
18389
# values after options handling.
18285
This file was extended by cups-filters $as_me 1.0.20, which was
18286
generated by GNU Autoconf 2.68. Invocation command line was
18391
This file was extended by cups-filters $as_me 1.0.22, which was
18392
generated by GNU Autoconf 2.69. Invocation command line was
18288
18394
CONFIG_FILES = $CONFIG_FILES
18289
18395
CONFIG_HEADERS = $CONFIG_HEADERS
18348
18454
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18349
18455
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18350
18456
ac_cs_version="\\
18351
cups-filters config.status 1.0.20
18352
configured by $0, generated by GNU Autoconf 2.68,
18457
cups-filters config.status 1.0.22
18458
configured by $0, generated by GNU Autoconf 2.69,
18353
18459
with options \\"\$ac_cs_config\\"
18355
Copyright (C) 2010 Free Software Foundation, Inc.
18461
Copyright (C) 2012 Free Software Foundation, Inc.
18356
18462
This config.status script is free software; the Free Software Foundation
18357
18463
gives unlimited permission to copy, distribute and modify it."