comparison configure.in @ 321:fa9c45d09727

change AC_MSG_RESULT to AC_MSG_NOTICE in configure.in, add AC_SYS_LARGEFILE
author Matt Johnston <matt@ucc.asn.au>
date Wed, 07 Jun 2006 13:37:03 +0000
parents a3a68c25035e
children e17f0333c21e
comparison
equal deleted inserted replaced
319:7a11f8de297c 321:fa9c45d09727
17 LD=$CC 17 LD=$CC
18 fi 18 fi
19 AC_SUBST(LD) 19 AC_SUBST(LD)
20 20
21 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then 21 if test -z "$OLDCFLAGS" && test "$GCC" = "yes"; then
22 AC_MSG_RESULT(No \$CFLAGS set... using "-Os -W -Wall" for GCC) 22 AC_MSG_NOTICE(No \$CFLAGS set... using "-Os -W -Wall" for GCC)
23 CFLAGS="-Os -W -Wall" 23 CFLAGS="-Os -W -Wall"
24 fi 24 fi
25
26 # large file support is useful for scp
27 AC_SYS_LARGEFILE
25 28
26 # Host specific options 29 # Host specific options
27 # this isn't a definitive list of hosts, they are just added as required 30 # this isn't a definitive list of hosts, they are just added as required
28 AC_CANONICAL_HOST 31 AC_CANONICAL_HOST
29 32
73 76
74 dnl Can't use login() or logout() with uclibc 77 dnl Can't use login() or logout() with uclibc
75 AC_CHECK_DECL(__UCLIBC__, 78 AC_CHECK_DECL(__UCLIBC__,
76 [ 79 [
77 no_loginfunc_check=1 80 no_loginfunc_check=1
78 AC_MSG_RESULT(Using uClibc - login() and logout() probably don't work, so we won't use them.) 81 AC_MSG_NOTICE([Using uClibc - login() and logout() probably don't work, so we won't use them.])
79 ],,,) 82 ],,,)
80 83
81 # Checks for libraries. 84 # Checks for libraries.
82 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt") 85 AC_CHECK_LIB(crypt, crypt, LIBS="$LIBS -lcrypt")
83 86
102 AC_ARG_ENABLE(zlib, 105 AC_ARG_ENABLE(zlib,
103 [ --disable-zlib Don't include zlib support], 106 [ --disable-zlib Don't include zlib support],
104 [ 107 [
105 if test "x$enableval" = "xno"; then 108 if test "x$enableval" = "xno"; then
106 AC_DEFINE(DISABLE_ZLIB,, Use zlib) 109 AC_DEFINE(DISABLE_ZLIB,, Use zlib)
107 AC_MSG_RESULT(Disabling zlib) 110 AC_MSG_NOTICE(Disabling zlib)
108 else 111 else
109 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) 112 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***]))
110 AC_MSG_RESULT(Enabling zlib) 113 AC_MSG_NOTICE(Enabling zlib)
111 fi 114 fi
112 ], 115 ],
113 [ 116 [
114 # if not disabled, check for zlib 117 # if not disabled, check for zlib
115 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***])) 118 AC_CHECK_LIB(z, deflate, , AC_MSG_ERROR([*** zlib missing - install first or check config.log ***]))
116 AC_MSG_RESULT(Enabling zlib) 119 AC_MSG_NOTICE(Enabling zlib)
117 ] 120 ]
118 ) 121 )
119 122
120 # Check if pam is needed 123 # Check if pam is needed
121 AC_ARG_WITH(pam, 124 AC_ARG_WITH(pam,
139 AC_ARG_ENABLE(pam, 142 AC_ARG_ENABLE(pam,
140 [ --enable-pam Try to include PAM support], 143 [ --enable-pam Try to include PAM support],
141 [ 144 [
142 if test "x$enableval" = "xyes"; then 145 if test "x$enableval" = "xyes"; then
143 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***])) 146 AC_CHECK_LIB(pam, pam_authenticate, , AC_MSG_ERROR([*** PAM missing - install first or check config.log ***]))
144 AC_MSG_RESULT(Enabling PAM) 147 AC_MSG_NOTICE(Enabling PAM)
145 else 148 else
146 AC_DEFINE(DISABLE_PAM,, Use PAM) 149 AC_DEFINE(DISABLE_PAM,, Use PAM)
147 AC_MSG_RESULT(Disabling PAM) 150 AC_MSG_NOTICE(Disabling PAM)
148 fi 151 fi
149 ], 152 ],
150 [ 153 [
151 # disable it by default 154 # disable it by default
152 AC_DEFINE(DISABLE_PAM,, Use PAM) 155 AC_DEFINE(DISABLE_PAM,, Use PAM)
153 AC_MSG_RESULT(Disabling PAM) 156 AC_MSG_NOTICE(Disabling PAM)
154 ] 157 ]
155 ) 158 )
156 159
157 AC_ARG_ENABLE(openpty, 160 AC_ARG_ENABLE(openpty,
158 [ --disable-openpty Don't use openpty, use alternative method], 161 [ --disable-openpty Don't use openpty, use alternative method],
159 [ 162 [
160 if test "x$enableval" = "xno"; then 163 if test "x$enableval" = "xno"; then
161 AC_MSG_RESULT(Not using openpty) 164 AC_MSG_NOTICE(Not using openpty)
162 else 165 else
163 AC_MSG_RESULT(Using openpty if available) 166 AC_MSG_NOTICE(Using openpty if available)
164 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)]) 167 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY,,Have openpty() function)])
165 fi 168 fi
166 ], 169 ],
167 [ 170 [
168 AC_MSG_RESULT(Using openpty if available) 171 AC_MSG_NOTICE(Using openpty if available)
169 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)]) 172 AC_SEARCH_LIBS(openpty, util, [AC_DEFINE(HAVE_OPENPTY)])
170 ] 173 ]
171 ) 174 )
172 175
173 176
174 AC_ARG_ENABLE(syslog, 177 AC_ARG_ENABLE(syslog,
175 [ --disable-syslog Don't include syslog support], 178 [ --disable-syslog Don't include syslog support],
176 [ 179 [
177 if test "x$enableval" = "xno"; then 180 if test "x$enableval" = "xno"; then
178 AC_DEFINE(DISABLE_SYSLOG,, Using syslog) 181 AC_DEFINE(DISABLE_SYSLOG,, Using syslog)
179 AC_MSG_RESULT(Disabling syslog) 182 AC_MSG_NOTICE(Disabling syslog)
180 else 183 else
181 AC_MSG_RESULT(Enabling syslog) 184 AC_MSG_NOTICE(Enabling syslog)
182 fi 185 fi
183 ], 186 ],
184 [ 187 [
185 AC_MSG_RESULT(Enabling syslog) 188 AC_MSG_NOTICE(Enabling syslog)
186 ] 189 ]
187 ) 190 )
188 191
189 AC_ARG_ENABLE(shadow, 192 AC_ARG_ENABLE(shadow,
190 [ --disable-shadow Don't use shadow passwords (if available)], 193 [ --disable-shadow Don't use shadow passwords (if available)],
191 [ 194 [
192 if test "x$enableval" = "xno"; then 195 if test "x$enableval" = "xno"; then
193 AC_MSG_RESULT(Not using shadow passwords) 196 AC_MSG_NOTICE(Not using shadow passwords)
194 else 197 else
195 AC_CHECK_HEADERS([shadow.h]) 198 AC_CHECK_HEADERS([shadow.h])
196 AC_MSG_RESULT(Using shadow passwords if available) 199 AC_MSG_NOTICE(Using shadow passwords if available)
197 fi 200 fi
198 ], 201 ],
199 [ 202 [
200 AC_CHECK_HEADERS([shadow.h]) 203 AC_CHECK_HEADERS([shadow.h])
201 AC_MSG_RESULT(Using shadow passwords if available) 204 AC_MSG_NOTICE(Using shadow passwords if available)
202 ] 205 ]
203 ) 206 )
204 207
205 208
206 # Checks for header files. 209 # Checks for header files.
377 [ AC_DEFINE(DISABLE_WTMPX,,Disable use of wtmpx) ] 380 [ AC_DEFINE(DISABLE_WTMPX,,Disable use of wtmpx) ]
378 ) 381 )
379 AC_ARG_ENABLE(loginfunc, 382 AC_ARG_ENABLE(loginfunc,
380 [ --disable-loginfunc Disable use of login() etc. [no]], 383 [ --disable-loginfunc Disable use of login() etc. [no]],
381 [ no_loginfunc_check=1 384 [ no_loginfunc_check=1
382 AC_MSG_RESULT(Not using login() etc) ] 385 AC_MSG_NOTICE(Not using login() etc) ]
383 ) 386 )
384 AC_ARG_ENABLE(pututline, 387 AC_ARG_ENABLE(pututline,
385 [ --disable-pututline Disable use of pututline() etc. ([uw]tmp) [no]], 388 [ --disable-pututline Disable use of pututline() etc. ([uw]tmp) [no]],
386 [ AC_DEFINE(DISABLE_PUTUTLINE,,Disable use of pututline()) ] 389 [ AC_DEFINE(DISABLE_PUTUTLINE,,Disable use of pututline()) ]
387 ) 390 )
594 # Solaris needs ptmx 597 # Solaris needs ptmx
595 if test -z "$no_ptmx_check" ; then 598 if test -z "$no_ptmx_check" ; then
596 if test x"$cross_compiling" = x"no" ; then 599 if test x"$cross_compiling" = x"no" ; then
597 AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(USE_DEV_PTMX,,Use /dev/ptmx)) 600 AC_CHECK_FILE("/dev/ptmx", AC_DEFINE(USE_DEV_PTMX,,Use /dev/ptmx))
598 else 601 else
599 AC_MSG_RESULT(Not checking for /dev/ptmx, we're cross-compiling) 602 AC_MSG_NOTICE(Not checking for /dev/ptmx, we're cross-compiling)
600 fi 603 fi
601 fi 604 fi
602 605
603 if test -z "$no_ptc_check" ; then 606 if test -z "$no_ptc_check" ; then
604 if test x"$cross_compiling" = x"no" ; then 607 if test x"$cross_compiling" = x"no" ; then
605 AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC,,Use /dev/ptc & /dev/pts)) 608 AC_CHECK_FILE("/dev/ptc", AC_DEFINE(HAVE_DEV_PTS_AND_PTC,,Use /dev/ptc & /dev/pts))
606 else 609 else
607 AC_MSG_RESULT(Not checking for /dev/ptc & /dev/pts\, we're cross-compiling) 610 AC_MSG_NOTICE(Not checking for /dev/ptc & /dev/pts\, we're cross-compiling)
608 fi 611 fi
609 fi 612 fi
610 613
611 AC_EXEEXT 614 AC_EXEEXT
612 AC_CONFIG_HEADER(config.h) 615 AC_CONFIG_HEADER(config.h)
613 AC_OUTPUT(Makefile) 616 AC_OUTPUT(Makefile)
614 AC_OUTPUT(libtomcrypt/Makefile) 617 AC_OUTPUT(libtomcrypt/Makefile)
615 AC_OUTPUT(libtommath/Makefile) 618 AC_OUTPUT(libtommath/Makefile)
616 AC_MSG_RESULT() 619 AC_MSG_NOTICE()
617 AC_MSG_RESULT(Now edit options.h to choose features.) 620 AC_MSG_NOTICE(Now edit options.h to choose features.)