1dnl 2dnl Configuration script for CUPS. 3dnl 4dnl Copyright © 2020-2023 by OpenPrinting 5dnl Copyright © 2007-2020 by Apple Inc. 6dnl Copyright © 1997-2007 by Easy Software Products, all rights reserved. 7dnl 8dnl Licensed under Apache License v2.0. See the file "LICENSE" for more 9dnl information. 10dnl 11 12dnl We need at least autoconf 2.71... 13AC_PREREQ([2.71]) 14 15dnl Package name and version... 16AC_INIT([CUPS],[2.4.12],[https://github.com/openprinting/cups/issues],[cups],[https://openprinting.github.io/cups]) 17 18dnl This line is provided to ensure that you don't run the autoheader program 19dnl against this project. Doing so is completely unsupported and WILL cause 20dnl problems! 21AH_TOP([#error "Somebody ran autoheader on this project which is unsupported and WILL cause problems."]) 22 23dnl Include configure tests for different areas... 24sinclude(config-scripts/cups-opsys.m4) 25sinclude(config-scripts/cups-common.m4) 26sinclude(config-scripts/cups-directories.m4) 27sinclude(config-scripts/cups-manpages.m4) 28sinclude(config-scripts/cups-sharedlibs.m4) 29sinclude(config-scripts/cups-libtool.m4) 30sinclude(config-scripts/cups-compiler.m4) 31sinclude(config-scripts/cups-network.m4) 32sinclude(config-scripts/cups-poll.m4) 33sinclude(config-scripts/cups-gssapi.m4) 34sinclude(config-scripts/cups-threads.m4) 35sinclude(config-scripts/cups-tls.m4) 36sinclude(config-scripts/cups-pam.m4) 37sinclude(config-scripts/cups-largefile.m4) 38sinclude(config-scripts/cups-dnssd.m4) 39sinclude(config-scripts/cups-container.m4) 40sinclude(config-scripts/cups-startup.m4) 41sinclude(config-scripts/cups-defaults.m4) 42 43dnl See what languages are available and make sure we generate the localization 44dnl files as needed... 45INSTALL_LANGUAGES="" 46UNINSTALL_LANGUAGES="" 47LANGFILES="" 48AS_IF([test "x$LANGUAGES" != x], [ 49 INSTALL_LANGUAGES="install-languages" 50 UNINSTALL_LANGUAGES="uninstall-languages" 51 for lang in $LANGUAGES; do 52 AS_IF([test -f doc/$lang/index.html.in], [ 53 LANGFILES="$LANGFILES doc/$lang/index.html" 54 ]) 55 56 AS_IF([test -f templates/$lang/header.tmpl.in], [ 57 LANGFILES="$LANGFILES templates/$lang/header.tmpl" 58 ]) 59 done 60], [test "x$CUPS_BUNDLEDIR" != x], [ 61 INSTALL_LANGUAGES="install-langbundle" 62 UNINSTALL_LANGUAGES="uninstall-langbundle" 63]) 64 65AC_SUBST([INSTALL_LANGUAGES]) 66AC_SUBST([UNINSTALL_LANGUAGES]) 67 68dnl Provide autoconf with a list of files to generate and output them... 69AC_CONFIG_FILES([ 70 Makedefs 71 conf/cups-files.conf 72 conf/cupsd.conf 73 conf/mime.convs 74 conf/pam.std 75 conf/snmp.conf 76 cups.pc 77 cups-config 78 desktop/cups.desktop 79 doc/index.html 80 scheduler/cups-lpd.xinetd 81 scheduler/cups.sh 82 scheduler/cups.xml 83 scheduler/org.cups.cups-lpd.plist 84 scheduler/cups-lpdAT.service 85 scheduler/cups.path 86 scheduler/cups.service 87 scheduler/cups.socket 88 templates/header.tmpl 89 packaging/cups.list 90 $LANGFILES 91]) 92AC_OUTPUT 93 94dnl Make sure cups-config script is executable 95chmod +x cups-config 96