1377
1378
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1378
1379
--with-optim set optimization flags
1379
1380
--with-poppler-source=PATH poppler source directory path
1380
--with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops
1381
--with-pdftops-renderer set default renderer for pdftops filter (gs,pdftops), default=gs
1382
--with-pdftops-maxres set default maximum image rendering resolution for pdftops filter (0, 75, 150, 300, 600, 1200, 2400, 4800, 90, 180, 360, 720, 1440, 2880, 5760, unlimited), default=1440
1383
--with-ghostscript set ghostscript path for pdftops filter (gs,/path/to/gs,none), default=gs
1384
--with-poppler-pdftops set Poppler pdftops path for pdftops filter (pdftops,/path/to/pdftops,none), default=pdftops
1381
1385
--with-php set PHP interpreter for web interfaces
1383
1387
Some influential environment variables:
6995
# Check whether --with-pdftops was given.
6996
if test "${with_pdftops+set}" = set; then :
6997
withval=$with_pdftops;
6999
# Check whether --with-pdftops-renderer was given.
7000
if test "${with_pdftops_renderer+set}" = set; then :
7001
withval=$with_pdftops_renderer;
7005
# Check whether --with-pdftops-maxres was given.
7006
if test "${with_pdftops_maxres+set}" = set; then :
7007
withval=$with_pdftops_maxres;
7011
# Check whether --with-ghostscript was given.
7012
if test "${with_ghostscript+set}" = set; then :
7013
withval=$with_ghostscript;
7017
# Check whether --with-poppler-pdftops was given.
7018
if test "${with_poppler_pdftops+set}" = set; then :
7019
withval=$with_poppler_pdftops;
7023
CUPS_PDFTOPS_RENDERER=""
7024
CUPS_PDFTOPS_MAX_RESOLUTION=""
7025
CUPS_POPPLER_PDFTOPS=""
7003
7026
CUPS_GHOSTSCRIPT=""
7005
case "x$with_pdftops" in
7028
case "x$with_ghostscript" in
7006
7029
x) # Default/auto
7007
7030
# Extract the first word of "gs", so it can be a program name with args.
7008
7031
set dummy gs; ac_word=$2
7047
7070
if test "x$CUPS_GHOSTSCRIPT" != x; then
7048
7071
$as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
7052
# Extract the first word of "pdftops", so it can be a program name with args.
7053
set dummy pdftops; ac_word=$2
7054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055
$as_echo_n "checking for $ac_word... " >&6; }
7056
if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
7057
$as_echo_n "(cached) " >&6
7059
case $CUPS_PDFTOPS in
7061
ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
7064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068
test -z "$as_dir" && as_dir=.
7069
for ac_exec_ext in '' $ac_executable_extensions; do
7070
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071
ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
7072
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082
CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
7083
if test -n "$CUPS_PDFTOPS"; then
7084
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
7085
$as_echo "$CUPS_PDFTOPS" >&6; }
7087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088
$as_echo "no" >&6; }
7092
if test "x$CUPS_PDFTOPS" != x; then
7093
$as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
7141
7117
if test "x$CUPS_GHOSTSCRIPT" != x; then
7142
7118
$as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
7146
as_fn_error "Unable to find gs program!" "$LINENO" 5
7121
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find gs program!" >&5
7122
$as_echo "$as_me: WARNING: Unable to find gs program!" >&2;}
7151
7126
x/*/gs) # Use /path/to/gs without any check:
7152
CUPS_GHOSTSCRIPT="$with_pdftops"
7127
CUPS_GHOSTSCRIPT="$with_ghostscript"
7153
7128
$as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
7132
xno) # --without-ghostscript
7135
*) # Invalid with_ghostscript value
7136
as_fn_error "Invalid with-ghostscript value!" "$LINENO" 5
7141
case "x$with_poppler_pdftops" in
7143
# Extract the first word of "pdftops", so it can be a program name with args.
7144
set dummy pdftops; ac_word=$2
7145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7146
$as_echo_n "checking for $ac_word... " >&6; }
7147
if test "${ac_cv_path_CUPS_POPPLER_PDFTOPS+set}" = set; then :
7148
$as_echo_n "(cached) " >&6
7150
case $CUPS_POPPLER_PDFTOPS in
7152
ac_cv_path_CUPS_POPPLER_PDFTOPS="$CUPS_POPPLER_PDFTOPS" # Let the user override the test with a path.
7155
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159
test -z "$as_dir" && as_dir=.
7160
for ac_exec_ext in '' $ac_executable_extensions; do
7161
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7162
ac_cv_path_CUPS_POPPLER_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
7163
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7173
CUPS_POPPLER_PDFTOPS=$ac_cv_path_CUPS_POPPLER_PDFTOPS
7174
if test -n "$CUPS_POPPLER_PDFTOPS"; then
7175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_POPPLER_PDFTOPS" >&5
7176
$as_echo "$CUPS_POPPLER_PDFTOPS" >&6; }
7178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179
$as_echo "no" >&6; }
7183
if test "x$CUPS_POPPLER_PDFTOPS" != x; then
7184
$as_echo "#define HAVE_POPPLER_PDFTOPS 1" >>confdefs.h
7160
7191
set dummy pdftops; ac_word=$2
7161
7192
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7162
7193
$as_echo_n "checking for $ac_word... " >&6; }
7163
if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
7194
if test "${ac_cv_path_CUPS_POPPLER_PDFTOPS+set}" = set; then :
7164
7195
$as_echo_n "(cached) " >&6
7166
case $CUPS_PDFTOPS in
7197
case $CUPS_POPPLER_PDFTOPS in
7167
7198
[\\/]* | ?:[\\/]*)
7168
ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
7199
ac_cv_path_CUPS_POPPLER_PDFTOPS="$CUPS_POPPLER_PDFTOPS" # Let the user override the test with a path.
7171
7202
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189
CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
7190
if test -n "$CUPS_PDFTOPS"; then
7191
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
7192
$as_echo "$CUPS_PDFTOPS" >&6; }
7220
CUPS_POPPLER_PDFTOPS=$ac_cv_path_CUPS_POPPLER_PDFTOPS
7221
if test -n "$CUPS_POPPLER_PDFTOPS"; then
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_POPPLER_PDFTOPS" >&5
7223
$as_echo "$CUPS_POPPLER_PDFTOPS" >&6; }
7194
7225
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195
7226
$as_echo "no" >&6; }
7199
if test "x$CUPS_PDFTOPS" != x; then
7200
$as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
7230
if test "x$CUPS_POPPLER_PDFTOPS" != x; then
7231
$as_echo "#define HAVE_POPPLER_PDFTOPS 1" >>confdefs.h
7204
as_fn_error "Unable to find pdftops program!" "$LINENO" 5
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to find Poppler pdftops program!" >&5
7235
$as_echo "$as_me: WARNING: Unable to find Poppler pdftops program!" >&2;}
7209
7239
x/*/pdftops) # Use /path/to/pdftops without any check:
7210
CUPS_PDFTOPS="$with_pdftops"
7211
$as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
7216
xnone) # Make no pdftops filter if with_pdftops=none:
7219
*) # Invalid with_pdftops value:
7220
as_fn_error "Invalid with_pdftops value!" "$LINENO" 5
7240
CUPS_POPPLER_PDFTOPS="$with_poppler_pdftops"
7241
$as_echo "#define HAVE_POPPLER_PDFTOPS 1" >>confdefs.h
7245
xno) # --without-poppler-pdftops
7248
*) # Invalid with_poppler-pdftops value
7249
echo "$with_poppler_pdftops"
7250
as_fn_error "Invalid with-poppler-pdftops value!" "$LINENO" 5
7225
if test "x$CUPS_PDFTOPS" != x; then
7226
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
7227
$as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
7228
if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
7229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230
$as_echo "yes" >&6; }
7231
$as_echo "#define HAVE_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
7234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235
$as_echo "no" >&6; }
7238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -r" >&5
7239
$as_echo_n "checking whether pdftops supports -r... " >&6; }
7240
if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- '-r '); then
7241
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7242
$as_echo "yes" >&6; }
7243
$as_echo "#define HAVE_PDFTOPS_WITH_RESOLUTION 1" >>confdefs.h
7246
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7247
$as_echo "no" >&6; }
7251
elif test "x$CUPS_GHOSTSCRIPT" != x; then
7255
if test "x$CUPS_POPPLER_PDFTOPS" != x; then
7256
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Poppler pdftops supports -origpagesizes" >&5
7257
$as_echo_n "checking whether Poppler pdftops supports -origpagesizes... " >&6; }
7258
if ($CUPS_POPPLER_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
7259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7260
$as_echo "yes" >&6; }
7261
$as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
7264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265
$as_echo "no" >&6; }
7268
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Poppler pdftops supports -r" >&5
7269
$as_echo_n "checking whether Poppler pdftops supports -r... " >&6; }
7270
if ($CUPS_POPPLER_PDFTOPS -h 2>&1 | grep -q -- '-r '); then
7271
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7272
$as_echo "yes" >&6; }
7273
$as_echo "#define HAVE_POPPLER_PDFTOPS_WITH_RESOLUTION 1" >>confdefs.h
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277
$as_echo "no" >&6; }
7280
if test "x$CUPS_GHOSTSCRIPT" != x; then
7252
7281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
7253
7282
$as_echo_n "checking whether gs supports the ps2write device... " >&6; }
7254
7283
if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
7260
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261
7290
$as_echo "no" >&6; }
7294
case "x$with_pdftops_renderer" in
7296
CUPS_PDFTOPS_RENDERER=GS
7297
if test "x$CUPS_GHOSTSCRIPT" = x; then
7298
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Default renderer Ghostscript is not available!" >&5
7299
$as_echo "$as_me: WARNING: Default renderer Ghostscript is not available!" >&2;}
7304
CUPS_PDFTOPS_RENDERER=PDFTOPS
7305
if test "x$CUPS_POPPLER_PDFTOPS" = x; then
7306
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Default renderer Poppler pdftops is not available!" >&5
7307
$as_echo "$as_me: WARNING: Default renderer Poppler pdftops is not available!" >&2;}
7311
*) # Invalid with_pdftops-renderer value
7312
as_fn_error "Invalid with-pdftops-renderer value!" "$LINENO" 5
7317
case "x$with_pdftops_maxres" in
7320
CUPS_PDFTOPS_MAXRES=1440
7323
x75|x150|x300|x600|x1200|x2400|x4800|x90|x180|x360|x720|x1440|x2880|x5760)
7324
CUPS_PDFTOPS_MAXRES=$with_pdftops_maxres
7328
CUPS_PDFTOPS_MAXRES=0
7331
*) # Invalid with_pdftops-renderer value
7332
as_fn_error "Invalid with-pdftops-maxres value!" "$LINENO" 5
7337
cat >>confdefs.h <<_ACEOF
7338
#define CUPS_PDFTOPS_RENDERER $CUPS_PDFTOPS_RENDERER
7341
cat >>confdefs.h <<_ACEOF
7342
#define CUPS_PDFTOPS_MAX_RESOLUTION $CUPS_PDFTOPS_MAXRES
7269
7345
cat >>confdefs.h <<_ACEOF
7270
7346
#define CUPS_PDFTOPS "$CUPS_PDFTOPS"