1dnl $Id: configure.ac,v 1.224 2011/05/02 01:20:49 rlk Exp $ 2dnl Copyright (C) 2001-2004 Roger Leigh 3dnl 4dnl This program is free software; you can redistribute it and/or modify 5dnl it under the terms of the GNU General Public License as published by 6dnl the Free Software Foundation; either version 2, or (at your option) 7dnl any later version. 8dnl 9dnl This program is distributed in the hope that it will be useful, 10dnl but WITHOUT ANY WARRANTY; without even the implied warranty of 11dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12dnl GNU General Public License for more details. 13dnl 14dnl You should have received a copy of the GNU General Public License 15dnl along with this program; if not, write to the Free Software 16dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 18dnl Process this file with autoconf to produce a configure script. 19 20dnl MAKING RELEASES (a step-by-step guide!) 21dnl =============== 22dnl 23dnl Since the last release: 24dnl 1. if only source code (not the interface) has changed, set 25dnl GUTENPRINT_MICRO_VERSION += 1; 26dnl GUTENPRINT_INTERFACE_AGE += 1; 27dnl 2. if any functions have been added, removed, or changed, set 28dnl GUTENPRINT_INTERFACE_AGE = 0; 29dnl GUTENPRINT_CURRENT_INTERFACE += 1; 30dnl 3. if interfaces have been added, set 31dnl GUTENPRINT_BINARY_AGE += 1; 32dnl 4. if interfaces have been removed, set 33dnl GUTENPRINT_BINARY_AGE = 0; 34dnl 35dnl For more detailed information, see the libtool info documentation. 36dnl 37pushdef([GUTENPRINT_NAME], [gutenprint]) 38pushdef([GUTENPRINT_MAJOR_VERSION], [5]) 39pushdef([GUTENPRINT_MINOR_VERSION], [2]) 40pushdef([GUTENPRINT_MICRO_VERSION], [7]) 41pushdef([GUTENPRINT_EXTRA_VERSION], []) 42pushdef([GUTENPRINT_CURRENT_INTERFACE], [2]) 43pushdef([GUTENPRINT_INTERFACE_AGE], [8]) 44pushdef([GUTENPRINT_BINARY_AGE], [0]) 45pushdef([GUTENPRINTUI2_CURRENT_INTERFACE], [1]) 46pushdef([GUTENPRINTUI2_INTERFACE_AGE], [0]) 47pushdef([GUTENPRINTUI2_BINARY_AGE], [0]) 48pushdef([GUTENPRINT_VERSION], GUTENPRINT_MAJOR_VERSION.GUTENPRINT_MINOR_VERSION.GUTENPRINT_MICRO_VERSION[]GUTENPRINT_EXTRA_VERSION) 49 50AC_INIT(GUTENPRINT_NAME, GUTENPRINT_VERSION, [gimp-print-devel@lists.sourceforge.net]) 51AC_PREREQ(2.53) 52AC_REVISION($Revision: 1.224 $) 53AC_CONFIG_SRCDIR(src/main/print-vars.c) 54AC_CONFIG_AUX_DIR(scripts) 55STP_INIT 56AC_COPYRIGHT( 57[ 58Parts of this configure script come from the 'configure.ac' file, and 59are not based on freely-redistributable m4 macros; you can redistribute 60them and/or modify them under the terms of the GNU General Public 61as published by the Free Software Foundation; either version 2, or (at 62your option) any later version. 63 64This program is distributed in the hope that it will be useful, 65but WITHOUT ANY WARRANTY; without even the implied warranty of 66MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 67GNU General Public License for more details. 68 69You should have received a copy of the GNU General Public License 70along with this program; if not, write to the Free Software 71Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 72]) 73 74[GUTENPRINT_MAJOR_VERSION]=GUTENPRINT_MAJOR_VERSION 75[GUTENPRINT_MINOR_VERSION]=GUTENPRINT_MINOR_VERSION 76[GUTENPRINT_MICRO_VERSION]=GUTENPRINT_MICRO_VERSION 77[GUTENPRINT_EXTRA_VERSION]=GUTENPRINT_EXTRA_VERSION 78[GUTENPRINT_CURRENT_INTERFACE]=GUTENPRINT_CURRENT_INTERFACE 79[GUTENPRINT_INTERFACE_AGE]=GUTENPRINT_INTERFACE_AGE 80[GUTENPRINT_BINARY_AGE]=GUTENPRINT_BINARY_AGE 81[GUTENPRINT_VERSION]=GUTENPRINT_VERSION 82[GUTENPRINTUI2_CURRENT_INTERFACE]=GUTENPRINTUI2_CURRENT_INTERFACE 83[GUTENPRINTUI2_INTERFACE_AGE]=GUTENPRINTUI2_INTERFACE_AGE 84[GUTENPRINTUI2_BINARY_AGE]=GUTENPRINTUI2_BINARY_AGE 85popdef([GUTENPRINT_MAJOR_VERSION]) 86popdef([GUTENPRINT_MINOR_VERSION]) 87popdef([GUTENPRINT_MICRO_VERSION]) 88popdef([GUTENPRINT_EXTRA_VERSION]) 89popdef([GUTENPRINT_CURRENT_INTERFACE]) 90popdef([GUTENPRINT_INTERFACE_AGE]) 91popdef([GUTENPRINT_BINARY_AGE]) 92popdef([GUTENPRINTUI2_CURRENT_INTERFACE]) 93popdef([GUTENPRINTUI2_INTERFACE_AGE]) 94popdef([GUTENPRINTUI2_BINARY_AGE]) 95 96AC_SUBST([GUTENPRINT_MAJOR_VERSION]) 97AC_SUBST([GUTENPRINT_MINOR_VERSION]) 98AC_SUBST([GUTENPRINT_MICRO_VERSION]) 99AC_SUBST([GUTENPRINT_CURRENT_INTERFACE]) 100AC_SUBST([GUTENPRINT_INTERFACE_AGE]) 101AC_SUBST([GUTENPRINT_BINARY_AGE]) 102AC_SUBST([GUTENPRINT_VERSION]) 103AC_SUBST([GUTENPRINTUI2_CURRENT_INTERFACE]) 104AC_SUBST([GUTENPRINTUI2_INTERFACE_AGE]) 105AC_SUBST([GUTENPRINTUI2_BINARY_AGE]) 106 107dnl Make sure we inherit common compiler options from the environment... 108CFLAGS="${CFLAGS:=}" 109CPPFLAGS="${CPPFLAGS:=}" 110CXXFLAGS="${CXXFLAGS:=}" 111LDFLAGS="${LDFLAGS:=}" 112LIBS="${LIBS:=}" 113 114dnl Initialize automake stuff. 115AM_INIT_AUTOMAKE(1.9 dist-bzip2 no-dist-gzip tar-ustar check-news gnu) 116popdef([GUTENPRINT_NAME]) 117popdef([GUTENPRINT_VERSION]) 118 119 120dnl In the following script, there are a the following variants 121dnl of cflags and variables 122dnl 123dnl *_CFLAGS: cflags for compiling libraries and example progs 124dnl *_LIBS: libraries for linking programs. ONLY to be used 125dnl to generate ${gutenprint_libs} 126dnl *_LIBDEPS: libraries for linking libraries against 127dnl *_libdeps: library dependencies for pkg-config 128dnl *_cflags: cflags for pkg-config 129dnl *_libs: libs for pkg-config 130 131GUTENPRINT_LIBS="-lgutenprint" 132GUTENPRINTUI2_LIBS="-lgutenprintui2" 133gutenprint_version=${GUTENPRINT_VERSION} 134gutenprintui2_version=${GUTENPRINT_VERSION} 135 136GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} \$(GUTENPRINT_LIBS)" 137 138dnl Specify a configuration file. 139AM_CONFIG_HEADER([config.h]) 140 141dnl Available languages (translations) 142ALL_LINGUAS="cs da de el en_GB es fi fr hu it ja nb nl pl pt ru sk sl sv zh_TW" 143AC_SUBST(ALL_LINGUAS) 144 145dnl Set up libtool scripts. 146dnl Disable static library building to speed up the build 147AC_LIBTOOL_DLOPEN 148# We need static libraries for CUPS genppd program for now, for bug 865265 149# --rlk 20031223 150AC_ENABLE_STATIC(yes) 151#AC_DISABLE_SHARED 152AM_PROG_LIBTOOL 153AC_SUBST(LIBTOOL_DEPS) 154dnl define HAVE_GNU_LD if GNU ld is present 155if test "$ac_cv_prog_gnu_ld" = "yes" ; then 156 AC_DEFINE(HAVE_GNU_LD,, [Define if GNU ld is present.]) 157fi 158 159dnl Set up maintainer mode 160AM_MAINTAINER_MODE 161if test x${USE_MAINTAINER_MODE} = xyes ; then 162 MAINTAINER_MODE="true" 163 BUILD_TEST="yes" 164 AC_DEFINE(HAVE_MAINTAINER_MODE,, [Define if maintainer-mode is to be used.]) 165fi 166 167dnl Check canonical system/host (a kludge: replace me with something better). 168if test x${host_os} = xlinux-gnu ; then 169 OSTYPE="linux" 170elif test "`echo ${host_os} | sed 's/^\(linux\).*$/\1/'`" = "linux" ; then 171 OSTYPE="linux" 172elif test "`echo ${host_os} | sed 's/^\(irix\).*$/\1/'`" = "irix" ; then 173 OSTYPE="irix" 174else 175 OSTYPE="${host_os}" 176fi 177AC_DEFINE_UNQUOTED(OSTYPE, ["${OSTYPE}"], [The operating system to build for]) 178 179 180dnl Command line options. 181AC_PATH_PROG(CUPS_CONFIG, cups-config) 182if test -z "${CUPS_CONFIG}" ; then 183 BUILD_CUPS="no" 184else 185 BUILD_CUPS="yes" 186fi 187STP_ARG_WITH_DETAILED( 188 [cups], 189 [=PREFIX], 190 [whether to build CUPS driver], 191 [(default PREFIX=/usr)], 192 [BUILD_CUPS], 193 [(automatic)], 194 [ 195 yes) [BUILD_CUPS]="yes" ; AC_MSG_RESULT([yes]) ; cups_prefix="/usr" ;; 196 no) [BUILD_CUPS]="no" ; AC_MSG_RESULT([no]) ; cups_prefix="/usr" ;; 197 *) if test -d ${withval} ; then 198 [BUILD_CUPS]="yes" 199 AC_MSG_RESULT([yes (using specified prefix)]) 200 cups_prefix="${withval}" 201 else 202 AC_MSG_RESULT([unknown]) 203 AC_MSG_ERROR([${withval}: no such directory for --with-cups]) 204 fi ;; 205 ],[ 206 cups_prefix="${prefix}" 207 ]) 208 209dnl GNU gettext checks. 210AM_GNU_GETTEXT_VERSION([0.16]) 211AM_GNU_GETTEXT([external]) 212 213AM_CONDITIONAL(USE_NLS, test x${USE_NLS} = xyes) 214 215STP_ARG_ENABLE([nls-macosx], 216 [build CUPS PPD files], 217 [USE_NLS_OSX], 218 [(automatic)]) 219 220USE_LEVEL3_PS=no 221BUILD_CUPS_PPDS="${BUILD_CUPS}" 222BUILD_TRANSLATED_CUPS_PPDS=no 223BUILD_CUPS_1_2="no" 224if test -n "${CUPS_CONFIG}" -a "${BUILD_CUPS}" = "yes" ; then 225 cups_version=`${CUPS_CONFIG} --version | sed -e '1,$s/svn$/.0/'` 226dnl Quote to protect sed regexes 227 [cups_major=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`] 228 [cups_minor=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`] 229 [cups_point=`echo $cups_version | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\3/'`] 230dnl There was no CUPS 1.0.15 or the like 231 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 -o "$cups_point" -gt 14 ; then 232 USE_LEVEL3_PS=yes 233 fi 234 if test "$cups_major" -gt 1 -o "$cups_minor" -gt 1 ; then 235 BUILD_CUPS_PPDS="no" 236 BUILD_CUPS_1_2="yes" 237 fi 238fi 239 240STP_ARG_ENABLE([cups-ppds], 241 [build CUPS PPD files], 242 [BUILD_CUPS_PPDS], 243 [(automatic)]) 244 245STP_ARG_ENABLE([cups-1_2-enhancements], 246 [build CUPS 1.2 enhancements], 247 [BUILD_CUPS_1_2], 248 [(automatic)]) 249 250if test "$USE_NLS" != no -a "$BUILD_CUPS_PPDS" = yes ; then 251 BUILD_TRANSLATED_CUPS_PPDS="yes" 252fi 253 254STP_ARG_ENABLE([translated-cups-ppds], 255 [build translated CUPS PPD files], 256 [BUILD_TRANSLATED_CUPS_PPDS], 257 [(automatic)]) 258 259if test "$BUILD_CUPS_1_2" = yes -a "$BUILD_TRANSLATED_CUPS_PPDS" = yes ; then 260 BUILD_GLOBALIZED_CUPS_PPDS=yes 261else 262 BUILD_GLOBALIZED_CUPS_PPDS=no 263fi 264 265STP_ARG_ENABLE([globalized-cups-ppds], 266 [build globalized CUPS PPD files], 267 [BUILD_GLOBALIZED_CUPS_PPDS], 268 [(automatic)]) 269 270STP_ARG_ENABLE_DETAILED([simplified-cups-ppds], 271 [], 272 [build simplified CUPS PPD files], 273 [(options: yes, no, only)], 274 [BUILD_SIMPLIFIED_CUPS_PPDS], 275 [no], 276 [ 277 yes) [WHICH_PPDS]="-a"; BUILD_SIMPLIFIED_CUPS_PPDS=yes; AC_MSG_RESULT([yes]) ;; 278 no) [WHICH_PPDS]=""; BUILD_SIMPLIFIED_CUPS_PPDS=no; AC_MSG_RESULT([no]) ;; 279 only) [WHICH_PPDS]="-s"; BUILD_SIMPLIFIED_CUPS_PPDS=only; AC_MSG_RESULT([only]) ;; 280 *) AC_MSG_ERROR([${enableval}: not a valid option ('yes', 'no', or 'only')]) ;; 281 ]) 282 283STP_ARG_ENABLE([cups-ppds-at-top-level], 284 [place CUPS PPD files at top level], 285 [CUPS_PPDS_AT_TOP_LEVEL], 286 [no]) 287 288STP_ARG_ENABLE([cups-level3-ppds], 289 [generate PostScript level 3 PPD files], 290 [USE_LEVEL3_PS], 291 [(automatic)]) 292 293STATIC_GENPPD="$enable_static" 294STP_ARG_ENABLE([static-genppd], 295 [build a statically-linked cups-genppd and rastertogutenprint. WARNING: Please read the README and NEWS (release notes) CAREFULLY before using --disable-static-genppd!], 296 [STATIC_GENPPD], 297 [(automatic)]) 298 299AC_PATH_PROG(FOOMATIC_CONFIGURE, foomatic-configure) 300if test -z "${FOOMATIC_CONFIGURE}" ; then 301 BUILD_FOOMATIC="no" 302else 303 BUILD_FOOMATIC="yes" 304fi 305STP_ARG_WITH([foomatic], 306 [build foomatic data files], 307 [BUILD_FOOMATIC], 308 [(automatic)]) 309 310 311AC_PATH_PROG(FOOMATIC_PPDFILE, foomatic-ppdfile) 312if test -z "${FOOMATIC_PPDFILE}" ; then 313 BUILD_FOOMATIC_3="no" 314else 315 BUILD_FOOMATIC_3="yes" 316fi 317STP_ARG_WITH([foomatic3], 318 [make use of foomatic 3 extra features], 319 [BUILD_FOOMATIC_3], 320 [(automatic)]) 321 322AC_PATH_PROG(IJS_CONFIG, ijs-config) 323 324if test -z "${IJS_CONFIG}" ; then 325 BUILD_GHOSTSCRIPT="no" 326else 327 BUILD_GHOSTSCRIPT="yes" 328fi 329STP_ARG_WITH([ghostscript], 330 [build Ghostscript driver], 331 [BUILD_GHOSTSCRIPT], 332 [(automatic)]) 333 334STP_ARG_WITH_DETAILED([modules], 335 [], 336 [enable loadable modules], 337 [(options: ltdl, dlopen, static)], 338 [WITH_MODULES], 339 [(automatic)],[ 340 yes) [WITH_MODULES]="yes"; AC_MSG_RESULT([yes]) ;; 341 no) [WITH_MODULES]="no"; AC_MSG_RESULT([no]) ;; 342 ltdl) [WITH_MODULES]="ltdl"; AC_MSG_RESULT([ltdl]) ;; 343 dlopen) [WITH_MODULES]="dlopen"; AC_MSG_RESULT([dlopen]) ;; 344 static) [WITH_MODULES]="static"; AC_MSG_RESULT([static]) ;; 345 *) AC_MSG_ERROR([${withval}: not a valid module loader]) ;; 346 ],[ 347 # if static libraries are enabled, modules must be static 348 if test x$enable_static = xyes; then 349 [WITH_MODULES]="static" 350 else 351 [WITH_MODULES]="yes"] 352 fi) 353 354# Abort if a broken configuration was required 355if test x$enable_static = xyes; then 356 if test $WITH_MODULES = no; then 357 : 358 elif test $WITH_MODULES = static; then 359 : 360 else 361 AC_MSG_ERROR([--disable-static must be used with --with-modules]) 362 fi 363fi 364 365STP_ARG_ENABLE([debug], 366 [turn on debugging in build], 367 [ENABLE_DEBUG], 368 [no]) 369 370STP_ARG_ENABLE([profile], 371 [turn on profiling in build], 372 [ENABLE_PROFILE], 373 [no]) 374 375STP_ARG_WITH_DETAILED([readline], , 376 [use readline], 377 [(default tries -lncurses, -lcurses, -ltermcap)], 378 [USE_READLINE], 379 [yes],[ 380 yes) [USE_READLINE]="yes" ; AC_MSG_RESULT([yes]) ;; 381 no) [USE_READLINE]="no" ; AC_MSG_RESULT([no]) ;; 382 only) [USE_READLINE]="yes" 383 [EXTRA_LIBREADLINE_DEPS]=" " 384 AC_MSG_RESULT([yes (using only readline)]) ;; 385 *) [USE_READLINE]="yes" 386 [EXTRA_LIBREADLINE_DEPS]="${withval}" 387 AC_MSG_RESULT([yes (using extra libraries ${withval})]) ;; 388 ]) 389dnl if test -z "${[EXTRA_LIBREADLINE_DEPS]}" ; then 390dnl [EXTRA_LIBREADLINE_DEPS]="" 391dnl fi 392 393AC_PATH_PROGS([GIMPTOOL2_CHECK], [gimptool-2.0 gimptool]) 394if test -z "${GIMPTOOL2_CHECK}" ; then 395 BUILD_GIMP2="no" 396else 397 # Check we have version 2.0 398 gimptool_check_version=`${GIMPTOOL2_CHECK} --version` 399dnl Quote to protect sed regexes 400 [gimptool_check_major=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\1/'`] 401 [gimptool_check_minor=`echo "$gimptool_check_version" | sed -e 's/\([0-9][0-9]*\).\([0-9][0-9]*\).\([0-9][0-9]*\).*/\2/'`] 402 if test "$gimptool_check_major" -eq 2; then 403 BUILD_GIMP2="yes" 404 if test "$gimptool_check_minor" -ge 4 ; then 405 BUILD_GIMP2_AS_GUTENPRINT="yes" 406 else 407 BUILD_GIMP2_AS_GUTENPRINT="no" 408 fi 409 else 410 BUILD_GIMP2="no" 411 BUILD_GIMP2_AS_GUTENPRINT="no" 412 fi 413fi 414 415PKG_CHECK_MODULES([GTK2], [gtk+-2.0], 416 [HAVE_GTK2=yes 417 BUILD_LIBGUTENPRINTUI2=yes 418 GUTENPRINTUI2_LIBDEPS="${GUTENPRINTUI2_LIBDEPS} ${GTK2_LIBS}"], 419 [HAVE_GTK2=no 420 BUILD_LIBGUTENPRINTUI2=no]) 421# Require both gimptool and pkg-config to succeed 422if test x$BUILD_GIMP2 = xyes; then 423 PKG_CHECK_MODULES([GIMP2], [gimpui-2.0], [BUILD_GIMP2=yes], [BUILD_GIMP2=no]) 424fi 425 426STP_ARG_WITH([gimp2], 427 [build GIMP 2.x Print plugin], 428 [BUILD_GIMP2], 429 [(automatic)]) 430 431STP_ARG_WITH([gimp2-as-gutenprint], 432 [name GIMP 2.x Print plugin gutenprint (requires GIMP 2.2; normally used with GIMP 2.4 or above)], 433 [BUILD_GIMP2_AS_GUTENPRINT], 434 [(automatic)]) 435 436STP_ARG_ENABLE([libgutenprintui2], 437 [build Gutenprint GTK+-2.0 user interface library], 438 [BUILD_LIBGUTENPRINTUI2], 439 [(automatic)]) 440 441STP_ARG_ENABLE([samples], 442 [install sample images], 443 [INSTALL_SAMPLES], 444 [yes]) 445 446STP_ARG_ENABLE([escputil], 447 [build escputil], 448 [BUILD_ESCPUTIL], 449 [yes]) 450 451STP_ARG_ENABLE([test], 452 [build test programs], 453 [BUILD_TEST], 454 [yes]) 455 456if test "$BUILD_TEST" = "yes" ; then 457 BUILD_TESTPATTERN="yes" 458else 459 BUILD_TESTPATTERN="no" 460fi 461 462STP_ARG_ENABLE([testpattern], 463 [build testpattern generator], 464 [BUILD_TESTPATTERN], 465 [(automatic)]) 466 467STP_ARG_ENABLE([user-install], 468 [install GIMP plugin in home directory], 469 [USER_INSTALL], 470 [no]) 471if test x$USER_INSTALL = xyes ; then 472 PLUG_IN_PATH="bin" 473else 474 PLUG_IN_PATH="admin-bin" 475fi 476 477dnl aclocal flags. 478dnl AM_ACLOCAL_INCLUDE(m4 m4local) 479 480dnl Checks for programs. 481AM_ICONV_LINK 482AC_ISC_POSIX 483AC_PROG_AWK 484AC_PROG_CC 485AM_PROG_CC_STDC 486AM_PROG_CC_C_O 487AC_PROG_INSTALL 488AC_PROG_LN_S 489AM_PROG_LEX 490AC_PROG_YACC 491AC_PATH_PROG([TEST], [test]) 492AC_PATH_PROG([TRUE], [true]) 493AC_PATH_PROG([FIND], [find]) 494AC_PATH_PROG([PERL], [perl]) 495AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums]) 496AC_PATH_PROG([CONVERT], [convert]) 497if test x${USE_MAINTAINER_MODE} = xyes ; then 498 if test x${CONVERT} = x ; then 499 AC_MSG_WARN([PostScript developer's guide cannot be regenerated!]) 500 fi 501fi 502AC_PATH_PROG(TEXI2HTML, texi2html) 503if test x${USE_MAINTAINER_MODE} = xyes ; then 504 if test x${TEXI2HTML} = x ; then 505 AC_MSG_WARN([HTML documentation cannot be regenerated!]) 506 fi 507fi 508AC_PATH_PROG(DVIPS, dvips) 509if test x${USE_MAINTAINER_MODE} = xyes ; then 510 if test x${DVIPS} = x ; then 511 AC_MSG_WARN([PostScript documentation cannot be regenerated!]) 512 fi 513fi 514AC_PATH_PROG(DB2PDF, db2pdf) 515if test x${USE_MAINTAINER_MODE} = xyes ; then 516 if test x${DB2PDF} = x ; then 517 AC_MSG_WARN([PDF developer's guide cannot be regenerated!]) 518 fi 519fi 520AC_PATH_PROGS(DVIPDF, dvipdf dvipdfm) 521if test x${USE_MAINTAINER_MODE} = xyes ; then 522 if test x${DVIPDF} = x ; then 523 AC_MSG_WARN([PDF documentation cannot be regenerated!]) 524 fi 525fi 526AC_PATH_PROG(DB2PS, db2ps) 527if test x${USE_MAINTAINER_MODE} = xyes ; then 528 if test x${DB2PS} = x ; then 529 AC_MSG_WARN([PostScript developer's guide cannot be regenerated!]) 530 fi 531fi 532AC_PATH_PROG(DB2HTML, db2html) 533if test x${USE_MAINTAINER_MODE} = xyes ; then 534 if test x${DB2HTML} = x ; then 535 AC_MSG_WARN([HTML developer's guide cannot be regenerated!]) 536 fi 537fi 538AC_PATH_PROG(DOXYGEN, doxygen) 539if test x${USE_MAINTAINER_MODE} = xyes ; then 540 if test x${DOXYGEN} = x ; then 541 AC_MSG_WARN([HTML developer's guide cannot be regenerated!]) 542 fi 543fi 544 545dnl CUPS checks 546STP_CUPS_PROGS 547 548dnl foomatic checks 549if test x${BUILD_FOOMATIC} = xyes ; then 550 PATH_SBIN=$PATH:/usr/sbin:/usr/local/sbin 551 AC_PATH_PROG(FOOMATIC_KITLOAD, foomatic-kitload, , [$PATH_SBIN]) 552 if test -z "$FOOMATIC_KITLOAD" ; then 553 AC_MSG_WARN(Cannot find foomatic-kitload; attempt to install foomatic will fail) 554 fi 555fi 556 557dnl ijs checks 558if test x${BUILD_GHOSTSCRIPT} = xyes ; then 559 if test -z "$IJS_CONFIG" ; then 560 AC_MSG_ERROR(Cannot find ijs-config; please ensure Ghostscript 6.53 or above is installed); 561 fi 562 IJS_CFLAGS=`$IJS_CONFIG --cflags` 563 IJS_LIBS=`$IJS_CONFIG --libs` 564fi 565 566GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_MAJOR_VERSION}.${GUTENPRINT_MINOR_VERSION} 567AH_TEMPLATE(GUTENPRINT_RELEASE_VERSION,, [Gutenprint release version]) 568AC_DEFINE_UNQUOTED(GUTENPRINT_RELEASE_VERSION, "${GUTENPRINT_RELEASE_VERSION}") 569 570dnl Set PACKAGE_LOCALE_DIR in config.h 571AH_TEMPLATE(PACKAGE_LOCALE_DIR,, [Package locale directory]) 572if test "x${prefix}" = "xNONE"; then 573 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, ["${ac_default_prefix}/share/locale"]) 574else 575 AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, ["${prefix}/share/locale"]) 576fi 577 578dnl Set PACKAGE_DATA_DIR in config.h. 579AH_TEMPLATE(PACKAGE_DATA_DIR,, [Package data directory]) 580if test "x${datadir}" = 'x${prefix}/share'; then 581 if test "x${prefix}" = "xNONE"; then 582 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" 583 else 584 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" 585 fi 586elif test "x${datadir}" = 'x${datarootdir}'; then 587 if test "x${datarootdir}" = 'x${prefix}/share'; then 588 if test "x${prefix}" = "xNONE"; then 589 PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" 590 else 591 PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" 592 fi 593 else 594 PACKAGE_DATA_DIR="${datarootdir}/${PACKAGE}" 595 fi 596else 597 PACKAGE_DATA_DIR="${datadir}/${PACKAGE}" 598fi 599 600AC_DEFINE_UNQUOTED(PACKAGE_DATA_DIR, "${PACKAGE_DATA_DIR}") 601 602dnl Set PACKAGE_LIB_DIR in config.h. 603AH_TEMPLATE(PACKAGE_LIB_DIR,, [Package lib directory]) 604if test "x${libdir}" = 'x${exec_prefix}/lib'; then 605 if test "x${exec_prefix}" = "xNONE"; then 606 if test "x${prefix}" = "xNONE"; then 607 PACKAGE_LIB_DIR="${ac_default_prefix}/lib/${PACKAGE}" 608 else 609 PACKAGE_LIB_DIR="${prefix}/lib/${PACKAGE}" 610 fi 611 else 612 PACKAGE_LIB_DIR="${exec_prefix}/lib/${PACKAGE}" 613 fi 614else 615 PACKAGE_LIB_DIR="${libdir}/${PACKAGE}" 616fi 617 618AC_DEFINE_UNQUOTED(PACKAGE_LIB_DIR, "${PACKAGE_LIB_DIR}") 619 620AH_TEMPLATE(PKGXMLDATADIR,, [Package XML data directory]) 621PKGXMLDATADIR="${PACKAGE_DATA_DIR}/${GUTENPRINT_RELEASE_VERSION}/xml" 622AC_DEFINE_UNQUOTED(PKGXMLDATADIR, ["$PKGXMLDATADIR"], ) 623 624AH_TEMPLATE(PKGMODULEDIR,, [Package module directory]) 625PKGMODULEDIR="${PACKAGE_LIB_DIR}/${GUTENPRINT_RELEASE_VERSION}/modules" 626AC_DEFINE_UNQUOTED(PKGMODULEDIR, ["$PKGMODULEDIR"]) 627 628dnl Compiler flags 629if test x$ac_compiler_gnu = "xyes"; then 630 STP_ADD_COMPILER_ARGS([-Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wwrite-strings -Werror-implicit-function-declaration -Winline -Wformat=2 -finline-limit=131072],, [GNUCFLAGS]) 631 if test x${USE_MAINTAINER_MODE} = xyes ; then 632 STP_ADD_COMPILER_ARGS([-pedantic -Waggregate-return -Wcast-qual -Wshadow -Wredundant-decls],, [GNUCFLAGS]) 633 fi 634 if test x$ENABLE_DEBUG = xyes ; then 635 STP_ADD_COMPILER_ARG([-g]) 636 else 637 STP_ADD_FIRST_COMPILER_ARG([-O6 -O3 -O2 -O1 -O]) 638 fi 639else 640 if test x$ENABLE_DEBUG = xyes ; then 641 STP_ADD_COMPILER_ARG([-g]) 642 else 643 STP_ADD_FIRST_COMPILER_ARG([-O]) 644 fi 645fi 646if test x$ENABLE_PROFILE = xyes ; then 647 STP_ADD_COMPILER_ARG([-pg]) 648fi 649AC_SUBST(GNUCFLAGS) 650 651AH_TEMPLATE([HAVE_GCC_ATTRIBUTES], 652 [Define to 1 if GCC special attributes are supported]) 653AC_MSG_CHECKING([if $CC supports __attribute__ syntax]) 654AC_COMPILE_IFELSE([AC_LANG_PROGRAM([typedef struct __attribute__((__packed__)) { 655 unsigned char foo; 656 char bar; 657 long baz; 658} test_struct_t;], 659 [test_struct_t mystruct;])], 660 [AC_MSG_RESULT([yes])] 661 AC_DEFINE([HAVE_GCC_ATTRIBUTES], 1), 662 [AC_MSG_RESULT([no])]) 663 664AH_VERBATIM([HAVE_GCC_ATTRIBUTES_BOILERPLATE], 665[#if !defined(HAVE_GCC_ATTRIBUTES) && !defined(__attribute__) 666/* This should really be a C99 anonymous variadic macro. */ 667#define __attribute__(attr) 668#endif]) 669 670dnl Checks for libraries. 671dnl When checking readline, check using extra libraries first. 672dnl We want to protect against the link somehow succeeding, but only 673dnl failing at runtime, as seems to happen on some BSD systems. 674AH_TEMPLATE(HAVE_LIBREADLINE, [Is libreadline present?]) 675if test "$USE_READLINE" = yes ; then 676 if test "$EXTRA_LIBREADLINE_DEPS" = "" ; then 677 unset ac_cv_lib_readline_readline 678 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 679 HAVE_LIBREADLINE=false, -lncurses) 680 if test x${HAVE_LIBREADLINE} = xtrue ; then 681 echo " Using -lreadline -lncurses" 682 EXTRA_LIBREADLINE_DEPS=-lncurses 683 AC_DEFINE(HAVE_LIBREADLINE, [1]) 684 else 685 unset ac_cv_lib_readline_readline 686 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 687 HAVE_LIBREADLINE=false, -lcurses) 688 if test x${HAVE_LIBREADLINE} = xtrue ; then 689 echo " Using -lreadline -lcurses" 690 EXTRA_LIBREADLINE_DEPS=-lcurses 691 AC_DEFINE(HAVE_LIBREADLINE, [1]) 692 else 693 unset ac_cv_lib_readline_readline 694 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 695 HAVE_LIBREADLINE=false, -ltermcap) 696 if test x${HAVE_LIBREADLINE} = xtrue ; then 697 echo " Using -lreadline -ltermcap" 698 EXTRA_LIBREADLINE_DEPS=-ltermcap 699 AC_DEFINE(HAVE_LIBREADLINE, [1]) 700 else 701 unset ac_cv_lib_readline_readline 702 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 703 HAVE_LIBREADLINE=false) 704 if test x${HAVE_LIBREADLINE} = xtrue ; then 705 AC_DEFINE(HAVE_LIBREADLINE, [1]) 706 else 707 AC_DEFINE(HAVE_LIBREADLINE, [0]) 708 fi 709 fi 710 fi 711 fi 712 else 713 unset ac_cv_lib_readline_readline 714 AC_CHECK_LIB(readline, readline, HAVE_LIBREADLINE=true, 715 HAVE_LIBREADLINE=false, ${EXTRA_LIBREADLINE_DEPS}) 716 if test x${HAVE_LIBREADLINE} = xtrue ; then 717 echo " Using -lreadline ${EXTRA_LIBREADLINE_DEPS}" 718 AC_DEFINE(HAVE_LIBREADLINE, [1]) 719 else 720 AC_DEFINE(HAVE_LIBREADLINE, [0]) 721 fi 722 fi 723else 724 HAVE_LIBREADLINE=false 725 AC_DEFINE(HAVE_LIBREADLINE, [0]) 726fi 727 728dnl libltdl, used for dynamic module loading 729AC_CHECK_LIB(ltdl, lt_dlopen, [LTDL_LIBS="-lltdl"]) 730 731AC_CHECK_LIB(dl, dlopen, [DLOPEN_LIBS="-ldl"]) 732 733AC_CHECK_LIB(m,pow, 734 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} -lm" 735 gutenprint_libdeps="${gutenprint_libdeps} -lm") 736 737STP_CUPS_LIBS 738 739STP_GIMP2_LIBS 740 741dnl Checks for header files. 742AC_HEADER_STDC 743AC_CHECK_HEADERS(getopt.h) 744AC_CHECK_HEADER(readline/readline.h, 745 HAVE_READLINE_READLINE_H=true, 746 HAVE_READLINE_READLINE_H=false) 747if test x${HAVE_READLINE_READLINE_H} = xtrue ; then 748 AC_DEFINE(HAVE_READLINE_READLINE_H,, [Define if libreadline header is present.]) 749 if test x${HAVE_LIBREADLINE} = xtrue ; then 750 LIBREADLINE_DEPS="-lreadline $EXTRA_LIBREADLINE_DEPS" 751 fi 752fi 753AC_CHECK_HEADERS(dlfcn.h, [HAVE_DLFCN_H=true]) 754AC_CHECK_HEADERS(fcntl.h) 755AC_CHECK_HEADERS(limits.h) 756AC_CHECK_HEADERS(locale.h) 757AC_CHECK_HEADERS(ltdl.h, [HAVE_LTDL_H=true]) 758AC_CHECK_HEADERS(stdarg.h stdlib.h string.h) 759AC_CHECK_HEADERS(sys/time.h sys/types.h) 760AC_CHECK_HEADERS(time.h) 761AC_CHECK_HEADERS(unistd.h) 762 763dnl Checks for typedefs, structures, and compiler characteristics. 764AC_C_CONST 765AC_C_INLINE 766AC_TYPE_OFF_T 767AC_TYPE_SIZE_T 768AC_TYPE_SIGNAL 769 770dnl Checks for library functions. 771AC_CHECK_FUNCS([nanosleep poll usleep]) 772AC_CHECK_FUNCS([getopt_long]) 773 774dnl finite() is non-standard, isfinite() is ISO-standard, figure out 775dnl which to use... 776AC_SEARCH_LIBS(finite, m, CFLAGS="-Disfinite=finite $CFLAGS") 777 778dnl Define what has to be built 779AM_CONDITIONAL(BUILD_FOOMATIC, test x${BUILD_FOOMATIC} = xyes) 780 781AM_CONDITIONAL(BUILD_FOOMATIC_3, test x${BUILD_FOOMATIC_3} = xyes) 782 783AM_CONDITIONAL(BUILD_GHOSTSCRIPT, test x${BUILD_GHOSTSCRIPT} = xyes) 784 785AM_CONDITIONAL(BUILD_CUPS, test x${BUILD_CUPS} = xyes) 786 787AM_CONDITIONAL(BUILD_CUPS_1_2, test x${BUILD_CUPS_1_2} = xyes) 788 789AM_CONDITIONAL(BUILD_CUPS_PPDS, test x${BUILD_CUPS_PPDS} = xyes) 790 791AM_CONDITIONAL(CUPS_PPDS_AT_TOP_LEVEL, test x${CUPS_PPDS_AT_TOP_LEVEL} = xyes) 792 793AM_CONDITIONAL(BUILD_TRANSLATED_CUPS_PPDS, test x${BUILD_TRANSLATED_CUPS_PPDS} = xyes ) 794 795AM_CONDITIONAL(BUILD_GLOBALIZED_CUPS_PPDS, test x${BUILD_GLOBALIZED_CUPS_PPDS} = xyes ) 796 797AM_CONDITIONAL(BUILD_SIMPLIFIED_CUPS_PPDS, test x${BUILD_SIMPLIFIED_CUPS_PPDS} = xyes) 798 799if test x${USE_LEVEL3_PS} = xno ; then 800 CUPS_PPD_PS_LEVEL=2 801else 802 CUPS_PPD_PS_LEVEL=3 803fi 804 805AM_CONDITIONAL(USE_LEVEL3_PS, test x${USE_LEVEL3_PS} = xyes) 806 807AM_CONDITIONAL(BUILD_ESCPUTIL, test x${BUILD_ESCPUTIL} = xyes) 808 809AM_CONDITIONAL(BUILD_TEST, test x${BUILD_TEST} = xyes) 810 811AM_CONDITIONAL(BUILD_TESTPATTERN, test x${BUILD_TESTPATTERN} = xyes) 812 813AM_CONDITIONAL(BUILD_LIBGUTENPRINTUI2, test x${BUILD_LIBGUTENPRINTUI2} = xyes) 814 815AM_CONDITIONAL(BUILD_GIMP2, test x${BUILD_GIMP2} = xyes) 816 817AM_CONDITIONAL(BUILD_GIMP2_AS_GUTENPRINT, test x${BUILD_GIMP2_AS_GUTENPRINT} = xyes) 818 819AM_CONDITIONAL(INSTALL_SAMPLES, test x${INSTALL_SAMPLES} = xyes) 820 821AM_CONDITIONAL(INSTALL_USER_GUIDE, test x${INSTALL_USER_GUIDE} = xyes) 822 823STP_CUPS_PATH 824 825# loadable modules 826# portable sh has no AND test... 827if test -n "$HAVE_LTDL_H"; then 828 if test -n "$LTDL_LIBS"; then 829 LTDL_POSSIBLE="true" 830 fi 831fi 832if test -n "$HAVE_DLFCN_H"; then 833 if test -n "$DLOPEN_LIBS"; then 834 DLOPEN_POSSIBLE="true" 835 fi 836fi 837# define what the user chose to build, if possible. 838# Prefer dlopen over ltdl. 839if test x$WITH_MODULES = xyes; then 840 if test x$DLOPEN_POSSIBLE = xtrue; then 841 USE_DLOPEN="true" 842 elif test x$LDTL_POSSIBLE = xtrue; then 843 USE_LTDL="true" 844 fi 845elif test x$WITH_MODULES = xltdl; then 846 if test x$LTDL_POSSIBLE = xtrue; then 847 USE_LTDL="true" 848 fi 849elif test x$WITH_MODULES = xdlopen; then 850 if test x$DLOPEN_POSSIBLE = xtrue; then 851 USE_DLOPEN="true" 852 fi 853fi 854# define what module system is to be used 855AC_MSG_CHECKING([which module system will be used]) 856if test x$USE_LTDL = xtrue; then 857 MODULE="true" 858 AC_DEFINE(MODULE, "1", [Build a modular libgutenprint]) 859 AC_DEFINE(USE_LTDL, "1", [Use GNU libltdl as module loader]) 860 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${LTDL_LIBS}" 861 gutenprint_libdeps="${gutenprint_libdeps} ${LTDL_LIBS}" 862 AC_MSG_RESULT([ltdl]) 863elif test x$USE_DLOPEN = xtrue; then 864 MODULE="true" 865 AC_DEFINE(MODULE, "1", [Build a modular libgutenprint]) 866 AC_DEFINE(USE_DLOPEN, "1", [Use libdl/dlopen as module loader]) 867 GUTENPRINT_LIBDEPS="${GUTENPRINT_LIBDEPS} ${DLOPEN_LIBS}" 868 gutenprint_libdeps="${gutenprint_libdeps} ${DLOPEN_LIBS}" 869 AC_MSG_RESULT([dlopen]) 870else 871 MODULE="false" 872 AC_MSG_RESULT([static]) 873fi 874AM_CONDITIONAL(BUILD_MODULES, test x$MODULE = xtrue) 875 876AM_CONDITIONAL(BUILD_GENPPD_STATIC, test x"$STATIC_GENPPD" = xyes) 877 878dnl Define LTLIBOBJS 879AC_CONFIG_COMMANDS_PRE( 880[LTLIBOBJS=`echo "$LIB@&t@OBJS" | sed 's/\.o/.lo/g'` 881AC_SUBST(LTLIBOBJS) 882LTALLOCA=`echo "$ALLOCA" | sed 's/\.o/.lo/g'` 883AC_SUBST(LTALLOCA)]) 884 885dnl Definitions 886AC_DEFINE_UNQUOTED(CUPS_DATADIR, "${cups_conf_datadir}", [CUPS data directory.]) 887 888AH_TEMPLATE(CUPS_MODELDIR,, [CUPS PPD file directory]) 889if test "${CUPS_PPDS_AT_TOP_LEVEL}" = yes ; then 890 AC_DEFINE_UNQUOTED(CUPS_MODELDIR, "${cups_conf_datadir}/model/") 891else 892 AC_DEFINE_UNQUOTED(CUPS_MODELDIR, "${cups_conf_datadir}/model/${PACKAGE}/${GUTENPRINT_RELEASE_VERSION}/") 893fi 894 895AC_ARG_WITH(cups_nickname, [ --with-cups-nickname="nickname suffix" 896 Suffix to add to PPD NickName, default=" - CUPS+Gutenprint v"], 897 CUPS_PPD_NICKNAME_STRING="$withval", 898 CUPS_PPD_NICKNAME_STRING=" - CUPS+Gutenprint v") 899 900AH_TEMPLATE(CUPS_PPD_NICKNAME_STRING,, [CUPS PPD Nickname string]) 901AC_DEFINE_UNQUOTED(CUPS_PPD_NICKNAME_STRING, "$CUPS_PPD_NICKNAME_STRING") 902 903 904AC_DEFINE_UNQUOTED(CUPS_PPD_PS_LEVEL, ${CUPS_PPD_PS_LEVEL}, [CUPS PPD PostScript level]) 905STP_RELEASE_DATE 906 907dnl Some versions of make get very grouchy about $(RM) 908RM='rm' 909 910dnl Substitutions 911AC_SUBST(cups_prefix) 912AC_SUBST(cups_exec_prefix) 913AC_SUBST(cups_bindir) 914AC_SUBST(cups_sbindir) 915AC_SUBST(cups_conf_datadir) 916AC_SUBST(cups_conf_serverbin) 917AC_SUBST(cups_conf_serverroot) 918AC_SUBST(CUPS_CFLAGS) 919AC_SUBST(CUPS_LIBS) 920AC_SUBST(CUPS_PPD_PS_LEVEL) 921AC_SUBST(FOOMATIC_KITLOAD) 922AC_SUBST(GENPPD_LIBS) 923AC_SUBST(IJS_CFLAGS) 924AC_SUBST(IJS_LIBS) 925AC_SUBST(RM) 926AC_SUBST(GIMP2_CFLAGS) 927AC_SUBST(GIMP2_LIBS) 928AC_SUBST(gimp2_plug_indir) 929AC_SUBST(GUTENPRINT_CFLAGS) 930AC_SUBST(GUTENPRINT_LIBS) 931AC_SUBST(GUTENPRINT_LIBDEPS) 932AC_SUBST(GUTENPRINT_VERSION) 933AC_SUBST(GUTENPRINTUI2_CFLAGS) 934AC_SUBST(GUTENPRINTUI2_LIBS) 935AC_SUBST(GUTENPRINTUI2_LIBDEPS) 936AC_SUBST(GUTENPRINTUI2_VERSION) 937AC_SUBST(gutenprint_cflags) 938gutenprint_libs="${GUTENPRINT_LIBS} ${gutenprint_libdeps}" 939AC_SUBST(gutenprint_libs) 940AC_SUBST(gutenprint_libdeps) 941AC_SUBST(gutenprintui2_cflags) 942gutenprintui2_libs="${GUTENPRINTUI2_LIBS} ${gutenprintui2_libdeps}" 943AC_SUBST(gutenprintui2_libs) 944AC_SUBST(gutenprintui2_libdeps) 945AC_SUBST(LIBREADLINE_DEPS) 946AC_SUBST(MAINTAINER_CFLAGS) 947AC_SUBST(PLUG_IN_PATH) 948AC_SUBST(WHICH_PPDS) 949AC_SUBST(BUILD_CUPS_PPDS) 950 951dnl Optional architecture options to be applied after all autoconf tests 952dnl are done... 953AC_ARG_WITH(archflags, [ --with-archflags="..." additional options for CFLAGS and LDFLAGS], 954 CFLAGS="$CFLAGS $withval" 955 LDFLAGS="$LDFLAGS $withval") 956 957dnl Output files 958 959AC_CONFIG_FILES([Makefile]) 960AC_CONFIG_FILES([doc/Makefile]) 961AC_CONFIG_FILES([doc/gutenprint.dox]) 962AC_CONFIG_FILES([doc/gutenprintui2.dox]) 963AC_CONFIG_FILES([doc/developer/Makefile]) 964AC_CONFIG_FILES([include/Makefile]) 965AC_CONFIG_FILES([include/gutenprint/Makefile]) 966AC_CONFIG_FILES([include/gutenprintui2/Makefile]) 967AC_CONFIG_FILES([include/gutenprint/gutenprint-version.h]) 968AC_CONFIG_FILES([man/Makefile]) 969AC_CONFIG_FILES([man/cups-calibrate.8]) 970AC_CONFIG_FILES([man/cups-genppd.8]) 971AC_CONFIG_FILES([man/cups-genppdupdate.8]) 972AC_CONFIG_FILES([man/escputil.1]) 973AC_CONFIG_FILES([man/ijsgutenprint.1]) 974AC_CONFIG_FILES([po/Makefile.in]) 975AC_CONFIG_FILES([samples/Makefile]) 976AC_CONFIG_FILES([src/Makefile]) 977AC_CONFIG_FILES([src/cups/Makefile]) 978AC_CONFIG_FILES([src/cups/Info.plist]) 979AC_CONFIG_FILES([src/cups/cups-genppdupdate], 980 [chmod +x src/cups/cups-genppdupdate]) 981AC_CONFIG_FILES([src/escputil/Makefile]) 982AC_CONFIG_FILES([src/foomatic/Makefile]) 983AC_CONFIG_FILES([src/foomatic/foomatic-generator], 984 [chmod +x src/foomatic/foomatic-generator]) 985AC_CONFIG_FILES([src/foomatic/mk_printerlist], 986 [chmod +x src/foomatic/mk_printerlist]) 987AC_CONFIG_FILES([src/testpattern/run-testpattern-2], 988 [chmod +x src/testpattern/run-testpattern-2]) 989AC_CONFIG_FILES([src/cups/test-rastertogutenprint], 990 [chmod +x src/cups/test-rastertogutenprint]) 991AC_CONFIG_FILES([src/ghost/Makefile]) 992AC_CONFIG_FILES([src/testpattern/Makefile]) 993AC_CONFIG_FILES([src/gimp2/Makefile]) 994AC_CONFIG_FILES([src/main/Makefile]) 995AC_CONFIG_FILES([src/main/gutenprint.pc]) 996AC_CONFIG_FILES([src/xml/Makefile]) 997AC_CONFIG_FILES([src/xml/escp2/Makefile]) 998AC_CONFIG_FILES([src/xml/escp2/media/Makefile]) 999AC_CONFIG_FILES([src/xml/escp2/mediasizes/Makefile]) 1000AC_CONFIG_FILES([src/xml/escp2/model/Makefile]) 1001AC_CONFIG_FILES([src/xml/escp2/inputslots/Makefile]) 1002AC_CONFIG_FILES([src/xml/escp2/inks/Makefile]) 1003AC_CONFIG_FILES([src/xml/escp2/weaves/Makefile]) 1004AC_CONFIG_FILES([src/xml/escp2/qualitypresets/Makefile]) 1005AC_CONFIG_FILES([src/gutenprintui2/Makefile]) 1006AC_CONFIG_FILES([src/gutenprintui2/gutenprintui2.pc]) 1007AC_CONFIG_FILES([test/Makefile]) 1008AC_CONFIG_FILES([scripts/Makefile]) 1009AC_CONFIG_COMMANDS([default], [ 1010echo 1011], 1012[GUTENPRINT_RELEASE_VERSION=${GUTENPRINT_RELEASE_VERSION}] 1013) 1014 1015AC_OUTPUT 1016 1017warnings_emitted=0 1018echo 1019echo "Configuration Summary:" 1020echo "------------- --------" 1021echo 1022echo "If you have any problems, please report the information below to" 1023echo "$PACKAGE_BUGREPORT" 1024echo 1025echo "================================================================" 1026echo " Release: $PACKAGE_STRING generated on $RELEASE_DATE" 1027echo 1028echo " Features:" 1029if test "$BUILD_CUPS" != "no" ; then 1030 echo " Build CUPS: $BUILD_CUPS, installing in $cups_prefix" 1031 echo " Build CUPS 1.2 enhancements: $BUILD_CUPS_1_2" 1032 echo " Build CUPS PPD files: $BUILD_CUPS_PPDS" 1033 if test "$BUILD_CUPS_PPDS" != "no" ; then 1034 echo " Build translated CUPS PPD files: $BUILD_TRANSLATED_CUPS_PPDS" 1035 echo " Build global CUPS PPD files: $BUILD_GLOBALIZED_CUPS_PPDS" 1036 echo " Build simplified CUPS PPD files: $BUILD_SIMPLIFIED_CUPS_PPDS" 1037 echo " Install CUPS PPDs at top level: $CUPS_PPDS_AT_TOP_LEVEL" 1038 fi 1039 if test "$BUILD_CUPS_PPDS" != "no" -o "$BUILD_CUPS_1_2" != "no" ; then 1040 echo " Generate PS level 3 CUPS PPD files: $USE_LEVEL3_PS" 1041 fi 1042 echo " Build genppd statically: $STATIC_GENPPD" 1043 1044 if test "$STATIC_GENPPD" = "no" ; then 1045 echo " ***WARNING: Use of --disable-static-genppd or --disable-static" 1046 echo " when building CUPS is very dangerous. The build may" 1047 echo " fail when building the PPD files, or may *SILENTLY*" 1048 echo " build incorrect PPD files or cause other problems." 1049 echo " Please review the README and release notes carefully!" 1050 warnings_emitted=1 1051 fi 1052else 1053 echo " Build CUPS: $BUILD_CUPS" 1054fi 1055echo " Build Ghostscript IJS driver: $BUILD_GHOSTSCRIPT" 1056echo " Build Foomatic data: $BUILD_FOOMATIC" 1057if test "$BUILD_FOOMATIC" != "no" ; then 1058 echo " Build Foomatic 3.x data: $BUILD_FOOMATIC_3" 1059fi 1060if test "$BUILD_GIMP2" != "no" ; then 1061 echo " Build enhanced Print plugin for GIMP: yes" 1062 if test "$BUILD_GIMP2_AS_GUTENPRINT" != "no" ; then 1063 echo " GIMP plugin will be named: gutenprint" 1064 else 1065 echo " GIMP plugin will be named: print" 1066 fi 1067 echo " Install plugin(s) in home directory: $USER_INSTALL" 1068else 1069 echo " Build enhanced Print plugin for GIMP: no" 1070fi 1071echo " Build EPSON Stylus utility: $BUILD_ESCPUTIL" 1072echo " Build test programs: $BUILD_TEST" 1073echo " Build testpattern generator: $BUILD_TESTPATTERN" 1074echo 1075echo " Installation summary:" 1076echo " Installation prefix: $prefix" 1077echo " Data directory: $PACKAGE_DATA_DIR" 1078echo " Library directory: $PACKAGE_LIB_DIR" 1079echo " XML data directory: $PKGXMLDATADIR" 1080echo " Module directory: $PKGMODULEDIR" 1081echo " Install sample images: $INSTALL_SAMPLES" 1082echo 1083echo " General configuration:" 1084if test x$ac_compiler_gnu = "xyes"; then 1085 echo " Compiler options: $CFLAGS $GNUCFLAGS" 1086else 1087 echo " Compiler options: $CFLAGS" 1088fi 1089echo " Build static libraries: $enable_static" 1090echo " Build shared libraries: $enable_shared" 1091echo " Maintainer mode: $USE_MAINTAINER_MODE" 1092echo " Use i18n: $USE_NLS" 1093echo " Generate profiling information: $ENABLE_PROFILE" 1094echo " Generate debugging symbols: $ENABLE_DEBUG" 1095echo " Use modules: $WITH_MODULES" 1096if test -n "$EXTRA_LIBREADLINE_DEPS" ; then 1097 echo " Use readline libraries: $USE_READLINE, extra arguments: $EXTRA_LIBREADLINE_DEPS" 1098else 1099 echo " Use readline libraries: $USE_READLINE" 1100fi 1101echo " uname -a output: `uname -a`" 1102echo "================================================================" 1103if test $warnings_emitted -ne 0 ; then 1104 echo 1105 echo '*** NOTE: Please review the warnings shown above carefully!' 1106fi 1107echo 1108if test "$BUILD_GIMP2" = "no" -o "$BUILD_CUPS" = "no" ; then 1109 echo "VERY IMPORTANT:" 1110 echo "If you expect to build the CUPS driver or the enhanced Print plugin for" 1111 echo "GIMP, but the output above indicates that that component will not be built," 1112 echo "it almost certainly indicates that development packages required to build" 1113 echo "that component are not installed on your system. Please read the README" 1114 echo "file and install the necessary development packages before reporting any" 1115 echo "error to the development team. Depending upon your operating system version," 1116 echo "you may have to install packages from the installation medium or over" 1117 echo "the network." 1118 echo 1119fi 1120echo "Finished configuring. Please review CAREFULLY the configuration summary above." 1121echo "Type 'make clean' followed by 'make' to build the package" 1122echo "then 'make install' to install it." 1123