1 dbl Process this file with autoconf to produce a configure script.
3 dnl /* ========================================================================
4 dnl * Copyright 2013-2020 Eduardo Chappa
5 dnl * Copyright 2006-2008 University of Washington
7 dnl * Licensed under the Apache License, Version 2.0 (the "License");
8 dnl * you may not use this file except in compliance with the License.
9 dnl * You may obtain a copy of the License at
11 dnl * http://www.apache.org/licenses/LICENSE-2.0
13 dnl * ========================================================================
18 AC_REVISION([Rev:29 by chappa@washington.edu])
20 dnl Alpine Version Number is in $srcdir/VERSION
21 AC_INIT([alpine],[m4_esyscmd(tr -d \\n < VERSION)],[chappa@washington.edu])
23 AC_CONFIG_SRCDIR([include/system.h])
24 AC_CONFIG_HEADERS([include/config.h])
25 AC_CONFIG_MACRO_DIR([m4])
26 AM_INIT_AUTOMAKE([foreign nostdinc])
34 AC_MSG_NOTICE([Configuring for $PACKAGE_STRING ($host)])
36 # start out with intent to build Web Alpine
37 WEB_BUILD=web/src/alpined.d
49 AC_SUBST([LIBTOOL_DEPS])
51 AC_PATH_PROG(AR, ar, ar)
52 AC_PATH_PROG(RM, rm, rm)
53 AC_PATH_PROG(CP, cp, cp)
54 AC_PATH_PROG(LN, ln, ln)
55 AC_PATH_PROG(LS, ls, ls)
56 AC_PATH_PROG(SED, sed, sed)
57 AC_PATH_PROG(MAKE, make)
59 dnl COMPILE-TIME OPTIONS
61 AM_GNU_GETTEXT_VERSION([0.16.1])
62 AM_GNU_GETTEXT([external])
64 dnl enable dmalloc per http://dmalloc.com
65 dnl NOTE: does not check c-client
66 AC_MSG_CHECKING([option: dmalloc enabled])
67 AC_ARG_ENABLE(dmalloc, AS_HELP_STRING([--enable-dmalloc],[Enable dmalloc debugging]))
68 if test x$enable_dmalloc = "xyes" ; then
74 AC_ARG_WITH(dmalloc-dir,
75 AS_HELP_STRING([--with-dmalloc-dir=DIR],[Root of dmalloc lib/include path]),
77 if test "x$withval" != "xno" ; then
78 enable_dmalloc = "yes"
79 CPPFLAGS="$CPPFLAGS -I${withval}"
80 LDFLAGS="$LDFLAGS -L${withval}"
84 if test x$enable_dmalloc = "xyes" ; then
85 AC_DEFINE(ENABLE_DMALLOC, 1, [Define enable dmalloc debugging])
88 dnl set date and hostname
89 ALPINE_datestamp=`date`
90 AC_ARG_WITH(date-stamp,
91 AS_HELP_STRING([--with-date-stamp=DATE],[Set this as the date this program was built. Default: output of `date`]),
93 if test "x$withval" != "xno" ; then
94 ALPINE_datestamp=$withval
97 AC_SUBST([ALPINE_DATESTAMP], $ALPINE_datestamp)
99 ALPINE_hoststamp=`hostname`
100 AC_ARG_WITH(host-stamp,
101 AS_HELP_STRING([--with-host-stamp=HOST],[Set name of computer for compilation. Default: output of `hostname`]),
103 if test "x$withval" != "xno" ; then
104 ALPINE_hoststamp="$withval"
107 AC_SUBST([ALPINE_HOSTSTAMP], $ALPINE_hoststamp)
109 dnl Set default locale dir.
112 if test -d /opt/local ; then
113 localedir="/opt/local/share/locale"
115 localedir="\${datadir}/locale"
119 localedir="/usr/share"
122 localedir="\${datadir}/locale"
126 AC_ARG_WITH(localedir,
127 AS_HELP_STRING([--with-localedir=DIR],[Name of gettext locale directory]),
139 AC_SUBST(localedir, "[$localedir]")
141 # Setup OS-Specific features
144 dnl OS X Universal Binary Support
145 AC_ARG_ENABLE(osx-universal-binaries,
146 AS_HELP_STRING([--enable-osx-universal-binaries],[Produce universal binaries under OS X [[default=no]]]))
147 if test "x$enable_osx_universal_binaries" = "xyes" ; then
148 if test "x$enable_dependency_tracking" != xno ; then
149 AC_MSG_ERROR([--enable-osx-universal-binary requires --disable-dependency-tracking.
150 Please re-run configure with these options:
151 --disable-dependency-tracking --enable-osx-universal-binary])
153 if [test -d /Developer/SDKs/MacOSX10.5.sdk] ; then
154 alpine_sysroot=/Developer/SDKs/MacOSX10.5.sdk
155 elif [test -d /Developer/SDKs/MacOSX10.4u.sdk] ; then
156 alpine_sysroot=/Developer/SDKs/MacOSX10.4u.sdk
158 AC_MSG_ERROR([No suitable MacOSX SDK found. Make sure Xcode tools are installed])
160 ub_cflags="-isysroot $alpine_sysroot -arch ppc -arch i386"
161 ub_ldflags="-Wl,-syslibroot,$alpine_sysroot -arch ppc -arch i386"
162 AM_CFLAGS="$AM_CFLAGS $ub_cflags"
163 AM_LDFLAGS="$AM_LDFLAGS $ub_ldflags"
164 alpine_c_client_cflags="$alpine_c_client_cflags $ub_cflags"
165 alpine_c_client_ldflags="$alpine_c_client_ldflags $ub_ldflags"
170 AC_ARG_WITH(include-path,
171 AS_HELP_STRING([--with-include-path=PATHS],[Colon-separated list of directories used for include file search]),
179 new_cppflags="-I`echo ${withval} | ${SED} 's/:/ -I/g'`"
180 CPPFLAGS="$CPPFLAGS ${new_cppflags}"
181 alpine_c_client_cflags="$alpine_c_client_cflags ${new_cppflags}"
186 AC_ARG_WITH(lib-path,
187 AS_HELP_STRING([--with-lib-path=PATHS],[Colon-separated list of directories used for library search]),
195 new_ldflags="-L`echo ${withval} | ${SED} 's/:/ -L/g'`"
196 LDFLAGS="$LDFLAGS $new_ldflags"
197 alpine_c_client_ldflags="$alpine_c_client_ldflags ${new_ldflags}"
202 AC_ARG_WITH(pubcookie,
203 AS_HELP_STRING([--with-pubcookie],[Include support for UW-Pubcookie Web Authentication]),
205 if test "x$withval" != "xno" ; then
206 WEB_PUBCOOKIE_BUILD=web/src/pubcookie
212 AS_HELP_STRING([--with-web-bin=PATH],[Directory to hold Web Alpine component binary files]),
225 dnl disable debug, turned on by default
226 AC_MSG_CHECKING([option: debugging is enabled])
227 AC_ARG_ENABLE(debug, AS_HELP_STRING([--disable-debug],[Exclude debug from the binary]))
228 if test x$enable_debug != "xno" ; then
229 AM_CFLAGS="$AM_CFLAGS -g"
234 dnl we want debug messages to be compiled into the binary, but only write to a file
235 dnl upon user request.
236 AC_DEFINE([DEBUG], [1], [Compile in debugging])
237 AC_DEFINE([DEBUGJOURNAL], [1], [Display debug messages in journal])
240 dnl disable optimization, on by default
241 AC_MSG_CHECKING([option: optimization is enabled])
242 AC_ARG_ENABLE(optimization, AS_HELP_STRING([--disable-optimization],[Exclude optimizing compiler flags]))
243 if test x$enable_optimization != "xno" ; then
246 CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`"
247 alpine_c_client_gccoptlevel="-O0"
251 dnl disable mouse support
252 AC_MSG_CHECKING([option: mouse support enabled])
253 AC_ARG_ENABLE(mouse, AS_HELP_STRING([--disable-mouse],[Disable mouse support]))
254 if test x$enable_mouse != "xno" ; then
255 AC_DEFINE([MOUSE], [], [Compile in mouse support])
262 AC_MSG_CHECKING([option: quotas enabled])
263 AC_ARG_ENABLE(quotas, AS_HELP_STRING([--enable-quotas],[Enable disk quota checking on startup]))
264 if test x$enable_quotas = "xyes" ; then
265 AC_DEFINE([USE_QUOTAS], [], [Compile in quota check on startup])
271 AC_MSG_CHECKING([option: From changing enabled])
272 AC_ARG_ENABLE(from_changing, AS_HELP_STRING([--disable-from-changing],[Disallow users changing From address]))
273 if test x$enable_from_changing != "xno" ; then
276 AC_DEFINE([NEVER_ALLOW_CHANGING_FROM], [], [Disallow users changing their From address])
280 dnl enable background posting support
281 AC_MSG_CHECKING([option: background post enabled])
282 AC_ARG_ENABLE(background-post, AS_HELP_STRING([--disable-background-post],[Disable background posting]))
283 if test x$enable_background_post != "xno" ; then
284 AC_DEFINE([BACKGROUND_POST], [], [Enable background posting support])
290 dnl enable keyboard locking support
291 AC_MSG_CHECKING([option: keyboard lock enabled])
292 AC_ARG_ENABLE(keyboard-lock, AS_HELP_STRING([--disable-keyboard-lock],[Disable keyboard locking]))
293 if test x$enable_keyboard_lock != "xno" ; then
294 AC_DEFINE([KEYBOARD_LOCK], [], [Enable keyboard lock support])
300 dnl enable from encoding support
301 AC_MSG_CHECKING([option: from encoding enabled])
302 AC_ARG_ENABLE(from-encoding, AS_HELP_STRING([--enable-from-encoding],[Enable From encoding in sent messages]))
303 if test x$enable_from_encoding = "xyes" ; then
304 AC_DEFINE([ENCODE_FROMS], [], [Enable From address encoding in sent messages])
310 dnl OPTION: name of local submission agent
311 dnl Might not be sendmail, but it MUST speak SMTP on stdin/stdout
312 AC_ARG_WITH(smtp-msa,
313 AS_HELP_STRING([--with-smtp-msa=PATH],[Local Mail Submission Agent (sendmail)]),
319 AC_PATH_PROG(SENDMAIL, sendmail, "", $PATH:/usr/sbin:/usr/lib)
327 AC_PATH_PROG(SENDMAIL, sendmail, "", $PATH:/usr/sbin:/usr/lib)
329 if test -n "$SENDMAIL" ; then
330 AC_DEFINE_UNQUOTED([SENDMAIL], "$SENDMAIL", [Local mail submission agent])
333 dnl OPTION: local msa arguments
334 smtp_msa_flags="-bs -odb -oem"
335 AC_ARG_WITH(smtp-msa-flags,
336 AS_HELP_STRING([--with-smtp-msa-flags=FLAGS],[MSA flags for SMTP on stdin/stdout (-bs -odb -oem)]),
338 if test "x$withval" != "xno" ; then
339 smtp_msa_flags=$withval
342 AC_DEFINE_UNQUOTED([SENDMAILFLAGS], "$smtp_msa_flags", [Local MSA flags for SMTP on stdin/stdout])
344 dnl OPTION: name of local news posting agent and flags
347 AS_HELP_STRING([--with-npa=PATH],[Posting agent when no nntp-servers defined (inews)]),
353 AC_PATH_PROG(NPA_PROG, inews, "", $PATH:/usr/sbin:/usr/lib)
361 AC_PATH_PROG(NPA_PROG, inews, "", $PATH:/usr/sbin:/usr/lib)
365 AC_ARG_WITH(npa-flags,
366 AS_HELP_STRING([--with-npa-flags=FLAGS],[Flags to allow posting via local agent (-h)]),
368 if test "x$withval" != "xno" ; then
372 if test -n "$NPA_PROG" ; then
373 AC_DEFINE_UNQUOTED([SENDNEWS], "$NPA_PROG $npa_flags", [Posting agent to use when no nntp-servers defined])
376 dnl OPTION: password changing program
377 AC_ARG_WITH(password-prog,
378 AS_HELP_STRING([--with-password-prog=PATH],[Password change program (/bin/passwd)]),
384 AC_PATH_PROG(PWPROG, passwd, "", $PATH:/usr/sbin:/usr/lib)
387 AC_PATH_PROG(PWPROG, $withval, "", $PATH:/usr/sbin:/usr/lib)
392 AC_PATH_PROG(PWPROG, passwd, "", $PATH:/usr/sbin:/usr/lib)
394 if test -n "$PWPROG" ; then
395 AC_DEFINE_UNQUOTED([PASSWD_PROG], "$PWPROG", [Program users use to change their password])
398 dnl OPTION: basic spell checking program
399 AC_ARG_WITH(simple-spellcheck,
400 AS_HELP_STRING([--with-simple-spellcheck=PROG],[Spellcheck program reads stdin, emits misspellings on stdout]),
402 if test "x$withval" != "xno" ; then
407 AC_CHECK_PROG([SPELLPROG], [hunspell], [hunspell], [])
408 if test -z "$SPELLPROG" ; then
409 AC_CHECK_PROG([SPELLPROG], [aspell], [aspell], [])
410 if test -z "$SPELLPROG" ; then
411 AC_CHECK_PROG([SPELLPROG], [ispell], [ispell], [])
412 if test -z "$SPELLPROG" ; then
419 if test "x$SPELLPROG" != "xno" ; then
420 AC_PATH_PROG(alpine_simple_spellcheck, $SPELLPROG)
421 if test -n "$alpine_simple_spellcheck" ; then
424 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
427 alpine_simple_spellcheck="$alpine_simple_spellcheck --dont-backup --mode=email list"
430 alpine_simple_spellcheck="$alpine_simple_spellcheck -l"
438 dnl OPTION: interactive spell checking program
439 AC_ARG_WITH(interactive-spellcheck,
440 AS_HELP_STRING([--with-interactive-spellcheck=PROG],[Interactive, filewise spell checker]),
442 if test "x$withval" != "xno" ; then
447 AC_CHECK_PROG([ISPELLPROG], [hunspell], [hunspell], [])
448 if test -z "$ISPELLPROG" ; then
449 AC_CHECK_PROG([ISPELLPROG], [aspell], [aspell], [])
450 if test -z "$SPELLPROG" ; then
456 if test "x$ISPELLPROG" != "xno" ; then
457 AC_PATH_PROG(alpine_interactive_spellcheck, $ISPELLPROG)
458 if test -n "$alpine_interactive_spellcheck" ; then
459 case "$ISPELLPROG" in
461 alpine_interactive_spellcheck="$alpine_interactive_spellcheck --dont-backup --mode=email check"
469 if test -n "$alpine_interactive_spellcheck" ; then
470 AC_DEFINE_UNQUOTED([DF_VAR_SPELLER], "$alpine_interactive_spellcheck", [Interactive, filewise spell checker])
473 if test -z "$alpine_simple_spellcheck" -a -n "$alpine_interactive_spellcheck" ; then
474 alpine_simple_spellcheck=test
476 AC_DEFINE_UNQUOTED([SPELLER], "$alpine_simple_spellcheck", [Simple spell checker: reads stdin, emits misspellings on stdout])
478 dnl OPTION: system-pinerc
479 dnl NOTE: historically we used /lib for the config dir.
480 dnl don't ask, it was a long time ago. but, we can't
481 dnl change it now without breaking compatibility
483 NONE) dpv=/usr/local/lib/pine.conf ;;
484 *) dpv=${prefix}/lib/pine.conf ;;
486 AC_ARG_WITH(system-pinerc,
487 AS_HELP_STRING([--with-system-pinerc=VALUE],[System pinerc (/usr/local/lib/pine.conf)]),
499 AC_DEFINE_UNQUOTED(SYSTEM_PINERC, "$dpv", [System pinerc])
501 dnl OPTION: system-fixed-pinerc
502 dnl NOTE: historically we used /lib for the config dir.
503 dnl don't ask, it was a long time ago. but, we can't
504 dnl change it now without breaking compatibility
506 NONE) dpv=/usr/local/lib/pine.conf.fixed ;;
507 *) dpv=${prefix}/lib/pine.conf.fixed ;;
509 AC_ARG_WITH(system-fixed-pinerc,
510 AS_HELP_STRING([--with-system-fixed-pinerc=VALUE],[System fixed pinerc (/usr/local/lib/pine.conf.fixed)]),
522 AC_DEFINE_UNQUOTED(SYSTEM_PINERC_FIXED, "$dpv", [System fixed pinerc])
524 dnl OPTION: local support information, file that contains information on
525 dnl how to contact local support for Alpine.
526 dnl NOTE: historically we used /lib for the config dir.
527 dnl don't ask, it was a long time ago. but, we can't
528 dnl change it now without breaking compatibility
530 NONE) dpv=/usr/local/lib/pine.info ;;
531 *) dpv=${prefix}/lib/pine.info ;;
533 AC_ARG_WITH(local-support-info,
534 AS_HELP_STRING([--with-local-support-info=VALUE],[Local Support Info File (/usr/local/lib/pine.info)]),
546 AC_DEFINE_UNQUOTED(SYSTEM_PINE_INFO_PATH, "$dpv", [Local Support Info File])
548 dnl Function to simplify setting alpine/pico defaults
549 dnl usage: PINEVAR(configure-name, definition-name, definition-value, help)
554 AS_HELP_STRING([--with-$1=VALUE],[$4 ($3)]),
556 if test "x$withval" != "xno" ; then
560 AC_DEFINE_UNQUOTED($2, "$dpv", [Default configuration value])
563 dnl Function to simplify setting pine/pico defaults
564 dnl usage: PINEVAR_UNQUOTED(configure-name, definition-name, definition-value, help)
565 AC_DEFUN([PINEVAR_UNQUOTED],
569 AS_HELP_STRING([--with-$1=VALUE],[$4 ($3)]),
571 if test "x$withval" != "xno" ; then
575 AC_DEFINE_UNQUOTED($2, $dpv, [Default configuration value])
578 PINEVAR(mailcheck-interval, DF_MAILCHECK, 150, [Specify default mail-check-interval])
579 PINEVAR_UNQUOTED(checkpoint-interval, CHECK_POINT_TIME, 420, [Specify default checkpoint-interval])
580 PINEVAR_UNQUOTED(checkpoint-frequency, CHECK_POINT_FREQ, 12, [State change count before checkpoint])
581 PINEVAR_UNQUOTED(display-rows, DEFAULT_LINES_ON_TERMINAL, 24, [Initial rows on display])
582 PINEVAR_UNQUOTED(display-columns, DEFAULT_COLUMNS_ON_TERMINAL, 80, [Initial columns on display])
583 PINEVAR_UNQUOTED(max-display-rows, MAX_SCREEN_ROWS, 200, [Maximum display rows])
584 PINEVAR_UNQUOTED(max-display-columns, MAX_SCREEN_COLS, 500, [Maximum display columns])
585 PINEVAR(fill-column, DF_FILLCOL, 74, [Default fill column])
586 PINEVAR_UNQUOTED(max_fill-column, MAX_FILLCOL, 80, [Maximum fill column])
587 PINEVAR_UNQUOTED(debug-level, DEFAULT_DEBUG, 2, [Specify default debug verbosity level])
588 PINEVAR_UNQUOTED(debug-files, NUMDEBUGFILES, 4, [Specify number of debug files])
589 PINEVAR(debug-file, DEBUGFILE, [.pine-debug], [Specify debug file name])
590 PINEVAR(forwarded-keyword, FORWARDED_FLAG, ["\$Forwarded"], [IMAP (c-client) keyword to store forwarded status])
591 PINEVAR(display-overlap, DF_OVERLAP, [2], [Lines preserved while paging])
592 PINEVAR(display-margin, DF_MARGIN, [0], [Lines visible while scrolling])
593 PINEVAR(default-fcc, DF_DEFAULT_FCC, [sent-mail], [Default sent mail folder])
594 PINEVAR(default-save-folder, DEFAULT_SAVE, [saved-messages], [Default save folder])
595 PINEVAR(default-legacy-postponed-folder, POSTPONED_MAIL, [postponed-mail], [Pre Pine 3.90 postponed folder])
596 PINEVAR(default-postponed-folder, POSTPONED_MSGS, [postponed-msgs], [Default postponed folder])
597 PINEVAR(default-trash-folder, TRASH_FOLDER, [Trash], [Default Trash folder for Web Alpine])
598 PINEVAR(default-interrupted-mail, INTERRUPTED_MAIL, [.pine-interrupted-mail], [Default folder for interrupted mail])
599 PINEVAR(default-dead-letter-folder, DEADLETTER, [dead.letter], [Default dead letter folder])
600 PINEVAR(default-mail-directory, DF_MAIL_DIRECTORY, [mail], [Default mail directory])
601 PINEVAR(default-inbox-name, INBOX_NAME, [INBOX], [Default inbox name])
602 PINEVAR(default-signature-file, DF_SIGNATURE_FILE, [.signature], [Default signature file])
603 PINEVAR(default-elm-style-save, DF_ELM_STYLE_SAVE, [no], [Default to Elm style save])
604 PINEVAR(default-header-in-reply, DF_HEADER_IN_REPLY, [no], [Include header in reply])
605 PINEVAR(default-old-style-reply, DF_OLD_STYLE_REPLY, [no], [Default to old style reply])
606 PINEVAR(default-use-only-domain-name, DF_USE_ONLY_DOMAIN_NAME, [no], [Default to using only the domain name])
607 PINEVAR(default-save-by-sender, DF_SAVE_BY_SENDER, [no], [Default to save by sender])
608 PINEVAR(default-sort-key, DF_SORT_KEY, [arrival], [Default sort key])
609 PINEVAR(default-addressbook-sort-rule, DF_AB_SORT_RULE, [fullname-with-lists-last], [Default addressbook sort rule])
610 PINEVAR(default-folder-sort-rule, DF_FLD_SORT_RULE, [alphabetical], [Default folder sort rule])
611 PINEVAR(default-saved-message-name-rule, DF_SAVED_MSG_NAME_RULE, [default-folder], [Default saved message name rule])
612 PINEVAR(default-fcc-rule, DF_FCC_RULE, [default-fcc], [Default fcc rule])
613 PINEVAR(default-standard-printer, DF_STANDARD_PRINTER, [lpr], [Default standard printern])
614 PINEVAR(default-ansi-printer, ANSI_PRINTER, [attached-to-ansi], [ANSI printer definition])
615 PINEVAR(default-addressbook, DF_ADDRESSBOOK, [.addressbook], [Default addressbook name])
616 PINEVAR(default-local-fullname, DF_LOCAL_FULLNAME, ["Local Support"], [Default local support fullname])
617 PINEVAR(default-local-address, DF_LOCAL_ADDRESS, [postmaster], [Default local support address])
618 PINEVAR(default-keyboard-lock-count, DF_KBLOCK_PASSWD_COUNT, [1], [Default keyboard lock count])
619 PINEVAR(default-remote-addressbook-history, DF_REMOTE_ABOOK_HISTORY, [3], [Default address book history count])
620 PINEVAR(default-html-directory, DF_HTML_DIRECTORY, [.alpine-html], [Default Directory to Temporarily Save HTML Messages])
621 PINEVAR(smime-public-cert-directory, DF_PUBLICCERT_DIR, [.alpine-smime/public], [Default Public Cert Directory])
622 PINEVAR(smime-private-key-directory, DF_PRIVATEKEY_DIR, [.alpine-smime/private], [Default Private Key Directory])
623 PINEVAR(smime-cacert-directory, DF_CACERT_DIR, [.alpine-smime/ca], [Default Cert Authority Directory])
624 PINEVAR_UNQUOTED(default-printer, DF_DEFAULT_PRINTER, [ANSI_PRINTER], [Default printer])
626 AC_DEFINE_UNQUOTED([DF_PUBLIC_CONTAINER], "PublicContainer", [Name of default public container])
627 AC_DEFINE_UNQUOTED([DF_PRIVATE_CONTAINER], "PrivateContainer", [Name of default private container])
628 AC_DEFINE_UNQUOTED([DF_CA_CONTAINER], "CAContainer", [Name of default certificate authority container])
629 AC_DEFINE_UNQUOTED([DEFAULT_SSLUSERCAPATH], ".alpine-certs", [Default directory for user trusted certificates])
630 AC_DEFINE_UNQUOTED([DEFAULT_SSLUSERCAFILE], ".alpine-certs/certs.pem", [Name of default container for user trusted certificates])
633 AC_ARG_WITH(passfile,
634 AS_HELP_STRING([--with-passfile=FILENAME],[Password cache file (recommended when S/MIME is enabled and configured)]),
642 alpine_PASSFILE=$withval
648 dnl os-specific credential cache?
649 AC_ARG_WITH(local-password-cache,
650 AS_HELP_STRING([--without-local-password-cache],[Disable OS-specific password cache, if supported]),
652 alpine_os_credential_cache=$withval
655 dnl Particular os-specific credential cache?
656 AC_ARG_WITH(local-password-cache-method,
657 AS_HELP_STRING([--with-local-password-cache-method],[OS-specific credential cache (OSX=APPLEKEYCHAIN, Windows=WINCRED)]),
659 alpine_os_credential_cache_method=$withval
662 if test -n "$alpine_PASSFILE" ; then
663 case $alpine_os_credential_cache in
667 alpine_os_credential_cache="no"
668 AC_MSG_NOTICE([--with-passfile definition overrides OS-Specific password caching])
671 AC_DEFINE_UNQUOTED([PASSFILE], "$alpine_PASSFILE", [Password cache file (recommended if S/MIME is enabled and configured)])
675 AC_ARG_WITH(default-sshpath,
676 AS_HELP_STRING([--with-default-sshpath=FILENAME],[set default value of ssh command path (defining should cause ssh to be preferred to rsh)]),
684 AC_DEFINE_UNQUOTED([DF_SSHPATH], "$withval", [set default value of ssh command path (defining should cause ssh to be preferred to rsh)])
690 AC_ARG_WITH(default-sshcmd,
691 AS_HELP_STRING([--with-default-sshcmd=PERCENT_S_STRING],[set default value of ssh command string (usually "%s %s -l %s exec /etc/r%sd")]),
699 AC_DEFINE_UNQUOTED([DF_SSHCMD], "$withval", [set default value of ssh command string (usually "%s %s -l %s exec /etc/r%sd")])
705 dnl Set SSLDIR for c-client make
707 AS_HELP_STRING([--without-ssl],[Disable SSL support (OpenSSL)]),
708 [ with_ssl=$withval ])
710 if test "x$with_ssl" = "xno" ; then
711 alpine_SSLTYPE="none"
712 elif test -d /usr/local/ssl ; then
713 dnl When the system has openssl installed in its default location
714 dnl instead of the one used by the distribution assume that this
715 dnl is the one intended to be used.
716 alpine_SSLDIR="/usr/local/ssl"
717 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
718 alpine_SSLLIB="$alpine_SSLDIR/lib"
720 dnl preload c-client default locations/options
722 *-linux*|*-k*bsd*-gnu*|*-gnu*)
723 if test -f /etc/fedora-release -o -f /etc/redhat-release -o -f /etc/redhat_version ; then
724 alpine_SSLTYPE="nopwd"
725 if test -d /etc/pki/tls ; then
726 alpine_SSLDIR="/etc/pki/tls"
728 alpine_SSLDIR="/usr/share/ssl"
730 alpine_SSLCERTS="$alpine_SSLDIR/certs"
731 alpine_SSLKEYS="$alpine_SSLDIR/private"
732 alpine_SSLINCLUDE="/usr/include/openssl"
733 alpine_SSLLIB="/usr/lib"
734 elif test -f /etc/mandrake-release ; then
735 alpine_SSLDIR="/usr/lib/ssl"
736 alpine_SSLCERTS="$alpine_SSLDIR/certs"
737 alpine_SSLKEYS="$alpine_SSLDIR/private"
738 alpine_SSLINCLUDE="/usr/include/openssl"
739 alpine_SSLLIB="/usr/lib"
740 elif test -f /etc/SuSE-release ; then
741 alpine_SSLTYPE="nopwd"
742 alpine_SSLDIR="/etc/ssl"
743 alpine_SSLCERTS="$alpine_SSLDIR/certs"
744 alpine_SSLKEYS="$alpine_SSLDIR/private"
745 alpine_SSLINCLUDE="/usr/include/openssl"
746 alpine_SSLLIB="/usr/lib"
747 elif test -d /etc/osso-af-init ; then
748 alpine_SSLTYPE="nopwd"
750 alpine_SSLCERTS="/usr/share/certs"
751 alpine_SSLINCLUDE="/usr/include/openssl"
752 alpine_SSLLIB="/usr/lib"
753 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
754 if test ! -d /etc/osso-af-init ; then
755 alpine_SSLDIR="/etc/ssl"
756 alpine_SSLCERTS="$alpine_SSLDIR/certs"
757 alpine_SSLKEYS="$alpine_SSLDIR/private"
758 alpine_SSLINCLUDE="/usr/include/openssl"
759 alpine_SSLLIB="/usr/lib"
761 elif test -f /etc/manjaro-release ; then
762 alpine_SSLDIR="/etc/ssl"
763 alpine_SSLCERTS="$alpine_SSLDIR/certs"
764 alpine_SSLKEYS="$alpine_SSLDIR/private"
765 alpine_SSLINCLUDE="/usr/include/openssl"
766 alpine_SSLLIB="/usr/lib"
768 alpine_SSLTYPE="nopwd"
770 alpine_SSLCERTS="/etc/ssl/certs"
774 alpine_SSLTYPE="nopwd"
775 dnl Originally this is where certs are, and they might still be there, even
776 dnl after installing Homebrew, MacPorts or Fink. We will use it if we cannot
777 dnl find it anywhere else.
778 alpine_SSLCERTS_ORIG="/System/Library/OpenSSL/certs"
779 if test -d /usr/local/opt/openssl ; then
780 alpine_SSLDIR="/usr/local/opt/openssl"
781 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
782 alpine_SSLLIB="$alpine_SSLDIR/lib"
783 alpine_SSLCERTS="/usr/local/etc/openssl"
784 alpine_SSLKEYS="$alpine_SSLDIR/private"
785 elif test -d /opt/local/etc/openssl ; then
786 alpine_SSLDIR="/opt/local"
787 alpine_SSLINCLUDE="$alpine_SSLDIR/include"
788 alpine_SSLLIB="$alpine_SSLDIR/lib"
789 alpine_SSLCERTS="/opt/local/etc/openssl/certs"
790 alpine_SSLKEYS="/opt/local/etc/openssl/private"
791 elif test -d /sw/etc/ssl ; then
792 alpine_SSLDIR="/sw/etc/ssl"
793 alpine_SSLINCLUDE="/sw/include"
794 alpine_SSLLIB="/sw/lib"
795 alpine_SSLCERTS="/sw/etc/ssl/certs"
796 alpine_SSLKEYS="/sw/etc/ssl/private"
797 elif test -d /usr/local/ssl ; then
798 alpine_SSLDIR="/usr/local/ssl"
799 elif test -d /System/Library/OpenSSL ; then
800 alpine_SSLDIR="/System/Library/OpenSSL"
801 alpine_SSLCERTS="$alpine_SSLDIR/certs"
802 alpine_SSLKEYS="$alpine_SSLDIR/private"
803 alpine_SSLLIB="/usr/lib"
804 alpine_SSLINCLUDE="/usr/include/openssl"
808 alpine_SSLDIR="/etc/openssl"
809 alpine_SSLCERTS="$alpine_SSLDIR/certs"
810 alpine_SSLKEYS="$alpine_SSLDIR/private"
811 alpine_SSLINCLUDE="/usr/include/openssl"
812 alpine_SSLLIB="/usr/lib"
815 alpine_SSLDIR="/etc/openssl"
816 alpine_SSLCERTS="$alpine_SSLDIR/certs"
817 alpine_SSLKEYS="$alpine_SSLDIR/private"
818 alpine_SSLINCLUDE="/usr/include/openssl"
819 alpine_SSLLIB="/usr/lib"
822 alpine_SSLTYPE="nopwd"
824 alpine_SSLCERTS="/etc/ssl/certs"
827 alpine_SSLDIR="/etc/ssl"
828 alpine_SSLCERTS="$alpine_SSLDIR/certs"
829 alpine_SSLKEYS="$alpine_SSLDIR/private"
830 if test -d /usr/local/include/openssl ; then
831 alpine_SSLINCLUDE="/usr/local/include/openssl"
832 alpine_SSLLIB="/usr/local/lib"
834 alpine_SSLINCLUDE="/usr/include/openssl"
835 alpine_SSLLIB="/usr/lib"
839 alpine_SSLDIR="/etc/ssl"
840 alpine_SSLINCLUDE="/usr/include/openssl"
841 alpine_SSLLIB="/usr/lib"
842 alpine_SSLCERTS="/etc/ssl"
843 alpine_SSLKEYS="/etc/ssl/private"
846 alpine_SSLDIR="/usr/ssl"
847 alpine_SSLCERTS="$alpine_SSLDIR/certs"
848 alpine_SSLKEYS="$alpine_SSLDIR/certs"
849 alpine_SSLINCLUDE="/usr/include/openssl"
850 alpine_SSLLIB="/usr/lib"
852 *-sco-sysv* | *-sysv*UnixWare | *-sysv*OpenUNIX)
853 alpine_SSLTYPE="sco.nopwd"
854 alpine_SSLDIR="/usr/local/ssl"
857 if test -d /usr/include/openssl ; then
858 alpine_SSLINCLUDE="/usr/include/openssl"
859 elif test -d /usr/sfw/include/openssl ; then
860 alpine_SSLDIR="/usr/sfw"
861 elif test -d /opt/csw/include/openssl ; then
862 alpine_SSLDIR="/opt/csw"
863 if test -d /opt/csw/ssl/certs ; then
864 alpine_SSLCERTS="/opt/csw/ssl/certs"
867 if test -z "$alpine_SSLCERTS" -a -d /etc/certs ; then
868 alpine_SSLCERTS="/etc/certs"
872 alpine_SSLTYPE="nopwd"
873 alpine_SSLDIR="/usr/local/ssl"
878 if test "x$alpine_SSLTYPE" != "xnone" ; then
880 AS_HELP_STRING([--with-ssl-dir=DIR],[Root of SSL lib/include path]),
882 if test "x$withval" != "xno" ; then
883 alpine_SSLDIR=$withval
884 alpine_SSLINCLUDE=$alpine_SSLDIR/include
885 alpine_SSLLIB=$alpine_SSLDIR/lib
889 AC_ARG_WITH(ssl-certs-dir,
890 AS_HELP_STRING([--with-ssl-certs-dir=DIR],[Path to SSL certificate directory]),
892 if test "x$withval" != "xno" ; then
893 alpine_SSLCERTS=$withval
897 AC_ARG_WITH(ssl-include-dir,
898 AS_HELP_STRING([--with-ssl-include-dir=DIR],[SSL include file path]),
900 if test "x$withval" != "xno" ; then
901 alpine_SSLINCLUDE=$withval
905 AC_ARG_WITH(ssl-lib-dir,
906 AS_HELP_STRING([--with-ssl-lib-dir=DIR],[SSL library path]),
908 if test "x$withval" != "xno" ; then
909 alpine_SSLLIB=$withval
913 dnl setup globals so tests below work
914 if test -n "$alpine_SSLINCLUDE" ; then
915 CPPFLAGS="-I$alpine_SSLINCLUDE $CPPFLAGS"
916 elif test -n "$alpine_SSLDIR" ; then
917 CPPFLAGS="-I${alpine_SSLDIR}/include $CPPFLAGS"
919 if test -n "$alpine_SSLLIB" ; then
920 LDFLAGS="-L$alpine_SSLLIB $LDFLAGS"
921 elif test -n "$alpine_SSLDIR" ; then
922 LDFLAGS="-L${alpine_SSLDIR}/lib $LDFLAGS"
926 if test "x$alpine_SSLTYPE" != "xnone" ; then
927 alpine_default_SSLMIN="no_min"
928 alpine_default_SSLMAX="no_max"
929 alpine_default_RANGE="${alpine_default_SSLMIN},${alpine_default_SSLMAX}"
930 alpine_ENCRYPTION="$alpine_default_SSLMIN ssl3 tls1 tls1_1 tls1_2 tls1_3 $alpine_default_SSLMAX"
931 alpine_SSLMIN="$alpine_default_SSLMIN"
932 alpine_SSLMAX="$alpine_default_SSLMAX"
933 alpine_RANGE="$alpine_default_RANGE"
934 AC_ARG_WITH(encryption-minimum-version,
935 AS_HELP_STRING([--encryption-minimum-version=VERSION],[Minimum SSL encryption version. Default: no_min]),
937 if test "x$withval" != "xno" ; then
938 alpine_SSLMIN=$withval
941 AC_ARG_WITH(encryption-maximum-version,
942 AS_HELP_STRING([--encryption-maximum-version=VERSION],[Maximum SSL encryption version. Default: no_max]),
944 if test "x$withval" != "xno" ; then
945 alpine_SSLMAX=$withval
948 alpine_RANGE="$alpine_SSLMIN $alpine_SSLMAX"
949 for range in ${alpine_RANGE} ; do
950 for encryption in ${alpine_ENCRYPTION} ; do
951 if test "x$range" = "x$encryption" ; then
952 if test -z $alpine_min ; then
961 if test -z $alpine_max ; then
962 AC_MSG_ERROR(Unrecognized maximum encryption version: $alpine_max)
965 if test -z $alpine_min ; then
966 AC_MSG_ERROR(Unrecognized minimum encryption version: $alpine_min)
969 if test "x$alpine_SSLMIN" != "x$alpine_SSLMAX" ; then
970 alpine_RANGE_FEASIBLE=`echo "$alpine_ENCRYPTION" | sed "s/^.*$alpine_SSLMIN//" | grep "$alpine_SSLMAX"`
971 if test -n "$alpine_RANGE_FEASIBLE" ; then
972 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
974 AC_MSG_WARN(Reversing order of minimum and maximum encryption)
975 alpine_RANGE="${alpine_SSLMAX},${alpine_SSLMIN}"
978 if test "x$alpine_SSLMIN" = "x$alpine_default_SSLMIN" ; then
979 AC_MSG_WARN(Overriding maximum encryption to default)
980 alpine_SSLMAX="$alpine_default_SSLMAX"
982 if test "x$alpine_SSLMAX" = "x$alpine_default_SSLMAX" ; then
983 AC_MSG_WARN(Overriding minimum encryption to default)
984 alpine_SSLMIN="$alpine_default_SSLMIN"
986 alpine_RANGE="${alpine_SSLMIN},${alpine_SSLMAX}"
988 PINEVAR(encryption-range, DF_ENCRYPTION_RANGE, [$alpine_RANGE] , [Default Encryption Range])
991 dnl Include Kerberos?
992 dnl Set GSSDIR for c-client make
994 AS_HELP_STRING([--without-krb5],[Disable Kerberos support]),
995 [ with_krb5=$withval ])
997 if test "x$with_krb5" = "xno" ; then
998 alpine_GSSTYPE="none"
1002 AC_ARG_WITH(krb5-dir,
1003 AS_HELP_STRING([--with-krb5-dir=DIR],[Root of Kerberos lib/include path]),
1005 if test "x$withval" != "xno" ; then
1006 CPPFLAGS="$CPPFLAGS -I${withval}/include"
1007 LDFLAGS="$LDFLAGS -L${withval}/lib"
1011 AC_ARG_WITH(krb5-include-dir,
1012 AS_HELP_STRING([--with-krb5-include-dir=DIR],[Kerberos include file path]),
1014 if test "x$withval" != "xno" ; then
1015 CPPFLAGS="$CPPFLAGS -I$withval"
1019 AC_ARG_WITH(krb5-lib-dir,
1020 AS_HELP_STRING([--with-krb5-lib-dir=DIR],[Kerberos library path]),
1022 if test "x$withval" != "xno" ; then
1023 LDFLAGS="$LDFLAGS -L$withval"
1030 AS_HELP_STRING([--without-ldap],[Disable LDAP query support]),
1031 [ with_ldap=$withval ])
1033 if test "x$with_ldap" = "xno" ; then
1035 AC_MSG_NOTICE([Excluding LDAP Support])
1037 dnl Do stuff to figure out where OpenLDAP is
1041 alpine_LDAPDIR="/usr/local"
1042 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
1043 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
1047 alpine_with_ldap=yes
1049 AC_ARG_WITH(ldap-dir,
1050 AS_HELP_STRING([--with-ldap-dir=DIR],[Root of LDAP lib/include path]),
1052 if test "x$withval" != "xno" ; then
1053 alpine_LDAPDIR="${withval}"
1054 alpine_LDAPINCLUDE="${alpine_LDAPDIR}/include"
1055 alpine_LDAPLIB="${alpine_LDAPDIR}/lib"
1059 AC_ARG_WITH(ldap-include-dir,
1060 AS_HELP_STRING([--with-ldap-include-dir=DIR],[Directory containing LDAP include files]),
1062 if test "x$withval" != "xno" ; then
1063 alpine_LDAPINCLUDE="$withval"
1067 AC_ARG_WITH(ldap-lib-dir,
1068 AS_HELP_STRING([--with-ldap-lib-dir=DIR],[LDAP library path]),
1070 if test "x$withval" != "xno" ; then
1071 alpine_LDAPLIB="${withval}"
1075 if test -n "$alpine_LDAPINCLUDE" ; then
1076 CPPFLAGS="$CPPFLAGS -I${alpine_LDAPINCLUDE}/include"
1078 if test -n "$alpine_LDAPLIB" ; then
1079 LDFLAGS="$LDFLAGS -L${alpine_LDAPLIB}/lib"
1085 AS_HELP_STRING([--without-smime],[Disable S/MIME]),
1086 [ with_smime=$withval ])
1090 AS_HELP_STRING([--without-tcl],[Disable TCL, thus Web Alpine support]),
1091 [ with_tcl=$withval ])
1093 if test "x$with_tcl" = "xno" ; then
1095 AC_MSG_NOTICE([Excluding TCL Support, and thus Web Alpine Support])
1097 AC_ARG_WITH(tcl-lib-dir,
1098 AS_HELP_STRING([--with-tcl-lib-dir=PATH],[Specific TCL Librar dir, like \"/usr/opt/tcl86/lib\"]),
1100 if test "x$withval" != "xno" ; then
1101 alpine_TCLLIBDIR=$withval
1102 if test -n "$alpine_TCLLIBDIR" ; then
1103 LDFLAGS="-L$alpine_TCLLIBDIR $LDFLAGS"
1107 AC_ARG_WITH(tcl-lib,
1108 AS_HELP_STRING([--with-tcl-lib=LIBRARY],[Specific TCL Library, like \"tcl8.6\"]),
1110 if test "x$withval" != "xno" ; then
1111 alpine_TCLLIB=$withval
1114 AC_ARG_WITH(tcl-include,
1115 AS_HELP_STRING([--with-tcl-include=DIR],[Directory containing TCL include files]),
1117 if test "x$withval" != "xno" ; then
1118 CPPFLAGS="$CPPFLAGS -I$withval"
1119 alpine_TCLINC=$withval
1124 AC_ARG_WITH(supplied-regex,
1125 AS_HELP_STRING([--with-supplied-regex],[Use regex library supplied with alpine]),
1126 [ alpine_REGEX=$withval ])
1128 AC_ARG_WITH(pthread,
1129 AS_HELP_STRING([--without-pthread],[Do NOT test for nor build with POSIX thread support]),
1130 [ with_pthread=$withval ])
1132 AC_ARG_WITH(system-mail-directory,
1133 AS_HELP_STRING([--with-system-mail-directory=DIR],[Directory where local mail is delivered]),
1135 if test "x$withval" != "xno" ; then
1136 alpine_with_local_maildir="$withval"
1140 AC_ARG_WITH(c-client-target,
1141 AS_HELP_STRING([--with-c-client-target=TARGET],[IMAP build target (see imap/Makefile)]),
1143 if test "x$withval" != "xno" ;then
1144 alpine_with_c_client_target="$withval"
1149 dnl Do not build bundled tools (Default)
1150 alpine_c_client_bundled="no"
1151 AC_ARG_WITH(bundled-tools,
1152 AS_HELP_STRING([--with-bundled-tools],[ Build additional tools (mtest, imapd, etc.) Default: --with-bundled-tools=no]),
1154 if test "x$withval" = "xyes" ; then
1155 alpine_c_client_bundled=""
1159 dnl Assume PAM is *not* required and only set the systems that need it.
1162 dnl HOST-OS SPECIFIC DEFINITIONS
1163 dnl Tests and assignments below are mostly to coax the appropriate
1164 dnl build from c-client. Most of this will go away when c-client
1165 dnl adopts configure
1167 *-linux*|*-k*bsd*-gnu*|*-gnu*)
1168 alpine_path_delim="/"
1169 alpine_mode_readonly="(0600)"
1170 if test -f /etc/fedora-release ; then
1173 if test -d /etc/pki/tls ; then
1174 alpine_c_client_target="lfd"
1176 alpine_c_client_target="lrh"
1178 elif test -f /etc/mandrake-release ; then
1180 alpine_c_client_target="lmd"
1182 elif test -f /etc/redhat-release -o -f /etc/redhat_version ; then
1185 if test -d /etc/pki/tls ; then
1186 alpine_c_client_target="lr5"
1188 alpine_c_client_target="lrh"
1190 elif test -f /etc/debian_release -o -f /etc/debian_version ; then
1191 if test -d /etc/osso-af-init ; then
1193 alpine_c_client_target="ln8"
1196 alpine_c_client_target="ldb"
1199 elif test -f /etc/SuSE-release; then
1201 alpine_c_client_target="lsu"
1205 if test -z "$alpine_c_client_bundled" ; then
1206 AC_CHECK_LIB(pam, am_start,
1208 alpine_c_client_target="lnp"
1212 if test -f /etc/shadow ; then
1213 alpine_c_client_target="slx"
1215 alpine_c_client_target="lnx"
1219 if test -f /etc/shadow ; then
1220 alpine_c_client_target="slx"
1222 alpine_c_client_target="lnx"
1229 alpine_path_delim="/"
1230 alpine_mode_readonly="(0600)"
1231 LIBS="$LIBS -framework Carbon -framework ApplicationServices -framework Security"
1232 AM_CFLAGS="$AM_CFLAGS -Dbsd"
1233 dnl SEE include/system.h
1234 AC_DEFINE([OSX_TARGET],[1],[OSX TARGET])
1235 case "$alpine_os_credential_cache" in
1239 AC_DEFINE([APPLEKEYCHAIN], [1], [Use Apple OS X key chain for credential caching])
1242 if test -z "$alpine_c_client_bundled" ; then
1243 AC_CHECK_LIB(pam, pam_start,
1245 AC_CHECK_HEADER([security/pam_appl.h],
1248 alpine_c_client_target="oxs"
1250 [ AC_CHECK_HEADER([pam/pam_appl.h],
1253 alpine_c_client_target="oxp"
1257 alpine_pam_none_reason="header files not found"
1262 alpine_c_client_target="osx"
1265 alpine_c_client_target="osx"
1269 if test x$GCC = "xyes" ; then
1271 alpine_c_client_target="gso"
1272 CFLAGS="$CFLAGS -D__USE_LEGACY_PROTOTYPES__"
1275 alpine_c_client_target="soc"
1276 AC_DEFINE([__EXTENSIONS__], [1], [Enable extended pthread features on Solaris])
1278 alpine_path_delim="/"
1279 alpine_mode_readonly="(0600)"
1280 dnl possible other OS's need this.
1281 dnl Use autoconf 2.61's AC_USE_SYSTEM_EXTENSIONS at some point
1285 alpine_path_delim="/"
1286 alpine_mode_readonly="(0600)"
1287 alpine_c_client_target="s40"
1290 if test x$GCC = "xyes" ; then
1292 alpine_c_client_target="go5"
1295 alpine_c_client_target="sc5"
1297 alpine_path_delim="/"
1298 alpine_mode_readonly="(0600)"
1299 dnl possible other OS's need this.
1300 dnl Use autoconf 2.61's AC_USE_SYSTEM_EXTENSIONS at some point
1304 alpine_path_delim="/"
1305 alpine_mode_readonly="(0600)"
1306 alpine_c_client_target="nx3"
1310 alpine_path_delim="/"
1311 alpine_mode_readonly="(0600)"
1312 alpine_c_client_target="neb"
1316 alpine_path_delim="/"
1317 alpine_mode_readonly="(0600)"
1318 alpine_c_client_target="neb"
1322 alpine_path_delim="/"
1323 alpine_mode_readonly="(0600)"
1324 alpine_c_client_target="bsi"
1328 alpine_path_delim="/"
1329 alpine_mode_readonly="(0600)"
1330 alpine_c_client_target="bsf"
1331 LIBS="$LIBS $LIBINTL"
1335 alpine_path_delim="/"
1336 alpine_mode_readonly="(0600)"
1337 alpine_c_client_target="bso"
1338 LIBS="$LIBS $LIBINTL"
1342 alpine_path_delim="/"
1343 alpine_mode_readonly="(0600)"
1344 alpine_c_client_target="a52"
1348 alpine_path_delim="/"
1349 alpine_mode_readonly="(0600)"
1350 alpine_c_client_target="a41"
1354 alpine_path_delim="/"
1355 alpine_mode_readonly="(0600)"
1356 alpine_c_client_target="a32"
1358 *-*UNIX_SV | *-*-sysv5UnixWare7* | *-*OpenUNIX*)
1360 alpine_path_delim="/"
1361 alpine_mode_readonly="(0600)"
1362 alpine_c_client_target="uw2"
1366 alpine_path_delim="/"
1367 alpine_mode_readonly="(0600)"
1368 alpine_c_client_target="osf"
1372 alpine_path_delim="/"
1373 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
1374 alpine_c_client_target="cyg"
1375 LIBS="$LIBS $LIBINTL"
1377 windows* | *-*-pw32*)
1379 alpine_path_delim="\\"
1380 alpine_mode_readonly="(S_IREAD | S_IWRITE)"
1381 alpine_c_client_target="wnt"
1382 AC_DEFINE([_WINDOWS], [1], [Windows is just too different])
1385 AC_MSG_ERROR(Unrecognized system: $host)
1391 AS_HELP_STRING([--without-ipv6],[Disable IPv6, primarily to work around resolver problems]),
1392 [ with_ipv6=$withval ])
1394 if test "x$with_ipv6" = "xno" ; then
1395 AC_MSG_NOTICE([Excluding IPv6 Support])
1396 c_client_specials="${c_client_specials}IP6=4 "
1399 c_client_ip6="touch imap/ip6"
1405 if test x$enable_dmalloc = "xyes" ; then
1406 if test "x$with_pthread" = "xyes" ; then
1407 dmalloc_lib=dmallocth
1412 AC_CHECK_LIB($dmalloc_lib,dmalloc_shutdown,,
1414 AC_MSG_ERROR($dmalloc_lib requested, but -ldmalloc not found)
1418 dnl which terminal cabability database
1419 AC_CHECK_LIB(tinfo, setupterm,
1421 alpine_termdata=info
1422 LIBS="$LIBS -ltinfo"
1425 AC_CHECK_LIB(ncurses, setupterm,
1427 alpine_termdata=info
1428 LIBS="$LIBS -lncurses"
1431 AC_CHECK_LIB(curses, setupterm,
1433 alpine_termdata=info
1434 LIBS="$LIBS -lcurses"
1437 AC_CHECK_LIB(termlib, tgetent,
1440 LIBS="$LIBS -ltermlib"
1443 AC_CHECK_LIB(termcap, tgetent,
1446 LIBS="$LIBS -ltermcap"
1449 AC_MSG_ERROR(Terminfo/termcap not found)
1455 case $alpine_termdata in
1457 AC_DEFINE(HAS_TERMINFO, [1], [Define if systems uses terminfo terminal database])
1460 AC_DEFINE(HAS_TERMCAP, [1], [Define if systems uses termcap terminal database])
1464 dnl is -ldl present? if so, add it
1465 AC_SEARCH_LIBS([dlopen], [dl dld],, [ alpine_DL="none" ])
1466 if test "x$alpine_DL" = "xnone" ; then
1467 AC_MSG_ERROR([No library containing dlopen found])
1471 dnl Check if openssl = LibreSSL
1472 if test "x$alpine_SSLTYPE" != "xnone" ; then
1473 AC_MSG_CHECKING([if OpenSSL is LibreSSL])
1479 #endif /* HAVE_STDINT_H */
1480 #include <openssl/ssl.h>
1482 #if OPENSSL_VERSION_NUMBER != 0x20000000L
1486 [ AC_MSG_RESULT(yes)
1487 alpine_SSLPROVIDER="libressl"
1491 [ AC_MSG_WARN([cross compiling: not checking])])
1494 dnl Check Openssl/LibreSSL version first
1495 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
1496 AC_MSG_CHECKING([Openssl library version >= 1.0.0c])
1502 #endif /* HAVE_STDINT_H */
1503 #include <openssl/ssl.h>
1505 #if OPENSSL_VERSION_NUMBER < 0x1000003fL
1509 [ AC_MSG_RESULT(yes)
1510 alpine_SSLPROVIDER="openssl"
1512 [ alpine_SSLTYPE="none" ],
1513 [ AC_MSG_WARN([cross compiling: not checking])])
1515 if test "x$alpine_SSLTYPE" = "xnone" ; then
1516 AC_MSG_ERROR(Install openssl version >= 1.0.0c)
1521 dnl Now check if we are working with version 1.1.0 of openssl
1522 if test "x$alpine_SSLTYPE" != "xnone" -a "x$alpine_SSLPROVIDER" != "xlibressl" ; then
1523 AC_MSG_CHECKING([Openssl library version >= 1.1.0])
1529 #endif /* HAVE_STDINT_H */
1530 #include <openssl/ssl.h>
1532 #if OPENSSL_VERSION_NUMBER < 0x10100000L
1536 [ AC_MSG_RESULT(yes)
1537 alpine_SSLVERSION="new"
1538 CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"
1541 alpine_SSLVERSION="old" ],
1542 [ AC_MSG_WARN([cross compiling: not checking])])
1545 dnl Crypto support is needed
1546 if test "x$alpine_SSLTYPE" != "xnone" ; then
1547 if test "x$alpine_SSLVERSION" = "xold" ; then
1548 AC_SEARCH_LIBS(SSLeay,crypto,, [ alpine_CRYPTO="none" ])
1550 AC_SEARCH_LIBS(OpenSSL_version_num,crypto,, [ alpine_CRYPTO="none" ])
1552 if test "x$alpine_CRYPTO" = "xnone" ; then
1553 AC_MSG_ERROR(crypto library NOT found)
1558 AC_CHECK_HEADER(crypto.h, , [ alpine_CRYPTO_DEVEL="none" ])
1559 if test "x$alpine_CRYPTO_DEVEL" = "xnone" ; then
1560 AC_MSG_ERROR(crypto library file crypto.h NOT found. Install corresponding libcrypt-devel package)
1568 dnl provide SSL support?
1569 if test "x$alpine_SSLTYPE" != "xnone" ; then
1570 if test "x$alpine_SSLVERSION" = "xold" ; then
1571 AC_SEARCH_LIBS(SSL_library_init,ssl,,[ alpine_SSLTYPE="none" ])
1572 if test "x$alpine_SSLTYPE" = "xnone" ; then
1573 AC_MSG_ERROR(No library containing SSL_library_init found in your path)
1577 AC_SEARCH_LIBS(OPENSSL_init_ssl,ssl,, [ alpine_SSLTYPE="none" ])
1578 if test "x$aalpiLlpine_SSLTYPE" = "xnone" ; then
1579 AC_MSG_ERROR(No library containing OPENSSL_init_ssl found in your path)
1585 dnl provide LDAP support?
1586 if test "$alpine_with_ldap" = "yes" ; then
1588 AC_CHECK_LIB(lber, ber_alloc,
1592 AC_SEARCH_LIBS(ldap_initialize,ldap,
1597 AC_SEARCH_LIBS(ldap_open,ldap,
1603 if test "$alpine_has_ldap" = "yes" ; then
1604 AC_MSG_NOTICE([* * * Including LDAP Support])
1605 AC_DEFINE([ENABLE_LDAP], [], [Enable LDAP query support])
1609 dnl PAM support is needed to build c-client in some linux, and hence Alpine.
1610 if test -z "$alpine_c_client_bundled" ; then
1611 if test "x$alpine_PAM" != "xnone" ; then
1612 AC_SEARCH_LIBS(pam_start,pam,
1615 AC_CHECK_HEADER([security/pam_appl.h],
1619 dnl Only mac is incompatible, do not spread bad habits.
1620 [ AC_CHECK_HEADER([pam/pam_appl.h],
1623 if test "x$alpine_c_client_target" != "xoxp" ; then
1625 alpine_pam_none_reason="header files not in security/ directory"
1630 alpine_pam_none_reason="header files not found"
1636 alpine_pam_none_reason="library files not found"
1638 if test -n "$alpine_pam_none_reason" ; then
1639 AC_MSG_ERROR(Trying to build bundled tools but could not find libpam. Install it first and try again, or do not use --with-bundled-tools)
1644 if test -n "$alpine_c_client_bundled" ; then
1645 AC_SEARCH_LIBS(crypt,crypt,,
1647 AC_MSG_ERROR([crypt library not found.])
1651 AC_SUBST([C_CLIENT_BUNDLED], $alpine_c_client_bundled)
1653 dnl provide KRB5 support?
1654 if test "x$alpine_GSSTYPE" != "xnone" ; then
1655 AC_SEARCH_LIBS(gss_init_sec_context,gss gssapi gssapi_krb5,
1659 AC_CHECK_HEADER([gssapi/gssapi_generic.h],,
1661 if test ! -d /usr/kerberos/include ; then
1662 alpine_GSSTYPE="none"
1663 alpine_gss_none_reason="header files not found"
1668 alpine_GSSTYPE="none"
1669 alpine_gss_none_reason="libraries not found"
1671 if test -n "$alpine_gss_none_reason" ; then
1672 AC_MSG_NOTICE([NOT including Kerberos Support: $alpine_gss_none_reason])
1678 AC_HELP_STRING([--without-ntlm],[Disable NTLM client support]),
1679 [with_ntlm=$withval])
1681 dnl provide NTLM support?
1682 if test "x$with_ntlm" = "xno" ; then
1687 AC_SEARCH_LIBS(buildSmbNtlmAuthRequest, ntlm,
1689 AC_CHECK_HEADER([ntlm.h],
1692 AC_MSG_NOTICE([including NTLM support])
1696 alpine_ntlm_none_reason="header file ntlm.h not found"
1701 alpine_ntlm_none_reason="ntlm library not found"
1703 if test -n "$alpine_ntlm_none_reason" ; then
1704 AC_MSG_NOTICE([NOT including NTLM Support: $alpine_ntlm_none_reason])
1708 dnl check for tcl libraries for Web Alpine (HACKY)
1709 if test -n "$WEB_BUILD" ; then
1710 TCL_VERSIONS_DOT="tcl8.6 tcl8.5 tcl8.4 tcl8.3"
1711 TCL_VERSIONS_NODOT="`echo ${TCL_VERSIONS_DOT} | ${SED} 's/\.//g'`"
1712 TCL_VERSIONS="${TCL_VERSIONS_DOT} ${TCL_VERSIONS_NODOT} tcl"
1713 dnl look for header file
1714 if test -n "$alpine_TCLINC" ; then
1715 AC_CHECK_HEADER($alpine_TCLINC/tcl.h,,
1719 if test -z "$WEB_BUILD" ; then
1720 AC_MSG_NOTICE([Tcl Include file NOT found])
1723 AC_CHECK_HEADER(tcl.h,,
1725 for base in /usr /usr/local ; do
1726 for dir in ${TCL_VERSIONS} ; do
1727 if test -f $base/include/$dir/tcl.h ; then
1728 CPPFLAGS="$CPPFLAGS -I$base/include/$dir"
1733 if test "x$found" = "xyes" ; then
1737 if test "$found" != "yes" ; then
1739 AC_MSG_NOTICE([header file tcl.h NOT found: Web Alpine will not be built])
1743 if test -n "$WEB_BUILD" ; then
1744 AC_SEARCH_LIBS([Tcl_Eval],[$alpine_TCLLIB ${TCL_VERSIONS}],,
1751 dnl Local or supplied regex?
1752 if test "x$alpine_REGEX" != "xyes" ; then
1753 AC_SEARCH_LIBS([regcomp],posix regexp regex re,,
1755 if test x$alpine_REGEX = "xno" ; then
1756 AC_MSG_ERROR(Unable to find system regex library)
1762 if test "x$alpine_REGEX" != "xyes" ; then
1763 AC_CHECK_HEADER([regex.h],,
1765 if test x$alpine_REGEX = "xno" ; then
1766 AC_MSG_ERROR(Unable to find system regex include file)
1772 AC_DEFINE(HAVE_REGEX_H,1,[Regular expression header file exists])
1773 if test "x$alpine_REGEX" = "xyes" ; then
1774 CPPFLAGS="$CPPFLAGS -I${top_builddir}/regex"
1775 LDFLAGS="$LDFLAGS -L${top_builddir}/regex"
1777 REGEX_MAKEFILE="$REGEX_BUILD/Makefile"
1780 if test "x$with_pthread" != "xno" ; then
1781 AC_MSG_CHECKING([for pthread support])
1784 AC_MSG_RESULT([yes])
1787 AC_MSG_NOTICE([WARNING: pthread support on OpenBSD is unstable!])
1788 AM_CFLAGS="$AM_CFLAGS -pthread"
1791 LIBS="$PTHREAD_LIBS $LIBS"
1792 AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS"
1794 AC_DEFINE([HAVE_PTHREAD], [1], [System has pthread support])
1800 AC_SEARCH_LIBS([nanosleep], [rt posix4],
1802 AC_DEFINE([HAVE_NANOSLEEP], [1], [Define if system supports subsecond, non-alarm sleep])
1815 AC_HEADER_TIOCGWINSZ
1817 AC_CHECK_HEADERS([unistd.h])
1819 AC_CHECK_HEADERS([errno.h \
1845 dnl terminal line discipline?
1846 AC_CHECK_HEADER([termios.h],
1847 AC_DEFINE(HAS_TERMIOS, [1], [Define if systems uses termios terminal control]),
1849 AC_CHECK_HEADER([termio.h],
1850 AC_DEFINE(HAS_TERMIO, [1], [Define if systems uses termio terminal control]),
1852 AC_CHECK_HEADER([sgtty.h],
1853 AC_DEFINE(HAS_SGTTY, [1], [Define if systems uses old BSD-style terminal control]),
1855 AC_MSG_ERROR(Unable to figure out terminal control method)
1863 AC_DIAGNOSE([obsolete],[your code may safely assume C89 semantics that RETSIGTYPE is void.
1864 Remove this warning and the `AC_CACHE_CHECK' when you adjust the code.])dnl
1865 AC_CACHE_CHECK([return type of signal handlers],[ac_cv_type_signal],[AC_COMPILE_IFELSE(
1866 [AC_LANG_PROGRAM([#include <sys/types.h>
1869 [return *(signal (0, 0)) (0) == 1;])],
1870 [ac_cv_type_signal=int],
1871 [ac_cv_type_signal=void])])
1872 AC_DEFINE_UNQUOTED([RETSIGTYPE],[$ac_cv_type_signal],[Define as the return type of signal handlers
1873 (`int' or `void').])
1881 AC_CHECK_TYPES([union wait])
1883 AC_CHECK_HEADERS([stdint.h], [uint16=uint16_t], [
1884 AC_CHECK_HEADERS([inttypes.h], [uint16=uint16_t], [
1885 AC_CHECK_HEADERS([sys/types.h], [uint16=u_int16_t], [
1886 AC_CHECK_SIZEOF(unsigned short)
1887 if test $ac_cv_sizeof_unsigned_short -eq 2 ; then
1888 uint16="unsigned short"
1890 AC_CHECK_SIZEOF(unsigned int)
1891 if $ac_cv_sizeof_unsigned_int -eq 2 ; then
1892 uint16="unsigned int"
1894 AC_MSG_ERROR(Unable to determine 16 bit integer type)
1900 AC_DEFINE_UNQUOTED([UINT16], $uint16, [System defined unsigned 16 bit integer])
1902 AC_CHECK_HEADERS([stdint.h], [uint32=uint32_t], [
1903 AC_CHECK_HEADERS([inttypes.h], [uint32=uint32_t], [
1904 AC_CHECK_HEADERS([sys/types.h], [uint32=u_int32_t], [
1905 AC_CHECK_SIZEOF(unsigned int)
1906 if test $ac_cv_sizeof_unsigned_int -eq 4 ; then
1907 uint32="unsigned int"
1909 AC_CHECK_SIZEOF(unsigned long)
1910 if $ac_cv_sizeof_unsigned_long -eq 4 ; then
1911 uint32="unsigned long"
1913 AC_MSG_ERROR(Unable to determine 32 bit integer type)
1919 AC_DEFINE_UNQUOTED([UINT32], $uint32, [System defined unsigned 32 bit integer])
1921 AC_CACHE_CHECK(argument pointer type of qsort compare function and base,
1922 ac_cv_func_qsort_argtype,
1923 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1929 extern sortf(const void *, const void *);
1932 const void *b; { return 0; }
1934 qsort(base, 2, sizeof(char *), sortf);
1935 ]])],[ac_cv_func_qsort_argtype=void],[ac_cv_func_qsort_argtype=char])
1937 AC_DEFINE_UNQUOTED([qsort_t], $ac_cv_func_qsort_argtype, [qsort compare function argument type])
1939 dnl check for "struct passwd" ?
1941 AC_FUNC_SELECT_ARGTYPES
1945 dnl CHECK FOR LIBRARY FUNCTIONS
1948 AC_CHECK_FUNCS([strchr \
1981 AC_SEARCH_LIBS([gethostname],[nsl])
1983 AC_SEARCH_LIBS([socket],[socket],,
1988 AC_SEARCH_LIBS([bind],[bind],,
1993 dnl check for POSIX signal interface
1994 AC_CHECK_FUNCS([sigaction sigemptyset sigaddset sigprocmask],
1996 AC_DEFINE([POSIX_SIGNALS], [], [Define if system supports POSIX signal interface])
1999 AC_CHECK_FUNCS([sigset sigrelse],
2001 AC_DEFINE([SYSV_SIGNALS], [], [Define if system supports SYSV signal interface])
2005 AC_SEARCH_LIBS([syslog], [bsd socket inet],
2007 AC_DEFINE([HAVE_SYSLOG], [1], [Define if system supplies syslog() logging])
2011 dnl set pico newmail check directory
2012 if test -n "$alpine_with_local_maildir" ; then
2013 alpine_local_maildir=$alpine_with_local_maildir
2014 elif test -d /var/spool/mail ; then
2015 alpine_local_maildir="/var/spool/mail"
2016 elif test -d /var/mail ; then
2017 alpine_local_maildir="/var/mail"
2019 alpine_local_maildir="/usr/spool/mail"
2022 dnl set c-client make target
2023 if test -n "$alpine_with_c_client_target" ; then
2024 alpine_c_client_target=$alpine_with_c_client_target
2027 AC_DEFINE_UNQUOTED([SYSTYPE], "$systype", [Pine-Centric Host Specifier])
2028 AC_DEFINE_UNQUOTED([C_FILESEP],'$alpine_path_delim',[File name separator as character constant])
2029 AC_DEFINE_UNQUOTED([S_FILESEP],"$alpine_path_delim",[File name separator as string constant])
2030 AC_DEFINE_UNQUOTED([MAILDIR],"$alpine_local_maildir",[Path to local inboxes for pico newmail check])
2031 AC_DEFINE_UNQUOTED([MODE_READONLY], $alpine_mode_readonly, [File mode used to set readonly access])
2032 AC_DEFINE_UNQUOTED([HTML_EXT],"html",[Default extension for html files])
2034 dnl c-client make particulars
2035 AC_SUBST([C_CLIENT_TARGET], $alpine_c_client_target)
2036 AC_SUBST([C_CLIENT_WITH_IPV6], $c_client_ip6)
2037 if test "x$alpine_SSLTYPE" = "xnone" ; then
2038 AC_MSG_NOTICE([* * * NOT Including SSL Support])
2039 c_client_specials="${c_client_specials}SSLTYPE=none "
2041 dnl issue any warnings for common OpenSSL issues
2043 if test -n "$alpine_SSLCERTS" -a -d "$alpine_SSLCERTS" ; then
2044 certdir="$alpine_SSLCERTS"
2045 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/certs" ; then
2046 certdir="${alpine_SSLDIR}/certs"
2047 elif test -n "$alpine_SSLDIR" -a -d "${alpine_SSLDIR}/ssl/certs" ; then
2048 certdir="${alpine_SSLDIR}/ssl/certs"
2049 elif test -n "$alpine_SSLCERTS_ORIG" -a -d "$alpine_SSLCERTS_ORIG" ; then
2050 certdir="$alpine_SSLCERTS_ORIG"
2051 elif test -n "$alpine_SSLCERTS" ; then
2052 certdir="$alpine_SSLCERTS"
2054 AC_MSG_NOTICE([SSL Problem: certificate directory not found])
2057 if test "x$with_smime" != "xno" ; then
2058 if test -n "$certdir" ; then
2059 AC_MSG_NOTICE([* * * S/MIME support enabled])
2060 AC_DEFINE([SMIME], [], [Enable S/MIME code])
2061 AC_DEFINE_UNQUOTED([SMIME_SSLCERTS],"$certdir",[Directory where S/MIME CACerts are located])
2067 if test -z "`ls ${certdir} | $EGREP '^@<:@0-9A-Fa-f@:>@{8}\.@<:@0-9@:>@'`" ; then
2068 SSL_BUNDLE_EXISTS="no"
2069 SSL_PEM="factory.pem ca-bundle.pem cert.pem ca-bundle.crt ca-root-nss.crt"
2070 for SSL_BUNDLE in $SSL_PEM
2072 if test -f ${certdir}/${SSL_BUNDLE} ; then
2073 SSL_BUNDLE_EXISTS="yes"
2080 if test "x$SSL_BUNDLE_EXISTS" = "xno" -a "x$SSL_CERT_LINK" = "xno" ; then
2081 AC_MSG_NOTICE([* * * No certificates found in "${certdir}".])
2082 AC_MSG_NOTICE([* * * This might indicate that CA certs did not get properly])
2083 AC_MSG_NOTICE([* * * installed. If you get certificate validation failures])
2084 AC_MSG_NOTICE([* * * in Alpine, this might be the reason for them.])
2087 if test -n "$alpine_SSLINCLUDE" ; then
2088 c_client_specials="${c_client_specials}SSLINCLUDE=$alpine_SSLINCLUDE "
2091 if test -n "$alpine_SSLLIB" ; then
2092 c_client_specials="${c_client_specials}SSLLIB=$alpine_SSLLIB "
2095 if test -n "$alpine_SSLDIR" ; then
2096 c_client_specials="${c_client_specials}SSLDIR=$alpine_SSLDIR "
2099 if test -n "$certdir" ; then
2100 c_client_specials="${c_client_specials}SSLCERTS=$certdir "
2103 if test -n "$alpine_SSLKEYS" ; then
2104 c_client_specials="${c_client_specials}SSLKEYS=$alpine_SSLKEYS "
2109 if test "x$alpine_GSSTYPE" != "xnone" ; then
2111 AC_MSG_NOTICE([* * * Including Kerberos5 functionality])
2115 if test "x$alpine_NTLM" != "xnone" ; then
2117 AC_MSG_NOTICE([* * * Including NTLM Authenticator])
2120 if test -n "$CPPFLAGS" ; then
2121 alpine_c_client_cflags="$alpine_c_client_cflags ${CPPFLAGS}"
2123 if test -n "$CFLAGS" ; then
2124 alpine_c_client_cflags="$alpine_c_client_cflags ${CFLAGS}"
2127 if test -n "$alpine_c_client_cflags" ; then
2128 AC_SUBST(C_CLIENT_CFLAGS, EXTRACFLAGS=\"$alpine_c_client_cflags\")
2131 if test -n "$LDFLAGS" ; then
2132 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LDFLAGS}"
2134 if test -n "$LIBS" ; then
2135 alpine_c_client_ldflags="$alpine_c_client_ldflags ${LIBS}"
2138 if test -n "$alpine_c_client_ldflags" ; then
2139 AC_SUBST(C_CLIENT_LDFLAGS, EXTRALDFLAGS=\"$alpine_c_client_ldflags\")
2142 if test -n "$alpine_c_client_gccoptlevel" ; then
2143 AC_SUBST(C_CLIENT_GCCOPTLEVEL, GCCOPTLEVEL=\"$alpine_c_client_gccoptlevel\")
2146 c_client_auths="$extra_auth_gss $extra_auth_ntlm"
2147 AC_SUBST([C_CLIENT_AUTHS], $c_client_auths)
2149 AC_SUBST([C_CLIENT_SPECIALS], $c_client_specials)
2151 dnl Deal with Web Alpine
2152 if test -z "$WEB_BUILD" ; then
2153 WEB_PUBCOOKIE_BUILD=
2154 AC_MSG_NOTICE([* * * TCL libraries could not be found.])
2155 AC_MSG_NOTICE([* * * WEB ALPINE COMPONENT WILL NOT BE BUILT.])
2157 if test -n "$WEB_PUBCOOKIE_BUILD" ; then
2158 if test "x$alpine_GSSTYPE" = "xnone" ; then
2159 WEB_PUBCOOKIE_BUILD=
2160 AC_MSG_NOTICE([* * * Kerberos5 support not found.])
2161 AC_MSG_NOTICE([* * * WEB ALPINE PUBCOOKIE COMPONENT WILL NOT BE BUILT.])
2162 elif test -z "$WEB_BINDIR" ; then
2163 WEB_PUBCOOKIE_BUILD=
2164 AC_MSG_NOTICE([* * * Web Alpine binary directory not provided.])
2165 AC_MSG_ERROR([* * * --with-pubcookie requires --with-web-bin=PATH.
2166 Please re-run configure with these options:
2167 --with-pubcookie --with-web-bin=/usr/local/libexec/alpine/bin])
2169 AC_DEFINE([PUBCOOKIE],[1],[Include support for UW Pubcookie Web Authentication])
2170 WEB_PUBCOOKIE_LIB=../pubcookie/libauthgssproxy.a
2171 WEB_PUBCOOKIE_LINK=gssapi_proxy.l
2176 AC_SUBST([REGEX_BUILD])
2178 AC_SUBST([WEB_BUILD])
2179 AC_SUBST([WEB_BINDIR])
2180 AC_SUBST([WEB_PUBCOOKIE_BUILD])
2181 AC_SUBST([WEB_PUBCOOKIE_LIB])
2182 AC_SUBST([WEB_PUBCOOKIE_LINK])
2184 AC_SUBST([AM_CFLAGS])
2185 AC_SUBST([AM_LDFLAGS])
2187 AC_CONFIG_FILES([m4/Makefile po/Makefile.in $REGEX_MAKEFILE \
2188 pith/osdep/Makefile pith/charconv/Makefile pith/Makefile \
2189 pico/osdep/Makefile pico/Makefile \
2190 alpine/osdep/Makefile alpine/Makefile \
2191 web/src/Makefile web/src/pubcookie/Makefile \
2192 web/src/alpined.d/Makefile \