summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3204
1 files changed, 2113 insertions, 1091 deletions
diff --git a/configure b/configure
index df330316e..ce28f0d52 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2# From configure.ac Revision: 1.322.2.6 . 2# From configure.ac Revision: 1.372 .
3# Guess values for system-dependent variables and create Makefiles. 3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.61 for OpenSSH Portable. 4# Generated by GNU Autoconf 2.61 for OpenSSH Portable.
5# 5#
@@ -692,6 +692,7 @@ STARTUP_SCRIPT_SHELL
692LOGIN_PROGRAM_FALLBACK 692LOGIN_PROGRAM_FALLBACK
693PATH_PASSWD_PROG 693PATH_PASSWD_PROG
694LD 694LD
695SSHDLIBS
695LIBWRAP 696LIBWRAP
696LIBEDIT 697LIBEDIT
697LIBPAM 698LIBPAM
@@ -1327,20 +1328,23 @@ Optional Packages:
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --without-rpath Disable auto-added -R linker paths 1330 --without-rpath Disable auto-added -R linker paths
1330 --with-osfsia Enable Digital Unix SIA
1331 --with-cflags Specify additional flags to pass to compiler 1331 --with-cflags Specify additional flags to pass to compiler
1332 --with-cppflags Specify additional flags to pass to preprocessor 1332 --with-cppflags Specify additional flags to pass to preprocessor
1333 --with-ldflags Specify additional flags to pass to linker 1333 --with-ldflags Specify additional flags to pass to linker
1334 --with-libs Specify additional libraries to link with 1334 --with-libs Specify additional libraries to link with
1335 --with-Werror Build main code with -Werror 1335 --with-Werror Build main code with -Werror
1336 --with-solaris-contracts Enable Solaris process contracts (experimental)
1337 --with-osfsia Enable Digital Unix SIA
1336 --with-zlib=PATH Use zlib in PATH 1338 --with-zlib=PATH Use zlib in PATH
1337 --without-zlib-version-check Disable zlib version check 1339 --without-zlib-version-check Disable zlib version check
1338 --with-skey[=PATH] Enable S/Key support (optionally in PATH) 1340 --with-skey[=PATH] Enable S/Key support (optionally in PATH)
1339 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH) 1341 --with-tcp-wrappers[=PATH] Enable tcpwrappers support (optionally in PATH)
1340 --with-libedit[=PATH] Enable libedit support for sftp 1342 --with-libedit[=PATH] Enable libedit support for sftp
1341 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm) 1343 --with-audit=module Enable EXPERIMENTAL audit support (modules=debug,bsm)
1342 --with-pam Enable PAM support
1343 --with-ssl-dir=PATH Specify path to OpenSSL installation 1344 --with-ssl-dir=PATH Specify path to OpenSSL installation
1345 --without-openssl-header-check Disable OpenSSL version consistency check
1346 --with-ssl-engine Enable OpenSSL (hardware) ENGINE support
1347 --with-pam Enable PAM support
1344 --with-rand-helper Use subprocess to gather strong randomness 1348 --with-rand-helper Use subprocess to gather strong randomness
1345 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT 1349 --with-prngd-port=PORT read entropy from PRNGD/EGD TCP localhost:PORT
1346 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool) 1350 --with-prngd-socket=FILE read entropy from PRNGD/EGD socket FILE (default=/var/run/egd-pool)
@@ -1348,7 +1352,7 @@ Optional Packages:
1348 --with-privsep-user=user Specify non-privileged user for privilege separation 1352 --with-privsep-user=user Specify non-privileged user for privilege separation
1349 --with-sectok Enable smartcard support using libsectok 1353 --with-sectok Enable smartcard support using libsectok
1350 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH) 1354 --with-opensc[=PFX] Enable smartcard support using OpenSC (optionally in PATH)
1351 --with-selinux[=LIBSELINUX-PATH] Enable SELinux support 1355 --with-selinux Enable SELinux support
1352 --with-kerberos5=PATH Enable Kerberos 5 support 1356 --with-kerberos5=PATH Enable Kerberos 5 support
1353 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty) 1357 --with-privsep-path=xxx Path for privilege separation chroot (default=/var/empty)
1354 --with-xauth=PATH Specify path to xauth program 1358 --with-xauth=PATH Specify path to xauth program
@@ -5477,16 +5481,597 @@ if test "${with_rpath+set}" = set; then
5477fi 5481fi
5478 5482
5479 5483
5484# Allow user to specify flags
5485
5486# Check whether --with-cflags was given.
5487if test "${with_cflags+set}" = set; then
5488 withval=$with_cflags;
5489 if test -n "$withval" && test "x$withval" != "xno" && \
5490 test "x${withval}" != "xyes"; then
5491 CFLAGS="$CFLAGS $withval"
5492 fi
5493
5494
5495fi
5496
5497
5498# Check whether --with-cppflags was given.
5499if test "${with_cppflags+set}" = set; then
5500 withval=$with_cppflags;
5501 if test -n "$withval" && test "x$withval" != "xno" && \
5502 test "x${withval}" != "xyes"; then
5503 CPPFLAGS="$CPPFLAGS $withval"
5504 fi
5505
5506
5507fi
5508
5509
5510# Check whether --with-ldflags was given.
5511if test "${with_ldflags+set}" = set; then
5512 withval=$with_ldflags;
5513 if test -n "$withval" && test "x$withval" != "xno" && \
5514 test "x${withval}" != "xyes"; then
5515 LDFLAGS="$LDFLAGS $withval"
5516 fi
5517
5518
5519fi
5520
5521
5522# Check whether --with-libs was given.
5523if test "${with_libs+set}" = set; then
5524 withval=$with_libs;
5525 if test -n "$withval" && test "x$withval" != "xno" && \
5526 test "x${withval}" != "xyes"; then
5527 LIBS="$LIBS $withval"
5528 fi
5529
5530
5531fi
5532
5533
5534# Check whether --with-Werror was given.
5535if test "${with_Werror+set}" = set; then
5536 withval=$with_Werror;
5537 if test -n "$withval" && test "x$withval" != "xno"; then
5538 werror_flags="-Werror"
5539 if test "x${withval}" != "xyes"; then
5540 werror_flags="$withval"
5541 fi
5542 fi
5543
5544
5545fi
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607for ac_header in \
5608 bstring.h \
5609 crypt.h \
5610 crypto/sha2.h \
5611 dirent.h \
5612 endian.h \
5613 features.h \
5614 fcntl.h \
5615 floatingpoint.h \
5616 getopt.h \
5617 glob.h \
5618 ia.h \
5619 iaf.h \
5620 limits.h \
5621 login.h \
5622 maillock.h \
5623 ndir.h \
5624 net/if_tun.h \
5625 netdb.h \
5626 netgroup.h \
5627 pam/pam_appl.h \
5628 paths.h \
5629 pty.h \
5630 readpassphrase.h \
5631 rpc/types.h \
5632 security/pam_appl.h \
5633 sha2.h \
5634 shadow.h \
5635 stddef.h \
5636 stdint.h \
5637 string.h \
5638 strings.h \
5639 sys/audit.h \
5640 sys/bitypes.h \
5641 sys/bsdtty.h \
5642 sys/cdefs.h \
5643 sys/dir.h \
5644 sys/mman.h \
5645 sys/ndir.h \
5646 sys/prctl.h \
5647 sys/pstat.h \
5648 sys/select.h \
5649 sys/stat.h \
5650 sys/stream.h \
5651 sys/stropts.h \
5652 sys/strtio.h \
5653 sys/sysmacros.h \
5654 sys/time.h \
5655 sys/timers.h \
5656 sys/un.h \
5657 time.h \
5658 tmpdir.h \
5659 ttyent.h \
5660 unistd.h \
5661 usersec.h \
5662 util.h \
5663 utime.h \
5664 utmp.h \
5665 utmpx.h \
5666 vis.h \
5667
5668do
5669as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5672echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5674 echo $ECHO_N "(cached) $ECHO_C" >&6
5675fi
5676ac_res=`eval echo '${'$as_ac_Header'}'`
5677 { echo "$as_me:$LINENO: result: $ac_res" >&5
5678echo "${ECHO_T}$ac_res" >&6; }
5679else
5680 # Is the header compilable?
5681{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5682echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689$ac_includes_default
5690#include <$ac_header>
5691_ACEOF
5692rm -f conftest.$ac_objext
5693if { (ac_try="$ac_compile"
5694case "(($ac_try" in
5695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5697esac
5698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_header_compiler=yes
5710else
5711 echo "$as_me: failed program was:" >&5
5712sed 's/^/| /' conftest.$ac_ext >&5
5713
5714 ac_header_compiler=no
5715fi
5716
5717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5718{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5719echo "${ECHO_T}$ac_header_compiler" >&6; }
5720
5721# Is the header present?
5722{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5723echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5724cat >conftest.$ac_ext <<_ACEOF
5725/* confdefs.h. */
5726_ACEOF
5727cat confdefs.h >>conftest.$ac_ext
5728cat >>conftest.$ac_ext <<_ACEOF
5729/* end confdefs.h. */
5730#include <$ac_header>
5731_ACEOF
5732if { (ac_try="$ac_cpp conftest.$ac_ext"
5733case "(($ac_try" in
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5736esac
5737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null && {
5745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 }; then
5748 ac_header_preproc=yes
5749else
5750 echo "$as_me: failed program was:" >&5
5751sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 ac_header_preproc=no
5754fi
5755
5756rm -f conftest.err conftest.$ac_ext
5757{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5758echo "${ECHO_T}$ac_header_preproc" >&6; }
5759
5760# So? What about this header?
5761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5762 yes:no: )
5763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5764echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5766echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5767 ac_header_preproc=yes
5768 ;;
5769 no:yes:* )
5770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5771echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5773echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5775echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5777echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5779echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5781echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5782 ( cat <<\_ASBOX
5783## ------------------------------------------- ##
5784## Report this to openssh-unix-dev@mindrot.org ##
5785## ------------------------------------------- ##
5786_ASBOX
5787 ) | sed "s/^/$as_me: WARNING: /" >&2
5788 ;;
5789esac
5790{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5793 echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795 eval "$as_ac_Header=\$ac_header_preproc"
5796fi
5797ac_res=`eval echo '${'$as_ac_Header'}'`
5798 { echo "$as_me:$LINENO: result: $ac_res" >&5
5799echo "${ECHO_T}$ac_res" >&6; }
5800
5801fi
5802if test `eval echo '${'$as_ac_Header'}'` = yes; then
5803 cat >>confdefs.h <<_ACEOF
5804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5805_ACEOF
5806
5807fi
5808
5809done
5810
5811
5812# lastlog.h requires sys/time.h to be included first on Solaris
5813
5814for ac_header in lastlog.h
5815do
5816as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5817{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5818echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5819if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5821else
5822 cat >conftest.$ac_ext <<_ACEOF
5823/* confdefs.h. */
5824_ACEOF
5825cat confdefs.h >>conftest.$ac_ext
5826cat >>conftest.$ac_ext <<_ACEOF
5827/* end confdefs.h. */
5828
5829#ifdef HAVE_SYS_TIME_H
5830# include <sys/time.h>
5831#endif
5832
5833
5834#include <$ac_header>
5835_ACEOF
5836rm -f conftest.$ac_objext
5837if { (ac_try="$ac_compile"
5838case "(($ac_try" in
5839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5840 *) ac_try_echo=$ac_try;;
5841esac
5842eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5843 (eval "$ac_compile") 2>conftest.er1
5844 ac_status=$?
5845 grep -v '^ *+' conftest.er1 >conftest.err
5846 rm -f conftest.er1
5847 cat conftest.err >&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && {
5850 test -z "$ac_c_werror_flag" ||
5851 test ! -s conftest.err
5852 } && test -s conftest.$ac_objext; then
5853 eval "$as_ac_Header=yes"
5854else
5855 echo "$as_me: failed program was:" >&5
5856sed 's/^/| /' conftest.$ac_ext >&5
5857
5858 eval "$as_ac_Header=no"
5859fi
5860
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862fi
5863ac_res=`eval echo '${'$as_ac_Header'}'`
5864 { echo "$as_me:$LINENO: result: $ac_res" >&5
5865echo "${ECHO_T}$ac_res" >&6; }
5866if test `eval echo '${'$as_ac_Header'}'` = yes; then
5867 cat >>confdefs.h <<_ACEOF
5868#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5869_ACEOF
5870
5871fi
5872
5873done
5874
5875
5876# sys/ptms.h requires sys/stream.h to be included first on Solaris
5877
5878for ac_header in sys/ptms.h
5879do
5880as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5883if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5884 echo $ECHO_N "(cached) $ECHO_C" >&6
5885else
5886 cat >conftest.$ac_ext <<_ACEOF
5887/* confdefs.h. */
5888_ACEOF
5889cat confdefs.h >>conftest.$ac_ext
5890cat >>conftest.$ac_ext <<_ACEOF
5891/* end confdefs.h. */
5892
5893#ifdef HAVE_SYS_STREAM_H
5894# include <sys/stream.h>
5895#endif
5896
5897
5898#include <$ac_header>
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (ac_try="$ac_compile"
5902case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5905esac
5906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_compile") 2>conftest.er1
5908 ac_status=$?
5909 grep -v '^ *+' conftest.er1 >conftest.err
5910 rm -f conftest.er1
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } && {
5914 test -z "$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5916 } && test -s conftest.$ac_objext; then
5917 eval "$as_ac_Header=yes"
5918else
5919 echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922 eval "$as_ac_Header=no"
5923fi
5924
5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5926fi
5927ac_res=`eval echo '${'$as_ac_Header'}'`
5928 { echo "$as_me:$LINENO: result: $ac_res" >&5
5929echo "${ECHO_T}$ac_res" >&6; }
5930if test `eval echo '${'$as_ac_Header'}'` = yes; then
5931 cat >>confdefs.h <<_ACEOF
5932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933_ACEOF
5934
5935fi
5936
5937done
5938
5939
5940# login_cap.h requires sys/types.h on NetBSD
5941
5942for ac_header in login_cap.h
5943do
5944as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5945{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5947if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949else
5950 cat >conftest.$ac_ext <<_ACEOF
5951/* confdefs.h. */
5952_ACEOF
5953cat confdefs.h >>conftest.$ac_ext
5954cat >>conftest.$ac_ext <<_ACEOF
5955/* end confdefs.h. */
5956
5957#include <sys/types.h>
5958
5959
5960#include <$ac_header>
5961_ACEOF
5962rm -f conftest.$ac_objext
5963if { (ac_try="$ac_compile"
5964case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967esac
5968eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 eval "$as_ac_Header=yes"
5980else
5981 echo "$as_me: failed program was:" >&5
5982sed 's/^/| /' conftest.$ac_ext >&5
5983
5984 eval "$as_ac_Header=no"
5985fi
5986
5987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5988fi
5989ac_res=`eval echo '${'$as_ac_Header'}'`
5990 { echo "$as_me:$LINENO: result: $ac_res" >&5
5991echo "${ECHO_T}$ac_res" >&6; }
5992if test `eval echo '${'$as_ac_Header'}'` = yes; then
5993 cat >>confdefs.h <<_ACEOF
5994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5995_ACEOF
5996
5997fi
5998
5999done
6000
6001
6002# Messages for features tested for in target-specific section
6003SIA_MSG="no"
6004SPC_MSG="no"
6005
5480# Check for some target-specific stuff 6006# Check for some target-specific stuff
5481case "$host" in 6007case "$host" in
5482*-*-aix*) 6008*-*-aix*)
6009 # Some versions of VAC won't allow macro redefinitions at
6010 # -qlanglevel=ansi, and autoconf 2.60 sometimes insists on using that
6011 # particularly with older versions of vac or xlc.
6012 # It also throws errors about null macro argments, but these are
6013 # not fatal.
6014 { echo "$as_me:$LINENO: checking if compiler allows macro redefinitions" >&5
6015echo $ECHO_N "checking if compiler allows macro redefinitions... $ECHO_C" >&6; }
6016 cat >conftest.$ac_ext <<_ACEOF
6017/* confdefs.h. */
6018_ACEOF
6019cat confdefs.h >>conftest.$ac_ext
6020cat >>conftest.$ac_ext <<_ACEOF
6021/* end confdefs.h. */
6022
6023#define testmacro foo
6024#define testmacro bar
6025int main(void) { exit(0); }
6026
6027_ACEOF
6028rm -f conftest.$ac_objext
6029if { (ac_try="$ac_compile"
6030case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033esac
6034eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 { echo "$as_me:$LINENO: result: yes" >&5
6046echo "${ECHO_T}yes" >&6; }
6047else
6048 echo "$as_me: failed program was:" >&5
6049sed 's/^/| /' conftest.$ac_ext >&5
6050
6051 { echo "$as_me:$LINENO: result: no" >&5
6052echo "${ECHO_T}no" >&6; }
6053 CC="`echo $CC | sed 's/-qlanglvl\=ansi//g'`"
6054 LD="`echo $LD | sed 's/-qlanglvl\=ansi//g'`"
6055 CFLAGS="`echo $CFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6056 CPPFLAGS="`echo $CPPFLAGS | sed 's/-qlanglvl\=ansi//g'`"
6057
6058
6059fi
6060
6061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062
5483 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5 6063 { echo "$as_me:$LINENO: checking how to specify blibpath for linker ($LD)" >&5
5484echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; } 6064echo $ECHO_N "checking how to specify blibpath for linker ($LD)... $ECHO_C" >&6; }
5485 if (test -z "$blibpath"); then 6065 if (test -z "$blibpath"); then
5486 blibpath="/usr/lib:/lib" 6066 blibpath="/usr/lib:/lib"
5487 fi 6067 fi
5488 saved_LDFLAGS="$LDFLAGS" 6068 saved_LDFLAGS="$LDFLAGS"
5489 for tryflags in -blibpath: -Wl,-blibpath: -Wl,-rpath, ;do 6069 if test "$GCC" = "yes"; then
6070 flags="-Wl,-blibpath: -Wl,-rpath, -blibpath:"
6071 else
6072 flags="-blibpath: -Wl,-blibpath: -Wl,-rpath,"
6073 fi
6074 for tryflags in $flags ;do
5490 if (test -z "$blibflags"); then 6075 if (test -z "$blibflags"); then
5491 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath" 6076 LDFLAGS="$saved_LDFLAGS $tryflags$blibpath"
5492 cat >conftest.$ac_ext <<_ACEOF 6077 cat >conftest.$ac_ext <<_ACEOF
@@ -6257,6 +6842,69 @@ _ACEOF
6257fi 6842fi
6258done 6843done
6259 6844
6845 { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
6846echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
6847if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
6848 echo $ECHO_N "(cached) $ECHO_C" >&6
6849else
6850 cat >conftest.$ac_ext <<_ACEOF
6851/* confdefs.h. */
6852_ACEOF
6853cat confdefs.h >>conftest.$ac_ext
6854cat >>conftest.$ac_ext <<_ACEOF
6855/* end confdefs.h. */
6856 #include <limits.h>
6857 #include <fcntl.h>
6858
6859
6860int
6861main ()
6862{
6863#ifndef F_CLOSEM
6864 (void) F_CLOSEM;
6865#endif
6866
6867 ;
6868 return 0;
6869}
6870_ACEOF
6871rm -f conftest.$ac_objext
6872if { (ac_try="$ac_compile"
6873case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876esac
6877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6888 ac_cv_have_decl_F_CLOSEM=yes
6889else
6890 echo "$as_me: failed program was:" >&5
6891sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 ac_cv_have_decl_F_CLOSEM=no
6894fi
6895
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
6899echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
6900if test $ac_cv_have_decl_F_CLOSEM = yes; then
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define HAVE_FCNTL_CLOSEM 1
6904_ACEOF
6905
6906fi
6907
6260 check_for_aix_broken_getaddrinfo=1 6908 check_for_aix_broken_getaddrinfo=1
6261 6909
6262cat >>confdefs.h <<\_ACEOF 6910cat >>confdefs.h <<\_ACEOF
@@ -6298,10 +6946,15 @@ cat >>confdefs.h <<\_ACEOF
6298#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1 6946#define SSHPAM_CHAUTHTOK_NEEDS_RUID 1
6299_ACEOF 6947_ACEOF
6300 6948
6949
6950cat >>confdefs.h <<\_ACEOF
6951#define PTY_ZEROREAD 1
6952_ACEOF
6953
6301 ;; 6954 ;;
6302*-*-cygwin*) 6955*-*-cygwin*)
6303 check_for_libcrypt_later=1 6956 check_for_libcrypt_later=1
6304 LIBS="$LIBS /usr/lib/textmode.o" 6957 LIBS="$LIBS /usr/lib/textreadmode.o"
6305 6958
6306cat >>confdefs.h <<\_ACEOF 6959cat >>confdefs.h <<\_ACEOF
6307#define HAVE_CYGWIN 1 6960#define HAVE_CYGWIN 1
@@ -6433,9 +7086,24 @@ cat >>confdefs.h <<_ACEOF
6433#define BIND_8_COMPAT 1 7086#define BIND_8_COMPAT 1
6434_ACEOF 7087_ACEOF
6435 7088
6436 { echo "$as_me:$LINENO: checking if we have the Security Authorization Session API" >&5 7089
7090cat >>confdefs.h <<\_ACEOF
7091#define SSH_TUN_FREEBSD 1
7092_ACEOF
7093
7094
7095cat >>confdefs.h <<\_ACEOF
7096#define SSH_TUN_COMPAT_AF 1
7097_ACEOF
7098
7099
7100cat >>confdefs.h <<\_ACEOF
7101#define SSH_TUN_PREPEND_AF 1
7102_ACEOF
7103
7104 { echo "$as_me:$LINENO: checking if we have the Security Authorization Session API" >&5
6437echo $ECHO_N "checking if we have the Security Authorization Session API... $ECHO_C" >&6; } 7105echo $ECHO_N "checking if we have the Security Authorization Session API... $ECHO_C" >&6; }
6438 cat >conftest.$ac_ext <<_ACEOF 7106 cat >conftest.$ac_ext <<_ACEOF
6439/* confdefs.h. */ 7107/* confdefs.h. */
6440_ACEOF 7108_ACEOF
6441cat confdefs.h >>conftest.$ac_ext 7109cat confdefs.h >>conftest.$ac_ext
@@ -6473,22 +7141,22 @@ cat >>confdefs.h <<\_ACEOF
6473#define USE_SECURITY_SESSION_API 1 7141#define USE_SECURITY_SESSION_API 1
6474_ACEOF 7142_ACEOF
6475 7143
6476 LIBS="$LIBS -framework Security" 7144 LIBS="$LIBS -framework Security"
6477 { echo "$as_me:$LINENO: result: yes" >&5 7145 { echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6; } 7146echo "${ECHO_T}yes" >&6; }
6479else 7147else
6480 echo "$as_me: failed program was:" >&5 7148 echo "$as_me: failed program was:" >&5
6481sed 's/^/| /' conftest.$ac_ext >&5 7149sed 's/^/| /' conftest.$ac_ext >&5
6482 7150
6483 ac_cv_use_security_session_api="no" 7151 ac_cv_use_security_session_api="no"
6484 { echo "$as_me:$LINENO: result: no" >&5 7152 { echo "$as_me:$LINENO: result: no" >&5
6485echo "${ECHO_T}no" >&6; } 7153echo "${ECHO_T}no" >&6; }
6486fi 7154fi
6487 7155
6488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6489 { echo "$as_me:$LINENO: checking if we have an in-memory credentials cache" >&5 7157 { echo "$as_me:$LINENO: checking if we have an in-memory credentials cache" >&5
6490echo $ECHO_N "checking if we have an in-memory credentials cache... $ECHO_C" >&6; } 7158echo $ECHO_N "checking if we have an in-memory credentials cache... $ECHO_C" >&6; }
6491 cat >conftest.$ac_ext <<_ACEOF 7159 cat >conftest.$ac_ext <<_ACEOF
6492/* confdefs.h. */ 7160/* confdefs.h. */
6493_ACEOF 7161_ACEOF
6494cat confdefs.h >>conftest.$ac_ext 7162cat confdefs.h >>conftest.$ac_ext
@@ -6499,7 +7167,7 @@ int
6499main () 7167main ()
6500{ 7168{
6501cc_context_t c; 7169cc_context_t c;
6502 (void) cc_initialize (&c, 0, NULL, NULL); 7170 (void) cc_initialize (&c, 0, NULL, NULL);
6503 ; 7171 ;
6504 return 0; 7172 return 0;
6505} 7173}
@@ -6526,14 +7194,14 @@ cat >>confdefs.h <<\_ACEOF
6526#define USE_CCAPI 1 7194#define USE_CCAPI 1
6527_ACEOF 7195_ACEOF
6528 7196
6529 LIBS="$LIBS -framework Security" 7197 LIBS="$LIBS -framework Security"
6530 { echo "$as_me:$LINENO: result: yes" >&5 7198 { echo "$as_me:$LINENO: result: yes" >&5
6531echo "${ECHO_T}yes" >&6; } 7199echo "${ECHO_T}yes" >&6; }
6532 if test "x$ac_cv_use_security_session_api" = "xno"; then 7200 if test "x$ac_cv_use_security_session_api" = "xno"; then
6533 { { echo "$as_me:$LINENO: error: *** Need a security framework to use the credentials cache API ***" >&5 7201 { { echo "$as_me:$LINENO: error: *** Need a security framework to use the credentials cache API ***" >&5
6534echo "$as_me: error: *** Need a security framework to use the credentials cache API ***" >&2;} 7202echo "$as_me: error: *** Need a security framework to use the credentials cache API ***" >&2;}
6535 { (exit 1); exit 1; }; } 7203 { (exit 1); exit 1; }; }
6536 fi 7204 fi
6537else 7205else
6538 echo "$as_me: failed program was:" >&5 7206 echo "$as_me: failed program was:" >&5
6539sed 's/^/| /' conftest.$ac_ext >&5 7207sed 's/^/| /' conftest.$ac_ext >&5
@@ -6544,6 +7212,9 @@ echo "${ECHO_T}no" >&6; }
6544fi 7212fi
6545 7213
6546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 ;;
7216*-*-dragonfly*)
7217 SSHDLIBS="$SSHDLIBS -lcrypt"
6547 ;; 7218 ;;
6548*-*-hpux*) 7219*-*-hpux*)
6549 # first we define all of the options common to all HP-UX releases 7220 # first we define all of the options common to all HP-UX releases
@@ -7464,6 +8135,11 @@ cat >>confdefs.h <<\_ACEOF
7464#define SSH_TUN_OPENBSD 1 8135#define SSH_TUN_OPENBSD 1
7465_ACEOF 8136_ACEOF
7466 8137
8138
8139cat >>confdefs.h <<\_ACEOF
8140#define SYSLOG_R_SAFE_IN_SIGHAND 1
8141_ACEOF
8142
7467 ;; 8143 ;;
7468*-*-solaris*) 8144*-*-solaris*)
7469 if test "x$withval" != "xno" ; then 8145 if test "x$withval" != "xno" ; then
@@ -7501,6 +8177,11 @@ cat >>confdefs.h <<\_ACEOF
7501#define SSHD_ACQUIRES_CTTY 1 8177#define SSHD_ACQUIRES_CTTY 1
7502_ACEOF 8178_ACEOF
7503 8179
8180
8181cat >>confdefs.h <<\_ACEOF
8182#define PASSWD_NEEDS_USERNAME 1
8183_ACEOF
8184
7504 external_path_file=/etc/default/login 8185 external_path_file=/etc/default/login
7505 # hardwire lastlog location (can't detect it on some versions) 8186 # hardwire lastlog location (can't detect it on some versions)
7506 conf_lastlog_location="/var/adm/lastlog" 8187 conf_lastlog_location="/var/adm/lastlog"
@@ -7523,6 +8204,85 @@ _ACEOF
7523 { echo "$as_me:$LINENO: result: no" >&5 8204 { echo "$as_me:$LINENO: result: no" >&5
7524echo "${ECHO_T}no" >&6; } 8205echo "${ECHO_T}no" >&6; }
7525 fi 8206 fi
8207
8208# Check whether --with-solaris-contracts was given.
8209if test "${with_solaris_contracts+set}" = set; then
8210 withval=$with_solaris_contracts;
8211 { echo "$as_me:$LINENO: checking for ct_tmpl_activate in -lcontract" >&5
8212echo $ECHO_N "checking for ct_tmpl_activate in -lcontract... $ECHO_C" >&6; }
8213if test "${ac_cv_lib_contract_ct_tmpl_activate+set}" = set; then
8214 echo $ECHO_N "(cached) $ECHO_C" >&6
8215else
8216 ac_check_lib_save_LIBS=$LIBS
8217LIBS="-lcontract $LIBS"
8218cat >conftest.$ac_ext <<_ACEOF
8219/* confdefs.h. */
8220_ACEOF
8221cat confdefs.h >>conftest.$ac_ext
8222cat >>conftest.$ac_ext <<_ACEOF
8223/* end confdefs.h. */
8224
8225/* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8228#ifdef __cplusplus
8229extern "C"
8230#endif
8231char ct_tmpl_activate ();
8232int
8233main ()
8234{
8235return ct_tmpl_activate ();
8236 ;
8237 return 0;
8238}
8239_ACEOF
8240rm -f conftest.$ac_objext conftest$ac_exeext
8241if { (ac_try="$ac_link"
8242case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8245esac
8246eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_link") 2>conftest.er1
8248 ac_status=$?
8249 grep -v '^ *+' conftest.er1 >conftest.err
8250 rm -f conftest.er1
8251 cat conftest.err >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); } && {
8254 test -z "$ac_c_werror_flag" ||
8255 test ! -s conftest.err
8256 } && test -s conftest$ac_exeext &&
8257 $as_test_x conftest$ac_exeext; then
8258 ac_cv_lib_contract_ct_tmpl_activate=yes
8259else
8260 echo "$as_me: failed program was:" >&5
8261sed 's/^/| /' conftest.$ac_ext >&5
8262
8263 ac_cv_lib_contract_ct_tmpl_activate=no
8264fi
8265
8266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8267 conftest$ac_exeext conftest.$ac_ext
8268LIBS=$ac_check_lib_save_LIBS
8269fi
8270{ echo "$as_me:$LINENO: result: $ac_cv_lib_contract_ct_tmpl_activate" >&5
8271echo "${ECHO_T}$ac_cv_lib_contract_ct_tmpl_activate" >&6; }
8272if test $ac_cv_lib_contract_ct_tmpl_activate = yes; then
8273
8274cat >>confdefs.h <<\_ACEOF
8275#define USE_SOLARIS_PROCESS_CONTRACTS 1
8276_ACEOF
8277
8278 SSHDLIBS="$SSHDLIBS -lcontract"
8279
8280 SPC_MSG="yes"
8281fi
8282
8283
8284fi
8285
7526 ;; 8286 ;;
7527*-*-sunos4*) 8287*-*-sunos4*)
7528 CPPFLAGS="$CPPFLAGS -DSUNOS4" 8288 CPPFLAGS="$CPPFLAGS -DSUNOS4"
@@ -7826,7 +8586,6 @@ _ACEOF
7826 ;; 8586 ;;
7827# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel. 8587# UnixWare 1.x, UnixWare 2.x, and others based on code from Univel.
7828*-*-sysv4.2*) 8588*-*-sysv4.2*)
7829 CFLAGS="$CFLAGS -Dva_list=_VA_LIST"
7830 cat >>confdefs.h <<\_ACEOF 8589 cat >>confdefs.h <<\_ACEOF
7831#define USE_PIPES 1 8590#define USE_PIPES 1
7832_ACEOF 8591_ACEOF
@@ -7889,6 +8648,10 @@ cat >>confdefs.h <<\_ACEOF
7889#define BROKEN_LIBIAF 1 8648#define BROKEN_LIBIAF 1
7890_ACEOF 8649_ACEOF
7891 8650
8651 cat >>confdefs.h <<\_ACEOF
8652#define BROKEN_UPDWTMPX 1
8653_ACEOF
8654
7892 ;; 8655 ;;
7893 *) cat >>confdefs.h <<\_ACEOF 8656 *) cat >>confdefs.h <<\_ACEOF
7894#define LOCKED_PASSWD_STRING "*LK*" 8657#define LOCKED_PASSWD_STRING "*LK*"
@@ -8173,6 +8936,7 @@ _ACEOF
8173_ACEOF 8936_ACEOF
8174 8937
8175 LIBS="$LIBS -lsecurity -ldb -lm -laud" 8938 LIBS="$LIBS -lsecurity -ldb -lm -laud"
8939 SIA_MSG="yes"
8176 else 8940 else
8177 { echo "$as_me:$LINENO: result: no" >&5 8941 { echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6; } 8942echo "${ECHO_T}no" >&6; }
@@ -8229,6 +8993,11 @@ _ACEOF
8229#define DISABLE_LASTLOG 1 8993#define DISABLE_LASTLOG 1
8230_ACEOF 8994_ACEOF
8231 8995
8996 cat >>confdefs.h <<\_ACEOF
8997#define SSHD_ACQUIRES_CTTY 1
8998_ACEOF
8999
9000 enable_etc_default_login=no # has incompatible /etc/default/login
8232 ;; 9001 ;;
8233 9002
8234*-*-ultrix*) 9003*-*-ultrix*)
@@ -8267,70 +9036,6 @@ _ACEOF
8267 ;; 9036 ;;
8268esac 9037esac
8269 9038
8270# Allow user to specify flags
8271
8272# Check whether --with-cflags was given.
8273if test "${with_cflags+set}" = set; then
8274 withval=$with_cflags;
8275 if test -n "$withval" && test "x$withval" != "xno" && \
8276 test "x${withval}" != "xyes"; then
8277 CFLAGS="$CFLAGS $withval"
8278 fi
8279
8280
8281fi
8282
8283
8284# Check whether --with-cppflags was given.
8285if test "${with_cppflags+set}" = set; then
8286 withval=$with_cppflags;
8287 if test -n "$withval" && test "x$withval" != "xno" && \
8288 test "x${withval}" != "xyes"; then
8289 CPPFLAGS="$CPPFLAGS $withval"
8290 fi
8291
8292
8293fi
8294
8295
8296# Check whether --with-ldflags was given.
8297if test "${with_ldflags+set}" = set; then
8298 withval=$with_ldflags;
8299 if test -n "$withval" && test "x$withval" != "xno" && \
8300 test "x${withval}" != "xyes"; then
8301 LDFLAGS="$LDFLAGS $withval"
8302 fi
8303
8304
8305fi
8306
8307
8308# Check whether --with-libs was given.
8309if test "${with_libs+set}" = set; then
8310 withval=$with_libs;
8311 if test -n "$withval" && test "x$withval" != "xno" && \
8312 test "x${withval}" != "xyes"; then
8313 LIBS="$LIBS $withval"
8314 fi
8315
8316
8317fi
8318
8319
8320# Check whether --with-Werror was given.
8321if test "${with_Werror+set}" = set; then
8322 withval=$with_Werror;
8323 if test -n "$withval" && test "x$withval" != "xno"; then
8324 werror_flags="-Werror"
8325 if test "x${withval}" != "xyes"; then
8326 werror_flags="$withval"
8327 fi
8328 fi
8329
8330
8331fi
8332
8333
8334{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5 9039{ echo "$as_me:$LINENO: checking compiler and flags for sanity" >&5
8335echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; } 9040echo $ECHO_N "checking compiler and flags for sanity... $ECHO_C" >&6; }
8336if test "$cross_compiling" = yes; then 9041if test "$cross_compiling" = yes; then
@@ -8390,392 +9095,6 @@ fi
8390 9095
8391 9096
8392 9097
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449for ac_header in \
8450 bstring.h \
8451 crypt.h \
8452 dirent.h \
8453 endian.h \
8454 features.h \
8455 floatingpoint.h \
8456 getopt.h \
8457 glob.h \
8458 ia.h \
8459 iaf.h \
8460 limits.h \
8461 login.h \
8462 login_cap.h \
8463 maillock.h \
8464 ndir.h \
8465 netdb.h \
8466 netgroup.h \
8467 pam/pam_appl.h \
8468 paths.h \
8469 pty.h \
8470 readpassphrase.h \
8471 rpc/types.h \
8472 security/pam_appl.h \
8473 shadow.h \
8474 stddef.h \
8475 stdint.h \
8476 string.h \
8477 strings.h \
8478 sys/audit.h \
8479 sys/bitypes.h \
8480 sys/bsdtty.h \
8481 sys/cdefs.h \
8482 sys/dir.h \
8483 sys/mman.h \
8484 sys/ndir.h \
8485 sys/prctl.h \
8486 sys/pstat.h \
8487 sys/select.h \
8488 sys/stat.h \
8489 sys/stream.h \
8490 sys/stropts.h \
8491 sys/strtio.h \
8492 sys/sysmacros.h \
8493 sys/time.h \
8494 sys/timers.h \
8495 sys/un.h \
8496 time.h \
8497 tmpdir.h \
8498 ttyent.h \
8499 unistd.h \
8500 usersec.h \
8501 util.h \
8502 utime.h \
8503 utmp.h \
8504 utmpx.h \
8505 vis.h \
8506
8507do
8508as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8511echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8512if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8514fi
8515ac_res=`eval echo '${'$as_ac_Header'}'`
8516 { echo "$as_me:$LINENO: result: $ac_res" >&5
8517echo "${ECHO_T}$ac_res" >&6; }
8518else
8519 # Is the header compilable?
8520{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8521echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8522cat >conftest.$ac_ext <<_ACEOF
8523/* confdefs.h. */
8524_ACEOF
8525cat confdefs.h >>conftest.$ac_ext
8526cat >>conftest.$ac_ext <<_ACEOF
8527/* end confdefs.h. */
8528$ac_includes_default
8529#include <$ac_header>
8530_ACEOF
8531rm -f conftest.$ac_objext
8532if { (ac_try="$ac_compile"
8533case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536esac
8537eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_header_compiler=yes
8549else
8550 echo "$as_me: failed program was:" >&5
8551sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 ac_header_compiler=no
8554fi
8555
8556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8557{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8558echo "${ECHO_T}$ac_header_compiler" >&6; }
8559
8560# Is the header present?
8561{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8562echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8563cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569#include <$ac_header>
8570_ACEOF
8571if { (ac_try="$ac_cpp conftest.$ac_ext"
8572case "(($ac_try" in
8573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8574 *) ac_try_echo=$ac_try;;
8575esac
8576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } >/dev/null && {
8584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8585 test ! -s conftest.err
8586 }; then
8587 ac_header_preproc=yes
8588else
8589 echo "$as_me: failed program was:" >&5
8590sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ac_header_preproc=no
8593fi
8594
8595rm -f conftest.err conftest.$ac_ext
8596{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8597echo "${ECHO_T}$ac_header_preproc" >&6; }
8598
8599# So? What about this header?
8600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8601 yes:no: )
8602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8603echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8605echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8606 ac_header_preproc=yes
8607 ;;
8608 no:yes:* )
8609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8610echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8612echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8614echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8616echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8618echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8620echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8621 ( cat <<\_ASBOX
8622## ------------------------------------------- ##
8623## Report this to openssh-unix-dev@mindrot.org ##
8624## ------------------------------------------- ##
8625_ASBOX
8626 ) | sed "s/^/$as_me: WARNING: /" >&2
8627 ;;
8628esac
8629{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633else
8634 eval "$as_ac_Header=\$ac_header_preproc"
8635fi
8636ac_res=`eval echo '${'$as_ac_Header'}'`
8637 { echo "$as_me:$LINENO: result: $ac_res" >&5
8638echo "${ECHO_T}$ac_res" >&6; }
8639
8640fi
8641if test `eval echo '${'$as_ac_Header'}'` = yes; then
8642 cat >>confdefs.h <<_ACEOF
8643#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8644_ACEOF
8645
8646fi
8647
8648done
8649
8650
8651# lastlog.h requires sys/time.h to be included first on Solaris
8652
8653for ac_header in lastlog.h
8654do
8655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8656{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8659 echo $ECHO_N "(cached) $ECHO_C" >&6
8660else
8661 cat >conftest.$ac_ext <<_ACEOF
8662/* confdefs.h. */
8663_ACEOF
8664cat confdefs.h >>conftest.$ac_ext
8665cat >>conftest.$ac_ext <<_ACEOF
8666/* end confdefs.h. */
8667
8668#ifdef HAVE_SYS_TIME_H
8669# include <sys/time.h>
8670#endif
8671
8672
8673#include <$ac_header>
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (ac_try="$ac_compile"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_compile") 2>conftest.er1
8683 ac_status=$?
8684 grep -v '^ *+' conftest.er1 >conftest.err
8685 rm -f conftest.er1
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } && {
8689 test -z "$ac_c_werror_flag" ||
8690 test ! -s conftest.err
8691 } && test -s conftest.$ac_objext; then
8692 eval "$as_ac_Header=yes"
8693else
8694 echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697 eval "$as_ac_Header=no"
8698fi
8699
8700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8701fi
8702ac_res=`eval echo '${'$as_ac_Header'}'`
8703 { echo "$as_me:$LINENO: result: $ac_res" >&5
8704echo "${ECHO_T}$ac_res" >&6; }
8705if test `eval echo '${'$as_ac_Header'}'` = yes; then
8706 cat >>confdefs.h <<_ACEOF
8707#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8708_ACEOF
8709
8710fi
8711
8712done
8713
8714
8715# sys/ptms.h requires sys/stream.h to be included first on Solaris
8716
8717for ac_header in sys/ptms.h
8718do
8719as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8720{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725 cat >conftest.$ac_ext <<_ACEOF
8726/* confdefs.h. */
8727_ACEOF
8728cat confdefs.h >>conftest.$ac_ext
8729cat >>conftest.$ac_ext <<_ACEOF
8730/* end confdefs.h. */
8731
8732#ifdef HAVE_SYS_STREAM_H
8733# include <sys/stream.h>
8734#endif
8735
8736
8737#include <$ac_header>
8738_ACEOF
8739rm -f conftest.$ac_objext
8740if { (ac_try="$ac_compile"
8741case "(($ac_try" in
8742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8743 *) ac_try_echo=$ac_try;;
8744esac
8745eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8746 (eval "$ac_compile") 2>conftest.er1
8747 ac_status=$?
8748 grep -v '^ *+' conftest.er1 >conftest.err
8749 rm -f conftest.er1
8750 cat conftest.err >&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } && {
8753 test -z "$ac_c_werror_flag" ||
8754 test ! -s conftest.err
8755 } && test -s conftest.$ac_objext; then
8756 eval "$as_ac_Header=yes"
8757else
8758 echo "$as_me: failed program was:" >&5
8759sed 's/^/| /' conftest.$ac_ext >&5
8760
8761 eval "$as_ac_Header=no"
8762fi
8763
8764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8765fi
8766ac_res=`eval echo '${'$as_ac_Header'}'`
8767 { echo "$as_me:$LINENO: result: $ac_res" >&5
8768echo "${ECHO_T}$ac_res" >&6; }
8769if test `eval echo '${'$as_ac_Header'}'` = yes; then
8770 cat >>confdefs.h <<_ACEOF
8771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8772_ACEOF
8773
8774fi
8775
8776done
8777
8778
8779# Checks for libraries. 9098# Checks for libraries.
8780{ echo "$as_me:$LINENO: checking for yp_match" >&5 9099{ echo "$as_me:$LINENO: checking for yp_match" >&5
8781echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; } 9100echo $ECHO_N "checking for yp_match... $ECHO_C" >&6; }
@@ -11141,13 +11460,32 @@ _ACEOF
11141cat confdefs.h >>conftest.$ac_ext 11460cat confdefs.h >>conftest.$ac_ext
11142cat >>conftest.$ac_ext <<_ACEOF 11461cat >>conftest.$ac_ext <<_ACEOF
11143/* end confdefs.h. */ 11462/* end confdefs.h. */
11144 11463 #include <glob.h>
11145 #include <glob.h> 11464int
11146 int main(void){glob_t g; g.gl_matchc = 1;} 11465main ()
11147 11466{
11467glob_t g; g.gl_matchc = 1;
11468 ;
11469 return 0;
11470}
11148_ACEOF 11471_ACEOF
11149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11472rm -f conftest.$ac_objext
11150 $EGREP "FOUNDIT" >/dev/null 2>&1; then 11473if { (ac_try="$ac_compile"
11474case "(($ac_try" in
11475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11476 *) ac_try_echo=$ac_try;;
11477esac
11478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11479 (eval "$ac_compile") 2>conftest.er1
11480 ac_status=$?
11481 grep -v '^ *+' conftest.er1 >conftest.err
11482 rm -f conftest.er1
11483 cat conftest.err >&5
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); } && {
11486 test -z "$ac_c_werror_flag" ||
11487 test ! -s conftest.err
11488 } && test -s conftest.$ac_objext; then
11151 11489
11152 11490
11153cat >>confdefs.h <<\_ACEOF 11491cat >>confdefs.h <<\_ACEOF
@@ -11158,13 +11496,86 @@ _ACEOF
11158echo "${ECHO_T}yes" >&6; } 11496echo "${ECHO_T}yes" >&6; }
11159 11497
11160else 11498else
11499 echo "$as_me: failed program was:" >&5
11500sed 's/^/| /' conftest.$ac_ext >&5
11501
11161 11502
11162 { echo "$as_me:$LINENO: result: no" >&5 11503 { echo "$as_me:$LINENO: result: no" >&5
11163echo "${ECHO_T}no" >&6; } 11504echo "${ECHO_T}no" >&6; }
11164 11505
11165 11506
11166fi 11507fi
11167rm -f conftest* 11508
11509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510
11511{ echo "$as_me:$LINENO: checking whether GLOB_NOMATCH is declared" >&5
11512echo $ECHO_N "checking whether GLOB_NOMATCH is declared... $ECHO_C" >&6; }
11513if test "${ac_cv_have_decl_GLOB_NOMATCH+set}" = set; then
11514 echo $ECHO_N "(cached) $ECHO_C" >&6
11515else
11516 cat >conftest.$ac_ext <<_ACEOF
11517/* confdefs.h. */
11518_ACEOF
11519cat confdefs.h >>conftest.$ac_ext
11520cat >>conftest.$ac_ext <<_ACEOF
11521/* end confdefs.h. */
11522#include <glob.h>
11523
11524int
11525main ()
11526{
11527#ifndef GLOB_NOMATCH
11528 (void) GLOB_NOMATCH;
11529#endif
11530
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext
11536if { (ac_try="$ac_compile"
11537case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_compile") 2>conftest.er1
11543 ac_status=$?
11544 grep -v '^ *+' conftest.er1 >conftest.err
11545 rm -f conftest.er1
11546 cat conftest.err >&5
11547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548 (exit $ac_status); } && {
11549 test -z "$ac_c_werror_flag" ||
11550 test ! -s conftest.err
11551 } && test -s conftest.$ac_objext; then
11552 ac_cv_have_decl_GLOB_NOMATCH=yes
11553else
11554 echo "$as_me: failed program was:" >&5
11555sed 's/^/| /' conftest.$ac_ext >&5
11556
11557 ac_cv_have_decl_GLOB_NOMATCH=no
11558fi
11559
11560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11561fi
11562{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_GLOB_NOMATCH" >&5
11563echo "${ECHO_T}$ac_cv_have_decl_GLOB_NOMATCH" >&6; }
11564if test $ac_cv_have_decl_GLOB_NOMATCH = yes; then
11565
11566cat >>confdefs.h <<_ACEOF
11567#define HAVE_DECL_GLOB_NOMATCH 1
11568_ACEOF
11569
11570
11571else
11572 cat >>confdefs.h <<_ACEOF
11573#define HAVE_DECL_GLOB_NOMATCH 0
11574_ACEOF
11575
11576
11577fi
11578
11168 11579
11169 11580
11170{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5 11581{ echo "$as_me:$LINENO: checking whether struct dirent allocates space for d_name" >&5
@@ -11647,26 +12058,24 @@ echo "${ECHO_T}bsm" >&6; }
11647for ac_header in bsm/audit.h 12058for ac_header in bsm/audit.h
11648do 12059do
11649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 12060as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11650if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12061{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11651 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 12062echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11653if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6 12064 echo $ECHO_N "(cached) $ECHO_C" >&6
11655fi
11656ac_res=`eval echo '${'$as_ac_Header'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658echo "${ECHO_T}$ac_res" >&6; }
11659else 12065else
11660 # Is the header compilable? 12066 cat >conftest.$ac_ext <<_ACEOF
11661{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11662echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11663cat >conftest.$ac_ext <<_ACEOF
11664/* confdefs.h. */ 12067/* confdefs.h. */
11665_ACEOF 12068_ACEOF
11666cat confdefs.h >>conftest.$ac_ext 12069cat confdefs.h >>conftest.$ac_ext
11667cat >>conftest.$ac_ext <<_ACEOF 12070cat >>conftest.$ac_ext <<_ACEOF
11668/* end confdefs.h. */ 12071/* end confdefs.h. */
11669$ac_includes_default 12072
12073#ifdef HAVE_TIME_H
12074# include <time.h>
12075#endif
12076
12077
12078
11670#include <$ac_header> 12079#include <$ac_header>
11671_ACEOF 12080_ACEOF
11672rm -f conftest.$ac_objext 12081rm -f conftest.$ac_objext
@@ -11686,99 +12095,19 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 test -z "$ac_c_werror_flag" || 12095 test -z "$ac_c_werror_flag" ||
11687 test ! -s conftest.err 12096 test ! -s conftest.err
11688 } && test -s conftest.$ac_objext; then 12097 } && test -s conftest.$ac_objext; then
11689 ac_header_compiler=yes 12098 eval "$as_ac_Header=yes"
11690else 12099else
11691 echo "$as_me: failed program was:" >&5 12100 echo "$as_me: failed program was:" >&5
11692sed 's/^/| /' conftest.$ac_ext >&5 12101sed 's/^/| /' conftest.$ac_ext >&5
11693 12102
11694 ac_header_compiler=no 12103 eval "$as_ac_Header=no"
11695fi 12104fi
11696 12105
11697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11698{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11699echo "${ECHO_T}$ac_header_compiler" >&6; }
11700
11701# Is the header present?
11702{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11704cat >conftest.$ac_ext <<_ACEOF
11705/* confdefs.h. */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h. */
11710#include <$ac_header>
11711_ACEOF
11712if { (ac_try="$ac_cpp conftest.$ac_ext"
11713case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11719 ac_status=$?
11720 grep -v '^ *+' conftest.er1 >conftest.err
11721 rm -f conftest.er1
11722 cat conftest.err >&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); } >/dev/null && {
11725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11726 test ! -s conftest.err
11727 }; then
11728 ac_header_preproc=yes
11729else
11730 echo "$as_me: failed program was:" >&5
11731sed 's/^/| /' conftest.$ac_ext >&5
11732
11733 ac_header_preproc=no
11734fi
11735
11736rm -f conftest.err conftest.$ac_ext
11737{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11738echo "${ECHO_T}$ac_header_preproc" >&6; }
11739
11740# So? What about this header?
11741case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11742 yes:no: )
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11744echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11746echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11747 ac_header_preproc=yes
11748 ;;
11749 no:yes:* )
11750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11751echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11753echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11755echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11756 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11757echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11759echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11760 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11761echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11762 ( cat <<\_ASBOX
11763## ------------------------------------------- ##
11764## Report this to openssh-unix-dev@mindrot.org ##
11765## ------------------------------------------- ##
11766_ASBOX
11767 ) | sed "s/^/$as_me: WARNING: /" >&2
11768 ;;
11769esac
11770{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11771echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11773 echo $ECHO_N "(cached) $ECHO_C" >&6
11774else
11775 eval "$as_ac_Header=\$ac_header_preproc"
11776fi 12107fi
11777ac_res=`eval echo '${'$as_ac_Header'}'` 12108ac_res=`eval echo '${'$as_ac_Header'}'`
11778 { echo "$as_me:$LINENO: result: $ac_res" >&5 12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
11779echo "${ECHO_T}$ac_res" >&6; } 12110echo "${ECHO_T}$ac_res" >&6; }
11780
11781fi
11782if test `eval echo '${'$as_ac_Header'}'` = yes; then 12111if test `eval echo '${'$as_ac_Header'}'` = yes; then
11783 cat >>confdefs.h <<_ACEOF 12112 cat >>confdefs.h <<_ACEOF
11784#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 12113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
@@ -13120,6 +13449,231 @@ fi
13120 13449
13121 13450
13122 13451
13452{ echo "$as_me:$LINENO: checking whether SHUT_RD is declared" >&5
13453echo $ECHO_N "checking whether SHUT_RD is declared... $ECHO_C" >&6; }
13454if test "${ac_cv_have_decl_SHUT_RD+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13456else
13457 cat >conftest.$ac_ext <<_ACEOF
13458/* confdefs.h. */
13459_ACEOF
13460cat confdefs.h >>conftest.$ac_ext
13461cat >>conftest.$ac_ext <<_ACEOF
13462/* end confdefs.h. */
13463
13464#include <sys/types.h>
13465#include <sys/socket.h>
13466
13467
13468int
13469main ()
13470{
13471#ifndef SHUT_RD
13472 (void) SHUT_RD;
13473#endif
13474
13475 ;
13476 return 0;
13477}
13478_ACEOF
13479rm -f conftest.$ac_objext
13480if { (ac_try="$ac_compile"
13481case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484esac
13485eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_compile") 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } && {
13493 test -z "$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 } && test -s conftest.$ac_objext; then
13496 ac_cv_have_decl_SHUT_RD=yes
13497else
13498 echo "$as_me: failed program was:" >&5
13499sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 ac_cv_have_decl_SHUT_RD=no
13502fi
13503
13504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505fi
13506{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_SHUT_RD" >&5
13507echo "${ECHO_T}$ac_cv_have_decl_SHUT_RD" >&6; }
13508if test $ac_cv_have_decl_SHUT_RD = yes; then
13509
13510cat >>confdefs.h <<_ACEOF
13511#define HAVE_DECL_SHUT_RD 1
13512_ACEOF
13513
13514
13515else
13516 cat >>confdefs.h <<_ACEOF
13517#define HAVE_DECL_SHUT_RD 0
13518_ACEOF
13519
13520
13521fi
13522
13523
13524
13525{ echo "$as_me:$LINENO: checking whether O_NONBLOCK is declared" >&5
13526echo $ECHO_N "checking whether O_NONBLOCK is declared... $ECHO_C" >&6; }
13527if test "${ac_cv_have_decl_O_NONBLOCK+set}" = set; then
13528 echo $ECHO_N "(cached) $ECHO_C" >&6
13529else
13530 cat >conftest.$ac_ext <<_ACEOF
13531/* confdefs.h. */
13532_ACEOF
13533cat confdefs.h >>conftest.$ac_ext
13534cat >>conftest.$ac_ext <<_ACEOF
13535/* end confdefs.h. */
13536
13537#include <sys/types.h>
13538#ifdef HAVE_SYS_STAT_H
13539# include <sys/stat.h>
13540#endif
13541#ifdef HAVE_FCNTL_H
13542# include <fcntl.h>
13543#endif
13544
13545
13546int
13547main ()
13548{
13549#ifndef O_NONBLOCK
13550 (void) O_NONBLOCK;
13551#endif
13552
13553 ;
13554 return 0;
13555}
13556_ACEOF
13557rm -f conftest.$ac_objext
13558if { (ac_try="$ac_compile"
13559case "(($ac_try" in
13560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13561 *) ac_try_echo=$ac_try;;
13562esac
13563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13564 (eval "$ac_compile") 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } && {
13571 test -z "$ac_c_werror_flag" ||
13572 test ! -s conftest.err
13573 } && test -s conftest.$ac_objext; then
13574 ac_cv_have_decl_O_NONBLOCK=yes
13575else
13576 echo "$as_me: failed program was:" >&5
13577sed 's/^/| /' conftest.$ac_ext >&5
13578
13579 ac_cv_have_decl_O_NONBLOCK=no
13580fi
13581
13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13583fi
13584{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_O_NONBLOCK" >&5
13585echo "${ECHO_T}$ac_cv_have_decl_O_NONBLOCK" >&6; }
13586if test $ac_cv_have_decl_O_NONBLOCK = yes; then
13587
13588cat >>confdefs.h <<_ACEOF
13589#define HAVE_DECL_O_NONBLOCK 1
13590_ACEOF
13591
13592
13593else
13594 cat >>confdefs.h <<_ACEOF
13595#define HAVE_DECL_O_NONBLOCK 0
13596_ACEOF
13597
13598
13599fi
13600
13601
13602
13603{ echo "$as_me:$LINENO: checking whether writev is declared" >&5
13604echo $ECHO_N "checking whether writev is declared... $ECHO_C" >&6; }
13605if test "${ac_cv_have_decl_writev+set}" = set; then
13606 echo $ECHO_N "(cached) $ECHO_C" >&6
13607else
13608 cat >conftest.$ac_ext <<_ACEOF
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614
13615#include <sys/types.h>
13616#include <sys/uio.h>
13617#include <unistd.h>
13618
13619
13620int
13621main ()
13622{
13623#ifndef writev
13624 (void) writev;
13625#endif
13626
13627 ;
13628 return 0;
13629}
13630_ACEOF
13631rm -f conftest.$ac_objext
13632if { (ac_try="$ac_compile"
13633case "(($ac_try" in
13634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13635 *) ac_try_echo=$ac_try;;
13636esac
13637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13638 (eval "$ac_compile") 2>conftest.er1
13639 ac_status=$?
13640 grep -v '^ *+' conftest.er1 >conftest.err
13641 rm -f conftest.er1
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); } && {
13645 test -z "$ac_c_werror_flag" ||
13646 test ! -s conftest.err
13647 } && test -s conftest.$ac_objext; then
13648 ac_cv_have_decl_writev=yes
13649else
13650 echo "$as_me: failed program was:" >&5
13651sed 's/^/| /' conftest.$ac_ext >&5
13652
13653 ac_cv_have_decl_writev=no
13654fi
13655
13656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13657fi
13658{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_writev" >&5
13659echo "${ECHO_T}$ac_cv_have_decl_writev" >&6; }
13660if test $ac_cv_have_decl_writev = yes; then
13661
13662cat >>confdefs.h <<_ACEOF
13663#define HAVE_DECL_WRITEV 1
13664_ACEOF
13665
13666
13667else
13668 cat >>confdefs.h <<_ACEOF
13669#define HAVE_DECL_WRITEV 0
13670_ACEOF
13671
13672
13673fi
13674
13675
13676
13123 13677
13124for ac_func in setresuid 13678for ac_func in setresuid
13125do 13679do
@@ -15000,440 +15554,6 @@ _ACEOF
15000fi 15554fi
15001 15555
15002 15556
15003# Check for PAM libs
15004PAM_MSG="no"
15005
15006# Check whether --with-pam was given.
15007if test "${with_pam+set}" = set; then
15008 withval=$with_pam;
15009 if test "x$withval" != "xno" ; then
15010 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
15011 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
15012 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
15013echo "$as_me: error: PAM headers not found" >&2;}
15014 { (exit 1); exit 1; }; }
15015 fi
15016
15017
15018{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15019echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15020if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15021 echo $ECHO_N "(cached) $ECHO_C" >&6
15022else
15023 ac_check_lib_save_LIBS=$LIBS
15024LIBS="-ldl $LIBS"
15025cat >conftest.$ac_ext <<_ACEOF
15026/* confdefs.h. */
15027_ACEOF
15028cat confdefs.h >>conftest.$ac_ext
15029cat >>conftest.$ac_ext <<_ACEOF
15030/* end confdefs.h. */
15031
15032/* Override any GCC internal prototype to avoid an error.
15033 Use char because int might match the return type of a GCC
15034 builtin and then its argument prototype would still apply. */
15035#ifdef __cplusplus
15036extern "C"
15037#endif
15038char dlopen ();
15039int
15040main ()
15041{
15042return dlopen ();
15043 ;
15044 return 0;
15045}
15046_ACEOF
15047rm -f conftest.$ac_objext conftest$ac_exeext
15048if { (ac_try="$ac_link"
15049case "(($ac_try" in
15050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15051 *) ac_try_echo=$ac_try;;
15052esac
15053eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15054 (eval "$ac_link") 2>conftest.er1
15055 ac_status=$?
15056 grep -v '^ *+' conftest.er1 >conftest.err
15057 rm -f conftest.er1
15058 cat conftest.err >&5
15059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15060 (exit $ac_status); } && {
15061 test -z "$ac_c_werror_flag" ||
15062 test ! -s conftest.err
15063 } && test -s conftest$ac_exeext &&
15064 $as_test_x conftest$ac_exeext; then
15065 ac_cv_lib_dl_dlopen=yes
15066else
15067 echo "$as_me: failed program was:" >&5
15068sed 's/^/| /' conftest.$ac_ext >&5
15069
15070 ac_cv_lib_dl_dlopen=no
15071fi
15072
15073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15074 conftest$ac_exeext conftest.$ac_ext
15075LIBS=$ac_check_lib_save_LIBS
15076fi
15077{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15079if test $ac_cv_lib_dl_dlopen = yes; then
15080 cat >>confdefs.h <<_ACEOF
15081#define HAVE_LIBDL 1
15082_ACEOF
15083
15084 LIBS="-ldl $LIBS"
15085
15086fi
15087
15088
15089{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
15090echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
15091if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15093else
15094 ac_check_lib_save_LIBS=$LIBS
15095LIBS="-lpam $LIBS"
15096cat >conftest.$ac_ext <<_ACEOF
15097/* confdefs.h. */
15098_ACEOF
15099cat confdefs.h >>conftest.$ac_ext
15100cat >>conftest.$ac_ext <<_ACEOF
15101/* end confdefs.h. */
15102
15103/* Override any GCC internal prototype to avoid an error.
15104 Use char because int might match the return type of a GCC
15105 builtin and then its argument prototype would still apply. */
15106#ifdef __cplusplus
15107extern "C"
15108#endif
15109char pam_set_item ();
15110int
15111main ()
15112{
15113return pam_set_item ();
15114 ;
15115 return 0;
15116}
15117_ACEOF
15118rm -f conftest.$ac_objext conftest$ac_exeext
15119if { (ac_try="$ac_link"
15120case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123esac
15124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_link") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest$ac_exeext &&
15135 $as_test_x conftest$ac_exeext; then
15136 ac_cv_lib_pam_pam_set_item=yes
15137else
15138 echo "$as_me: failed program was:" >&5
15139sed 's/^/| /' conftest.$ac_ext >&5
15140
15141 ac_cv_lib_pam_pam_set_item=no
15142fi
15143
15144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15145 conftest$ac_exeext conftest.$ac_ext
15146LIBS=$ac_check_lib_save_LIBS
15147fi
15148{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
15149echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
15150if test $ac_cv_lib_pam_pam_set_item = yes; then
15151 cat >>confdefs.h <<_ACEOF
15152#define HAVE_LIBPAM 1
15153_ACEOF
15154
15155 LIBS="-lpam $LIBS"
15156
15157else
15158 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
15159echo "$as_me: error: *** libpam missing" >&2;}
15160 { (exit 1); exit 1; }; }
15161fi
15162
15163
15164for ac_func in pam_getenvlist
15165do
15166as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15167{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15168echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15169if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15170 echo $ECHO_N "(cached) $ECHO_C" >&6
15171else
15172 cat >conftest.$ac_ext <<_ACEOF
15173/* confdefs.h. */
15174_ACEOF
15175cat confdefs.h >>conftest.$ac_ext
15176cat >>conftest.$ac_ext <<_ACEOF
15177/* end confdefs.h. */
15178/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15180#define $ac_func innocuous_$ac_func
15181
15182/* System header to define __stub macros and hopefully few prototypes,
15183 which can conflict with char $ac_func (); below.
15184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15185 <limits.h> exists even on freestanding compilers. */
15186
15187#ifdef __STDC__
15188# include <limits.h>
15189#else
15190# include <assert.h>
15191#endif
15192
15193#undef $ac_func
15194
15195/* Override any GCC internal prototype to avoid an error.
15196 Use char because int might match the return type of a GCC
15197 builtin and then its argument prototype would still apply. */
15198#ifdef __cplusplus
15199extern "C"
15200#endif
15201char $ac_func ();
15202/* The GNU C library defines this for functions which it implements
15203 to always fail with ENOSYS. Some functions are actually named
15204 something starting with __ and the normal name is an alias. */
15205#if defined __stub_$ac_func || defined __stub___$ac_func
15206choke me
15207#endif
15208
15209int
15210main ()
15211{
15212return $ac_func ();
15213 ;
15214 return 0;
15215}
15216_ACEOF
15217rm -f conftest.$ac_objext conftest$ac_exeext
15218if { (ac_try="$ac_link"
15219case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15222esac
15223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15225 ac_status=$?
15226 grep -v '^ *+' conftest.er1 >conftest.err
15227 rm -f conftest.er1
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 eval "$as_ac_var=yes"
15236else
15237 echo "$as_me: failed program was:" >&5
15238sed 's/^/| /' conftest.$ac_ext >&5
15239
15240 eval "$as_ac_var=no"
15241fi
15242
15243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245fi
15246ac_res=`eval echo '${'$as_ac_var'}'`
15247 { echo "$as_me:$LINENO: result: $ac_res" >&5
15248echo "${ECHO_T}$ac_res" >&6; }
15249if test `eval echo '${'$as_ac_var'}'` = yes; then
15250 cat >>confdefs.h <<_ACEOF
15251#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15252_ACEOF
15253
15254fi
15255done
15256
15257
15258for ac_func in pam_putenv
15259do
15260as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15261{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15262echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15263if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15265else
15266 cat >conftest.$ac_ext <<_ACEOF
15267/* confdefs.h. */
15268_ACEOF
15269cat confdefs.h >>conftest.$ac_ext
15270cat >>conftest.$ac_ext <<_ACEOF
15271/* end confdefs.h. */
15272/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15274#define $ac_func innocuous_$ac_func
15275
15276/* System header to define __stub macros and hopefully few prototypes,
15277 which can conflict with char $ac_func (); below.
15278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15279 <limits.h> exists even on freestanding compilers. */
15280
15281#ifdef __STDC__
15282# include <limits.h>
15283#else
15284# include <assert.h>
15285#endif
15286
15287#undef $ac_func
15288
15289/* Override any GCC internal prototype to avoid an error.
15290 Use char because int might match the return type of a GCC
15291 builtin and then its argument prototype would still apply. */
15292#ifdef __cplusplus
15293extern "C"
15294#endif
15295char $ac_func ();
15296/* The GNU C library defines this for functions which it implements
15297 to always fail with ENOSYS. Some functions are actually named
15298 something starting with __ and the normal name is an alias. */
15299#if defined __stub_$ac_func || defined __stub___$ac_func
15300choke me
15301#endif
15302
15303int
15304main ()
15305{
15306return $ac_func ();
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311rm -f conftest.$ac_objext conftest$ac_exeext
15312if { (ac_try="$ac_link"
15313case "(($ac_try" in
15314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15315 *) ac_try_echo=$ac_try;;
15316esac
15317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15318 (eval "$ac_link") 2>conftest.er1
15319 ac_status=$?
15320 grep -v '^ *+' conftest.er1 >conftest.err
15321 rm -f conftest.er1
15322 cat conftest.err >&5
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); } && {
15325 test -z "$ac_c_werror_flag" ||
15326 test ! -s conftest.err
15327 } && test -s conftest$ac_exeext &&
15328 $as_test_x conftest$ac_exeext; then
15329 eval "$as_ac_var=yes"
15330else
15331 echo "$as_me: failed program was:" >&5
15332sed 's/^/| /' conftest.$ac_ext >&5
15333
15334 eval "$as_ac_var=no"
15335fi
15336
15337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15338 conftest$ac_exeext conftest.$ac_ext
15339fi
15340ac_res=`eval echo '${'$as_ac_var'}'`
15341 { echo "$as_me:$LINENO: result: $ac_res" >&5
15342echo "${ECHO_T}$ac_res" >&6; }
15343if test `eval echo '${'$as_ac_var'}'` = yes; then
15344 cat >>confdefs.h <<_ACEOF
15345#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15346_ACEOF
15347
15348fi
15349done
15350
15351
15352 PAM_MSG="yes"
15353
15354
15355cat >>confdefs.h <<\_ACEOF
15356#define USE_PAM 1
15357_ACEOF
15358
15359 if test $ac_cv_lib_dl_dlopen = yes; then
15360 LIBPAM="-lpam -ldl"
15361 else
15362 LIBPAM="-lpam"
15363 fi
15364
15365 fi
15366
15367
15368fi
15369
15370
15371# Check for older PAM
15372if test "x$PAM_MSG" = "xyes" ; then
15373 # Check PAM strerror arguments (old PAM)
15374 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
15375echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
15376 cat >conftest.$ac_ext <<_ACEOF
15377/* confdefs.h. */
15378_ACEOF
15379cat confdefs.h >>conftest.$ac_ext
15380cat >>conftest.$ac_ext <<_ACEOF
15381/* end confdefs.h. */
15382
15383#include <stdlib.h>
15384#if defined(HAVE_SECURITY_PAM_APPL_H)
15385#include <security/pam_appl.h>
15386#elif defined (HAVE_PAM_PAM_APPL_H)
15387#include <pam/pam_appl.h>
15388#endif
15389
15390int
15391main ()
15392{
15393(void)pam_strerror((pam_handle_t *)NULL, -1);
15394 ;
15395 return 0;
15396}
15397_ACEOF
15398rm -f conftest.$ac_objext
15399if { (ac_try="$ac_compile"
15400case "(($ac_try" in
15401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15402 *) ac_try_echo=$ac_try;;
15403esac
15404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15405 (eval "$ac_compile") 2>conftest.er1
15406 ac_status=$?
15407 grep -v '^ *+' conftest.er1 >conftest.err
15408 rm -f conftest.er1
15409 cat conftest.err >&5
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } && {
15412 test -z "$ac_c_werror_flag" ||
15413 test ! -s conftest.err
15414 } && test -s conftest.$ac_objext; then
15415 { echo "$as_me:$LINENO: result: no" >&5
15416echo "${ECHO_T}no" >&6; }
15417else
15418 echo "$as_me: failed program was:" >&5
15419sed 's/^/| /' conftest.$ac_ext >&5
15420
15421
15422
15423cat >>confdefs.h <<\_ACEOF
15424#define HAVE_OLD_PAM 1
15425_ACEOF
15426
15427 { echo "$as_me:$LINENO: result: yes" >&5
15428echo "${ECHO_T}yes" >&6; }
15429 PAM_MSG="yes (old library)"
15430
15431
15432fi
15433
15434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435fi
15436
15437# Search for OpenSSL 15557# Search for OpenSSL
15438saved_CPPFLAGS="$CPPFLAGS" 15558saved_CPPFLAGS="$CPPFLAGS"
15439saved_LDFLAGS="$LDFLAGS" 15559saved_LDFLAGS="$LDFLAGS"
@@ -15752,6 +15872,17 @@ fi
15752 15872
15753 15873
15754 15874
15875
15876# Check whether --with-openssl-header-check was given.
15877if test "${with_openssl_header_check+set}" = set; then
15878 withval=$with_openssl_header_check; if test "x$withval" = "xno" ; then
15879 openssl_check_nonfatal=1
15880 fi
15881
15882
15883fi
15884
15885
15755# Sanity check OpenSSL headers 15886# Sanity check OpenSSL headers
15756{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5 15887{ echo "$as_me:$LINENO: checking whether OpenSSL's headers match the library" >&5
15757echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; } 15888echo $ECHO_N "checking whether OpenSSL's headers match the library... $ECHO_C" >&6; }
@@ -15807,13 +15938,28 @@ sed 's/^/| /' conftest.$ac_ext >&5
15807 15938
15808 { echo "$as_me:$LINENO: result: no" >&5 15939 { echo "$as_me:$LINENO: result: no" >&5
15809echo "${ECHO_T}no" >&6; } 15940echo "${ECHO_T}no" >&6; }
15810 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your library. 15941 if test "x$openssl_check_nonfatal" = "x"; then
15811Check config.log for details. 15942 { { echo "$as_me:$LINENO: error: Your OpenSSL headers do not match your
15943library. Check config.log for details.
15944If you are sure your installation is consistent, you can disable the check
15945by running \"./configure --without-openssl-header-check\".
15946Also see contrib/findssl.sh for help identifying header/library mismatches.
15947" >&5
15948echo "$as_me: error: Your OpenSSL headers do not match your
15949library. Check config.log for details.
15950If you are sure your installation is consistent, you can disable the check
15951by running \"./configure --without-openssl-header-check\".
15952Also see contrib/findssl.sh for help identifying header/library mismatches.
15953" >&2;}
15954 { (exit 1); exit 1; }; }
15955 else
15956 { echo "$as_me:$LINENO: WARNING: Your OpenSSL headers do not match your
15957library. Check config.log for details.
15812Also see contrib/findssl.sh for help identifying header/library mismatches." >&5 15958Also see contrib/findssl.sh for help identifying header/library mismatches." >&5
15813echo "$as_me: error: Your OpenSSL headers do not match your library. 15959echo "$as_me: WARNING: Your OpenSSL headers do not match your
15814Check config.log for details. 15960library. Check config.log for details.
15815Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;} 15961Also see contrib/findssl.sh for help identifying header/library mismatches." >&2;}
15816 { (exit 1); exit 1; }; } 15962 fi
15817 15963
15818fi 15964fi
15819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
@@ -15821,6 +15967,170 @@ fi
15821 15967
15822 15968
15823 15969
15970{ echo "$as_me:$LINENO: checking if programs using OpenSSL functions will link" >&5
15971echo $ECHO_N "checking if programs using OpenSSL functions will link... $ECHO_C" >&6; }
15972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978
15979#include <openssl/evp.h>
15980int main(void) { SSLeay_add_all_algorithms(); }
15981
15982_ACEOF
15983rm -f conftest.$ac_objext conftest$ac_exeext
15984if { (ac_try="$ac_link"
15985case "(($ac_try" in
15986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15987 *) ac_try_echo=$ac_try;;
15988esac
15989eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15990 (eval "$ac_link") 2>conftest.er1
15991 ac_status=$?
15992 grep -v '^ *+' conftest.er1 >conftest.err
15993 rm -f conftest.er1
15994 cat conftest.err >&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); } && {
15997 test -z "$ac_c_werror_flag" ||
15998 test ! -s conftest.err
15999 } && test -s conftest$ac_exeext &&
16000 $as_test_x conftest$ac_exeext; then
16001
16002 { echo "$as_me:$LINENO: result: yes" >&5
16003echo "${ECHO_T}yes" >&6; }
16004
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009
16010 { echo "$as_me:$LINENO: result: no" >&5
16011echo "${ECHO_T}no" >&6; }
16012 saved_LIBS="$LIBS"
16013 LIBS="$LIBS -ldl"
16014 { echo "$as_me:$LINENO: checking if programs using OpenSSL need -ldl" >&5
16015echo $ECHO_N "checking if programs using OpenSSL need -ldl... $ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022
16023#include <openssl/evp.h>
16024int main(void) { SSLeay_add_all_algorithms(); }
16025
16026_ACEOF
16027rm -f conftest.$ac_objext conftest$ac_exeext
16028if { (ac_try="$ac_link"
16029case "(($ac_try" in
16030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16031 *) ac_try_echo=$ac_try;;
16032esac
16033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16034 (eval "$ac_link") 2>conftest.er1
16035 ac_status=$?
16036 grep -v '^ *+' conftest.er1 >conftest.err
16037 rm -f conftest.er1
16038 cat conftest.err >&5
16039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040 (exit $ac_status); } && {
16041 test -z "$ac_c_werror_flag" ||
16042 test ! -s conftest.err
16043 } && test -s conftest$ac_exeext &&
16044 $as_test_x conftest$ac_exeext; then
16045
16046 { echo "$as_me:$LINENO: result: yes" >&5
16047echo "${ECHO_T}yes" >&6; }
16048
16049else
16050 echo "$as_me: failed program was:" >&5
16051sed 's/^/| /' conftest.$ac_ext >&5
16052
16053
16054 { echo "$as_me:$LINENO: result: no" >&5
16055echo "${ECHO_T}no" >&6; }
16056 LIBS="$saved_LIBS"
16057
16058
16059fi
16060
16061rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16062 conftest$ac_exeext conftest.$ac_ext
16063
16064
16065fi
16066
16067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16068 conftest$ac_exeext conftest.$ac_ext
16069
16070
16071# Check whether --with-ssl-engine was given.
16072if test "${with_ssl_engine+set}" = set; then
16073 withval=$with_ssl_engine; if test "x$withval" != "xno" ; then
16074 { echo "$as_me:$LINENO: checking for OpenSSL ENGINE support" >&5
16075echo $ECHO_N "checking for OpenSSL ENGINE support... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082 #include <openssl/engine.h>
16083int
16084main ()
16085{
16086
16087ENGINE_load_builtin_engines();ENGINE_register_all_complete();
16088
16089 ;
16090 return 0;
16091}
16092_ACEOF
16093rm -f conftest.$ac_objext
16094if { (ac_try="$ac_compile"
16095case "(($ac_try" in
16096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16097 *) ac_try_echo=$ac_try;;
16098esac
16099eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16100 (eval "$ac_compile") 2>conftest.er1
16101 ac_status=$?
16102 grep -v '^ *+' conftest.er1 >conftest.err
16103 rm -f conftest.er1
16104 cat conftest.err >&5
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); } && {
16107 test -z "$ac_c_werror_flag" ||
16108 test ! -s conftest.err
16109 } && test -s conftest.$ac_objext; then
16110 { echo "$as_me:$LINENO: result: yes" >&5
16111echo "${ECHO_T}yes" >&6; }
16112
16113cat >>confdefs.h <<\_ACEOF
16114#define USE_OPENSSL_ENGINE 1
16115_ACEOF
16116
16117
16118else
16119 echo "$as_me: failed program was:" >&5
16120sed 's/^/| /' conftest.$ac_ext >&5
16121
16122 { { echo "$as_me:$LINENO: error: OpenSSL ENGINE support not found" >&5
16123echo "$as_me: error: OpenSSL ENGINE support not found" >&2;}
16124 { (exit 1); exit 1; }; }
16125
16126fi
16127
16128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16129 fi
16130
16131fi
16132
16133
15824# Check for OpenSSL without EVP_aes_{192,256}_cbc 16134# Check for OpenSSL without EVP_aes_{192,256}_cbc
15825{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5 16135{ echo "$as_me:$LINENO: checking whether OpenSSL has crippled AES support" >&5
15826echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; } 16136echo $ECHO_N "checking whether OpenSSL has crippled AES support... $ECHO_C" >&6; }
@@ -15836,14 +16146,14 @@ cat >>conftest.$ac_ext <<_ACEOF
15836int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);} 16146int main(void) { exit(EVP_aes_192_cbc() == NULL || EVP_aes_256_cbc() == NULL);}
15837 16147
15838_ACEOF 16148_ACEOF
15839rm -f conftest.$ac_objext 16149rm -f conftest.$ac_objext conftest$ac_exeext
15840if { (ac_try="$ac_compile" 16150if { (ac_try="$ac_link"
15841case "(($ac_try" in 16151case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 16152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;; 16153 *) ac_try_echo=$ac_try;;
15844esac 16154esac
15845eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 16155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_compile") 2>conftest.er1 16156 (eval "$ac_link") 2>conftest.er1
15847 ac_status=$? 16157 ac_status=$?
15848 grep -v '^ *+' conftest.er1 >conftest.err 16158 grep -v '^ *+' conftest.er1 >conftest.err
15849 rm -f conftest.er1 16159 rm -f conftest.er1
@@ -15852,7 +16162,8 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15852 (exit $ac_status); } && { 16162 (exit $ac_status); } && {
15853 test -z "$ac_c_werror_flag" || 16163 test -z "$ac_c_werror_flag" ||
15854 test ! -s conftest.err 16164 test ! -s conftest.err
15855 } && test -s conftest.$ac_objext; then 16165 } && test -s conftest$ac_exeext &&
16166 $as_test_x conftest$ac_exeext; then
15856 16167
15857 { echo "$as_me:$LINENO: result: no" >&5 16168 { echo "$as_me:$LINENO: result: no" >&5
15858echo "${ECHO_T}no" >&6; } 16169echo "${ECHO_T}no" >&6; }
@@ -15873,7 +16184,8 @@ _ACEOF
15873 16184
15874fi 16185fi
15875 16186
15876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
15877 16189
15878# Some systems want crypt() from libcrypt, *not* the version in OpenSSL, 16190# Some systems want crypt() from libcrypt, *not* the version in OpenSSL,
15879# because the system crypt() is more featureful. 16191# because the system crypt() is more featureful.
@@ -16021,6 +16333,103 @@ fi
16021 16333
16022fi 16334fi
16023 16335
16336# Search for SHA256 support in libc and/or OpenSSL
16337
16338
16339for ac_func in SHA256_Update EVP_sha256
16340do
16341as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16342{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16343echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16344if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16345 echo $ECHO_N "(cached) $ECHO_C" >&6
16346else
16347 cat >conftest.$ac_ext <<_ACEOF
16348/* confdefs.h. */
16349_ACEOF
16350cat confdefs.h >>conftest.$ac_ext
16351cat >>conftest.$ac_ext <<_ACEOF
16352/* end confdefs.h. */
16353/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16355#define $ac_func innocuous_$ac_func
16356
16357/* System header to define __stub macros and hopefully few prototypes,
16358 which can conflict with char $ac_func (); below.
16359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16360 <limits.h> exists even on freestanding compilers. */
16361
16362#ifdef __STDC__
16363# include <limits.h>
16364#else
16365# include <assert.h>
16366#endif
16367
16368#undef $ac_func
16369
16370/* Override any GCC internal prototype to avoid an error.
16371 Use char because int might match the return type of a GCC
16372 builtin and then its argument prototype would still apply. */
16373#ifdef __cplusplus
16374extern "C"
16375#endif
16376char $ac_func ();
16377/* The GNU C library defines this for functions which it implements
16378 to always fail with ENOSYS. Some functions are actually named
16379 something starting with __ and the normal name is an alias. */
16380#if defined __stub_$ac_func || defined __stub___$ac_func
16381choke me
16382#endif
16383
16384int
16385main ()
16386{
16387return $ac_func ();
16388 ;
16389 return 0;
16390}
16391_ACEOF
16392rm -f conftest.$ac_objext conftest$ac_exeext
16393if { (ac_try="$ac_link"
16394case "(($ac_try" in
16395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16396 *) ac_try_echo=$ac_try;;
16397esac
16398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16399 (eval "$ac_link") 2>conftest.er1
16400 ac_status=$?
16401 grep -v '^ *+' conftest.er1 >conftest.err
16402 rm -f conftest.er1
16403 cat conftest.err >&5
16404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16405 (exit $ac_status); } && {
16406 test -z "$ac_c_werror_flag" ||
16407 test ! -s conftest.err
16408 } && test -s conftest$ac_exeext &&
16409 $as_test_x conftest$ac_exeext; then
16410 eval "$as_ac_var=yes"
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 eval "$as_ac_var=no"
16416fi
16417
16418rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420fi
16421ac_res=`eval echo '${'$as_ac_var'}'`
16422 { echo "$as_me:$LINENO: result: $ac_res" >&5
16423echo "${ECHO_T}$ac_res" >&6; }
16424if test `eval echo '${'$as_ac_var'}'` = yes; then
16425 cat >>confdefs.h <<_ACEOF
16426#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16427_ACEOF
16428
16429fi
16430done
16431
16432
16024 16433
16025{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5 16434{ echo "$as_me:$LINENO: checking for ia_openinfo in -liaf" >&5
16026echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; } 16435echo $ECHO_N "checking for ia_openinfo in -liaf... $ECHO_C" >&6; }
@@ -16164,6 +16573,448 @@ fi
16164 16573
16165 16574
16166 16575
16576# Check for PAM libs
16577PAM_MSG="no"
16578
16579# Check whether --with-pam was given.
16580if test "${with_pam+set}" = set; then
16581 withval=$with_pam;
16582 if test "x$withval" != "xno" ; then
16583 if test "x$ac_cv_header_security_pam_appl_h" != "xyes" && \
16584 test "x$ac_cv_header_pam_pam_appl_h" != "xyes" ; then
16585 { { echo "$as_me:$LINENO: error: PAM headers not found" >&5
16586echo "$as_me: error: PAM headers not found" >&2;}
16587 { (exit 1); exit 1; }; }
16588 fi
16589
16590 saved_LIBS="$LIBS"
16591
16592{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16593echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
16594if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16596else
16597 ac_check_lib_save_LIBS=$LIBS
16598LIBS="-ldl $LIBS"
16599cat >conftest.$ac_ext <<_ACEOF
16600/* confdefs.h. */
16601_ACEOF
16602cat confdefs.h >>conftest.$ac_ext
16603cat >>conftest.$ac_ext <<_ACEOF
16604/* end confdefs.h. */
16605
16606/* Override any GCC internal prototype to avoid an error.
16607 Use char because int might match the return type of a GCC
16608 builtin and then its argument prototype would still apply. */
16609#ifdef __cplusplus
16610extern "C"
16611#endif
16612char dlopen ();
16613int
16614main ()
16615{
16616return dlopen ();
16617 ;
16618 return 0;
16619}
16620_ACEOF
16621rm -f conftest.$ac_objext conftest$ac_exeext
16622if { (ac_try="$ac_link"
16623case "(($ac_try" in
16624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16625 *) ac_try_echo=$ac_try;;
16626esac
16627eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16628 (eval "$ac_link") 2>conftest.er1
16629 ac_status=$?
16630 grep -v '^ *+' conftest.er1 >conftest.err
16631 rm -f conftest.er1
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } && {
16635 test -z "$ac_c_werror_flag" ||
16636 test ! -s conftest.err
16637 } && test -s conftest$ac_exeext &&
16638 $as_test_x conftest$ac_exeext; then
16639 ac_cv_lib_dl_dlopen=yes
16640else
16641 echo "$as_me: failed program was:" >&5
16642sed 's/^/| /' conftest.$ac_ext >&5
16643
16644 ac_cv_lib_dl_dlopen=no
16645fi
16646
16647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16648 conftest$ac_exeext conftest.$ac_ext
16649LIBS=$ac_check_lib_save_LIBS
16650fi
16651{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16652echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
16653if test $ac_cv_lib_dl_dlopen = yes; then
16654 cat >>confdefs.h <<_ACEOF
16655#define HAVE_LIBDL 1
16656_ACEOF
16657
16658 LIBS="-ldl $LIBS"
16659
16660fi
16661
16662
16663{ echo "$as_me:$LINENO: checking for pam_set_item in -lpam" >&5
16664echo $ECHO_N "checking for pam_set_item in -lpam... $ECHO_C" >&6; }
16665if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then
16666 echo $ECHO_N "(cached) $ECHO_C" >&6
16667else
16668 ac_check_lib_save_LIBS=$LIBS
16669LIBS="-lpam $LIBS"
16670cat >conftest.$ac_ext <<_ACEOF
16671/* confdefs.h. */
16672_ACEOF
16673cat confdefs.h >>conftest.$ac_ext
16674cat >>conftest.$ac_ext <<_ACEOF
16675/* end confdefs.h. */
16676
16677/* Override any GCC internal prototype to avoid an error.
16678 Use char because int might match the return type of a GCC
16679 builtin and then its argument prototype would still apply. */
16680#ifdef __cplusplus
16681extern "C"
16682#endif
16683char pam_set_item ();
16684int
16685main ()
16686{
16687return pam_set_item ();
16688 ;
16689 return 0;
16690}
16691_ACEOF
16692rm -f conftest.$ac_objext conftest$ac_exeext
16693if { (ac_try="$ac_link"
16694case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16697esac
16698eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_link") 2>conftest.er1
16700 ac_status=$?
16701 grep -v '^ *+' conftest.er1 >conftest.err
16702 rm -f conftest.er1
16703 cat conftest.err >&5
16704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && {
16706 test -z "$ac_c_werror_flag" ||
16707 test ! -s conftest.err
16708 } && test -s conftest$ac_exeext &&
16709 $as_test_x conftest$ac_exeext; then
16710 ac_cv_lib_pam_pam_set_item=yes
16711else
16712 echo "$as_me: failed program was:" >&5
16713sed 's/^/| /' conftest.$ac_ext >&5
16714
16715 ac_cv_lib_pam_pam_set_item=no
16716fi
16717
16718rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16719 conftest$ac_exeext conftest.$ac_ext
16720LIBS=$ac_check_lib_save_LIBS
16721fi
16722{ echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_set_item" >&5
16723echo "${ECHO_T}$ac_cv_lib_pam_pam_set_item" >&6; }
16724if test $ac_cv_lib_pam_pam_set_item = yes; then
16725 cat >>confdefs.h <<_ACEOF
16726#define HAVE_LIBPAM 1
16727_ACEOF
16728
16729 LIBS="-lpam $LIBS"
16730
16731else
16732 { { echo "$as_me:$LINENO: error: *** libpam missing" >&5
16733echo "$as_me: error: *** libpam missing" >&2;}
16734 { (exit 1); exit 1; }; }
16735fi
16736
16737
16738for ac_func in pam_getenvlist
16739do
16740as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16741{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16742echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16743if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16745else
16746 cat >conftest.$ac_ext <<_ACEOF
16747/* confdefs.h. */
16748_ACEOF
16749cat confdefs.h >>conftest.$ac_ext
16750cat >>conftest.$ac_ext <<_ACEOF
16751/* end confdefs.h. */
16752/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16753 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16754#define $ac_func innocuous_$ac_func
16755
16756/* System header to define __stub macros and hopefully few prototypes,
16757 which can conflict with char $ac_func (); below.
16758 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16759 <limits.h> exists even on freestanding compilers. */
16760
16761#ifdef __STDC__
16762# include <limits.h>
16763#else
16764# include <assert.h>
16765#endif
16766
16767#undef $ac_func
16768
16769/* Override any GCC internal prototype to avoid an error.
16770 Use char because int might match the return type of a GCC
16771 builtin and then its argument prototype would still apply. */
16772#ifdef __cplusplus
16773extern "C"
16774#endif
16775char $ac_func ();
16776/* The GNU C library defines this for functions which it implements
16777 to always fail with ENOSYS. Some functions are actually named
16778 something starting with __ and the normal name is an alias. */
16779#if defined __stub_$ac_func || defined __stub___$ac_func
16780choke me
16781#endif
16782
16783int
16784main ()
16785{
16786return $ac_func ();
16787 ;
16788 return 0;
16789}
16790_ACEOF
16791rm -f conftest.$ac_objext conftest$ac_exeext
16792if { (ac_try="$ac_link"
16793case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16796esac
16797eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_link") 2>conftest.er1
16799 ac_status=$?
16800 grep -v '^ *+' conftest.er1 >conftest.err
16801 rm -f conftest.er1
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } && {
16805 test -z "$ac_c_werror_flag" ||
16806 test ! -s conftest.err
16807 } && test -s conftest$ac_exeext &&
16808 $as_test_x conftest$ac_exeext; then
16809 eval "$as_ac_var=yes"
16810else
16811 echo "$as_me: failed program was:" >&5
16812sed 's/^/| /' conftest.$ac_ext >&5
16813
16814 eval "$as_ac_var=no"
16815fi
16816
16817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16818 conftest$ac_exeext conftest.$ac_ext
16819fi
16820ac_res=`eval echo '${'$as_ac_var'}'`
16821 { echo "$as_me:$LINENO: result: $ac_res" >&5
16822echo "${ECHO_T}$ac_res" >&6; }
16823if test `eval echo '${'$as_ac_var'}'` = yes; then
16824 cat >>confdefs.h <<_ACEOF
16825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16826_ACEOF
16827
16828fi
16829done
16830
16831
16832for ac_func in pam_putenv
16833do
16834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16835{ echo "$as_me:$LINENO: checking for $ac_func" >&5
16836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16837if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16838 echo $ECHO_N "(cached) $ECHO_C" >&6
16839else
16840 cat >conftest.$ac_ext <<_ACEOF
16841/* confdefs.h. */
16842_ACEOF
16843cat confdefs.h >>conftest.$ac_ext
16844cat >>conftest.$ac_ext <<_ACEOF
16845/* end confdefs.h. */
16846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16848#define $ac_func innocuous_$ac_func
16849
16850/* System header to define __stub macros and hopefully few prototypes,
16851 which can conflict with char $ac_func (); below.
16852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16853 <limits.h> exists even on freestanding compilers. */
16854
16855#ifdef __STDC__
16856# include <limits.h>
16857#else
16858# include <assert.h>
16859#endif
16860
16861#undef $ac_func
16862
16863/* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16866#ifdef __cplusplus
16867extern "C"
16868#endif
16869char $ac_func ();
16870/* The GNU C library defines this for functions which it implements
16871 to always fail with ENOSYS. Some functions are actually named
16872 something starting with __ and the normal name is an alias. */
16873#if defined __stub_$ac_func || defined __stub___$ac_func
16874choke me
16875#endif
16876
16877int
16878main ()
16879{
16880return $ac_func ();
16881 ;
16882 return 0;
16883}
16884_ACEOF
16885rm -f conftest.$ac_objext conftest$ac_exeext
16886if { (ac_try="$ac_link"
16887case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16890esac
16891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_link") 2>conftest.er1
16893 ac_status=$?
16894 grep -v '^ *+' conftest.er1 >conftest.err
16895 rm -f conftest.er1
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } && {
16899 test -z "$ac_c_werror_flag" ||
16900 test ! -s conftest.err
16901 } && test -s conftest$ac_exeext &&
16902 $as_test_x conftest$ac_exeext; then
16903 eval "$as_ac_var=yes"
16904else
16905 echo "$as_me: failed program was:" >&5
16906sed 's/^/| /' conftest.$ac_ext >&5
16907
16908 eval "$as_ac_var=no"
16909fi
16910
16911rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16912 conftest$ac_exeext conftest.$ac_ext
16913fi
16914ac_res=`eval echo '${'$as_ac_var'}'`
16915 { echo "$as_me:$LINENO: result: $ac_res" >&5
16916echo "${ECHO_T}$ac_res" >&6; }
16917if test `eval echo '${'$as_ac_var'}'` = yes; then
16918 cat >>confdefs.h <<_ACEOF
16919#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16920_ACEOF
16921
16922fi
16923done
16924
16925 LIBS="$saved_LIBS"
16926
16927 PAM_MSG="yes"
16928
16929 LIBPAM="-lpam"
16930
16931cat >>confdefs.h <<\_ACEOF
16932#define USE_PAM 1
16933_ACEOF
16934
16935
16936 if test $ac_cv_lib_dl_dlopen = yes; then
16937 case "$LIBS" in
16938 *-ldl*)
16939 # libdl already in LIBS
16940 ;;
16941 *)
16942 LIBPAM="$LIBPAM -ldl"
16943 ;;
16944 esac
16945 fi
16946
16947 fi
16948
16949
16950fi
16951
16952
16953# Check for older PAM
16954if test "x$PAM_MSG" = "xyes" ; then
16955 # Check PAM strerror arguments (old PAM)
16956 { echo "$as_me:$LINENO: checking whether pam_strerror takes only one argument" >&5
16957echo $ECHO_N "checking whether pam_strerror takes only one argument... $ECHO_C" >&6; }
16958 cat >conftest.$ac_ext <<_ACEOF
16959/* confdefs.h. */
16960_ACEOF
16961cat confdefs.h >>conftest.$ac_ext
16962cat >>conftest.$ac_ext <<_ACEOF
16963/* end confdefs.h. */
16964
16965#include <stdlib.h>
16966#if defined(HAVE_SECURITY_PAM_APPL_H)
16967#include <security/pam_appl.h>
16968#elif defined (HAVE_PAM_PAM_APPL_H)
16969#include <pam/pam_appl.h>
16970#endif
16971
16972int
16973main ()
16974{
16975(void)pam_strerror((pam_handle_t *)NULL, -1);
16976 ;
16977 return 0;
16978}
16979_ACEOF
16980rm -f conftest.$ac_objext
16981if { (ac_try="$ac_compile"
16982case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16985esac
16986eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16988 ac_status=$?
16989 grep -v '^ *+' conftest.er1 >conftest.err
16990 rm -f conftest.er1
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && {
16994 test -z "$ac_c_werror_flag" ||
16995 test ! -s conftest.err
16996 } && test -s conftest.$ac_objext; then
16997 { echo "$as_me:$LINENO: result: no" >&5
16998echo "${ECHO_T}no" >&6; }
16999else
17000 echo "$as_me: failed program was:" >&5
17001sed 's/^/| /' conftest.$ac_ext >&5
17002
17003
17004
17005cat >>confdefs.h <<\_ACEOF
17006#define HAVE_OLD_PAM 1
17007_ACEOF
17008
17009 { echo "$as_me:$LINENO: result: yes" >&5
17010echo "${ECHO_T}yes" >&6; }
17011 PAM_MSG="yes (old library)"
17012
17013
17014fi
17015
17016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17017fi
16167 17018
16168# Do we want to force the use of the rand helper? 17019# Do we want to force the use of the rand helper?
16169 17020
@@ -19363,6 +20214,34 @@ cat >>conftest.$ac_ext <<_ACEOF
19363#define __USE_ISOC99 20214#define __USE_ISOC99
19364#include <limits.h> 20215#include <limits.h>
19365#define DATA "conftest.llminmax" 20216#define DATA "conftest.llminmax"
20217#define my_abs(a) ((a) < 0 ? ((a) * -1) : (a))
20218
20219/*
20220 * printf in libc on some platforms (eg old Tru64) does not understand %lld so
20221 * we do this the hard way.
20222 */
20223static int
20224fprint_ll(FILE *f, long long n)
20225{
20226 unsigned int i;
20227 int l[sizeof(long long) * 8];
20228
20229 if (n < 0)
20230 if (fprintf(f, "-") < 0)
20231 return -1;
20232 for (i = 0; n != 0; i++) {
20233 l[i] = my_abs(n % 10);
20234 n /= 10;
20235 }
20236 do {
20237 if (fprintf(f, "%d", l[--i]) < 0)
20238 return -1;
20239 } while (i != 0);
20240 if (fprintf(f, " ") < 0)
20241 return -1;
20242 return 0;
20243}
20244
19366int main(void) { 20245int main(void) {
19367 FILE *f; 20246 FILE *f;
19368 long long i, llmin, llmax = 0; 20247 long long i, llmin, llmax = 0;
@@ -19384,14 +20263,18 @@ int main(void) {
19384 20263
19385 /* Sanity check */ 20264 /* Sanity check */
19386 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax 20265 if (llmin + 1 < llmin || llmin - 1 < llmin || llmax + 1 > llmax
19387 || llmax - 1 > llmax) { 20266 || llmax - 1 > llmax || llmin == llmax || llmin == 0
20267 || llmax == 0 || llmax < LONG_MAX || llmin > LONG_MIN) {
19388 fprintf(f, "unknown unknown\n"); 20268 fprintf(f, "unknown unknown\n");
19389 exit(2); 20269 exit(2);
19390 } 20270 }
19391 20271
19392 if (fprintf(f ,"%lld %lld", llmin, llmax) < 0) 20272 if (fprint_ll(f, llmin) < 0)
19393 exit(3); 20273 exit(3);
19394 20274 if (fprint_ll(f, llmax) < 0)
20275 exit(4);
20276 if (fclose(f) < 0)
20277 exit(5);
19395 exit(0); 20278 exit(0);
19396} 20279}
19397 20280
@@ -19420,17 +20303,6 @@ eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 llong_min=`$AWK '{print $1}' conftest.llminmax` 20303 llong_min=`$AWK '{print $1}' conftest.llminmax`
19421 llong_max=`$AWK '{print $2}' conftest.llminmax` 20304 llong_max=`$AWK '{print $2}' conftest.llminmax`
19422 20305
19423 # snprintf on some Tru64s doesn't understand "%lld"
19424 case "$host" in
19425 alpha-dec-osf*)
19426 if test "x$ac_cv_sizeof_long_long_int" = "x8" &&
19427 test "x$llong_max" = "xld"; then
19428 llong_min="-9223372036854775808"
19429 llong_max="9223372036854775807"
19430 fi
19431 ;;
19432 esac
19433
19434 { echo "$as_me:$LINENO: result: $llong_max" >&5 20306 { echo "$as_me:$LINENO: result: $llong_max" >&5
19435echo "${ECHO_T}$llong_max" >&6; } 20307echo "${ECHO_T}$llong_max" >&6; }
19436 20308
@@ -23593,7 +24465,7 @@ fi
23593 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags` 24465 LIBOPENSC_CFLAGS=`$OPENSC_CONFIG --cflags`
23594 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs` 24466 LIBOPENSC_LIBS=`$OPENSC_CONFIG --libs`
23595 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS" 24467 CPPFLAGS="$CPPFLAGS $LIBOPENSC_CFLAGS"
23596 LDFLAGS="$LDFLAGS $LIBOPENSC_LIBS" 24468 LIBS="$LIBS $LIBOPENSC_LIBS"
23597 cat >>confdefs.h <<\_ACEOF 24469 cat >>confdefs.h <<\_ACEOF
23598#define SMARTCARD 1 24470#define SMARTCARD 1
23599_ACEOF 24471_ACEOF
@@ -24314,37 +25186,24 @@ LIBSELINUX=""
24314# Check whether --with-selinux was given. 25186# Check whether --with-selinux was given.
24315if test "${with_selinux+set}" = set; then 25187if test "${with_selinux+set}" = set; then
24316 withval=$with_selinux; if test "x$withval" != "xno" ; then 25188 withval=$with_selinux; if test "x$withval" != "xno" ; then
24317 if test "x$withval" != "xyes"; then
24318 CPPFLAGS="$CPPFLAGS -I${withval}/include"
24319 if test -n "${need_dash_r}"; then
24320 LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}"
24321 else
24322 LDFLAGS="-L${withval}/lib ${LDFLAGS}"
24323 fi
24324 fi
24325 25189
24326cat >>confdefs.h <<\_ACEOF 25190cat >>confdefs.h <<\_ACEOF
24327#define WITH_SELINUX 1 25191#define WITH_SELINUX 1
24328_ACEOF 25192_ACEOF
24329 25193
24330 SELINUX_MSG="yes" 25194 SELINUX_MSG="yes"
24331 25195 if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24332for ac_header in selinux/selinux.h 25196 { echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24333do 25197echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
24334as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 25198if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24337echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24338if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24339 echo $ECHO_N "(cached) $ECHO_C" >&6 25199 echo $ECHO_N "(cached) $ECHO_C" >&6
24340fi 25200fi
24341ac_res=`eval echo '${'$as_ac_Header'}'` 25201{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24342 { echo "$as_me:$LINENO: result: $ac_res" >&5 25202echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
24343echo "${ECHO_T}$ac_res" >&6; }
24344else 25203else
24345 # Is the header compilable? 25204 # Is the header compilable?
24346{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 25205{ echo "$as_me:$LINENO: checking selinux/selinux.h usability" >&5
24347echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 25206echo $ECHO_N "checking selinux/selinux.h usability... $ECHO_C" >&6; }
24348cat >conftest.$ac_ext <<_ACEOF 25207cat >conftest.$ac_ext <<_ACEOF
24349/* confdefs.h. */ 25208/* confdefs.h. */
24350_ACEOF 25209_ACEOF
@@ -24352,7 +25211,7 @@ cat confdefs.h >>conftest.$ac_ext
24352cat >>conftest.$ac_ext <<_ACEOF 25211cat >>conftest.$ac_ext <<_ACEOF
24353/* end confdefs.h. */ 25212/* end confdefs.h. */
24354$ac_includes_default 25213$ac_includes_default
24355#include <$ac_header> 25214#include <selinux/selinux.h>
24356_ACEOF 25215_ACEOF
24357rm -f conftest.$ac_objext 25216rm -f conftest.$ac_objext
24358if { (ac_try="$ac_compile" 25217if { (ac_try="$ac_compile"
@@ -24384,15 +25243,15 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24384echo "${ECHO_T}$ac_header_compiler" >&6; } 25243echo "${ECHO_T}$ac_header_compiler" >&6; }
24385 25244
24386# Is the header present? 25245# Is the header present?
24387{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 25246{ echo "$as_me:$LINENO: checking selinux/selinux.h presence" >&5
24388echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 25247echo $ECHO_N "checking selinux/selinux.h presence... $ECHO_C" >&6; }
24389cat >conftest.$ac_ext <<_ACEOF 25248cat >conftest.$ac_ext <<_ACEOF
24390/* confdefs.h. */ 25249/* confdefs.h. */
24391_ACEOF 25250_ACEOF
24392cat confdefs.h >>conftest.$ac_ext 25251cat confdefs.h >>conftest.$ac_ext
24393cat >>conftest.$ac_ext <<_ACEOF 25252cat >>conftest.$ac_ext <<_ACEOF
24394/* end confdefs.h. */ 25253/* end confdefs.h. */
24395#include <$ac_header> 25254#include <selinux/selinux.h>
24396_ACEOF 25255_ACEOF
24397if { (ac_try="$ac_cpp conftest.$ac_ext" 25256if { (ac_try="$ac_cpp conftest.$ac_ext"
24398case "(($ac_try" in 25257case "(($ac_try" in
@@ -24425,25 +25284,25 @@ echo "${ECHO_T}$ac_header_preproc" >&6; }
24425# So? What about this header? 25284# So? What about this header?
24426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 25285case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24427 yes:no: ) 25286 yes:no: )
24428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 25287 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&5
24429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 25288echo "$as_me: WARNING: selinux/selinux.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 25289 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&5
24431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 25290echo "$as_me: WARNING: selinux/selinux.h: proceeding with the compiler's result" >&2;}
24432 ac_header_preproc=yes 25291 ac_header_preproc=yes
24433 ;; 25292 ;;
24434 no:yes:* ) 25293 no:yes:* )
24435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 25294 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: present but cannot be compiled" >&5
24436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 25295echo "$as_me: WARNING: selinux/selinux.h: present but cannot be compiled" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 25296 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&5
24438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 25297echo "$as_me: WARNING: selinux/selinux.h: check for missing prerequisite headers?" >&2;}
24439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 25298 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: see the Autoconf documentation" >&5
24440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 25299echo "$as_me: WARNING: selinux/selinux.h: see the Autoconf documentation" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 25300 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&5
24442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 25301echo "$as_me: WARNING: selinux/selinux.h: section \"Present But Cannot Be Compiled\"" >&2;}
24443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 25302 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&5
24444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 25303echo "$as_me: WARNING: selinux/selinux.h: proceeding with the preprocessor's result" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 25304 { echo "$as_me:$LINENO: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&5
24446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 25305echo "$as_me: WARNING: selinux/selinux.h: in the future, the compiler will take precedence" >&2;}
24447 ( cat <<\_ASBOX 25306 ( cat <<\_ASBOX
24448## ------------------------------------------- ## 25307## ------------------------------------------- ##
24449## Report this to openssh-unix-dev@mindrot.org ## 25308## Report this to openssh-unix-dev@mindrot.org ##
@@ -24452,28 +25311,193 @@ _ASBOX
24452 ) | sed "s/^/$as_me: WARNING: /" >&2 25311 ) | sed "s/^/$as_me: WARNING: /" >&2
24453 ;; 25312 ;;
24454esac 25313esac
24455{ echo "$as_me:$LINENO: checking for $ac_header" >&5 25314{ echo "$as_me:$LINENO: checking for selinux/selinux.h" >&5
24456echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 25315echo $ECHO_N "checking for selinux/selinux.h... $ECHO_C" >&6; }
24457if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 25316if test "${ac_cv_header_selinux_selinux_h+set}" = set; then
24458 echo $ECHO_N "(cached) $ECHO_C" >&6 25317 echo $ECHO_N "(cached) $ECHO_C" >&6
24459else 25318else
24460 eval "$as_ac_Header=\$ac_header_preproc" 25319 ac_cv_header_selinux_selinux_h=$ac_header_preproc
24461fi 25320fi
24462ac_res=`eval echo '${'$as_ac_Header'}'` 25321{ echo "$as_me:$LINENO: result: $ac_cv_header_selinux_selinux_h" >&5
24463 { echo "$as_me:$LINENO: result: $ac_res" >&5 25322echo "${ECHO_T}$ac_cv_header_selinux_selinux_h" >&6; }
24464echo "${ECHO_T}$ac_res" >&6; }
24465 25323
24466fi 25324fi
24467if test `eval echo '${'$as_ac_Header'}'` = yes; then 25325if test $ac_cv_header_selinux_selinux_h = yes; then
24468 cat >>confdefs.h <<_ACEOF 25326 :
24469#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 25327else
25328 { { echo "$as_me:$LINENO: error: SELinux support requires selinux.h header" >&5
25329echo "$as_me: error: SELinux support requires selinux.h header" >&2;}
25330 { (exit 1); exit 1; }; }
25331fi
25332
25333
25334 { echo "$as_me:$LINENO: checking for setexeccon in -lselinux" >&5
25335echo $ECHO_N "checking for setexeccon in -lselinux... $ECHO_C" >&6; }
25336if test "${ac_cv_lib_selinux_setexeccon+set}" = set; then
25337 echo $ECHO_N "(cached) $ECHO_C" >&6
25338else
25339 ac_check_lib_save_LIBS=$LIBS
25340LIBS="-lselinux $LIBS"
25341cat >conftest.$ac_ext <<_ACEOF
25342/* confdefs.h. */
25343_ACEOF
25344cat confdefs.h >>conftest.$ac_ext
25345cat >>conftest.$ac_ext <<_ACEOF
25346/* end confdefs.h. */
25347
25348/* Override any GCC internal prototype to avoid an error.
25349 Use char because int might match the return type of a GCC
25350 builtin and then its argument prototype would still apply. */
25351#ifdef __cplusplus
25352extern "C"
25353#endif
25354char setexeccon ();
25355int
25356main ()
25357{
25358return setexeccon ();
25359 ;
25360 return 0;
25361}
24470_ACEOF 25362_ACEOF
25363rm -f conftest.$ac_objext conftest$ac_exeext
25364if { (ac_try="$ac_link"
25365case "(($ac_try" in
25366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25367 *) ac_try_echo=$ac_try;;
25368esac
25369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25370 (eval "$ac_link") 2>conftest.er1
25371 ac_status=$?
25372 grep -v '^ *+' conftest.er1 >conftest.err
25373 rm -f conftest.er1
25374 cat conftest.err >&5
25375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && {
25377 test -z "$ac_c_werror_flag" ||
25378 test ! -s conftest.err
25379 } && test -s conftest$ac_exeext &&
25380 $as_test_x conftest$ac_exeext; then
25381 ac_cv_lib_selinux_setexeccon=yes
25382else
25383 echo "$as_me: failed program was:" >&5
25384sed 's/^/| /' conftest.$ac_ext >&5
24471 25385
25386 ac_cv_lib_selinux_setexeccon=no
25387fi
25388
25389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25390 conftest$ac_exeext conftest.$ac_ext
25391LIBS=$ac_check_lib_save_LIBS
25392fi
25393{ echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_setexeccon" >&5
25394echo "${ECHO_T}$ac_cv_lib_selinux_setexeccon" >&6; }
25395if test $ac_cv_lib_selinux_setexeccon = yes; then
25396 LIBSELINUX="-lselinux"
25397else
25398 { { echo "$as_me:$LINENO: error: SELinux support requires libselinux library" >&5
25399echo "$as_me: error: SELinux support requires libselinux library" >&2;}
25400 { (exit 1); exit 1; }; }
24472fi 25401fi
24473 25402
25403 save_LIBS="$LIBS"
25404 LIBS="$LIBS $LIBSELINUX"
25405
25406
25407for ac_func in getseuserbyname get_default_context_with_level
25408do
25409as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25410{ echo "$as_me:$LINENO: checking for $ac_func" >&5
25411echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25412if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25413 echo $ECHO_N "(cached) $ECHO_C" >&6
25414else
25415 cat >conftest.$ac_ext <<_ACEOF
25416/* confdefs.h. */
25417_ACEOF
25418cat confdefs.h >>conftest.$ac_ext
25419cat >>conftest.$ac_ext <<_ACEOF
25420/* end confdefs.h. */
25421/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25423#define $ac_func innocuous_$ac_func
25424
25425/* System header to define __stub macros and hopefully few prototypes,
25426 which can conflict with char $ac_func (); below.
25427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25428 <limits.h> exists even on freestanding compilers. */
25429
25430#ifdef __STDC__
25431# include <limits.h>
25432#else
25433# include <assert.h>
25434#endif
25435
25436#undef $ac_func
25437
25438/* Override any GCC internal prototype to avoid an error.
25439 Use char because int might match the return type of a GCC
25440 builtin and then its argument prototype would still apply. */
25441#ifdef __cplusplus
25442extern "C"
25443#endif
25444char $ac_func ();
25445/* The GNU C library defines this for functions which it implements
25446 to always fail with ENOSYS. Some functions are actually named
25447 something starting with __ and the normal name is an alias. */
25448#if defined __stub_$ac_func || defined __stub___$ac_func
25449choke me
25450#endif
25451
25452int
25453main ()
25454{
25455return $ac_func ();
25456 ;
25457 return 0;
25458}
25459_ACEOF
25460rm -f conftest.$ac_objext conftest$ac_exeext
25461if { (ac_try="$ac_link"
25462case "(($ac_try" in
25463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25464 *) ac_try_echo=$ac_try;;
25465esac
25466eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25467 (eval "$ac_link") 2>conftest.er1
25468 ac_status=$?
25469 grep -v '^ *+' conftest.er1 >conftest.err
25470 rm -f conftest.er1
25471 cat conftest.err >&5
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } && {
25474 test -z "$ac_c_werror_flag" ||
25475 test ! -s conftest.err
25476 } && test -s conftest$ac_exeext &&
25477 $as_test_x conftest$ac_exeext; then
25478 eval "$as_ac_var=yes"
25479else
25480 echo "$as_me: failed program was:" >&5
25481sed 's/^/| /' conftest.$ac_ext >&5
25482
25483 eval "$as_ac_var=no"
25484fi
25485
25486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25487 conftest$ac_exeext conftest.$ac_ext
25488fi
25489ac_res=`eval echo '${'$as_ac_var'}'`
25490 { echo "$as_me:$LINENO: result: $ac_res" >&5
25491echo "${ECHO_T}$ac_res" >&6; }
25492if test `eval echo '${'$as_ac_var'}'` = yes; then
25493 cat >>confdefs.h <<_ACEOF
25494#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25495_ACEOF
25496
25497fi
24474done 25498done
24475 25499
24476 LIBSELINUX="-lselinux" 25500 LIBS="$save_LIBS"
24477 fi 25501 fi
24478 25502
24479fi 25503fi
@@ -27187,17 +28211,10 @@ if test ! -z "$blibpath" ; then
27187echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;} 28211echo "$as_me: WARNING: Please check and edit blibpath in LDFLAGS in Makefile" >&2;}
27188fi 28212fi
27189 28213
27190if test "$PAM_MSG" = yes ; then
27191 LIBS=`echo $LIBS | sed 's/-lpam //'`
27192fi
27193if test "$ac_cv_lib_pam_pam_set_item" = yes ; then
27194 LIBS=`echo $LIBS | sed 's/-ldl //'`
27195fi
27196
27197CFLAGS="$CFLAGS $werror_flags" 28214CFLAGS="$CFLAGS $werror_flags"
27198 28215
27199 28216
27200ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openbsd-compat/Makefile scard/Makefile ssh_prng_cmds survey.sh" 28217ac_config_files="$ac_config_files Makefile buildpkg.sh opensshd.init openssh.xml openbsd-compat/Makefile openbsd-compat/regress/Makefile scard/Makefile ssh_prng_cmds survey.sh"
27201 28218
27202cat >confcache <<\_ACEOF 28219cat >confcache <<\_ACEOF
27203# This file is a shell script that caches the results of configure 28220# This file is a shell script that caches the results of configure
@@ -27756,7 +28773,9 @@ do
27756 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 28773 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27757 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;; 28774 "buildpkg.sh") CONFIG_FILES="$CONFIG_FILES buildpkg.sh" ;;
27758 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;; 28775 "opensshd.init") CONFIG_FILES="$CONFIG_FILES opensshd.init" ;;
28776 "openssh.xml") CONFIG_FILES="$CONFIG_FILES openssh.xml" ;;
27759 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;; 28777 "openbsd-compat/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/Makefile" ;;
28778 "openbsd-compat/regress/Makefile") CONFIG_FILES="$CONFIG_FILES openbsd-compat/regress/Makefile" ;;
27760 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;; 28779 "scard/Makefile") CONFIG_FILES="$CONFIG_FILES scard/Makefile" ;;
27761 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;; 28780 "ssh_prng_cmds") CONFIG_FILES="$CONFIG_FILES ssh_prng_cmds" ;;
27762 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;; 28781 "survey.sh") CONFIG_FILES="$CONFIG_FILES survey.sh" ;;
@@ -27897,6 +28916,7 @@ STARTUP_SCRIPT_SHELL!$STARTUP_SCRIPT_SHELL$ac_delim
27897LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim 28916LOGIN_PROGRAM_FALLBACK!$LOGIN_PROGRAM_FALLBACK$ac_delim
27898PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim 28917PATH_PASSWD_PROG!$PATH_PASSWD_PROG$ac_delim
27899LD!$LD$ac_delim 28918LD!$LD$ac_delim
28919SSHDLIBS!$SSHDLIBS$ac_delim
27900LIBWRAP!$LIBWRAP$ac_delim 28920LIBWRAP!$LIBWRAP$ac_delim
27901LIBEDIT!$LIBEDIT$ac_delim 28921LIBEDIT!$LIBEDIT$ac_delim
27902LIBPAM!$LIBPAM$ac_delim 28922LIBPAM!$LIBPAM$ac_delim
@@ -27917,7 +28937,6 @@ PROG_DF!$PROG_DF$ac_delim
27917PROG_VMSTAT!$PROG_VMSTAT$ac_delim 28937PROG_VMSTAT!$PROG_VMSTAT$ac_delim
27918PROG_UPTIME!$PROG_UPTIME$ac_delim 28938PROG_UPTIME!$PROG_UPTIME$ac_delim
27919PROG_IPCS!$PROG_IPCS$ac_delim 28939PROG_IPCS!$PROG_IPCS$ac_delim
27920PROG_TAIL!$PROG_TAIL$ac_delim
27921_ACEOF 28940_ACEOF
27922 28941
27923 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then 28942 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
@@ -27959,6 +28978,7 @@ _ACEOF
27959ac_delim='%!_!# ' 28978ac_delim='%!_!# '
27960for ac_last_try in false false false false false :; do 28979for ac_last_try in false false false false false :; do
27961 cat >conf$$subs.sed <<_ACEOF 28980 cat >conf$$subs.sed <<_ACEOF
28981PROG_TAIL!$PROG_TAIL$ac_delim
27962INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim 28982INSTALL_SSH_PRNG_CMDS!$INSTALL_SSH_PRNG_CMDS$ac_delim
27963OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim 28983OPENSC_CONFIG!$OPENSC_CONFIG$ac_delim
27964LIBSELINUX!$LIBSELINUX$ac_delim 28984LIBSELINUX!$LIBSELINUX$ac_delim
@@ -27975,7 +28995,7 @@ LIBOBJS!$LIBOBJS$ac_delim
27975LTLIBOBJS!$LTLIBOBJS$ac_delim 28995LTLIBOBJS!$LTLIBOBJS$ac_delim
27976_ACEOF 28996_ACEOF
27977 28997
27978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then 28998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
27979 break 28999 break
27980 elif $ac_last_try; then 29000 elif $ac_last_try; then
27981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 29001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
@@ -28443,6 +29463,7 @@ echo " sshd superuser user PATH: $J"
28443fi 29463fi
28444echo " Manpage format: $MANTYPE" 29464echo " Manpage format: $MANTYPE"
28445echo " PAM support: $PAM_MSG" 29465echo " PAM support: $PAM_MSG"
29466echo " OSF SIA support: $SIA_MSG"
28446echo " KerberosV support: $KRB5_MSG" 29467echo " KerberosV support: $KRB5_MSG"
28447echo " SELinux support: $SELINUX_MSG" 29468echo " SELinux support: $SELINUX_MSG"
28448echo " Smartcard support: $SCARD_MSG" 29469echo " Smartcard support: $SCARD_MSG"
@@ -28450,6 +29471,7 @@ echo " S/KEY support: $SKEY_MSG"
28450echo " TCP Wrappers support: $TCPW_MSG" 29471echo " TCP Wrappers support: $TCPW_MSG"
28451echo " MD5 password support: $MD5_MSG" 29472echo " MD5 password support: $MD5_MSG"
28452echo " libedit support: $LIBEDIT_MSG" 29473echo " libedit support: $LIBEDIT_MSG"
29474echo " Solaris process contract support: $SPC_MSG"
28453echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG" 29475echo " IP address in \$DISPLAY hack: $DISPLAY_HACK_MSG"
28454echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG" 29476echo " Translate v4 in v6 hack: $IPV4_IN6_HACK_MSG"
28455echo " BSD Auth support: $BSD_AUTH_MSG" 29477echo " BSD Auth support: $BSD_AUTH_MSG"