Annotation of src/usr.bin/sudo/configure, Revision 1.39
1.1 millert 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.37 millert 3: # Generated by GNU Autoconf 2.61 for sudo 1.7.
1.1 millert 4: #
1.27 millert 5: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6: # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.1 millert 7: # This configure script is free software; the Free Software Foundation
8: # gives unlimited permission to copy, distribute and modify it.
1.16 millert 9: ## --------------------- ##
10: ## M4sh Initialization. ##
11: ## --------------------- ##
1.1 millert 12:
1.27 millert 13: # Be more Bourne compatible
14: DUALCASE=1; export DUALCASE # for MKS sh
1.16 millert 15: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16: emulate sh
17: NULLCMD=:
18: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19: # is contrary to our usage. Disable this feature.
20: alias -g '${1+"$@"}'='"$@"'
1.27 millert 21: setopt NO_GLOB_SUBST
22: else
23: case `(set -o) 2>/dev/null` in
24: *posix*) set -o posix ;;
25: esac
26:
27: fi
28:
29:
30:
31:
32: # PATH needs CR
33: # Avoid depending upon Character Ranges.
34: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37: as_cr_digits='0123456789'
38: as_cr_alnum=$as_cr_Letters$as_cr_digits
39:
40: # The user is always right.
41: if test "${PATH_SEPARATOR+set}" != set; then
42: echo "#! /bin/sh" >conf$$.sh
43: echo "exit 0" >>conf$$.sh
44: chmod +x conf$$.sh
45: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46: PATH_SEPARATOR=';'
47: else
48: PATH_SEPARATOR=:
49: fi
50: rm -f conf$$.sh
1.16 millert 51: fi
52:
53: # Support unset when possible.
1.25 millert 54: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
1.16 millert 55: as_unset=unset
56: else
57: as_unset=false
58: fi
59:
60:
1.27 millert 61: # IFS
62: # We need space, tab and new line, in precisely that order. Quoting is
63: # there to prevent editors from complaining about space-tab.
64: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65: # splitting by setting IFS to empty value.)
66: as_nl='
67: '
68: IFS=" "" $as_nl"
69:
70: # Find who we are. Look in the path if we contain no directory separator.
71: case $0 in
72: *[\\/]* ) as_myself=$0 ;;
73: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74: for as_dir in $PATH
75: do
76: IFS=$as_save_IFS
77: test -z "$as_dir" && as_dir=.
78: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79: done
80: IFS=$as_save_IFS
81:
82: ;;
83: esac
84: # We did not find ourselves, most probably we were run as `sh COMMAND'
85: # in which case we are not to be found in the path.
86: if test "x$as_myself" = x; then
87: as_myself=$0
88: fi
89: if test ! -f "$as_myself"; then
90: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91: { (exit 1); exit 1; }
92: fi
93:
1.16 millert 94: # Work around bugs in pre-3.0 UWIN ksh.
1.27 millert 95: for as_var in ENV MAIL MAILPATH
96: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97: done
1.16 millert 98: PS1='$ '
99: PS2='> '
100: PS4='+ '
101:
102: # NLS nuisances.
103: for as_var in \
104: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106: LC_TELEPHONE LC_TIME
107: do
1.25 millert 108: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
1.16 millert 109: eval $as_var=C; export $as_var
110: else
1.27 millert 111: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
1.16 millert 112: fi
113: done
114:
115: # Required to use basename.
1.27 millert 116: if expr a : '\(a\)' >/dev/null 2>&1 &&
117: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.16 millert 118: as_expr=expr
119: else
120: as_expr=false
121: fi
122:
1.27 millert 123: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
1.16 millert 124: as_basename=basename
125: else
126: as_basename=false
127: fi
128:
129:
130: # Name of the executable.
1.27 millert 131: as_me=`$as_basename -- "$0" ||
1.16 millert 132: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133: X"$0" : 'X\(//\)$' \| \
1.27 millert 134: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16 millert 135: echo X/"$0" |
1.27 millert 136: sed '/^.*\/\([^/][^/]*\)\/*$/{
137: s//\1/
138: q
139: }
140: /^X\/\(\/\/\)$/{
141: s//\1/
142: q
143: }
144: /^X\/\(\/\).*/{
145: s//\1/
146: q
147: }
148: s/.*/./; q'`
149:
150: # CDPATH.
151: $as_unset CDPATH
152:
1.16 millert 153:
1.27 millert 154: if test "x$CONFIG_SHELL" = x; then
155: if (eval ":") 2>/dev/null; then
156: as_have_required=yes
157: else
158: as_have_required=no
159: fi
160:
161: if test $as_have_required = yes && (eval ":
162: (as_func_return () {
163: (exit \$1)
164: }
165: as_func_success () {
166: as_func_return 0
167: }
168: as_func_failure () {
169: as_func_return 1
170: }
171: as_func_ret_success () {
172: return 0
173: }
174: as_func_ret_failure () {
175: return 1
176: }
1.16 millert 177:
1.27 millert 178: exitcode=0
179: if as_func_success; then
180: :
181: else
182: exitcode=1
183: echo as_func_success failed.
184: fi
185:
186: if as_func_failure; then
187: exitcode=1
188: echo as_func_failure succeeded.
189: fi
190:
191: if as_func_ret_success; then
192: :
193: else
194: exitcode=1
195: echo as_func_ret_success failed.
196: fi
1.9 millert 197:
1.27 millert 198: if as_func_ret_failure; then
199: exitcode=1
200: echo as_func_ret_failure succeeded.
1.16 millert 201: fi
202:
1.27 millert 203: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204: :
205: else
206: exitcode=1
207: echo positional parameters were not saved.
208: fi
1.16 millert 209:
1.27 millert 210: test \$exitcode = 0) || { (exit 1); exit 1; }
1.16 millert 211:
1.27 millert 212: (
213: as_lineno_1=\$LINENO
214: as_lineno_2=\$LINENO
215: test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216: test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217: ") 2> /dev/null; then
218: :
219: else
220: as_candidate_shells=
1.16 millert 221: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223: do
224: IFS=$as_save_IFS
225: test -z "$as_dir" && as_dir=.
1.27 millert 226: case $as_dir in
1.16 millert 227: /*)
1.27 millert 228: for as_base in sh bash ksh sh5; do
229: as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230: done;;
231: esac
232: done
233: IFS=$as_save_IFS
234:
235:
236: for as_shell in $as_candidate_shells $SHELL; do
237: # Try only shells that exist, to save several forks.
238: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239: { ("$as_shell") 2> /dev/null <<\_ASEOF
240: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241: emulate sh
242: NULLCMD=:
243: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244: # is contrary to our usage. Disable this feature.
245: alias -g '${1+"$@"}'='"$@"'
246: setopt NO_GLOB_SUBST
247: else
248: case `(set -o) 2>/dev/null` in
249: *posix*) set -o posix ;;
250: esac
251:
252: fi
253:
254:
255: :
256: _ASEOF
257: }; then
258: CONFIG_SHELL=$as_shell
259: as_have_required=yes
260: if { "$as_shell" 2> /dev/null <<\_ASEOF
261: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262: emulate sh
263: NULLCMD=:
264: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265: # is contrary to our usage. Disable this feature.
266: alias -g '${1+"$@"}'='"$@"'
267: setopt NO_GLOB_SUBST
268: else
269: case `(set -o) 2>/dev/null` in
270: *posix*) set -o posix ;;
271: esac
272:
273: fi
274:
275:
276: :
277: (as_func_return () {
278: (exit $1)
279: }
280: as_func_success () {
281: as_func_return 0
282: }
283: as_func_failure () {
284: as_func_return 1
285: }
286: as_func_ret_success () {
287: return 0
288: }
289: as_func_ret_failure () {
290: return 1
291: }
292:
293: exitcode=0
294: if as_func_success; then
295: :
296: else
297: exitcode=1
298: echo as_func_success failed.
299: fi
300:
301: if as_func_failure; then
302: exitcode=1
303: echo as_func_failure succeeded.
304: fi
305:
306: if as_func_ret_success; then
307: :
308: else
309: exitcode=1
310: echo as_func_ret_success failed.
311: fi
312:
313: if as_func_ret_failure; then
314: exitcode=1
315: echo as_func_ret_failure succeeded.
316: fi
317:
318: if ( set x; as_func_ret_success y && test x = "$1" ); then
319: :
320: else
321: exitcode=1
322: echo positional parameters were not saved.
323: fi
324:
325: test $exitcode = 0) || { (exit 1); exit 1; }
326:
327: (
328: as_lineno_1=$LINENO
329: as_lineno_2=$LINENO
330: test "x$as_lineno_1" != "x$as_lineno_2" &&
331: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332:
333: _ASEOF
334: }; then
335: break
336: fi
337:
338: fi
339:
340: done
341:
342: if test "x$CONFIG_SHELL" != x; then
343: for as_var in BASH_ENV ENV
344: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345: done
346: export CONFIG_SHELL
347: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348: fi
349:
350:
351: if test $as_have_required = no; then
352: echo This script requires a shell more modern than all the
353: echo shells that I found on your system. Please install a
354: echo modern shell, or manually run the script under such a
355: echo shell if you do have one.
356: { (exit 1); exit 1; }
357: fi
358:
359:
360: fi
361:
362: fi
363:
364:
365:
366: (eval "as_func_return () {
367: (exit \$1)
368: }
369: as_func_success () {
370: as_func_return 0
371: }
372: as_func_failure () {
373: as_func_return 1
374: }
375: as_func_ret_success () {
376: return 0
377: }
378: as_func_ret_failure () {
379: return 1
380: }
381:
382: exitcode=0
383: if as_func_success; then
384: :
385: else
386: exitcode=1
387: echo as_func_success failed.
388: fi
389:
390: if as_func_failure; then
391: exitcode=1
392: echo as_func_failure succeeded.
393: fi
394:
395: if as_func_ret_success; then
396: :
397: else
398: exitcode=1
399: echo as_func_ret_success failed.
400: fi
401:
402: if as_func_ret_failure; then
403: exitcode=1
404: echo as_func_ret_failure succeeded.
405: fi
406:
407: if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408: :
409: else
410: exitcode=1
411: echo positional parameters were not saved.
412: fi
413:
414: test \$exitcode = 0") || {
415: echo No shell found that supports shell functions.
416: echo Please tell autoconf@gnu.org about your system,
417: echo including any error possibly output before this
418: echo message
419: }
420:
421:
422:
1.16 millert 423: as_lineno_1=$LINENO
424: as_lineno_2=$LINENO
425: test "x$as_lineno_1" != "x$as_lineno_2" &&
1.27 millert 426: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.9 millert 427:
1.16 millert 428: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429: # uniformly replaced by the line number. The first 'sed' inserts a
1.27 millert 430: # line-number line after each line using $LINENO; the second 'sed'
431: # does the real work. The second script uses 'N' to pair each
432: # line-number line with the line containing $LINENO, and appends
433: # trailing '-' during substitution so that $LINENO is not a special
434: # case at line end.
1.16 millert 435: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
1.27 millert 436: # scripts with optimization help from Paolo Bonzini. Blame Lee
437: # E. McMahon (1931-1989) for sed's syntax. :-)
438: sed -n '
439: p
440: /[$]LINENO/=
441: ' <$as_myself |
1.16 millert 442: sed '
1.27 millert 443: s/[$]LINENO.*/&-/
444: t lineno
445: b
446: :lineno
1.16 millert 447: N
1.27 millert 448: :loop
449: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
1.16 millert 450: t loop
1.27 millert 451: s/-\n.*//
1.16 millert 452: ' >$as_me.lineno &&
1.27 millert 453: chmod +x "$as_me.lineno" ||
1.16 millert 454: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455: { (exit 1); exit 1; }; }
456:
457: # Don't try to exec as it changes $[0], causing all sort of problems
458: # (the dirname of $[0] is not the place where we might find the
1.27 millert 459: # original and so on. Autoconf is especially sensitive to this).
460: . "./$as_me.lineno"
1.16 millert 461: # Exit status is that of the last command.
462: exit
463: }
1.9 millert 464:
465:
1.27 millert 466: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467: as_dirname=dirname
468: else
469: as_dirname=false
470: fi
471:
472: ECHO_C= ECHO_N= ECHO_T=
473: case `echo -n x` in
474: -n*)
475: case `echo 'x\c'` in
476: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477: *) ECHO_C='\c';;
478: esac;;
479: *)
480: ECHO_N='-n';;
1.16 millert 481: esac
1.9 millert 482:
1.27 millert 483: if expr a : '\(a\)' >/dev/null 2>&1 &&
484: test "X`expr 00001 : '.*\(...\)'`" = X001; then
1.9 millert 485: as_expr=expr
486: else
487: as_expr=false
488: fi
489:
490: rm -f conf$$ conf$$.exe conf$$.file
1.27 millert 491: if test -d conf$$.dir; then
492: rm -f conf$$.dir/conf$$.file
493: else
494: rm -f conf$$.dir
495: mkdir conf$$.dir
496: fi
1.9 millert 497: echo >conf$$.file
498: if ln -s conf$$.file conf$$ 2>/dev/null; then
1.27 millert 499: as_ln_s='ln -s'
500: # ... but there are two gotchas:
501: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503: # In both cases, we have to default to `cp -p'.
504: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
1.9 millert 505: as_ln_s='cp -p'
506: elif ln conf$$.file conf$$ 2>/dev/null; then
507: as_ln_s=ln
508: else
509: as_ln_s='cp -p'
510: fi
1.27 millert 511: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512: rmdir conf$$.dir 2>/dev/null
1.9 millert 513:
1.16 millert 514: if mkdir -p . 2>/dev/null; then
515: as_mkdir_p=:
516: else
1.25 millert 517: test -d ./-p && rmdir ./-p
1.16 millert 518: as_mkdir_p=false
519: fi
520:
1.27 millert 521: if test -x / >/dev/null 2>&1; then
522: as_test_x='test -x'
523: else
524: if ls -dL / >/dev/null 2>&1; then
525: as_ls_L_option=L
526: else
527: as_ls_L_option=
528: fi
529: as_test_x='
530: eval sh -c '\''
531: if test -d "$1"; then
532: test -d "$1/.";
533: else
534: case $1 in
535: -*)set "./$1";;
536: esac;
537: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538: ???[sx]*):;;*)false;;esac;fi
539: '\'' sh
540: '
541: fi
542: as_executable_p=$as_test_x
1.9 millert 543:
1.16 millert 544: # Sed expression to map a string onto a valid CPP name.
1.25 millert 545: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 546:
547: # Sed expression to map a string onto a valid variable name.
1.25 millert 548: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.9 millert 549:
550:
551:
1.23 millert 552:
553: # Check that we are running under the correct shell.
554: SHELL=${CONFIG_SHELL-/bin/sh}
555:
1.27 millert 556: case X$ECHO in
1.23 millert 557: X*--fallback-echo)
558: # Remove one level of quotation (which was required for Make).
1.27 millert 559: ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
1.23 millert 560: ;;
561: esac
562:
1.27 millert 563: echo=${ECHO-echo}
1.23 millert 564: if test "X$1" = X--no-reexec; then
565: # Discard the --no-reexec flag, and continue.
566: shift
567: elif test "X$1" = X--fallback-echo; then
568: # Avoid inline document here, it may be left over
569: :
1.27 millert 570: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571: # Yippee, $echo works!
1.23 millert 572: :
573: else
574: # Restart under the correct shell.
575: exec $SHELL "$0" --no-reexec ${1+"$@"}
576: fi
577:
578: if test "X$1" = X--fallback-echo; then
579: # used as fallback echo
580: shift
1.27 millert 581: cat <<EOF
1.23 millert 582: $*
1.27 millert 583: EOF
1.23 millert 584: exit 0
585: fi
586:
587: # The HP-UX ksh and POSIX shell print the target directory to stdout
588: # if CDPATH is set.
1.25 millert 589: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23 millert 590:
1.27 millert 591: if test -z "$ECHO"; then
592: if test "X${echo_test_string+set}" != Xset; then
593: # find a string as large as possible, as long as the shell can cope with it
594: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596: if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597: echo_test_string=`eval $cmd` &&
598: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599: then
600: break
601: fi
602: done
603: fi
1.23 millert 604:
1.27 millert 605: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607: test "X$echo_testing_string" = "X$echo_test_string"; then
608: :
609: else
610: # The Solaris, AIX, and Digital Unix default echo programs unquote
611: # backslashes. This makes it impossible to quote backslashes using
612: # echo "$something" | sed 's/\\/\\\\/g'
613: #
614: # So, first we look for a working echo in the user's PATH.
1.23 millert 615:
1.27 millert 616: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617: for dir in $PATH /usr/ucb; do
1.23 millert 618: IFS="$lt_save_ifs"
1.27 millert 619: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622: test "X$echo_testing_string" = "X$echo_test_string"; then
623: echo="$dir/echo"
624: break
625: fi
626: done
627: IFS="$lt_save_ifs"
1.23 millert 628:
1.27 millert 629: if test "X$echo" = Xecho; then
630: # We didn't find a better echo, so look for alternatives.
631: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633: test "X$echo_testing_string" = "X$echo_test_string"; then
634: # This shell has a builtin print -r that does the trick.
635: echo='print -r'
636: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637: test "X$CONFIG_SHELL" != X/bin/ksh; then
638: # If we have ksh, try running configure again with it.
639: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640: export ORIGINAL_CONFIG_SHELL
641: CONFIG_SHELL=/bin/ksh
642: export CONFIG_SHELL
643: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644: else
645: # Try using printf.
646: echo='printf %s\n'
647: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649: test "X$echo_testing_string" = "X$echo_test_string"; then
650: # Cool, printf works
651: :
652: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653: test "X$echo_testing_string" = 'X\t' &&
654: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655: test "X$echo_testing_string" = "X$echo_test_string"; then
656: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657: export CONFIG_SHELL
658: SHELL="$CONFIG_SHELL"
659: export SHELL
660: echo="$CONFIG_SHELL $0 --fallback-echo"
661: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662: test "X$echo_testing_string" = 'X\t' &&
663: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664: test "X$echo_testing_string" = "X$echo_test_string"; then
665: echo="$CONFIG_SHELL $0 --fallback-echo"
1.25 millert 666: else
1.27 millert 667: # maybe with a smaller string...
668: prev=:
669:
670: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672: then
673: break
674: fi
675: prev="$cmd"
676: done
1.25 millert 677:
1.27 millert 678: if test "$prev" != 'sed 50q "$0"'; then
679: echo_test_string=`eval $prev`
680: export echo_test_string
681: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682: else
683: # Oops. We lost completely, so just stick with echo.
684: echo=echo
685: fi
1.23 millert 686: fi
687: fi
688: fi
689: fi
1.27 millert 690: fi
1.23 millert 691:
692: # Copy echo and quote the copy suitably for passing to libtool from
693: # the Makefile, instead of quoting the original, which is used later.
1.27 millert 694: ECHO=$echo
695: if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696: ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
1.23 millert 697: fi
698:
699:
700:
701:
1.27 millert 702: exec 7<&0 </dev/null 6>&1
703:
1.9 millert 704: # Name of the host.
705: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706: # so uname gets run too.
707: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708:
709: #
710: # Initializations.
711: #
1.1 millert 712: ac_default_prefix=/usr/local
1.27 millert 713: ac_clean_files=
1.16 millert 714: ac_config_libobj_dir=.
1.27 millert 715: LIBOBJS=
1.9 millert 716: cross_compiling=no
717: subdirs=
1.16 millert 718: MFLAGS=
719: MAKEFLAGS=
1.9 millert 720: SHELL=${CONFIG_SHELL-/bin/sh}
721:
1.16 millert 722: # Identity of this package.
723: PACKAGE_NAME='sudo'
724: PACKAGE_TARNAME='sudo'
1.37 millert 725: PACKAGE_VERSION='1.7'
726: PACKAGE_STRING='sudo 1.7'
1.16 millert 727: PACKAGE_BUGREPORT=''
728:
1.9 millert 729: # Factoring default headers for most tests.
730: ac_includes_default="\
731: #include <stdio.h>
1.27 millert 732: #ifdef HAVE_SYS_TYPES_H
1.9 millert 733: # include <sys/types.h>
734: #endif
1.27 millert 735: #ifdef HAVE_SYS_STAT_H
1.9 millert 736: # include <sys/stat.h>
737: #endif
1.27 millert 738: #ifdef STDC_HEADERS
1.9 millert 739: # include <stdlib.h>
740: # include <stddef.h>
741: #else
1.27 millert 742: # ifdef HAVE_STDLIB_H
1.9 millert 743: # include <stdlib.h>
744: # endif
745: #endif
1.27 millert 746: #ifdef HAVE_STRING_H
747: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
1.9 millert 748: # include <memory.h>
749: # endif
750: # include <string.h>
751: #endif
1.27 millert 752: #ifdef HAVE_STRINGS_H
1.9 millert 753: # include <strings.h>
754: #endif
1.27 millert 755: #ifdef HAVE_INTTYPES_H
1.9 millert 756: # include <inttypes.h>
757: #endif
1.27 millert 758: #ifdef HAVE_STDINT_H
759: # include <stdint.h>
760: #endif
761: #ifdef HAVE_UNISTD_H
1.9 millert 762: # include <unistd.h>
763: #endif"
1.1 millert 764:
1.27 millert 765: ac_subst_vars='SHELL
766: PATH_SEPARATOR
767: PACKAGE_NAME
768: PACKAGE_TARNAME
769: PACKAGE_VERSION
770: PACKAGE_STRING
771: PACKAGE_BUGREPORT
772: exec_prefix
773: prefix
774: program_transform_name
775: bindir
776: sbindir
777: libexecdir
778: datarootdir
779: datadir
780: sysconfdir
781: sharedstatedir
782: localstatedir
783: includedir
784: oldincludedir
785: docdir
786: infodir
787: htmldir
788: dvidir
789: pdfdir
790: psdir
791: libdir
792: localedir
793: mandir
794: DEFS
795: ECHO_C
796: ECHO_N
797: ECHO_T
798: LIBS
799: build_alias
800: host_alias
801: target_alias
1.39 ! millert 802: HAVE_BSM_AUDIT
1.27 millert 803: LIBTOOL
804: CFLAGS
805: PROGS
806: CPPFLAGS
807: LDFLAGS
808: SUDO_LDFLAGS
809: SUDO_OBJS
810: SUDO_LIBS
811: NET_LIBS
812: AFS_LIBS
1.32 millert 813: GETGROUPS_LIB
1.27 millert 814: OSDEFS
815: AUTH_OBJS
816: MANTYPE
817: MAN_POSTINSTALL
818: SUDOERS_MODE
819: SUDOERS_UID
820: SUDOERS_GID
821: DEV
1.36 millert 822: SELINUX
823: BAMAN
824: LCMAN
825: SEMAN
1.37 millert 826: devdir
1.27 millert 827: mansectsu
828: mansectform
829: mansrcdir
1.36 millert 830: NOEXECFILE
1.27 millert 831: NOEXECDIR
832: noexec_file
833: INSTALL_NOEXEC
834: DONT_LEAK_PATH_INFO
1.37 millert 835: BSDAUTH_USAGE
836: SELINUX_USAGE
837: LDAP
838: LOGINCAP_USAGE
1.27 millert 839: timedir
840: timeout
841: password_timeout
842: sudo_umask
843: passprompt
844: long_otp_prompt
845: lecture
846: logfac
847: goodpri
848: badpri
849: loglen
850: ignore_dot
851: mail_no_user
852: mail_no_host
853: mail_no_perms
854: mailto
855: mailsub
856: badpass_message
857: fqdn
858: runas_default
859: env_editor
860: passwd_tries
861: tty_tickets
862: insults
863: root_sudo
864: path_info
1.37 millert 865: ldap_conf
866: ldap_secret
867: nsswitch_conf
1.39 ! millert 868: netsvc_conf
1.27 millert 869: EGREPPROG
870: CC
871: ac_ct_CC
872: EXEEXT
873: OBJEXT
874: CPP
875: build
876: build_cpu
877: build_vendor
878: build_os
879: host
880: host_cpu
881: host_vendor
882: host_os
883: SED
884: GREP
885: EGREP
886: LN_S
887: ECHO
888: AR
889: RANLIB
890: STRIP
1.36 millert 891: DSYMUTIL
892: NMEDIT
1.27 millert 893: UNAMEPROG
894: TRPROG
895: NROFFPROG
896: YACC
897: YFLAGS
898: LIBOBJS
899: KRB5CONFIG
900: LTLIBOBJS'
1.16 millert 901: ac_subst_files=''
1.27 millert 902: ac_precious_vars='build_alias
903: host_alias
904: target_alias
905: CC
906: CFLAGS
907: LDFLAGS
908: LIBS
909: CPPFLAGS
910: CPP
911: YACC
912: YFLAGS'
913:
1.16 millert 914:
1.1 millert 915: # Initialize some variables set by options.
1.9 millert 916: ac_init_help=
917: ac_init_version=false
1.1 millert 918: # The variables have the same names as the options, with
919: # dashes changed to underlines.
1.9 millert 920: cache_file=/dev/null
1.1 millert 921: exec_prefix=NONE
922: no_create=
923: no_recursion=
924: prefix=NONE
925: program_prefix=NONE
926: program_suffix=NONE
927: program_transform_name=s,x,x,
928: silent=
929: site=
930: srcdir=
931: verbose=
932: x_includes=NONE
933: x_libraries=NONE
1.9 millert 934:
935: # Installation directory options.
936: # These are left unexpanded so users can "make install exec_prefix=/foo"
937: # and all the variables that are supposed to be based on exec_prefix
938: # by default will actually change.
939: # Use braces instead of parens because sh, perl, etc. also accept them.
1.27 millert 940: # (The list follows the same order as the GNU Coding Standards.)
1.1 millert 941: bindir='${exec_prefix}/bin'
942: sbindir='${exec_prefix}/sbin'
943: libexecdir='${exec_prefix}/libexec'
1.27 millert 944: datarootdir='${prefix}/share'
945: datadir='${datarootdir}'
1.1 millert 946: sysconfdir='${prefix}/etc'
947: sharedstatedir='${prefix}/com'
948: localstatedir='${prefix}/var'
949: includedir='${prefix}/include'
950: oldincludedir='/usr/include'
1.27 millert 951: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
952: infodir='${datarootdir}/info'
953: htmldir='${docdir}'
954: dvidir='${docdir}'
955: pdfdir='${docdir}'
956: psdir='${docdir}'
957: libdir='${exec_prefix}/lib'
958: localedir='${datarootdir}/locale'
959: mandir='${datarootdir}/man'
1.1 millert 960:
961: ac_prev=
1.27 millert 962: ac_dashdash=
1.1 millert 963: for ac_option
964: do
965: # If the previous option needs an argument, assign it.
966: if test -n "$ac_prev"; then
1.27 millert 967: eval $ac_prev=\$ac_option
1.1 millert 968: ac_prev=
969: continue
970: fi
971:
1.27 millert 972: case $ac_option in
973: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974: *) ac_optarg=yes ;;
975: esac
1.1 millert 976:
977: # Accept the important Cygnus configure options, so we can diagnose typos.
978:
1.27 millert 979: case $ac_dashdash$ac_option in
980: --)
981: ac_dashdash=yes ;;
1.1 millert 982:
983: -bindir | --bindir | --bindi | --bind | --bin | --bi)
984: ac_prev=bindir ;;
985: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1.9 millert 986: bindir=$ac_optarg ;;
1.1 millert 987:
988: -build | --build | --buil | --bui | --bu)
1.9 millert 989: ac_prev=build_alias ;;
1.1 millert 990: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1.9 millert 991: build_alias=$ac_optarg ;;
1.1 millert 992:
993: -cache-file | --cache-file | --cache-fil | --cache-fi \
994: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995: ac_prev=cache_file ;;
996: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1.9 millert 998: cache_file=$ac_optarg ;;
999:
1000: --config-cache | -C)
1001: cache_file=config.cache ;;
1.1 millert 1002:
1.27 millert 1003: -datadir | --datadir | --datadi | --datad)
1.1 millert 1004: ac_prev=datadir ;;
1.27 millert 1005: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1.9 millert 1006: datadir=$ac_optarg ;;
1.1 millert 1007:
1.27 millert 1008: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009: | --dataroo | --dataro | --datar)
1010: ac_prev=datarootdir ;;
1011: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013: datarootdir=$ac_optarg ;;
1014:
1.1 millert 1015: -disable-* | --disable-*)
1.9 millert 1016: ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1.1 millert 1017: # Reject names that are not valid shell variable names.
1.27 millert 1018: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1019: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1020: { (exit 1); exit 1; }; }
1.27 millert 1021: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1022: eval enable_$ac_feature=no ;;
1023:
1024: -docdir | --docdir | --docdi | --doc | --do)
1025: ac_prev=docdir ;;
1026: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027: docdir=$ac_optarg ;;
1028:
1029: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030: ac_prev=dvidir ;;
1031: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032: dvidir=$ac_optarg ;;
1.1 millert 1033:
1034: -enable-* | --enable-*)
1.9 millert 1035: ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1.1 millert 1036: # Reject names that are not valid shell variable names.
1.27 millert 1037: expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1038: { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1039: { (exit 1); exit 1; }; }
1.27 millert 1040: ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1041: eval enable_$ac_feature=\$ac_optarg ;;
1.1 millert 1042:
1043: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1044: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1045: | --exec | --exe | --ex)
1046: ac_prev=exec_prefix ;;
1047: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1048: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1049: | --exec=* | --exe=* | --ex=*)
1.9 millert 1050: exec_prefix=$ac_optarg ;;
1.1 millert 1051:
1052: -gas | --gas | --ga | --g)
1053: # Obsolete; use --with-gas.
1054: with_gas=yes ;;
1055:
1.9 millert 1056: -help | --help | --hel | --he | -h)
1057: ac_init_help=long ;;
1058: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1059: ac_init_help=recursive ;;
1060: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1061: ac_init_help=short ;;
1.1 millert 1062:
1063: -host | --host | --hos | --ho)
1.9 millert 1064: ac_prev=host_alias ;;
1.1 millert 1065: -host=* | --host=* | --hos=* | --ho=*)
1.9 millert 1066: host_alias=$ac_optarg ;;
1.1 millert 1067:
1.27 millert 1068: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1069: ac_prev=htmldir ;;
1070: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1071: | --ht=*)
1072: htmldir=$ac_optarg ;;
1073:
1.1 millert 1074: -includedir | --includedir | --includedi | --included | --include \
1075: | --includ | --inclu | --incl | --inc)
1076: ac_prev=includedir ;;
1077: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1078: | --includ=* | --inclu=* | --incl=* | --inc=*)
1.9 millert 1079: includedir=$ac_optarg ;;
1.1 millert 1080:
1081: -infodir | --infodir | --infodi | --infod | --info | --inf)
1082: ac_prev=infodir ;;
1083: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1.9 millert 1084: infodir=$ac_optarg ;;
1.1 millert 1085:
1086: -libdir | --libdir | --libdi | --libd)
1087: ac_prev=libdir ;;
1088: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1.9 millert 1089: libdir=$ac_optarg ;;
1.1 millert 1090:
1091: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1092: | --libexe | --libex | --libe)
1093: ac_prev=libexecdir ;;
1094: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1095: | --libexe=* | --libex=* | --libe=*)
1.9 millert 1096: libexecdir=$ac_optarg ;;
1.1 millert 1097:
1.27 millert 1098: -localedir | --localedir | --localedi | --localed | --locale)
1099: ac_prev=localedir ;;
1100: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1101: localedir=$ac_optarg ;;
1102:
1.1 millert 1103: -localstatedir | --localstatedir | --localstatedi | --localstated \
1.27 millert 1104: | --localstate | --localstat | --localsta | --localst | --locals)
1.1 millert 1105: ac_prev=localstatedir ;;
1106: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1.27 millert 1107: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1.9 millert 1108: localstatedir=$ac_optarg ;;
1.1 millert 1109:
1110: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1111: ac_prev=mandir ;;
1112: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1.9 millert 1113: mandir=$ac_optarg ;;
1.1 millert 1114:
1115: -nfp | --nfp | --nf)
1116: # Obsolete; use --without-fp.
1117: with_fp=no ;;
1118:
1119: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1.16 millert 1120: | --no-cr | --no-c | -n)
1.1 millert 1121: no_create=yes ;;
1122:
1123: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1124: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1125: no_recursion=yes ;;
1126:
1127: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1128: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1129: | --oldin | --oldi | --old | --ol | --o)
1130: ac_prev=oldincludedir ;;
1131: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1132: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1133: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1.9 millert 1134: oldincludedir=$ac_optarg ;;
1.1 millert 1135:
1136: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1137: ac_prev=prefix ;;
1138: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1.9 millert 1139: prefix=$ac_optarg ;;
1.1 millert 1140:
1141: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1142: | --program-pre | --program-pr | --program-p)
1143: ac_prev=program_prefix ;;
1144: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1145: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1.9 millert 1146: program_prefix=$ac_optarg ;;
1.1 millert 1147:
1148: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1149: | --program-suf | --program-su | --program-s)
1150: ac_prev=program_suffix ;;
1151: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1152: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1.9 millert 1153: program_suffix=$ac_optarg ;;
1.1 millert 1154:
1155: -program-transform-name | --program-transform-name \
1156: | --program-transform-nam | --program-transform-na \
1157: | --program-transform-n | --program-transform- \
1158: | --program-transform | --program-transfor \
1159: | --program-transfo | --program-transf \
1160: | --program-trans | --program-tran \
1161: | --progr-tra | --program-tr | --program-t)
1162: ac_prev=program_transform_name ;;
1163: -program-transform-name=* | --program-transform-name=* \
1164: | --program-transform-nam=* | --program-transform-na=* \
1165: | --program-transform-n=* | --program-transform-=* \
1166: | --program-transform=* | --program-transfor=* \
1167: | --program-transfo=* | --program-transf=* \
1168: | --program-trans=* | --program-tran=* \
1169: | --progr-tra=* | --program-tr=* | --program-t=*)
1.9 millert 1170: program_transform_name=$ac_optarg ;;
1.1 millert 1171:
1.27 millert 1172: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1173: ac_prev=pdfdir ;;
1174: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1175: pdfdir=$ac_optarg ;;
1176:
1177: -psdir | --psdir | --psdi | --psd | --ps)
1178: ac_prev=psdir ;;
1179: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1180: psdir=$ac_optarg ;;
1181:
1.1 millert 1182: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1183: | -silent | --silent | --silen | --sile | --sil)
1184: silent=yes ;;
1185:
1186: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1187: ac_prev=sbindir ;;
1188: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1189: | --sbi=* | --sb=*)
1.9 millert 1190: sbindir=$ac_optarg ;;
1.1 millert 1191:
1192: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1193: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1194: | --sharedst | --shareds | --shared | --share | --shar \
1195: | --sha | --sh)
1196: ac_prev=sharedstatedir ;;
1197: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1198: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1199: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1200: | --sha=* | --sh=*)
1.9 millert 1201: sharedstatedir=$ac_optarg ;;
1.1 millert 1202:
1203: -site | --site | --sit)
1204: ac_prev=site ;;
1205: -site=* | --site=* | --sit=*)
1.9 millert 1206: site=$ac_optarg ;;
1.1 millert 1207:
1208: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1209: ac_prev=srcdir ;;
1210: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1.9 millert 1211: srcdir=$ac_optarg ;;
1.1 millert 1212:
1213: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1214: | --syscon | --sysco | --sysc | --sys | --sy)
1215: ac_prev=sysconfdir ;;
1216: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1217: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1.9 millert 1218: sysconfdir=$ac_optarg ;;
1.1 millert 1219:
1220: -target | --target | --targe | --targ | --tar | --ta | --t)
1.9 millert 1221: ac_prev=target_alias ;;
1.1 millert 1222: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1.9 millert 1223: target_alias=$ac_optarg ;;
1.1 millert 1224:
1225: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1226: verbose=yes ;;
1227:
1.9 millert 1228: -version | --version | --versio | --versi | --vers | -V)
1229: ac_init_version=: ;;
1.1 millert 1230:
1231: -with-* | --with-*)
1.9 millert 1232: ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1.1 millert 1233: # Reject names that are not valid shell variable names.
1.27 millert 1234: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1235: { echo "$as_me: error: invalid package name: $ac_package" >&2
1236: { (exit 1); exit 1; }; }
1.27 millert 1237: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1238: eval with_$ac_package=\$ac_optarg ;;
1.1 millert 1239:
1240: -without-* | --without-*)
1.9 millert 1241: ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1.1 millert 1242: # Reject names that are not valid shell variable names.
1.27 millert 1243: expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1.9 millert 1244: { echo "$as_me: error: invalid package name: $ac_package" >&2
1245: { (exit 1); exit 1; }; }
1.27 millert 1246: ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1247: eval with_$ac_package=no ;;
1.1 millert 1248:
1249: --x)
1250: # Obsolete; use --with-x.
1251: with_x=yes ;;
1252:
1253: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254: | --x-incl | --x-inc | --x-in | --x-i)
1255: ac_prev=x_includes ;;
1256: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1.9 millert 1258: x_includes=$ac_optarg ;;
1.1 millert 1259:
1260: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262: ac_prev=x_libraries ;;
1263: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1.9 millert 1265: x_libraries=$ac_optarg ;;
1.1 millert 1266:
1.9 millert 1267: -*) { echo "$as_me: error: unrecognized option: $ac_option
1268: Try \`$0 --help' for more information." >&2
1269: { (exit 1); exit 1; }; }
1.1 millert 1270: ;;
1271:
1.9 millert 1272: *=*)
1273: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274: # Reject names that are not valid shell variable names.
1275: expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1276: { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1277: { (exit 1); exit 1; }; }
1.27 millert 1278: eval $ac_envvar=\$ac_optarg
1.9 millert 1279: export $ac_envvar ;;
1280:
1.1 millert 1281: *)
1.9 millert 1282: # FIXME: should be removed in autoconf 3.0.
1283: echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1284: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1285: echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1286: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1.1 millert 1287: ;;
1288:
1289: esac
1290: done
1291:
1292: if test -n "$ac_prev"; then
1.9 millert 1293: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1294: { echo "$as_me: error: missing argument to $ac_option" >&2
1295: { (exit 1); exit 1; }; }
1.1 millert 1296: fi
1297:
1.27 millert 1298: # Be sure to have absolute directory names.
1299: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300: datadir sysconfdir sharedstatedir localstatedir includedir \
1301: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302: libdir localedir mandir
1.9 millert 1303: do
1.27 millert 1304: eval ac_val=\$$ac_var
1.9 millert 1305: case $ac_val in
1.27 millert 1306: [\\/$]* | ?:[\\/]* ) continue;;
1307: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1.1 millert 1308: esac
1.27 millert 1309: { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1310: { (exit 1); exit 1; }; }
1.1 millert 1311: done
1312:
1.9 millert 1313: # There might be people who depend on the old broken behavior: `$host'
1314: # used to hold the argument of --host etc.
1.16 millert 1315: # FIXME: To remove some day.
1.9 millert 1316: build=$build_alias
1317: host=$host_alias
1318: target=$target_alias
1319:
1.16 millert 1320: # FIXME: To remove some day.
1.9 millert 1321: if test "x$host_alias" != x; then
1322: if test "x$build_alias" = x; then
1323: cross_compiling=maybe
1324: echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1325: If a cross compiler is detected then cross compile mode will be used." >&2
1326: elif test "x$build_alias" != "x$host_alias"; then
1327: cross_compiling=yes
1328: fi
1329: fi
1.1 millert 1330:
1.9 millert 1331: ac_tool_prefix=
1332: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1.1 millert 1333:
1.9 millert 1334: test "$silent" = yes && exec 6>/dev/null
1.1 millert 1335:
1.16 millert 1336:
1.27 millert 1337: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1338: ac_ls_di=`ls -di .` &&
1339: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1340: { echo "$as_me: error: Working directory cannot be determined" >&2
1341: { (exit 1); exit 1; }; }
1342: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343: { echo "$as_me: error: pwd does not report name of working directory" >&2
1344: { (exit 1); exit 1; }; }
1345:
1346:
1.1 millert 1347: # Find the source files, if location was not specified.
1348: if test -z "$srcdir"; then
1349: ac_srcdir_defaulted=yes
1.27 millert 1350: # Try the directory containing this script, then the parent directory.
1351: ac_confdir=`$as_dirname -- "$0" ||
1.16 millert 1352: $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1.25 millert 1353: X"$0" : 'X\(//\)[^/]' \| \
1354: X"$0" : 'X\(//\)$' \| \
1.27 millert 1355: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1.16 millert 1356: echo X"$0" |
1.27 millert 1357: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358: s//\1/
1359: q
1360: }
1361: /^X\(\/\/\)[^/].*/{
1362: s//\1/
1363: q
1364: }
1365: /^X\(\/\/\)$/{
1366: s//\1/
1367: q
1368: }
1369: /^X\(\/\).*/{
1370: s//\1/
1371: q
1372: }
1373: s/.*/./; q'`
1.1 millert 1374: srcdir=$ac_confdir
1.27 millert 1375: if test ! -r "$srcdir/$ac_unique_file"; then
1.1 millert 1376: srcdir=..
1377: fi
1378: else
1379: ac_srcdir_defaulted=no
1380: fi
1.27 millert 1381: if test ! -r "$srcdir/$ac_unique_file"; then
1382: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383: { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1384: { (exit 1); exit 1; }; }
1385: fi
1386: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387: ac_abs_confdir=`(
1388: cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1389: { (exit 1); exit 1; }; }
1390: pwd)`
1391: # When building in place, set srcdir=.
1392: if test "$ac_abs_confdir" = "$ac_pwd"; then
1393: srcdir=.
1394: fi
1395: # Remove unnecessary trailing slashes from srcdir.
1396: # Double slashes in file names in object file debugging info
1397: # mess up M-x gdb in Emacs.
1398: case $srcdir in
1399: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400: esac
1401: for ac_var in $ac_precious_vars; do
1402: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1403: eval ac_env_${ac_var}_value=\$${ac_var}
1404: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1405: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1406: done
1.9 millert 1407:
1408: #
1409: # Report the --help message.
1410: #
1411: if test "$ac_init_help" = "long"; then
1412: # Omit some internal or obsolete options to make the list less imposing.
1413: # This message is too long to be a string in the A/UX 3.1 sh.
1.16 millert 1414: cat <<_ACEOF
1.37 millert 1415: \`configure' configures sudo 1.7 to adapt to many kinds of systems.
1.9 millert 1416:
1417: Usage: $0 [OPTION]... [VAR=VALUE]...
1418:
1419: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1420: VAR=VALUE. See below for descriptions of some of the useful variables.
1421:
1422: Defaults for the options are specified in brackets.
1423:
1424: Configuration:
1425: -h, --help display this help and exit
1426: --help=short display options specific to this package
1427: --help=recursive display the short help of all the included packages
1428: -V, --version display version information and exit
1429: -q, --quiet, --silent do not print \`checking...' messages
1430: --cache-file=FILE cache test results in FILE [disabled]
1431: -C, --config-cache alias for \`--cache-file=config.cache'
1432: -n, --no-create do not create output files
1433: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434:
1435: Installation directories:
1436: --prefix=PREFIX install architecture-independent files in PREFIX
1.25 millert 1437: [$ac_default_prefix]
1.9 millert 1438: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1.25 millert 1439: [PREFIX]
1.9 millert 1440:
1441: By default, \`make install' will install all the files in
1442: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1443: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1444: for instance \`--prefix=\$HOME'.
1445:
1446: For better control, use the options below.
1447:
1448: Fine tuning of the installation directories:
1449: --bindir=DIR user executables [EPREFIX/bin]
1450: --sbindir=DIR system admin executables [EPREFIX/sbin]
1451: --libexecdir=DIR program executables [EPREFIX/libexec]
1.27 millert 1452: --sysconfdir=DIR read-only single-machine data [etc]
1.9 millert 1453: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1454: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1455: --libdir=DIR object code libraries [EPREFIX/lib]
1456: --includedir=DIR C header files [PREFIX/include]
1457: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1.27 millert 1458: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460: --infodir=DIR info documentation [DATAROOTDIR/info]
1461: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462: --mandir=DIR man documentation [DATAROOTDIR/man]
1463: --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1464: --htmldir=DIR html documentation [DOCDIR]
1465: --dvidir=DIR dvi documentation [DOCDIR]
1466: --pdfdir=DIR pdf documentation [DOCDIR]
1467: --psdir=DIR ps documentation [DOCDIR]
1.16 millert 1468: _ACEOF
1.9 millert 1469:
1.16 millert 1470: cat <<\_ACEOF
1.9 millert 1471:
1472: System types:
1473: --build=BUILD configure for building on BUILD [guessed]
1.16 millert 1474: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475: _ACEOF
1.9 millert 1476: fi
1477:
1478: if test -n "$ac_init_help"; then
1479: case $ac_init_help in
1.37 millert 1480: short | recursive ) echo "Configuration of sudo 1.7:";;
1.9 millert 1481: esac
1.16 millert 1482: cat <<\_ACEOF
1.9 millert 1483:
1484: Optional Features:
1485: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1486: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1487: --disable-authentication
1488: Do not require authentication by default
1.12 millert 1489: --disable-root-mailer Don't run the mailer as root, run as the user
1.13 millert 1490: --disable-setreuid Don't try to use the setreuid() function
1.25 millert 1491: --disable-setresuid Don't try to use the setresuid() function
1.9 millert 1492: --disable-shadow Never use shadow passwords
1.12 millert 1493: --disable-root-sudo Don't allow root to run sudo
1.9 millert 1494: --enable-log-host Log the hostname in the log file
1495: --enable-noargs-shell If sudo is given no arguments run a shell
1496: --enable-shell-sets-home
1.37 millert 1497: Set $HOME to target user in shell mode
1.9 millert 1498: --disable-path-info Print 'command not allowed' not 'command not found'
1.39 ! millert 1499: --enable-env-debug Whether to enable environment debugging.
1.37 millert 1500: --enable-gss-krb5-ccache-name
1501: Use GSS-API to set the Kerberos V cred cache name
1.27 millert 1502: --enable-static[=PKGS] build static libraries [default=no]
1503: --enable-shared[=PKGS] build shared libraries [default=yes]
1.23 millert 1504: --enable-fast-install[=PKGS]
1505: optimize for fast installation [default=yes]
1506: --disable-libtool-lock avoid locking (might break parallel builds)
1.27 millert 1507: --disable-sia Disable SIA on Digital UNIX
1.30 millert 1508: --disable-pam-session Disable PAM session support
1.9 millert 1509:
1510: Optional Packages:
1511: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513: --with-otp-only deprecated
1514: --with-alertmail deprecated
1515: --with-CC C compiler to use
1.17 millert 1516: --with-rpath pass -R flag in addition to -L for lib paths
1.25 millert 1517: --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths
1.39 ! millert 1518: --with-bsm-audit enable BSM audit support
1.9 millert 1519: --with-incpath additional places to look for include files
1520: --with-libpath additional places to look for libraries
1521: --with-libraries additional libraries to link with
1.15 david 1522: --with-devel add development options
1.11 millert 1523: --with-efence link with -lefence for malloc() debugging
1.9 millert 1524: --with-csops add CSOps standard options
1525: --without-passwd don't use passwd/shadow file for authentication
1.25 millert 1526: --with-skey=DIR enable S/Key support
1527: --with-opie=DIR enable OPIE support
1.9 millert 1528: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1.17 millert 1529: --with-SecurID[=DIR] enable SecurID support
1530: --with-fwtk[=DIR] enable FWTK AuthSRV support
1531: --with-kerb4[=DIR] enable Kerberos IV support
1532: --with-kerb5[=DIR] enable Kerberos V support
1.25 millert 1533: --with-aixauth enable AIX general authentication support
1.9 millert 1534: --with-pam enable PAM support
1535: --with-AFS enable AFS support
1536: --with-DCE enable DCE support
1537: --with-logincap enable BSD login class support
1538: --with-bsdauth enable BSD authentication support
1.25 millert 1539: --with-project enable Solaris project support
1.9 millert 1540: --without-lecture don't print lecture for first-time sudoer
1541: --with-logging log via syslog, file, or both
1542: --with-logfac syslog facility to log with (default is "local2")
1543: --with-goodpri syslog priority for commands (def is "notice")
1544: --with-badpri syslog priority for failures (def is "alert")
1545: --with-logpath path to the sudo log file
1546: --with-loglen maximum length of a log file line (default is 80)
1547: --with-ignore-dot ignore '.' in the PATH
1548: --without-mail-if-no-user do not send mail if user not in sudoers
1549: --with-mail-if-no-host send mail if user in sudoers but not for this host
1550: --with-mail-if-noperms send mail if user not allowed to run command
1551: --with-mailto who should get sudo mail (default is "root")
1552: --with-mailsubject subject of sudo mail
1553: --with-passprompt default password prompt
1554: --with-badpass-message message the user sees when the password is wrong
1555: --with-fqdn expect fully qualified hosts in sudoers
1556: --with-timedir path to the sudo timestamp dir
1557: --with-sendmail=path set path to sendmail
1558: --without-sendmail do not send mail at all
1559: --with-sudoers-mode mode of sudoers file (defaults to 0440)
1560: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1561: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1562: --with-umask umask with which the prog should run (default is 022)
1563: --without-umask Preserves the umask of the user invoking sudo.
1564: --with-runas-default User to run commands as (default is "root")
1565: --with-exempt=group no passwd needed for users in this group
1566: --with-editor=path Default editor for visudo (defaults to vi)
1567: --with-env-editor Use the environment variable EDITOR for visudo
1568: --with-passwd-tries number of tries to enter password (default is 3)
1569: --with-timeout minutes before sudo asks for passwd again (def is 5 minutes)
1570: --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1571: --with-tty-tickets use a different ticket file for each tty
1572: --with-insults insult the user for entering an incorrect password
1573: --with-all-insults include all the sudo insult sets
1574: --with-classic-insults include the insults from the "classic" sudo
1575: --with-csops-insults include CSOps insults
1576: --with-hal-insults include 2001-like insults
1577: --with-goons-insults include the insults from the "Goon Show"
1.37 millert 1578: --with-nsswitch[=PATH] path to nsswitch.conf
1.25 millert 1579: --with-ldap[=DIR] enable LDAP support
1.23 millert 1580: --with-ldap-conf-file path to LDAP configuration file
1.33 millert 1581: --with-ldap-secret-file path to LDAP secret password file
1.23 millert 1582: --with-pc-insults replace politically incorrect insults with less offensive ones
1.20 millert 1583: --with-secure-path override the user's path with a built-in one
1.9 millert 1584: --without-interfaces don't try to read the ip addr of ether interfaces
1.16 millert 1585: --with-stow properly handle GNU stow packaging
1.37 millert 1586: --with-askpass=PATH Fully qualified pathname of askpass helper
1.36 millert 1587: --with-selinux enable SELinux support
1.27 millert 1588: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1.23 millert 1589: --with-pic try to use only PIC/non-PIC objects [default=use
1590: both]
1.25 millert 1591: --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1.39 ! millert 1592: --with-netsvc[=PATH] path to netsvc.conf
1.9 millert 1593:
1594: Some influential environment variables:
1595: CC C compiler command
1596: CFLAGS C compiler flags
1597: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598: nonstandard directory <lib dir>
1.27 millert 1599: LIBS libraries to pass to the linker, e.g. -l<library>
1600: CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601: you have headers in a nonstandard directory <include dir>
1.9 millert 1602: CPP C preprocessor
1.27 millert 1603: YACC The `Yet Another C Compiler' implementation to use. Defaults to
1604: the first program found out of: `bison -y', `byacc', `yacc'.
1605: YFLAGS The list of arguments that will be passed by default to $YACC.
1606: This script will default YFLAGS to the empty string to avoid a
1607: default value of `-d' given by some make applications.
1.9 millert 1608:
1609: Use these variables to override the choices made by `configure' or to help
1610: it to find libraries and programs with nonstandard names/locations.
1611:
1.16 millert 1612: _ACEOF
1.27 millert 1613: ac_status=$?
1.9 millert 1614: fi
1615:
1616: if test "$ac_init_help" = "recursive"; then
1617: # If there are subdirs, report their specific --help.
1.16 millert 1618: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1.27 millert 1619: test -d "$ac_dir" || continue
1.16 millert 1620: ac_builddir=.
1621:
1.27 millert 1622: case "$ac_dir" in
1623: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624: *)
1.16 millert 1625: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1.27 millert 1626: # A ".." for each directory in $ac_dir_suffix.
1627: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1628: case $ac_top_builddir_sub in
1629: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631: esac ;;
1632: esac
1633: ac_abs_top_builddir=$ac_pwd
1634: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635: # for backward compatibility:
1636: ac_top_builddir=$ac_top_build_prefix
1.16 millert 1637:
1638: case $srcdir in
1.27 millert 1639: .) # We are building in place.
1.16 millert 1640: ac_srcdir=.
1.27 millert 1641: ac_top_srcdir=$ac_top_builddir_sub
1642: ac_abs_top_srcdir=$ac_pwd ;;
1643: [\\/]* | ?:[\\/]* ) # Absolute name.
1.16 millert 1644: ac_srcdir=$srcdir$ac_dir_suffix;
1.27 millert 1645: ac_top_srcdir=$srcdir
1646: ac_abs_top_srcdir=$srcdir ;;
1647: *) # Relative name.
1648: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649: ac_top_srcdir=$ac_top_build_prefix$srcdir
1650: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651: esac
1652: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653:
1654: cd "$ac_dir" || { ac_status=$?; continue; }
1655: # Check for guested configure.
1656: if test -f "$ac_srcdir/configure.gnu"; then
1657: echo &&
1658: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659: elif test -f "$ac_srcdir/configure"; then
1660: echo &&
1661: $SHELL "$ac_srcdir/configure" --help=recursive
1.9 millert 1662: else
1.16 millert 1663: echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1.27 millert 1664: fi || ac_status=$?
1665: cd "$ac_pwd" || { ac_status=$?; break; }
1.9 millert 1666: done
1667: fi
1668:
1.27 millert 1669: test -n "$ac_init_help" && exit $ac_status
1.9 millert 1670: if $ac_init_version; then
1.16 millert 1671: cat <<\_ACEOF
1.37 millert 1672: sudo configure 1.7
1.27 millert 1673: generated by GNU Autoconf 2.61
1.9 millert 1674:
1.27 millert 1675: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1676: 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1.9 millert 1677: This configure script is free software; the Free Software Foundation
1678: gives unlimited permission to copy, distribute and modify it.
1.16 millert 1679: _ACEOF
1.27 millert 1680: exit
1.9 millert 1681: fi
1.27 millert 1682: cat >config.log <<_ACEOF
1.9 millert 1683: This file contains any messages produced by compilers while
1684: running configure, to aid debugging if configure makes a mistake.
1685:
1.37 millert 1686: It was created by sudo $as_me 1.7, which was
1.27 millert 1687: generated by GNU Autoconf 2.61. Invocation command line was
1.9 millert 1688:
1689: $ $0 $@
1690:
1.16 millert 1691: _ACEOF
1.27 millert 1692: exec 5>>config.log
1.9 millert 1693: {
1694: cat <<_ASUNAME
1.16 millert 1695: ## --------- ##
1696: ## Platform. ##
1697: ## --------- ##
1.9 millert 1698:
1699: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700: uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701: uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702: uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703: uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704:
1705: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1707:
1708: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1709: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1710: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1.27 millert 1711: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1.9 millert 1712: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1713: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1714: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1715:
1.16 millert 1716: _ASUNAME
1717:
1718: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719: for as_dir in $PATH
1720: do
1721: IFS=$as_save_IFS
1722: test -z "$as_dir" && as_dir=.
1723: echo "PATH: $as_dir"
1724: done
1.27 millert 1725: IFS=$as_save_IFS
1.9 millert 1726:
1727: } >&5
1728:
1.16 millert 1729: cat >&5 <<_ACEOF
1730:
1731:
1732: ## ----------- ##
1733: ## Core tests. ##
1734: ## ----------- ##
1735:
1736: _ACEOF
1.9 millert 1737:
1738:
1739: # Keep a trace of the command line.
1740: # Strip out --no-create and --no-recursion so they do not pile up.
1.16 millert 1741: # Strip out --silent because we don't want to record it for future runs.
1.9 millert 1742: # Also quote any args containing shell meta-characters.
1.16 millert 1743: # Make two passes to allow for proper duplicate-argument suppression.
1.9 millert 1744: ac_configure_args=
1.16 millert 1745: ac_configure_args0=
1746: ac_configure_args1=
1747: ac_must_keep_next=false
1748: for ac_pass in 1 2
1.9 millert 1749: do
1.16 millert 1750: for ac_arg
1751: do
1752: case $ac_arg in
1753: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755: | -silent | --silent | --silen | --sile | --sil)
1756: continue ;;
1.27 millert 1757: *\'*)
1.16 millert 1758: ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759: esac
1760: case $ac_pass in
1761: 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1762: 2)
1763: ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764: if test $ac_must_keep_next = true; then
1.25 millert 1765: ac_must_keep_next=false # Got value, back to normal.
1.16 millert 1766: else
1.25 millert 1767: case $ac_arg in
1768: *=* | --config-cache | -C | -disable-* | --disable-* \
1769: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771: | -with-* | --with-* | -without-* | --without-* | --x)
1772: case "$ac_configure_args0 " in
1773: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774: esac
1775: ;;
1776: -* ) ac_must_keep_next=true ;;
1777: esac
1.16 millert 1778: fi
1.27 millert 1779: ac_configure_args="$ac_configure_args '$ac_arg'"
1.16 millert 1780: ;;
1781: esac
1782: done
1.9 millert 1783: done
1.16 millert 1784: $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785: $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1.9 millert 1786:
1787: # When interrupted or exit'd, cleanup temporary files, and complete
1788: # config.log. We remove comments because anyway the quotes in there
1789: # would cause problems or look ugly.
1.27 millert 1790: # WARNING: Use '\'' to represent an apostrophe within the trap.
1791: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1.9 millert 1792: trap 'exit_status=$?
1793: # Save into config.log some information that might help in debugging.
1.16 millert 1794: {
1795: echo
1796:
1797: cat <<\_ASBOX
1798: ## ---------------- ##
1799: ## Cache variables. ##
1800: ## ---------------- ##
1801: _ASBOX
1802: echo
1803: # The following way of writing the cache mishandles newlines in values,
1.27 millert 1804: (
1805: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806: eval ac_val=\$$ac_var
1807: case $ac_val in #(
1808: *${as_nl}*)
1809: case $ac_var in #(
1810: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812: esac
1813: case $ac_var in #(
1814: _ | IFS | as_nl) ;; #(
1815: *) $as_unset $ac_var ;;
1816: esac ;;
1817: esac
1818: done
1.9 millert 1819: (set) 2>&1 |
1.27 millert 1820: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821: *${as_nl}ac_space=\ *)
1.9 millert 1822: sed -n \
1.27 millert 1823: "s/'\''/'\''\\\\'\'''\''/g;
1824: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825: ;; #(
1.9 millert 1826: *)
1.27 millert 1827: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1.9 millert 1828: ;;
1.27 millert 1829: esac |
1830: sort
1831: )
1.16 millert 1832: echo
1833:
1834: cat <<\_ASBOX
1835: ## ----------------- ##
1836: ## Output variables. ##
1837: ## ----------------- ##
1838: _ASBOX
1839: echo
1840: for ac_var in $ac_subst_vars
1841: do
1.27 millert 1842: eval ac_val=\$$ac_var
1843: case $ac_val in
1844: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845: esac
1846: echo "$ac_var='\''$ac_val'\''"
1.16 millert 1847: done | sort
1848: echo
1849:
1850: if test -n "$ac_subst_files"; then
1851: cat <<\_ASBOX
1.27 millert 1852: ## ------------------- ##
1853: ## File substitutions. ##
1854: ## ------------------- ##
1.16 millert 1855: _ASBOX
1856: echo
1857: for ac_var in $ac_subst_files
1858: do
1.27 millert 1859: eval ac_val=\$$ac_var
1860: case $ac_val in
1861: *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862: esac
1863: echo "$ac_var='\''$ac_val'\''"
1.16 millert 1864: done | sort
1865: echo
1866: fi
1867:
1868: if test -s confdefs.h; then
1869: cat <<\_ASBOX
1870: ## ----------- ##
1871: ## confdefs.h. ##
1872: ## ----------- ##
1873: _ASBOX
1874: echo
1.27 millert 1875: cat confdefs.h
1.16 millert 1876: echo
1877: fi
1878: test "$ac_signal" != 0 &&
1879: echo "$as_me: caught signal $ac_signal"
1880: echo "$as_me: exit $exit_status"
1881: } >&5
1.27 millert 1882: rm -f core *.core core.conftest.* &&
1883: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1.9 millert 1884: exit $exit_status
1.27 millert 1885: ' 0
1.9 millert 1886: for ac_signal in 1 2 13 15; do
1887: trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888: done
1889: ac_signal=0
1.1 millert 1890:
1.9 millert 1891: # confdefs.h avoids OS command line length limits that DEFS can exceed.
1.27 millert 1892: rm -f -r conftest* confdefs.h
1.9 millert 1893:
1.16 millert 1894: # Predefined preprocessor variables.
1895:
1896: cat >>confdefs.h <<_ACEOF
1897: #define PACKAGE_NAME "$PACKAGE_NAME"
1898: _ACEOF
1899:
1900:
1901: cat >>confdefs.h <<_ACEOF
1902: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903: _ACEOF
1904:
1905:
1906: cat >>confdefs.h <<_ACEOF
1907: #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908: _ACEOF
1909:
1910:
1911: cat >>confdefs.h <<_ACEOF
1912: #define PACKAGE_STRING "$PACKAGE_STRING"
1913: _ACEOF
1914:
1915:
1916: cat >>confdefs.h <<_ACEOF
1917: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918: _ACEOF
1919:
1920:
1.9 millert 1921: # Let the site file select an alternate cache file if it wants to.
1.1 millert 1922: # Prefer explicitly selected file to automatically selected ones.
1.27 millert 1923: if test -n "$CONFIG_SITE"; then
1924: set x "$CONFIG_SITE"
1925: elif test "x$prefix" != xNONE; then
1926: set x "$prefix/share/config.site" "$prefix/etc/config.site"
1927: else
1928: set x "$ac_default_prefix/share/config.site" \
1929: "$ac_default_prefix/etc/config.site"
1.1 millert 1930: fi
1.27 millert 1931: shift
1932: for ac_site_file
1933: do
1.1 millert 1934: if test -r "$ac_site_file"; then
1.16 millert 1935: { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1.9 millert 1936: echo "$as_me: loading site script $ac_site_file" >&6;}
1.16 millert 1937: sed 's/^/| /' "$ac_site_file" >&5
1.1 millert 1938: . "$ac_site_file"
1939: fi
1940: done
1941:
1942: if test -r "$cache_file"; then
1.9 millert 1943: # Some versions of bash will fail to source /dev/null (special
1944: # files actually), so we avoid doing that.
1945: if test -f "$cache_file"; then
1.16 millert 1946: { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1.9 millert 1947: echo "$as_me: loading cache $cache_file" >&6;}
1948: case $cache_file in
1.27 millert 1949: [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950: *) . "./$cache_file";;
1.9 millert 1951: esac
1952: fi
1.1 millert 1953: else
1.16 millert 1954: { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1.9 millert 1955: echo "$as_me: creating cache $cache_file" >&6;}
1956: >$cache_file
1957: fi
1958:
1959: # Check that the precious variables saved in the cache have kept the same
1960: # value.
1961: ac_cache_corrupted=false
1.27 millert 1962: for ac_var in $ac_precious_vars; do
1.9 millert 1963: eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964: eval ac_new_set=\$ac_env_${ac_var}_set
1.27 millert 1965: eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966: eval ac_new_val=\$ac_env_${ac_var}_value
1.9 millert 1967: case $ac_old_set,$ac_new_set in
1968: set,)
1.16 millert 1969: { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1.9 millert 1970: echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971: ac_cache_corrupted=: ;;
1972: ,set)
1.16 millert 1973: { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1.9 millert 1974: echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975: ac_cache_corrupted=: ;;
1976: ,);;
1977: *)
1978: if test "x$ac_old_val" != "x$ac_new_val"; then
1.25 millert 1979: { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1.9 millert 1980: echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1.25 millert 1981: { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1.9 millert 1982: echo "$as_me: former value: $ac_old_val" >&2;}
1.25 millert 1983: { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1.9 millert 1984: echo "$as_me: current value: $ac_new_val" >&2;}
1.25 millert 1985: ac_cache_corrupted=:
1.9 millert 1986: fi;;
1987: esac
1.16 millert 1988: # Pass precious variables to config.status.
1.9 millert 1989: if test "$ac_new_set" = set; then
1990: case $ac_new_val in
1.27 millert 1991: *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1.16 millert 1992: *) ac_arg=$ac_var=$ac_new_val ;;
1993: esac
1994: case " $ac_configure_args " in
1995: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1996: *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1.9 millert 1997: esac
1998: fi
1999: done
2000: if $ac_cache_corrupted; then
1.16 millert 2001: { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1.9 millert 2002: echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1.16 millert 2003: { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1.9 millert 2004: echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005: { (exit 1); exit 1; }; }
1.1 millert 2006: fi
2007:
1.9 millert 2008:
2009:
1.16 millert 2010:
2011:
2012:
2013:
2014:
2015:
2016:
2017:
2018:
2019:
2020:
2021:
2022:
2023:
2024:
2025:
2026:
2027:
2028:
2029:
2030:
2031:
1.27 millert 2032: ac_ext=c
2033: ac_cpp='$CPP $CPPFLAGS'
2034: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.16 millert 2037:
2038:
1.27 millert 2039: ac_config_headers="$ac_config_headers config.h pathnames.h"
1.16 millert 2040:
1.37 millert 2041: { echo "$as_me:$LINENO: Configuring Sudo version 1.7" >&5
2042: echo "$as_me: Configuring Sudo version 1.7" >&6;}
2043:
2044:
2045:
2046:
2047:
2048:
2049:
2050:
1.25 millert 2051:
2052:
2053:
2054:
2055:
2056:
2057:
2058:
2059:
2060:
2061:
2062:
2063:
2064:
2065:
2066:
2067:
2068:
2069:
1.23 millert 2070:
2071:
2072:
2073:
2074:
1.16 millert 2075:
2076:
2077:
2078:
2079:
2080:
2081:
2082:
2083:
2084:
2085:
2086:
2087:
2088:
2089:
2090:
2091:
2092:
2093:
2094:
2095:
2096:
2097:
2098:
2099:
2100:
1.9 millert 2101:
1.32 millert 2102:
1.36 millert 2103:
2104:
2105:
2106:
2107:
1.39 ! millert 2108:
! 2109:
1.9 millert 2110: timeout=5
2111: password_timeout=5
2112: sudo_umask=0022
2113: passprompt="Password:"
2114: long_otp_prompt=off
1.23 millert 2115: lecture=once
1.9 millert 2116: logfac=local2
2117: goodpri=notice
2118: badpri=alert
2119: loglen=80
2120: ignore_dot=off
2121: mail_no_user=on
2122: mail_no_host=off
2123: mail_no_perms=off
2124: mailto=root
2125: mailsub='*** SECURITY information for %h ***'
2126: badpass_message='Sorry, try again.'
2127: fqdn=off
2128: runas_default=root
2129: env_editor=off
2130: passwd_tries=3
2131: tty_tickets=off
2132: insults=off
1.23 millert 2133: root_sudo=on
1.25 millert 2134: path_info=on
1.23 millert 2135: INSTALL_NOEXEC=
1.37 millert 2136: devdir='$(srcdir)'
1.1 millert 2137: PROGS="sudo visudo"
1.25 millert 2138: : ${MANTYPE='man'}
2139: : ${mansrcdir='.'}
2140: : ${SUDOERS_MODE='0440'}
2141: : ${SUDOERS_UID='0'}
2142: : ${SUDOERS_GID='0'}
1.1 millert 2143: DEV="#"
1.37 millert 2144: LDAP="#"
1.36 millert 2145: SELINUX="#"
2146: BAMAN='.\" '
2147: LCMAN='.\" '
2148: SEMAN='.\" '
1.27 millert 2149: AUTH_OBJS=
2150: AUTH_REG=
2151: AUTH_EXCL=
2152: AUTH_EXCL_DEF=
2153: AUTH_DEF=passwd
1.1 millert 2154:
2155: CHECKSHADOW=true
1.25 millert 2156: shadow_defs=
2157: shadow_funcs=
2158: shadow_libs=
2159: shadow_libs_optional=
1.1 millert 2160:
1.36 millert 2161: if test X"$prefix" = X"NONE"; then
2162: test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2163: else
2164: test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2165: fi
1.1 millert 2166: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2167: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
1.16 millert 2168: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2169:
2170:
1.1 millert 2171:
1.27 millert 2172: # Check whether --with-otp-only was given.
1.1 millert 2173: if test "${with_otp_only+set}" = set; then
1.27 millert 2174: withval=$with_otp_only; case $with_otp_only in
2175: yes) with_passwd="no"
1.17 millert 2176: { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2177: echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
1.1 millert 2178: ;;
2179: esac
1.27 millert 2180: fi
2181:
1.1 millert 2182:
1.16 millert 2183:
1.27 millert 2184: # Check whether --with-alertmail was given.
1.1 millert 2185: if test "${with_alertmail+set}" = set; then
1.27 millert 2186: withval=$with_alertmail; case $with_alertmail in
1.1 millert 2187: *) with_mailto="$with_alertmail"
1.17 millert 2188: { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2189: echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
1.1 millert 2190: ;;
2191: esac
1.27 millert 2192: fi
2193:
1.1 millert 2194:
1.16 millert 2195:
2196:
1.27 millert 2197: # Check whether --with-CC was given.
1.1 millert 2198: if test "${with_CC+set}" = set; then
1.27 millert 2199: withval=$with_CC; case $with_CC in
1.16 millert 2200: yes) { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
1.9 millert 2201: echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2202: { (exit 1); exit 1; }; }
2203: ;;
1.16 millert 2204: no) { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
1.9 millert 2205: echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2206: { (exit 1); exit 1; }; }
1.1 millert 2207: ;;
2208: *) CC=$with_CC
2209: ;;
2210: esac
1.27 millert 2211: fi
2212:
1.1 millert 2213:
1.16 millert 2214:
1.27 millert 2215: # Check whether --with-rpath was given.
1.17 millert 2216: if test "${with_rpath+set}" = set; then
1.27 millert 2217: withval=$with_rpath; case $with_rpath in
1.25 millert 2218: yes|no) ;;
1.17 millert 2219: *) { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2220: echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2221: { (exit 1); exit 1; }; }
2222: ;;
2223: esac
1.27 millert 2224: fi
2225:
1.17 millert 2226:
2227:
1.27 millert 2228: # Check whether --with-blibpath was given.
1.17 millert 2229: if test "${with_blibpath+set}" = set; then
1.27 millert 2230: withval=$with_blibpath; case $with_blibpath in
1.25 millert 2231: yes|no) ;;
1.17 millert 2232: *) { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2233: echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2234: ;;
2235: esac
1.27 millert 2236: fi
2237:
1.17 millert 2238:
2239:
1.39 ! millert 2240: # Check whether --with-bsm-audit was given.
! 2241: if test "${with_bsm_audit+set}" = set; then
! 2242: withval=$with_bsm_audit; case $with_bsm_audit in
! 2243: yes) cat >>confdefs.h <<\_ACEOF
! 2244: #define HAVE_BSM_AUDIT 1
! 2245: _ACEOF
! 2246:
! 2247: SUDO_LIBS="${SUDO_LIBS} -lbsm"
! 2248: SUDO_OBJS="${SUDO_OBJS} bsm_audit.o"
! 2249: ;;
! 2250: no) ;;
! 2251: *) { { echo "$as_me:$LINENO: error: \"--with-bsm-audit does not take an argument.\"" >&5
! 2252: echo "$as_me: error: \"--with-bsm-audit does not take an argument.\"" >&2;}
! 2253: { (exit 1); exit 1; }; }
! 2254: ;;
! 2255: esac
! 2256: fi
! 2257:
! 2258:
! 2259:
1.27 millert 2260: # Check whether --with-incpath was given.
1.1 millert 2261: if test "${with_incpath+set}" = set; then
1.27 millert 2262: withval=$with_incpath; case $with_incpath in
1.16 millert 2263: yes) { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
1.9 millert 2264: echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2265: { (exit 1); exit 1; }; }
2266: ;;
1.16 millert 2267: no) { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
1.9 millert 2268: echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2269: { (exit 1); exit 1; }; }
1.1 millert 2270: ;;
1.17 millert 2271: *) { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2272: echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
1.1 millert 2273: for i in ${with_incpath}; do
2274: CPPFLAGS="${CPPFLAGS} -I${i}"
2275: done
2276: ;;
2277: esac
1.27 millert 2278: fi
2279:
1.1 millert 2280:
1.16 millert 2281:
1.27 millert 2282: # Check whether --with-libpath was given.
1.1 millert 2283: if test "${with_libpath+set}" = set; then
1.27 millert 2284: withval=$with_libpath; case $with_libpath in
1.16 millert 2285: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
1.9 millert 2286: echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2287: { (exit 1); exit 1; }; }
2288: ;;
1.16 millert 2289: no) { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
1.9 millert 2290: echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2291: { (exit 1); exit 1; }; }
1.1 millert 2292: ;;
1.17 millert 2293: *) { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2294: echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
1.1 millert 2295: ;;
2296: esac
1.27 millert 2297: fi
2298:
1.1 millert 2299:
1.16 millert 2300:
1.27 millert 2301: # Check whether --with-libraries was given.
1.1 millert 2302: if test "${with_libraries+set}" = set; then
1.27 millert 2303: withval=$with_libraries; case $with_libraries in
1.16 millert 2304: yes) { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
1.9 millert 2305: echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2306: { (exit 1); exit 1; }; }
2307: ;;
1.16 millert 2308: no) { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
1.9 millert 2309: echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2310: { (exit 1); exit 1; }; }
1.1 millert 2311: ;;
1.17 millert 2312: *) { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2313: echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
1.1 millert 2314: ;;
2315: esac
1.27 millert 2316: fi
2317:
1.1 millert 2318:
1.16 millert 2319:
1.27 millert 2320: # Check whether --with-devel was given.
1.1 millert 2321: if test "${with_devel+set}" = set; then
1.27 millert 2322: withval=$with_devel; case $with_devel in
1.17 millert 2323: yes) { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2324: echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
1.1 millert 2325: PROGS="${PROGS} testsudoers"
2326: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2327: DEV=""
1.37 millert 2328: devdir=.
1.1 millert 2329: ;;
2330: no) ;;
1.17 millert 2331: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2332: echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
1.1 millert 2333: ;;
2334: esac
1.27 millert 2335: fi
2336:
1.1 millert 2337:
1.16 millert 2338:
1.27 millert 2339: # Check whether --with-efence was given.
1.11 millert 2340: if test "${with_efence+set}" = set; then
1.27 millert 2341: withval=$with_efence; case $with_efence in
1.17 millert 2342: yes) { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2343: echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
1.11 millert 2344: LIBS="${LIBS} -lefence"
2345: if test -f /usr/local/lib/libefence.a; then
1.17 millert 2346: with_libpath="${with_libpath} /usr/local/lib"
1.11 millert 2347: fi
2348: ;;
2349: no) ;;
1.17 millert 2350: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2351: echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
1.11 millert 2352: ;;
2353: esac
1.27 millert 2354: fi
2355:
1.11 millert 2356:
1.16 millert 2357:
1.27 millert 2358: # Check whether --with-csops was given.
1.1 millert 2359: if test "${with_csops+set}" = set; then
1.27 millert 2360: withval=$with_csops; case $with_csops in
1.17 millert 2361: yes) { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2362: echo "$as_me: Adding CSOps standard options" >&6;}
1.1 millert 2363: CHECKSIA=false
2364: with_ignore_dot=yes
1.9 millert 2365: insults=on
1.1 millert 2366: with_classic_insults=yes
2367: with_csops_insults=yes
2368: with_env_editor=yes
1.25 millert 2369: : ${mansectsu='8'}
2370: : ${mansectform='5'}
1.1 millert 2371: ;;
2372: no) ;;
1.17 millert 2373: *) { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2374: echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
1.1 millert 2375: ;;
2376: esac
1.27 millert 2377: fi
2378:
1.1 millert 2379:
1.16 millert 2380:
1.27 millert 2381: # Check whether --with-passwd was given.
1.1 millert 2382: if test "${with_passwd+set}" = set; then
1.27 millert 2383: withval=$with_passwd; case $with_passwd in
2384: yes|no) { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2385: echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2386: { echo "$as_me:$LINENO: result: $with_passwd" >&5
2387: echo "${ECHO_T}$with_passwd" >&6; }
2388: AUTH_DEF=""
2389: test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
1.1 millert 2390: ;;
1.16 millert 2391: *) { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
1.9 millert 2392: echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2393: { (exit 1); exit 1; }; }
1.1 millert 2394: ;;
2395: esac
1.27 millert 2396: fi
1.1 millert 2397:
1.16 millert 2398:
1.27 millert 2399:
2400: # Check whether --with-skey was given.
1.1 millert 2401: if test "${with_skey+set}" = set; then
1.27 millert 2402: withval=$with_skey; case $with_skey in
1.25 millert 2403: no) with_skey=""
2404: ;;
1.27 millert 2405: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2406: #define HAVE_SKEY 1
1.16 millert 2407: _ACEOF
1.1 millert 2408:
1.27 millert 2409: { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2410: echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2411: { echo "$as_me:$LINENO: result: yes" >&5
2412: echo "${ECHO_T}yes" >&6; }
2413: AUTH_REG="$AUTH_REG S/Key"
2414: ;;
2415: esac
1.25 millert 2416: fi
2417:
1.1 millert 2418:
1.16 millert 2419:
1.27 millert 2420: # Check whether --with-opie was given.
1.1 millert 2421: if test "${with_opie+set}" = set; then
1.27 millert 2422: withval=$with_opie; case $with_opie in
1.25 millert 2423: no) with_opie=""
2424: ;;
1.27 millert 2425: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2426: #define HAVE_OPIE 1
1.16 millert 2427: _ACEOF
1.1 millert 2428:
1.27 millert 2429: { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2430: echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2431: { echo "$as_me:$LINENO: result: yes" >&5
2432: echo "${ECHO_T}yes" >&6; }
2433: AUTH_REG="$AUTH_REG NRL_OPIE"
2434: ;;
2435: esac
1.25 millert 2436: fi
2437:
1.1 millert 2438:
1.16 millert 2439:
1.27 millert 2440: # Check whether --with-long-otp-prompt was given.
1.1 millert 2441: if test "${with_long_otp_prompt+set}" = set; then
1.27 millert 2442: withval=$with_long_otp_prompt; case $with_long_otp_prompt in
1.23 millert 2443: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2444: #define LONG_OTP_PROMPT 1
1.16 millert 2445: _ACEOF
1.1 millert 2446:
1.27 millert 2447: { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2448: echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2449: { echo "$as_me:$LINENO: result: yes" >&5
2450: echo "${ECHO_T}yes" >&6; }
1.9 millert 2451: long_otp_prompt=on
1.1 millert 2452: ;;
1.9 millert 2453: no) long_otp_prompt=off
2454: ;;
1.16 millert 2455: *) { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
1.9 millert 2456: echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2457: { (exit 1); exit 1; }; }
1.1 millert 2458: ;;
2459: esac
1.27 millert 2460: fi
2461:
1.1 millert 2462:
1.16 millert 2463:
1.27 millert 2464: # Check whether --with-SecurID was given.
1.1 millert 2465: if test "${with_SecurID+set}" = set; then
1.27 millert 2466: withval=$with_SecurID; case $with_SecurID in
1.17 millert 2467: no) with_SecurID="";;
1.23 millert 2468: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2469: #define HAVE_SECURID 1
1.16 millert 2470: _ACEOF
1.1 millert 2471:
1.27 millert 2472: { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2473: echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2474: { echo "$as_me:$LINENO: result: yes" >&5
2475: echo "${ECHO_T}yes" >&6; }
2476: AUTH_EXCL="$AUTH_EXCL SecurID"
1.1 millert 2477: ;;
2478: esac
1.27 millert 2479: fi
2480:
1.1 millert 2481:
1.16 millert 2482:
1.27 millert 2483: # Check whether --with-fwtk was given.
1.1 millert 2484: if test "${with_fwtk+set}" = set; then
1.27 millert 2485: withval=$with_fwtk; case $with_fwtk in
1.17 millert 2486: no) with_fwtk="";;
1.23 millert 2487: *) cat >>confdefs.h <<\_ACEOF
1.1 millert 2488: #define HAVE_FWTK 1
1.16 millert 2489: _ACEOF
1.1 millert 2490:
1.27 millert 2491: { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2492: echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2493: { echo "$as_me:$LINENO: result: yes" >&5
2494: echo "${ECHO_T}yes" >&6; }
2495: AUTH_EXCL="$AUTH_EXCL FWTK"
2496: ;;
2497: esac
1.25 millert 2498: fi
2499:
1.1 millert 2500:
1.16 millert 2501:
1.27 millert 2502: # Check whether --with-kerb4 was given.
1.1 millert 2503: if test "${with_kerb4+set}" = set; then
1.27 millert 2504: withval=$with_kerb4; case $with_kerb4 in
1.17 millert 2505: no) with_kerb4="";;
1.27 millert 2506: *) { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2507: echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2508: { echo "$as_me:$LINENO: result: yes" >&5
2509: echo "${ECHO_T}yes" >&6; }
2510: AUTH_REG="$AUTH_REG kerb4"
1.1 millert 2511: ;;
2512: esac
1.27 millert 2513: fi
2514:
1.1 millert 2515:
1.16 millert 2516:
1.27 millert 2517: # Check whether --with-kerb5 was given.
1.1 millert 2518: if test "${with_kerb5+set}" = set; then
1.27 millert 2519: withval=$with_kerb5; case $with_kerb5 in
1.17 millert 2520: no) with_kerb5="";;
1.27 millert 2521: *) { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2522: echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2523: { echo "$as_me:$LINENO: result: yes" >&5
2524: echo "${ECHO_T}yes" >&6; }
2525: AUTH_REG="$AUTH_REG kerb5"
1.1 millert 2526: ;;
2527: esac
1.27 millert 2528: fi
2529:
1.1 millert 2530:
1.16 millert 2531:
1.27 millert 2532: # Check whether --with-aixauth was given.
1.25 millert 2533: if test "${with_aixauth+set}" = set; then
1.27 millert 2534: withval=$with_aixauth; case $with_aixauth in
2535: yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2536: no) ;;
1.25 millert 2537: *) { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2538: echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
1.9 millert 2539: { (exit 1); exit 1; }; }
1.1 millert 2540: ;;
2541: esac
1.27 millert 2542: fi
2543:
1.1 millert 2544:
1.16 millert 2545:
1.27 millert 2546: # Check whether --with-pam was given.
1.1 millert 2547: if test "${with_pam+set}" = set; then
1.27 millert 2548: withval=$with_pam; case $with_pam in
2549: yes) AUTH_EXCL="$AUTH_EXCL PAM";;
2550: no) ;;
1.16 millert 2551: *) { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
1.9 millert 2552: echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2553: { (exit 1); exit 1; }; }
1.1 millert 2554: ;;
2555: esac
1.27 millert 2556: fi
2557:
1.1 millert 2558:
1.16 millert 2559:
1.27 millert 2560: # Check whether --with-AFS was given.
1.1 millert 2561: if test "${with_AFS+set}" = set; then
1.27 millert 2562: withval=$with_AFS; case $with_AFS in
1.23 millert 2563: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2564: #define HAVE_AFS 1
1.16 millert 2565: _ACEOF
1.1 millert 2566:
1.27 millert 2567: { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2568: echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2569: { echo "$as_me:$LINENO: result: yes" >&5
2570: echo "${ECHO_T}yes" >&6; }
2571: AUTH_REG="$AUTH_REG AFS"
1.1 millert 2572: ;;
2573: no) ;;
1.16 millert 2574: *) { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
1.9 millert 2575: echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2576: { (exit 1); exit 1; }; }
1.1 millert 2577: ;;
2578: esac
1.27 millert 2579: fi
2580:
1.1 millert 2581:
1.16 millert 2582:
1.27 millert 2583: # Check whether --with-DCE was given.
1.1 millert 2584: if test "${with_DCE+set}" = set; then
1.27 millert 2585: withval=$with_DCE; case $with_DCE in
1.23 millert 2586: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 2587: #define HAVE_DCE 1
1.16 millert 2588: _ACEOF
1.1 millert 2589:
1.27 millert 2590: { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2591: echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2592: { echo "$as_me:$LINENO: result: yes" >&5
2593: echo "${ECHO_T}yes" >&6; }
2594: AUTH_REG="$AUTH_REG DCE"
1.1 millert 2595: ;;
2596: no) ;;
1.16 millert 2597: *) { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
1.9 millert 2598: echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2599: { (exit 1); exit 1; }; }
1.1 millert 2600: ;;
2601: esac
1.27 millert 2602: fi
2603:
1.1 millert 2604:
1.16 millert 2605:
1.27 millert 2606: # Check whether --with-logincap was given.
1.6 millert 2607: if test "${with_logincap+set}" = set; then
1.27 millert 2608: withval=$with_logincap; case $with_logincap in
1.7 millert 2609: yes|no) ;;
1.16 millert 2610: *) { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
1.9 millert 2611: echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2612: { (exit 1); exit 1; }; }
1.7 millert 2613: ;;
2614: esac
1.27 millert 2615: fi
2616:
1.6 millert 2617:
1.16 millert 2618:
1.27 millert 2619: # Check whether --with-bsdauth was given.
1.7 millert 2620: if test "${with_bsdauth+set}" = set; then
1.27 millert 2621: withval=$with_bsdauth; case $with_bsdauth in
2622: yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2623: no) ;;
1.16 millert 2624: *) { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
1.9 millert 2625: echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2626: { (exit 1); exit 1; }; }
1.6 millert 2627: ;;
2628: esac
1.27 millert 2629: fi
2630:
1.6 millert 2631:
1.25 millert 2632:
1.27 millert 2633: # Check whether --with-project was given.
1.25 millert 2634: if test "${with_project+set}" = set; then
1.27 millert 2635: withval=$with_project; case $with_project in
1.25 millert 2636: yes|no) ;;
2637: no) ;;
2638: *) { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2639: echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2640: { (exit 1); exit 1; }; }
2641: ;;
2642: esac
1.27 millert 2643: fi
2644:
1.25 millert 2645:
1.27 millert 2646: { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2647: echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
1.6 millert 2648:
1.27 millert 2649: # Check whether --with-lecture was given.
1.1 millert 2650: if test "${with_lecture+set}" = set; then
1.27 millert 2651: withval=$with_lecture; case $with_lecture in
1.23 millert 2652: yes|short|always) lecture=once
1.1 millert 2653: ;;
1.23 millert 2654: no|none|never) lecture=never
1.1 millert 2655: ;;
1.16 millert 2656: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
1.9 millert 2657: echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2658: { (exit 1); exit 1; }; }
1.1 millert 2659: ;;
2660: esac
1.27 millert 2661: fi
2662:
1.23 millert 2663: if test "$lecture" = "once"; then
1.27 millert 2664: { echo "$as_me:$LINENO: result: yes" >&5
2665: echo "${ECHO_T}yes" >&6; }
1.1 millert 2666: else
1.23 millert 2667: cat >>confdefs.h <<\_ACEOF
1.9 millert 2668: #define NO_LECTURE 1
1.16 millert 2669: _ACEOF
1.9 millert 2670:
1.27 millert 2671: { echo "$as_me:$LINENO: result: no" >&5
2672: echo "${ECHO_T}no" >&6; }
1.1 millert 2673: fi
2674:
1.27 millert 2675: { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2676: echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
1.1 millert 2677:
1.27 millert 2678: # Check whether --with-logging was given.
1.1 millert 2679: if test "${with_logging+set}" = set; then
1.27 millert 2680: withval=$with_logging; case $with_logging in
1.16 millert 2681: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
1.9 millert 2682: echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2683: { (exit 1); exit 1; }; }
2684: ;;
1.16 millert 2685: no) { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
1.9 millert 2686: echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2687: { (exit 1); exit 1; }; }
1.1 millert 2688: ;;
1.23 millert 2689: syslog) cat >>confdefs.h <<\_ACEOF
1.1 millert 2690: #define LOGGING SLOG_SYSLOG
1.16 millert 2691: _ACEOF
1.1 millert 2692:
1.27 millert 2693: { echo "$as_me:$LINENO: result: syslog" >&5
2694: echo "${ECHO_T}syslog" >&6; }
1.1 millert 2695: ;;
1.16 millert 2696: file) cat >>confdefs.h <<\_ACEOF
1.1 millert 2697: #define LOGGING SLOG_FILE
1.16 millert 2698: _ACEOF
1.1 millert 2699:
1.27 millert 2700: { echo "$as_me:$LINENO: result: file" >&5
2701: echo "${ECHO_T}file" >&6; }
1.1 millert 2702: ;;
1.16 millert 2703: both) cat >>confdefs.h <<\_ACEOF
1.1 millert 2704: #define LOGGING SLOG_BOTH
1.16 millert 2705: _ACEOF
1.1 millert 2706:
1.27 millert 2707: { echo "$as_me:$LINENO: result: both" >&5
2708: echo "${ECHO_T}both" >&6; }
1.1 millert 2709: ;;
1.16 millert 2710: *) { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
1.9 millert 2711: echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2712: { (exit 1); exit 1; }; }
1.1 millert 2713: ;;
2714: esac
2715: else
1.16 millert 2716: cat >>confdefs.h <<\_ACEOF
1.1 millert 2717: #define LOGGING SLOG_SYSLOG
1.16 millert 2718: _ACEOF
1.27 millert 2719: { echo "$as_me:$LINENO: result: syslog" >&5
2720: echo "${ECHO_T}syslog" >&6; }
2721: fi
2722:
1.1 millert 2723:
1.27 millert 2724: { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2725: echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
1.1 millert 2726:
1.27 millert 2727: # Check whether --with-logfac was given.
1.1 millert 2728: if test "${with_logfac+set}" = set; then
1.27 millert 2729: withval=$with_logfac; case $with_logfac in
1.16 millert 2730: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
1.9 millert 2731: echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2732: { (exit 1); exit 1; }; }
2733: ;;
1.16 millert 2734: no) { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
1.9 millert 2735: echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2736: { (exit 1); exit 1; }; }
1.1 millert 2737: ;;
1.9 millert 2738: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
1.1 millert 2739: ;;
1.16 millert 2740: *) { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
1.9 millert 2741: echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2742: { (exit 1); exit 1; }; }
1.1 millert 2743: ;;
2744: esac
1.27 millert 2745: fi
2746:
1.9 millert 2747:
1.16 millert 2748: cat >>confdefs.h <<_ACEOF
1.9 millert 2749: #define LOGFAC "$logfac"
1.16 millert 2750: _ACEOF
1.1 millert 2751:
1.27 millert 2752: { echo "$as_me:$LINENO: result: $logfac" >&5
2753: echo "${ECHO_T}$logfac" >&6; }
1.9 millert 2754:
1.27 millert 2755: { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2756: echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
1.1 millert 2757:
1.27 millert 2758: # Check whether --with-goodpri was given.
1.1 millert 2759: if test "${with_goodpri+set}" = set; then
1.27 millert 2760: withval=$with_goodpri; case $with_goodpri in
1.16 millert 2761: yes) { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
1.9 millert 2762: echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2763: { (exit 1); exit 1; }; }
1.1 millert 2764: ;;
1.16 millert 2765: no) { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
1.9 millert 2766: echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2767: { (exit 1); exit 1; }; }
1.1 millert 2768: ;;
1.9 millert 2769: alert|crit|debug|emerg|err|info|notice|warning)
2770: goodpri=$with_goodpri
1.1 millert 2771: ;;
1.16 millert 2772: *) { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
1.9 millert 2773: echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2774: { (exit 1); exit 1; }; }
1.1 millert 2775: ;;
2776: esac
1.27 millert 2777: fi
2778:
1.9 millert 2779:
1.16 millert 2780: cat >>confdefs.h <<_ACEOF
1.9 millert 2781: #define PRI_SUCCESS "$goodpri"
1.16 millert 2782: _ACEOF
1.1 millert 2783:
1.27 millert 2784: { echo "$as_me:$LINENO: result: $goodpri" >&5
2785: echo "${ECHO_T}$goodpri" >&6; }
1.9 millert 2786:
1.27 millert 2787: { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2788: echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
1.1 millert 2789:
1.27 millert 2790: # Check whether --with-badpri was given.
1.1 millert 2791: if test "${with_badpri+set}" = set; then
1.27 millert 2792: withval=$with_badpri; case $with_badpri in
1.16 millert 2793: yes) { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
1.9 millert 2794: echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2795: { (exit 1); exit 1; }; }
1.1 millert 2796: ;;
1.16 millert 2797: no) { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
1.9 millert 2798: echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2799: { (exit 1); exit 1; }; }
1.1 millert 2800: ;;
1.9 millert 2801: alert|crit|debug|emerg|err|info|notice|warning)
2802: badpri=$with_badpri
1.1 millert 2803: ;;
1.16 millert 2804: *) { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
1.9 millert 2805: echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2806: { (exit 1); exit 1; }; }
1.1 millert 2807: ;;
2808: esac
1.27 millert 2809: fi
2810:
1.9 millert 2811:
1.16 millert 2812: cat >>confdefs.h <<_ACEOF
1.9 millert 2813: #define PRI_FAILURE "$badpri"
1.16 millert 2814: _ACEOF
2815:
1.27 millert 2816: { echo "$as_me:$LINENO: result: $badpri" >&5
2817: echo "${ECHO_T}$badpri" >&6; }
1.1 millert 2818:
2819:
1.27 millert 2820: # Check whether --with-logpath was given.
1.1 millert 2821: if test "${with_logpath+set}" = set; then
1.27 millert 2822: withval=$with_logpath; case $with_logpath in
1.16 millert 2823: yes) { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
1.9 millert 2824: echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2825: { (exit 1); exit 1; }; }
1.1 millert 2826: ;;
1.16 millert 2827: no) { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
1.9 millert 2828: echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2829: { (exit 1); exit 1; }; }
1.1 millert 2830: ;;
2831: esac
1.27 millert 2832: fi
2833:
1.1 millert 2834:
1.27 millert 2835: { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2836: echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
1.1 millert 2837:
1.27 millert 2838: # Check whether --with-loglen was given.
1.1 millert 2839: if test "${with_loglen+set}" = set; then
1.27 millert 2840: withval=$with_loglen; case $with_loglen in
1.16 millert 2841: yes) { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
1.9 millert 2842: echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2843: { (exit 1); exit 1; }; }
1.1 millert 2844: ;;
1.16 millert 2845: no) { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
1.9 millert 2846: echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2847: { (exit 1); exit 1; }; }
1.1 millert 2848: ;;
1.9 millert 2849: [0-9]*) loglen=$with_loglen
1.1 millert 2850: ;;
1.16 millert 2851: *) { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
1.9 millert 2852: echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2853: { (exit 1); exit 1; }; }
1.1 millert 2854: ;;
2855: esac
1.27 millert 2856: fi
2857:
1.9 millert 2858:
1.16 millert 2859: cat >>confdefs.h <<_ACEOF
1.9 millert 2860: #define MAXLOGFILELEN $loglen
1.16 millert 2861: _ACEOF
1.1 millert 2862:
1.27 millert 2863: { echo "$as_me:$LINENO: result: $loglen" >&5
2864: echo "${ECHO_T}$loglen" >&6; }
1.9 millert 2865:
1.27 millert 2866: { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2867: echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
1.1 millert 2868:
1.27 millert 2869: # Check whether --with-ignore-dot was given.
1.1 millert 2870: if test "${with_ignore_dot+set}" = set; then
1.27 millert 2871: withval=$with_ignore_dot; case $with_ignore_dot in
1.9 millert 2872: yes) ignore_dot=on
1.1 millert 2873: ;;
1.9 millert 2874: no) ignore_dot=off
1.1 millert 2875: ;;
1.16 millert 2876: *) { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
1.9 millert 2877: echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2878: { (exit 1); exit 1; }; }
1.1 millert 2879: ;;
2880: esac
1.27 millert 2881: fi
2882:
1.9 millert 2883: if test "$ignore_dot" = "on"; then
1.23 millert 2884: cat >>confdefs.h <<\_ACEOF
1.9 millert 2885: #define IGNORE_DOT_PATH 1
1.16 millert 2886: _ACEOF
1.9 millert 2887:
1.27 millert 2888: { echo "$as_me:$LINENO: result: yes" >&5
2889: echo "${ECHO_T}yes" >&6; }
1.1 millert 2890: else
1.27 millert 2891: { echo "$as_me:$LINENO: result: no" >&5
2892: echo "${ECHO_T}no" >&6; }
1.1 millert 2893: fi
2894:
1.27 millert 2895: { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2896: echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
1.1 millert 2897:
1.27 millert 2898: # Check whether --with-mail-if-no-user was given.
1.9 millert 2899: if test "${with_mail_if_no_user+set}" = set; then
1.27 millert 2900: withval=$with_mail_if_no_user; case $with_mail_if_no_user in
1.9 millert 2901: yes) mail_no_user=on
2902: ;;
2903: no) mail_no_user=off
1.1 millert 2904: ;;
1.16 millert 2905: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
1.9 millert 2906: echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2907: { (exit 1); exit 1; }; }
1.1 millert 2908: ;;
1.9 millert 2909: esac
1.27 millert 2910: fi
2911:
1.9 millert 2912: if test "$mail_no_user" = "on"; then
1.23 millert 2913: cat >>confdefs.h <<\_ACEOF
1.9 millert 2914: #define SEND_MAIL_WHEN_NO_USER 1
1.16 millert 2915: _ACEOF
1.1 millert 2916:
1.27 millert 2917: { echo "$as_me:$LINENO: result: yes" >&5
2918: echo "${ECHO_T}yes" >&6; }
1.1 millert 2919: else
1.27 millert 2920: { echo "$as_me:$LINENO: result: no" >&5
2921: echo "${ECHO_T}no" >&6; }
1.1 millert 2922: fi
2923:
1.27 millert 2924: { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2925: echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
1.1 millert 2926:
1.27 millert 2927: # Check whether --with-mail-if-no-host was given.
1.9 millert 2928: if test "${with_mail_if_no_host+set}" = set; then
1.27 millert 2929: withval=$with_mail_if_no_host; case $with_mail_if_no_host in
1.9 millert 2930: yes) mail_no_host=on
1.1 millert 2931: ;;
1.9 millert 2932: no) mail_no_host=off
1.1 millert 2933: ;;
1.16 millert 2934: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
1.9 millert 2935: echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2936: { (exit 1); exit 1; }; }
1.1 millert 2937: ;;
2938: esac
1.27 millert 2939: fi
2940:
1.9 millert 2941: if test "$mail_no_host" = "on"; then
1.23 millert 2942: cat >>confdefs.h <<\_ACEOF
1.9 millert 2943: #define SEND_MAIL_WHEN_NO_HOST 1
1.16 millert 2944: _ACEOF
1.1 millert 2945:
1.27 millert 2946: { echo "$as_me:$LINENO: result: yes" >&5
2947: echo "${ECHO_T}yes" >&6; }
1.9 millert 2948: else
1.27 millert 2949: { echo "$as_me:$LINENO: result: no" >&5
2950: echo "${ECHO_T}no" >&6; }
1.1 millert 2951: fi
2952:
1.27 millert 2953: { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2954: echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
1.1 millert 2955:
1.27 millert 2956: # Check whether --with-mail-if-noperms was given.
1.9 millert 2957: if test "${with_mail_if_noperms+set}" = set; then
1.27 millert 2958: withval=$with_mail_if_noperms; case $with_mail_if_noperms in
1.9 millert 2959: yes) mail_noperms=on
1.1 millert 2960: ;;
1.9 millert 2961: no) mail_noperms=off
1.1 millert 2962: ;;
1.16 millert 2963: *) { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
1.9 millert 2964: echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2965: { (exit 1); exit 1; }; }
1.1 millert 2966: ;;
2967: esac
1.27 millert 2968: fi
2969:
1.9 millert 2970: if test "$mail_noperms" = "on"; then
1.23 millert 2971: cat >>confdefs.h <<\_ACEOF
1.9 millert 2972: #define SEND_MAIL_WHEN_NOT_OK 1
1.16 millert 2973: _ACEOF
1.9 millert 2974:
1.27 millert 2975: { echo "$as_me:$LINENO: result: yes" >&5
2976: echo "${ECHO_T}yes" >&6; }
1.1 millert 2977: else
1.27 millert 2978: { echo "$as_me:$LINENO: result: no" >&5
2979: echo "${ECHO_T}no" >&6; }
1.1 millert 2980: fi
2981:
1.27 millert 2982: { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2983: echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
1.1 millert 2984:
1.27 millert 2985: # Check whether --with-mailto was given.
1.9 millert 2986: if test "${with_mailto+set}" = set; then
1.27 millert 2987: withval=$with_mailto; case $with_mailto in
1.16 millert 2988: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
1.9 millert 2989: echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2990: { (exit 1); exit 1; }; }
1.1 millert 2991: ;;
1.16 millert 2992: no) { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
1.9 millert 2993: echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2994: { (exit 1); exit 1; }; }
1.1 millert 2995: ;;
1.9 millert 2996: *) mailto=$with_mailto
1.1 millert 2997: ;;
2998: esac
1.27 millert 2999: fi
3000:
1.1 millert 3001:
1.16 millert 3002: cat >>confdefs.h <<_ACEOF
1.9 millert 3003: #define MAILTO "$mailto"
1.16 millert 3004: _ACEOF
1.1 millert 3005:
1.27 millert 3006: { echo "$as_me:$LINENO: result: $mailto" >&5
3007: echo "${ECHO_T}$mailto" >&6; }
1.1 millert 3008:
1.16 millert 3009:
1.27 millert 3010: # Check whether --with-mailsubject was given.
1.9 millert 3011: if test "${with_mailsubject+set}" = set; then
1.27 millert 3012: withval=$with_mailsubject; case $with_mailsubject in
1.16 millert 3013: yes) { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
1.9 millert 3014: echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
3015: { (exit 1); exit 1; }; }
1.1 millert 3016: ;;
1.17 millert 3017: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
3018: echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
1.1 millert 3019: ;;
1.9 millert 3020: *) mailsub="$with_mailsubject"
1.27 millert 3021: { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3022: echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3023: { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3024: echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
1.1 millert 3025: ;;
3026: esac
1.27 millert 3027: fi
3028:
1.9 millert 3029:
1.16 millert 3030: cat >>confdefs.h <<_ACEOF
1.9 millert 3031: #define MAILSUBJECT "$mailsub"
1.16 millert 3032: _ACEOF
3033:
1.1 millert 3034:
1.27 millert 3035: { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3036: echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
1.1 millert 3037:
1.27 millert 3038: # Check whether --with-passprompt was given.
1.1 millert 3039: if test "${with_passprompt+set}" = set; then
1.27 millert 3040: withval=$with_passprompt; case $with_passprompt in
1.16 millert 3041: yes) { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
1.9 millert 3042: echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3043: { (exit 1); exit 1; }; }
1.1 millert 3044: ;;
1.17 millert 3045: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3046: echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
1.1 millert 3047: ;;
1.9 millert 3048: *) passprompt="$with_passprompt"
3049: esac
1.27 millert 3050: fi
3051:
3052: { echo "$as_me:$LINENO: result: $passprompt" >&5
3053: echo "${ECHO_T}$passprompt" >&6; }
1.1 millert 3054:
1.16 millert 3055: cat >>confdefs.h <<_ACEOF
1.9 millert 3056: #define PASSPROMPT "$passprompt"
1.16 millert 3057: _ACEOF
3058:
1.1 millert 3059:
1.27 millert 3060: { echo "$as_me:$LINENO: checking for bad password message" >&5
3061: echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
1.1 millert 3062:
1.27 millert 3063: # Check whether --with-badpass-message was given.
1.1 millert 3064: if test "${with_badpass_message+set}" = set; then
1.27 millert 3065: withval=$with_badpass_message; case $with_badpass_message in
1.16 millert 3066: yes) { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
1.9 millert 3067: echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3068: { (exit 1); exit 1; }; }
1.1 millert 3069: ;;
1.17 millert 3070: no) { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3071: echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
1.1 millert 3072: ;;
1.9 millert 3073: *) badpass_message="$with_badpass_message"
1.1 millert 3074: ;;
3075: esac
1.27 millert 3076: fi
3077:
1.9 millert 3078:
1.16 millert 3079: cat >>confdefs.h <<_ACEOF
1.9 millert 3080: #define INCORRECT_PASSWORD "$badpass_message"
1.16 millert 3081: _ACEOF
1.1 millert 3082:
1.27 millert 3083: { echo "$as_me:$LINENO: result: $badpass_message" >&5
3084: echo "${ECHO_T}$badpass_message" >&6; }
1.9 millert 3085:
1.27 millert 3086: { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3087: echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
1.1 millert 3088:
1.27 millert 3089: # Check whether --with-fqdn was given.
1.1 millert 3090: if test "${with_fqdn+set}" = set; then
1.27 millert 3091: withval=$with_fqdn; case $with_fqdn in
1.9 millert 3092: yes) fqdn=on
1.1 millert 3093: ;;
1.9 millert 3094: no) fqdn=off
1.1 millert 3095: ;;
1.16 millert 3096: *) { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
1.9 millert 3097: echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3098: { (exit 1); exit 1; }; }
1.1 millert 3099: ;;
3100: esac
1.27 millert 3101: fi
3102:
1.9 millert 3103: if test "$fqdn" = "on"; then
1.23 millert 3104: cat >>confdefs.h <<\_ACEOF
1.9 millert 3105: #define FQDN 1
1.16 millert 3106: _ACEOF
1.9 millert 3107:
1.27 millert 3108: { echo "$as_me:$LINENO: result: yes" >&5
3109: echo "${ECHO_T}yes" >&6; }
1.1 millert 3110: else
1.27 millert 3111: { echo "$as_me:$LINENO: result: no" >&5
3112: echo "${ECHO_T}no" >&6; }
1.1 millert 3113: fi
3114:
1.16 millert 3115:
1.27 millert 3116: # Check whether --with-timedir was given.
1.1 millert 3117: if test "${with_timedir+set}" = set; then
1.27 millert 3118: withval=$with_timedir; case $with_timedir in
1.16 millert 3119: yes) { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
1.9 millert 3120: echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3121: { (exit 1); exit 1; }; }
1.1 millert 3122: ;;
1.16 millert 3123: no) { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
1.9 millert 3124: echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3125: { (exit 1); exit 1; }; }
1.1 millert 3126: ;;
3127: esac
1.27 millert 3128: fi
3129:
1.1 millert 3130:
1.16 millert 3131:
1.27 millert 3132: # Check whether --with-sendmail was given.
1.1 millert 3133: if test "${with_sendmail+set}" = set; then
1.27 millert 3134: withval=$with_sendmail; case $with_sendmail in
1.1 millert 3135: yes) with_sendmail=""
3136: ;;
3137: no) ;;
1.9 millert 3138: *) cat >>confdefs.h <<EOF
3139: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
1.1 millert 3140: EOF
3141:
3142: ;;
3143: esac
1.27 millert 3144: fi
3145:
1.1 millert 3146:
1.16 millert 3147:
1.27 millert 3148: # Check whether --with-sudoers-mode was given.
1.1 millert 3149: if test "${with_sudoers_mode+set}" = set; then
1.27 millert 3150: withval=$with_sudoers_mode; case $with_sudoers_mode in
1.16 millert 3151: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
1.9 millert 3152: echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3153: { (exit 1); exit 1; }; }
3154: ;;
1.16 millert 3155: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
1.9 millert 3156: echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3157: { (exit 1); exit 1; }; }
1.1 millert 3158: ;;
3159: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
3160: ;;
3161: 0*) SUDOERS_MODE=$with_sudoers_mode
3162: ;;
1.16 millert 3163: *) { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3164: echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
1.9 millert 3165: { (exit 1); exit 1; }; }
1.1 millert 3166: ;;
3167: esac
1.27 millert 3168: fi
3169:
1.1 millert 3170:
1.16 millert 3171:
1.27 millert 3172: # Check whether --with-sudoers-uid was given.
1.1 millert 3173: if test "${with_sudoers_uid+set}" = set; then
1.27 millert 3174: withval=$with_sudoers_uid; case $with_sudoers_uid in
1.16 millert 3175: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
1.9 millert 3176: echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3177: { (exit 1); exit 1; }; }
3178: ;;
1.16 millert 3179: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
1.9 millert 3180: echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3181: { (exit 1); exit 1; }; }
1.1 millert 3182: ;;
3183: [0-9]*) SUDOERS_UID=$with_sudoers_uid
3184: ;;
1.16 millert 3185: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3186: echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
1.9 millert 3187: { (exit 1); exit 1; }; }
1.1 millert 3188: ;;
3189: esac
1.27 millert 3190: fi
3191:
1.1 millert 3192:
1.16 millert 3193:
1.27 millert 3194: # Check whether --with-sudoers-gid was given.
1.1 millert 3195: if test "${with_sudoers_gid+set}" = set; then
1.27 millert 3196: withval=$with_sudoers_gid; case $with_sudoers_gid in
1.16 millert 3197: yes) { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
1.9 millert 3198: echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3199: { (exit 1); exit 1; }; }
3200: ;;
1.16 millert 3201: no) { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
1.9 millert 3202: echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3203: { (exit 1); exit 1; }; }
1.1 millert 3204: ;;
3205: [0-9]*) SUDOERS_GID=$with_sudoers_gid
3206: ;;
1.16 millert 3207: *) { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3208: echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
1.9 millert 3209: { (exit 1); exit 1; }; }
1.1 millert 3210: ;;
3211: esac
1.27 millert 3212: fi
3213:
1.1 millert 3214:
1.27 millert 3215: { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3216: echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
1.1 millert 3217:
1.27 millert 3218: # Check whether --with-umask was given.
1.1 millert 3219: if test "${with_umask+set}" = set; then
1.27 millert 3220: withval=$with_umask; case $with_umask in
1.16 millert 3221: yes) { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
1.9 millert 3222: echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3223: { (exit 1); exit 1; }; }
1.1 millert 3224: ;;
1.9 millert 3225: no) sudo_umask=0777
1.1 millert 3226: ;;
1.9 millert 3227: [0-9]*) sudo_umask=$with_umask
1.1 millert 3228: ;;
1.16 millert 3229: *) { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
1.9 millert 3230: echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3231: { (exit 1); exit 1; }; }
1.1 millert 3232: ;;
3233: esac
1.27 millert 3234: fi
3235:
1.9 millert 3236:
1.16 millert 3237: cat >>confdefs.h <<_ACEOF
1.9 millert 3238: #define SUDO_UMASK $sudo_umask
1.16 millert 3239: _ACEOF
1.9 millert 3240:
3241: if test "$sudo_umask" = "0777"; then
1.27 millert 3242: { echo "$as_me:$LINENO: result: user" >&5
3243: echo "${ECHO_T}user" >&6; }
1.1 millert 3244: else
1.27 millert 3245: { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3246: echo "${ECHO_T}$sudo_umask" >&6; }
1.1 millert 3247: fi
3248:
1.27 millert 3249: { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3250: echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
1.1 millert 3251:
1.27 millert 3252: # Check whether --with-runas-default was given.
1.1 millert 3253: if test "${with_runas_default+set}" = set; then
1.27 millert 3254: withval=$with_runas_default; case $with_runas_default in
1.16 millert 3255: yes) { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
1.9 millert 3256: echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3257: { (exit 1); exit 1; }; }
1.1 millert 3258: ;;
1.16 millert 3259: no) { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
1.9 millert 3260: echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3261: { (exit 1); exit 1; }; }
1.1 millert 3262: ;;
1.9 millert 3263: *) runas_default="$with_runas_default"
1.1 millert 3264: ;;
3265: esac
1.27 millert 3266: fi
3267:
1.9 millert 3268:
1.16 millert 3269: cat >>confdefs.h <<_ACEOF
1.9 millert 3270: #define RUNAS_DEFAULT "$runas_default"
1.16 millert 3271: _ACEOF
1.1 millert 3272:
1.27 millert 3273: { echo "$as_me:$LINENO: result: $runas_default" >&5
3274: echo "${ECHO_T}$runas_default" >&6; }
1.1 millert 3275:
1.16 millert 3276:
1.27 millert 3277: # Check whether --with-exempt was given.
1.1 millert 3278: if test "${with_exempt+set}" = set; then
1.27 millert 3279: withval=$with_exempt; case $with_exempt in
1.16 millert 3280: yes) { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
1.9 millert 3281: echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3282: { (exit 1); exit 1; }; }
3283: ;;
1.16 millert 3284: no) { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
1.9 millert 3285: echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3286: { (exit 1); exit 1; }; }
1.1 millert 3287: ;;
1.9 millert 3288: *)
1.16 millert 3289: cat >>confdefs.h <<_ACEOF
1.1 millert 3290: #define EXEMPTGROUP "$with_exempt"
1.16 millert 3291: _ACEOF
1.1 millert 3292:
1.27 millert 3293: { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3294: echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3295: { echo "$as_me:$LINENO: result: $with_exempt" >&5
3296: echo "${ECHO_T}$with_exempt" >&6; }
1.1 millert 3297: ;;
3298: esac
1.27 millert 3299: fi
3300:
1.1 millert 3301:
1.27 millert 3302: { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3303: echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
1.1 millert 3304:
1.27 millert 3305: # Check whether --with-editor was given.
1.1 millert 3306: if test "${with_editor+set}" = set; then
1.27 millert 3307: withval=$with_editor; case $with_editor in
1.16 millert 3308: yes) { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
1.9 millert 3309: echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3310: { (exit 1); exit 1; }; }
3311: ;;
1.16 millert 3312: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 3313: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3314: { (exit 1); exit 1; }; }
1.1 millert 3315: ;;
1.9 millert 3316: *)
1.16 millert 3317: cat >>confdefs.h <<_ACEOF
1.1 millert 3318: #define EDITOR "$with_editor"
1.16 millert 3319: _ACEOF
1.1 millert 3320:
1.27 millert 3321: { echo "$as_me:$LINENO: result: $with_editor" >&5
3322: echo "${ECHO_T}$with_editor" >&6; }
1.1 millert 3323: ;;
3324: esac
3325: else
1.16 millert 3326: cat >>confdefs.h <<\_ACEOF
1.1 millert 3327: #define EDITOR _PATH_VI
1.16 millert 3328: _ACEOF
1.27 millert 3329: { echo "$as_me:$LINENO: result: vi" >&5
3330: echo "${ECHO_T}vi" >&6; }
3331: fi
3332:
1.1 millert 3333:
1.27 millert 3334: { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3335: echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
1.1 millert 3336:
1.27 millert 3337: # Check whether --with-env-editor was given.
1.1 millert 3338: if test "${with_env_editor+set}" = set; then
1.27 millert 3339: withval=$with_env_editor; case $with_env_editor in
1.9 millert 3340: yes) env_editor=on
1.1 millert 3341: ;;
1.9 millert 3342: no) env_editor=off
1.1 millert 3343: ;;
1.16 millert 3344: *) { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
1.9 millert 3345: echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3346: { (exit 1); exit 1; }; }
1.1 millert 3347: ;;
3348: esac
1.27 millert 3349: fi
3350:
1.9 millert 3351: if test "$env_editor" = "on"; then
1.23 millert 3352: cat >>confdefs.h <<\_ACEOF
1.9 millert 3353: #define ENV_EDITOR 1
1.16 millert 3354: _ACEOF
1.9 millert 3355:
1.27 millert 3356: { echo "$as_me:$LINENO: result: yes" >&5
3357: echo "${ECHO_T}yes" >&6; }
1.1 millert 3358: else
1.27 millert 3359: { echo "$as_me:$LINENO: result: no" >&5
3360: echo "${ECHO_T}no" >&6; }
1.1 millert 3361: fi
3362:
1.27 millert 3363: { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3364: echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
1.1 millert 3365:
1.27 millert 3366: # Check whether --with-passwd-tries was given.
1.1 millert 3367: if test "${with_passwd_tries+set}" = set; then
1.27 millert 3368: withval=$with_passwd_tries; case $with_passwd_tries in
1.9 millert 3369: yes) ;;
1.16 millert 3370: no) { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
1.9 millert 3371: echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3372: { (exit 1); exit 1; }; }
1.1 millert 3373: ;;
1.9 millert 3374: [1-9]*) passwd_tries=$with_passwd_tries
1.1 millert 3375: ;;
1.16 millert 3376: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
1.9 millert 3377: echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3378: { (exit 1); exit 1; }; }
1.1 millert 3379: ;;
3380: esac
1.27 millert 3381: fi
3382:
1.9 millert 3383:
1.16 millert 3384: cat >>confdefs.h <<_ACEOF
1.9 millert 3385: #define TRIES_FOR_PASSWORD $passwd_tries
1.16 millert 3386: _ACEOF
1.1 millert 3387:
1.27 millert 3388: { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3389: echo "${ECHO_T}$passwd_tries" >&6; }
1.9 millert 3390:
1.27 millert 3391: { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3392: echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
1.1 millert 3393:
1.27 millert 3394: # Check whether --with-timeout was given.
1.1 millert 3395: if test "${with_timeout+set}" = set; then
1.27 millert 3396: withval=$with_timeout; case $with_timeout in
1.9 millert 3397: yes) ;;
3398: no) timeout=0
1.1 millert 3399: ;;
1.9 millert 3400: [0-9]*) timeout=$with_timeout
1.1 millert 3401: ;;
1.16 millert 3402: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 3403: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3404: { (exit 1); exit 1; }; }
1.1 millert 3405: ;;
3406: esac
1.27 millert 3407: fi
3408:
1.9 millert 3409:
1.16 millert 3410: cat >>confdefs.h <<_ACEOF
1.9 millert 3411: #define TIMEOUT $timeout
1.16 millert 3412: _ACEOF
1.1 millert 3413:
1.27 millert 3414: { echo "$as_me:$LINENO: result: $timeout" >&5
3415: echo "${ECHO_T}$timeout" >&6; }
1.9 millert 3416:
1.27 millert 3417: { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3418: echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
1.1 millert 3419:
1.27 millert 3420: # Check whether --with-password-timeout was given.
1.1 millert 3421: if test "${with_password_timeout+set}" = set; then
1.27 millert 3422: withval=$with_password_timeout; case $with_password_timeout in
1.9 millert 3423: yes) ;;
3424: no) password_timeout=0
1.1 millert 3425: ;;
1.9 millert 3426: [0-9]*) password_timeout=$with_password_timeout
1.1 millert 3427: ;;
1.16 millert 3428: *) { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
1.9 millert 3429: echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3430: { (exit 1); exit 1; }; }
1.1 millert 3431: ;;
3432: esac
1.27 millert 3433: fi
3434:
1.9 millert 3435:
1.16 millert 3436: cat >>confdefs.h <<_ACEOF
1.9 millert 3437: #define PASSWORD_TIMEOUT $password_timeout
1.16 millert 3438: _ACEOF
1.1 millert 3439:
1.27 millert 3440: { echo "$as_me:$LINENO: result: $password_timeout" >&5
3441: echo "${ECHO_T}$password_timeout" >&6; }
1.1 millert 3442:
1.27 millert 3443: { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3444: echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
1.1 millert 3445:
1.27 millert 3446: # Check whether --with-tty-tickets was given.
1.1 millert 3447: if test "${with_tty_tickets+set}" = set; then
1.27 millert 3448: withval=$with_tty_tickets; case $with_tty_tickets in
1.9 millert 3449: yes) tty_tickets=on
1.1 millert 3450: ;;
1.9 millert 3451: no) tty_tickets=off
1.1 millert 3452: ;;
1.16 millert 3453: *) { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
1.9 millert 3454: echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3455: { (exit 1); exit 1; }; }
1.1 millert 3456: ;;
3457: esac
1.27 millert 3458: fi
3459:
1.9 millert 3460: if test "$tty_tickets" = "on"; then
1.23 millert 3461: cat >>confdefs.h <<\_ACEOF
1.9 millert 3462: #define USE_TTY_TICKETS 1
1.16 millert 3463: _ACEOF
1.9 millert 3464:
1.27 millert 3465: { echo "$as_me:$LINENO: result: yes" >&5
3466: echo "${ECHO_T}yes" >&6; }
1.1 millert 3467: else
1.27 millert 3468: { echo "$as_me:$LINENO: result: no" >&5
3469: echo "${ECHO_T}no" >&6; }
1.1 millert 3470: fi
3471:
1.27 millert 3472: { echo "$as_me:$LINENO: checking whether to include insults" >&5
3473: echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
1.1 millert 3474:
1.27 millert 3475: # Check whether --with-insults was given.
1.1 millert 3476: if test "${with_insults+set}" = set; then
1.27 millert 3477: withval=$with_insults; case $with_insults in
1.9 millert 3478: yes) insults=on
1.1 millert 3479: with_classic_insults=yes
3480: with_csops_insults=yes
3481: ;;
1.9 millert 3482: no) insults=off
1.1 millert 3483: ;;
1.16 millert 3484: *) { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
1.9 millert 3485: echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3486: { (exit 1); exit 1; }; }
1.1 millert 3487: ;;
3488: esac
1.27 millert 3489: fi
3490:
1.9 millert 3491: if test "$insults" = "on"; then
1.23 millert 3492: cat >>confdefs.h <<\_ACEOF
1.9 millert 3493: #define USE_INSULTS 1
1.16 millert 3494: _ACEOF
1.9 millert 3495:
1.27 millert 3496: { echo "$as_me:$LINENO: result: yes" >&5
3497: echo "${ECHO_T}yes" >&6; }
1.1 millert 3498: else
1.27 millert 3499: { echo "$as_me:$LINENO: result: no" >&5
3500: echo "${ECHO_T}no" >&6; }
1.1 millert 3501: fi
3502:
1.16 millert 3503:
1.27 millert 3504: # Check whether --with-all-insults was given.
1.1 millert 3505: if test "${with_all_insults+set}" = set; then
1.27 millert 3506: withval=$with_all_insults; case $with_all_insults in
1.1 millert 3507: yes) with_classic_insults=yes
3508: with_csops_insults=yes
3509: with_hal_insults=yes
3510: with_goons_insults=yes
3511: ;;
3512: no) ;;
1.16 millert 3513: *) { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
1.9 millert 3514: echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3515: { (exit 1); exit 1; }; }
1.1 millert 3516: ;;
3517: esac
1.27 millert 3518: fi
3519:
1.1 millert 3520:
1.16 millert 3521:
1.27 millert 3522: # Check whether --with-classic-insults was given.
1.1 millert 3523: if test "${with_classic_insults+set}" = set; then
1.27 millert 3524: withval=$with_classic_insults; case $with_classic_insults in
1.23 millert 3525: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3526: #define CLASSIC_INSULTS 1
1.16 millert 3527: _ACEOF
1.1 millert 3528:
3529: ;;
3530: no) ;;
1.16 millert 3531: *) { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
1.9 millert 3532: echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3533: { (exit 1); exit 1; }; }
1.1 millert 3534: ;;
3535: esac
1.27 millert 3536: fi
3537:
1.1 millert 3538:
1.16 millert 3539:
1.27 millert 3540: # Check whether --with-csops-insults was given.
1.1 millert 3541: if test "${with_csops_insults+set}" = set; then
1.27 millert 3542: withval=$with_csops_insults; case $with_csops_insults in
1.23 millert 3543: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3544: #define CSOPS_INSULTS 1
1.16 millert 3545: _ACEOF
1.1 millert 3546:
3547: ;;
3548: no) ;;
1.16 millert 3549: *) { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
1.9 millert 3550: echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3551: { (exit 1); exit 1; }; }
1.1 millert 3552: ;;
3553: esac
1.27 millert 3554: fi
3555:
1.1 millert 3556:
1.16 millert 3557:
1.27 millert 3558: # Check whether --with-hal-insults was given.
1.1 millert 3559: if test "${with_hal_insults+set}" = set; then
1.27 millert 3560: withval=$with_hal_insults; case $with_hal_insults in
1.23 millert 3561: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3562: #define HAL_INSULTS 1
1.16 millert 3563: _ACEOF
1.1 millert 3564:
3565: ;;
3566: no) ;;
1.16 millert 3567: *) { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
1.9 millert 3568: echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3569: { (exit 1); exit 1; }; }
1.1 millert 3570: ;;
3571: esac
1.27 millert 3572: fi
3573:
1.1 millert 3574:
1.16 millert 3575:
1.27 millert 3576: # Check whether --with-goons-insults was given.
1.1 millert 3577: if test "${with_goons_insults+set}" = set; then
1.27 millert 3578: withval=$with_goons_insults; case $with_goons_insults in
1.23 millert 3579: yes) cat >>confdefs.h <<\_ACEOF
1.1 millert 3580: #define GOONS_INSULTS 1
1.16 millert 3581: _ACEOF
1.1 millert 3582:
3583: ;;
3584: no) ;;
1.16 millert 3585: *) { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
1.9 millert 3586: echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3587: { (exit 1); exit 1; }; }
1.1 millert 3588: ;;
3589: esac
1.27 millert 3590: fi
3591:
1.1 millert 3592:
1.23 millert 3593:
1.37 millert 3594: # Check whether --with-nsswitch was given.
3595: if test "${with_nsswitch+set}" = set; then
3596: withval=$with_nsswitch; case $with_nsswitch in
3597: no) ;;
3598: yes) with_nsswitch="/etc/nsswitch.conf"
3599: ;;
3600: *) ;;
3601: esac
3602: fi
3603:
3604:
3605:
1.27 millert 3606: # Check whether --with-ldap was given.
1.23 millert 3607: if test "${with_ldap+set}" = set; then
1.27 millert 3608: withval=$with_ldap; case $with_ldap in
1.39 ! millert 3609: no) ;;
1.23 millert 3610: *) cat >>confdefs.h <<\_ACEOF
3611: #define HAVE_LDAP 1
3612: _ACEOF
3613:
1.27 millert 3614: { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3615: echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3616: { echo "$as_me:$LINENO: result: yes" >&5
3617: echo "${ECHO_T}yes" >&6; }
1.23 millert 3618: ;;
3619: esac
1.27 millert 3620: fi
3621:
1.23 millert 3622:
1.37 millert 3623:
1.27 millert 3624: # Check whether --with-ldap-conf-file was given.
1.23 millert 3625: if test "${with_ldap_conf_file+set}" = set; then
1.27 millert 3626: withval=$with_ldap_conf_file;
1.37 millert 3627: fi
3628:
3629: cat >>confdefs.h <<EOF
3630: #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3631: EOF
1.23 millert 3632:
1.37 millert 3633: ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
1.27 millert 3634:
1.23 millert 3635:
1.27 millert 3636: # Check whether --with-ldap-secret-file was given.
1.25 millert 3637: if test "${with_ldap_secret_file+set}" = set; then
1.27 millert 3638: withval=$with_ldap_secret_file;
1.37 millert 3639: fi
1.25 millert 3640:
1.37 millert 3641: cat >>confdefs.h <<EOF
3642: #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3643: EOF
1.27 millert 3644:
1.37 millert 3645: ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
1.25 millert 3646:
1.23 millert 3647:
1.27 millert 3648: # Check whether --with-pc-insults was given.
1.23 millert 3649: if test "${with_pc_insults+set}" = set; then
1.27 millert 3650: withval=$with_pc_insults; case $with_pc_insults in
1.23 millert 3651: yes) cat >>confdefs.h <<\_ACEOF
3652: #define PC_INSULTS 1
3653: _ACEOF
3654:
3655: ;;
3656: no) ;;
3657: *) { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3658: echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3659: { (exit 1); exit 1; }; }
3660: ;;
3661: esac
1.27 millert 3662: fi
3663:
1.23 millert 3664:
1.9 millert 3665: if test "$insults" = "on"; then
1.27 millert 3666: { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3667: echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
1.1 millert 3668: i=""
3669: test "$with_goons_insults" = "yes" && i="goons ${i}"
3670: test "$with_hal_insults" = "yes" && i="hal ${i}"
3671: test "$with_csops_insults" = "yes" && i="csops ${i}"
3672: test "$with_classic_insults" = "yes" && i="classic ${i}"
1.27 millert 3673: { echo "$as_me:$LINENO: result: $i" >&5
3674: echo "${ECHO_T}$i" >&6; }
1.1 millert 3675: fi
3676:
1.27 millert 3677: { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3678: echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
1.9 millert 3679:
1.27 millert 3680: # Check whether --with-secure-path was given.
1.1 millert 3681: if test "${with_secure_path+set}" = set; then
1.27 millert 3682: withval=$with_secure_path; case $with_secure_path in
1.23 millert 3683: yes) cat >>confdefs.h <<_ACEOF
1.1 millert 3684: #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
1.16 millert 3685: _ACEOF
1.1 millert 3686:
1.27 millert 3687: { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3688: echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
1.1 millert 3689: ;;
1.27 millert 3690: no) { echo "$as_me:$LINENO: result: no" >&5
3691: echo "${ECHO_T}no" >&6; }
1.1 millert 3692: ;;
1.16 millert 3693: *) cat >>confdefs.h <<_ACEOF
1.1 millert 3694: #define SECURE_PATH "$with_secure_path"
1.16 millert 3695: _ACEOF
1.1 millert 3696:
1.27 millert 3697: { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3698: echo "${ECHO_T}$with_secure_path" >&6; }
1.1 millert 3699: ;;
3700: esac
3701: else
1.27 millert 3702: { echo "$as_me:$LINENO: result: no" >&5
3703: echo "${ECHO_T}no" >&6; }
3704: fi
3705:
1.1 millert 3706:
1.27 millert 3707: { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3708: echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
1.1 millert 3709:
1.27 millert 3710: # Check whether --with-interfaces was given.
1.1 millert 3711: if test "${with_interfaces+set}" = set; then
1.27 millert 3712: withval=$with_interfaces; case $with_interfaces in
3713: yes) { echo "$as_me:$LINENO: result: yes" >&5
3714: echo "${ECHO_T}yes" >&6; }
1.1 millert 3715: ;;
1.23 millert 3716: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3717: #define STUB_LOAD_INTERFACES 1
1.16 millert 3718: _ACEOF
1.1 millert 3719:
1.27 millert 3720: { echo "$as_me:$LINENO: result: no" >&5
3721: echo "${ECHO_T}no" >&6; }
1.1 millert 3722: ;;
1.16 millert 3723: *) { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
1.9 millert 3724: echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3725: { (exit 1); exit 1; }; }
1.1 millert 3726: ;;
3727: esac
3728: else
1.27 millert 3729: { echo "$as_me:$LINENO: result: yes" >&5
3730: echo "${ECHO_T}yes" >&6; }
3731: fi
3732:
1.16 millert 3733:
1.27 millert 3734: { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3735: echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
1.16 millert 3736:
1.27 millert 3737: # Check whether --with-stow was given.
1.16 millert 3738: if test "${with_stow+set}" = set; then
1.27 millert 3739: withval=$with_stow; case $with_stow in
3740: yes) { echo "$as_me:$LINENO: result: yes" >&5
3741: echo "${ECHO_T}yes" >&6; }
1.23 millert 3742: cat >>confdefs.h <<\_ACEOF
1.16 millert 3743: #define USE_STOW 1
3744: _ACEOF
3745:
3746: ;;
1.27 millert 3747: no) { echo "$as_me:$LINENO: result: no" >&5
3748: echo "${ECHO_T}no" >&6; }
1.16 millert 3749: ;;
3750: *) { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3751: echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3752: { (exit 1); exit 1; }; }
3753: ;;
3754: esac
3755: else
1.27 millert 3756: { echo "$as_me:$LINENO: result: no" >&5
3757: echo "${ECHO_T}no" >&6; }
3758: fi
3759:
1.1 millert 3760:
1.37 millert 3761: { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3762: echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3763:
3764: # Check whether --with-askpass was given.
3765: if test "${with_askpass+set}" = set; then
3766: withval=$with_askpass; case $with_askpass in
3767: yes) { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3768: echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3769: { (exit 1); exit 1; }; }
3770: ;;
3771: no) ;;
3772: *)
3773: cat >>confdefs.h <<_ACEOF
3774: #define _PATH_SUDO_ASKPASS "$with_askpass"
3775: _ACEOF
3776:
3777: ;;
3778: esac
3779: else
3780: { echo "$as_me:$LINENO: result: no" >&5
3781: echo "${ECHO_T}no" >&6; }
3782: fi
3783:
3784:
1.16 millert 3785:
1.27 millert 3786: { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3787: echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3788: # Check whether --enable-authentication was given.
1.1 millert 3789: if test "${enable_authentication+set}" = set; then
1.27 millert 3790: enableval=$enable_authentication; case "$enableval" in
3791: yes) { echo "$as_me:$LINENO: result: yes" >&5
3792: echo "${ECHO_T}yes" >&6; }
1.1 millert 3793: ;;
1.27 millert 3794: no) { echo "$as_me:$LINENO: result: no" >&5
3795: echo "${ECHO_T}no" >&6; }
1.23 millert 3796: cat >>confdefs.h <<\_ACEOF
1.1 millert 3797: #define NO_AUTHENTICATION 1
1.16 millert 3798: _ACEOF
1.1 millert 3799:
3800: ;;
1.27 millert 3801: *) { echo "$as_me:$LINENO: result: no" >&5
3802: echo "${ECHO_T}no" >&6; }
1.17 millert 3803: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3804: echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
1.1 millert 3805: ;;
3806: esac
3807:
3808: else
1.27 millert 3809: { echo "$as_me:$LINENO: result: yes" >&5
3810: echo "${ECHO_T}yes" >&6; }
3811: fi
3812:
3813:
3814: { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3815: echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3816: # Check whether --enable-root-mailer was given.
1.12 millert 3817: if test "${enable_root_mailer+set}" = set; then
1.27 millert 3818: enableval=$enable_root_mailer; case "$enableval" in
3819: yes) { echo "$as_me:$LINENO: result: no" >&5
3820: echo "${ECHO_T}no" >&6; }
1.12 millert 3821: ;;
1.27 millert 3822: no) { echo "$as_me:$LINENO: result: yes" >&5
3823: echo "${ECHO_T}yes" >&6; }
1.23 millert 3824: cat >>confdefs.h <<\_ACEOF
1.12 millert 3825: #define NO_ROOT_MAILER 1
1.16 millert 3826: _ACEOF
1.12 millert 3827:
3828: ;;
1.27 millert 3829: *) { echo "$as_me:$LINENO: result: no" >&5
3830: echo "${ECHO_T}no" >&6; }
1.17 millert 3831: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3832: echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
1.12 millert 3833: ;;
3834: esac
3835:
3836: else
1.27 millert 3837: { echo "$as_me:$LINENO: result: no" >&5
3838: echo "${ECHO_T}no" >&6; }
3839: fi
1.12 millert 3840:
1.27 millert 3841:
3842: # Check whether --enable-setreuid was given.
1.13 millert 3843: if test "${enable_setreuid+set}" = set; then
1.27 millert 3844: enableval=$enable_setreuid; case "$enableval" in
1.16 millert 3845: no) SKIP_SETREUID=yes
3846: ;;
3847: *) ;;
3848: esac
3849:
1.27 millert 3850: fi
3851:
1.16 millert 3852:
1.27 millert 3853: # Check whether --enable-setresuid was given.
1.16 millert 3854: if test "${enable_setresuid+set}" = set; then
1.27 millert 3855: enableval=$enable_setresuid; case "$enableval" in
1.16 millert 3856: no) SKIP_SETRESUID=yes
1.13 millert 3857: ;;
3858: *) ;;
3859: esac
3860:
1.27 millert 3861: fi
3862:
1.13 millert 3863:
1.27 millert 3864: { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3865: echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3866: # Check whether --enable-shadow was given.
1.1 millert 3867: if test "${enable_shadow+set}" = set; then
1.27 millert 3868: enableval=$enable_shadow; case "$enableval" in
3869: yes) { echo "$as_me:$LINENO: result: no" >&5
3870: echo "${ECHO_T}no" >&6; }
1.1 millert 3871: ;;
1.27 millert 3872: no) { echo "$as_me:$LINENO: result: yes" >&5
3873: echo "${ECHO_T}yes" >&6; }
1.1 millert 3874: CHECKSHADOW="false"
3875: ;;
1.27 millert 3876: *) { echo "$as_me:$LINENO: result: no" >&5
3877: echo "${ECHO_T}no" >&6; }
1.17 millert 3878: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3879: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
1.1 millert 3880: ;;
3881: esac
3882:
3883: else
1.27 millert 3884: { echo "$as_me:$LINENO: result: no" >&5
3885: echo "${ECHO_T}no" >&6; }
3886: fi
3887:
3888:
3889: { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3890: echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3891: # Check whether --enable-root-sudo was given.
1.1 millert 3892: if test "${enable_root_sudo+set}" = set; then
1.27 millert 3893: enableval=$enable_root_sudo; case "$enableval" in
3894: yes) { echo "$as_me:$LINENO: result: yes" >&5
3895: echo "${ECHO_T}yes" >&6; }
1.1 millert 3896: ;;
1.23 millert 3897: no) cat >>confdefs.h <<\_ACEOF
1.1 millert 3898: #define NO_ROOT_SUDO 1
1.16 millert 3899: _ACEOF
1.1 millert 3900:
1.27 millert 3901: { echo "$as_me:$LINENO: result: no" >&5
3902: echo "${ECHO_T}no" >&6; }
1.23 millert 3903: root_sudo=off
1.1 millert 3904: ;;
1.16 millert 3905: *) { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
1.9 millert 3906: echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3907: { (exit 1); exit 1; }; }
1.1 millert 3908: ;;
3909: esac
3910:
3911: else
1.27 millert 3912: { echo "$as_me:$LINENO: result: yes" >&5
3913: echo "${ECHO_T}yes" >&6; }
3914: fi
3915:
3916:
3917: { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3918: echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3919: # Check whether --enable-log-host was given.
1.1 millert 3920: if test "${enable_log_host+set}" = set; then
1.27 millert 3921: enableval=$enable_log_host; case "$enableval" in
3922: yes) { echo "$as_me:$LINENO: result: yes" >&5
3923: echo "${ECHO_T}yes" >&6; }
1.23 millert 3924: cat >>confdefs.h <<\_ACEOF
1.1 millert 3925: #define HOST_IN_LOG 1
1.16 millert 3926: _ACEOF
1.1 millert 3927:
3928: ;;
1.27 millert 3929: no) { echo "$as_me:$LINENO: result: no" >&5
3930: echo "${ECHO_T}no" >&6; }
1.1 millert 3931: ;;
1.27 millert 3932: *) { echo "$as_me:$LINENO: result: no" >&5
3933: echo "${ECHO_T}no" >&6; }
1.17 millert 3934: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3935: echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
1.1 millert 3936: ;;
3937: esac
3938:
3939: else
1.27 millert 3940: { echo "$as_me:$LINENO: result: no" >&5
3941: echo "${ECHO_T}no" >&6; }
3942: fi
3943:
3944:
3945: { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3946: echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3947: # Check whether --enable-noargs-shell was given.
1.1 millert 3948: if test "${enable_noargs_shell+set}" = set; then
1.27 millert 3949: enableval=$enable_noargs_shell; case "$enableval" in
3950: yes) { echo "$as_me:$LINENO: result: yes" >&5
3951: echo "${ECHO_T}yes" >&6; }
1.23 millert 3952: cat >>confdefs.h <<\_ACEOF
1.1 millert 3953: #define SHELL_IF_NO_ARGS 1
1.16 millert 3954: _ACEOF
1.1 millert 3955:
3956: ;;
1.27 millert 3957: no) { echo "$as_me:$LINENO: result: no" >&5
3958: echo "${ECHO_T}no" >&6; }
1.1 millert 3959: ;;
1.27 millert 3960: *) { echo "$as_me:$LINENO: result: no" >&5
3961: echo "${ECHO_T}no" >&6; }
1.17 millert 3962: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3963: echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
1.1 millert 3964: ;;
3965: esac
3966:
3967: else
1.27 millert 3968: { echo "$as_me:$LINENO: result: no" >&5
3969: echo "${ECHO_T}no" >&6; }
3970: fi
3971:
3972:
3973: { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3974: echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3975: # Check whether --enable-shell-sets-home was given.
1.1 millert 3976: if test "${enable_shell_sets_home+set}" = set; then
1.27 millert 3977: enableval=$enable_shell_sets_home; case "$enableval" in
3978: yes) { echo "$as_me:$LINENO: result: yes" >&5
3979: echo "${ECHO_T}yes" >&6; }
1.23 millert 3980: cat >>confdefs.h <<\_ACEOF
1.1 millert 3981: #define SHELL_SETS_HOME 1
1.16 millert 3982: _ACEOF
1.1 millert 3983:
3984: ;;
1.27 millert 3985: no) { echo "$as_me:$LINENO: result: no" >&5
3986: echo "${ECHO_T}no" >&6; }
1.1 millert 3987: ;;
1.27 millert 3988: *) { echo "$as_me:$LINENO: result: no" >&5
3989: echo "${ECHO_T}no" >&6; }
1.17 millert 3990: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3991: echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
1.1 millert 3992: ;;
3993: esac
3994:
3995: else
1.27 millert 3996: { echo "$as_me:$LINENO: result: no" >&5
3997: echo "${ECHO_T}no" >&6; }
3998: fi
3999:
4000:
4001: { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
4002: echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
4003: # Check whether --enable-path_info was given.
1.1 millert 4004: if test "${enable_path_info+set}" = set; then
1.27 millert 4005: enableval=$enable_path_info; case "$enableval" in
4006: yes) { echo "$as_me:$LINENO: result: no" >&5
4007: echo "${ECHO_T}no" >&6; }
1.1 millert 4008: ;;
1.27 millert 4009: no) { echo "$as_me:$LINENO: result: yes" >&5
4010: echo "${ECHO_T}yes" >&6; }
1.23 millert 4011: cat >>confdefs.h <<\_ACEOF
1.1 millert 4012: #define DONT_LEAK_PATH_INFO 1
1.16 millert 4013: _ACEOF
1.1 millert 4014:
1.25 millert 4015: path_info=off
1.1 millert 4016: ;;
1.27 millert 4017: *) { echo "$as_me:$LINENO: result: no" >&5
4018: echo "${ECHO_T}no" >&6; }
1.17 millert 4019: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4020: echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
1.1 millert 4021: ;;
4022: esac
4023:
4024: else
1.27 millert 4025: { echo "$as_me:$LINENO: result: no" >&5
4026: echo "${ECHO_T}no" >&6; }
4027: fi
4028:
1.1 millert 4029:
1.39 ! millert 4030: { echo "$as_me:$LINENO: checking whether to enable environment debugging" >&5
! 4031: echo $ECHO_N "checking whether to enable environment debugging... $ECHO_C" >&6; }
! 4032: # Check whether --enable-env_debug was given.
! 4033: if test "${enable_env_debug+set}" = set; then
! 4034: enableval=$enable_env_debug; case "$enableval" in
! 4035: yes) { echo "$as_me:$LINENO: result: yes" >&5
! 4036: echo "${ECHO_T}yes" >&6; }
! 4037: cat >>confdefs.h <<\_ACEOF
! 4038: #define ENV_DEBUG 1
! 4039: _ACEOF
! 4040:
! 4041: ;;
! 4042: no) { echo "$as_me:$LINENO: result: no" >&5
! 4043: echo "${ECHO_T}no" >&6; }
! 4044: ;;
! 4045: *) { echo "$as_me:$LINENO: result: no" >&5
! 4046: echo "${ECHO_T}no" >&6; }
! 4047: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
! 4048: echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
! 4049: ;;
! 4050: esac
! 4051:
! 4052: else
! 4053: { echo "$as_me:$LINENO: result: no" >&5
! 4054: echo "${ECHO_T}no" >&6; }
! 4055: fi
! 4056:
! 4057:
1.36 millert 4058:
4059: # Check whether --with-selinux was given.
4060: if test "${with_selinux+set}" = set; then
4061: withval=$with_selinux; case $with_selinux in
1.37 millert 4062: yes) SELINUX_USAGE="[-r role] [-t type] "
4063: cat >>confdefs.h <<\_ACEOF
1.36 millert 4064: #define HAVE_SELINUX 1
4065: _ACEOF
4066:
4067: SUDO_LIBS="${SUDO_LIBS} -lselinux"
4068: SUDO_OBJS="${SUDO_OBJS} selinux.o"
4069: PROGS="${PROGS} sesh"
4070: SELINUX=""
4071: SEMAN=""
4072: ;;
4073: no) ;;
4074: *) { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4075: echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4076: { (exit 1); exit 1; }; }
4077: ;;
4078: esac
4079: fi
4080:
4081:
1.37 millert 4082: # Check whether --enable-gss_krb5_ccache_name was given.
4083: if test "${enable_gss_krb5_ccache_name+set}" = set; then
4084: enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4085: else
4086: check_gss_krb5_ccache_name=no
4087: fi
4088:
4089:
1.1 millert 4090: # Extract the first word of "egrep", so it can be a program name with args.
4091: set dummy egrep; ac_word=$2
1.27 millert 4092: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4093: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4094: if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4095: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4096: else
4097: if test -n "$EGREPPROG"; then
4098: ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4099: else
1.16 millert 4100: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101: for as_dir in $PATH
4102: do
4103: IFS=$as_save_IFS
4104: test -z "$as_dir" && as_dir=.
4105: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4106: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4107: ac_cv_prog_EGREPPROG="egrep"
4108: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4109: break 2
4110: fi
4111: done
1.9 millert 4112: done
1.27 millert 4113: IFS=$as_save_IFS
1.9 millert 4114:
1.1 millert 4115: fi
4116: fi
1.9 millert 4117: EGREPPROG=$ac_cv_prog_EGREPPROG
1.1 millert 4118: if test -n "$EGREPPROG"; then
1.27 millert 4119: { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4120: echo "${ECHO_T}$EGREPPROG" >&6; }
1.1 millert 4121: else
1.27 millert 4122: { echo "$as_me:$LINENO: result: no" >&5
4123: echo "${ECHO_T}no" >&6; }
1.1 millert 4124: fi
4125:
1.27 millert 4126:
1.1 millert 4127: if test -z "$EGREPPROG"; then
1.17 millert 4128: { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4129: echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4130: { (exit 1); exit 1; }; }
1.1 millert 4131: fi
4132:
1.9 millert 4133: if test "$with_devel" != "yes"; then
4134: ac_cv_prog_cc_g=no
4135: fi
4136:
4137: ac_ext=c
4138: ac_cpp='$CPP $CPPFLAGS'
4139: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4140: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4141: ac_compiler_gnu=$ac_cv_c_compiler_gnu
4142: if test -n "$ac_tool_prefix"; then
4143: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4144: set dummy ${ac_tool_prefix}gcc; ac_word=$2
1.27 millert 4145: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4146: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4147: if test "${ac_cv_prog_CC+set}" = set; then
4148: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4149: else
4150: if test -n "$CC"; then
4151: ac_cv_prog_CC="$CC" # Let the user override the test.
4152: else
1.16 millert 4153: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154: for as_dir in $PATH
4155: do
4156: IFS=$as_save_IFS
4157: test -z "$as_dir" && as_dir=.
4158: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4159: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4160: ac_cv_prog_CC="${ac_tool_prefix}gcc"
4161: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4162: break 2
4163: fi
4164: done
1.9 millert 4165: done
1.27 millert 4166: IFS=$as_save_IFS
1.9 millert 4167:
1.1 millert 4168: fi
4169: fi
1.9 millert 4170: CC=$ac_cv_prog_CC
1.1 millert 4171: if test -n "$CC"; then
1.27 millert 4172: { echo "$as_me:$LINENO: result: $CC" >&5
4173: echo "${ECHO_T}$CC" >&6; }
1.1 millert 4174: else
1.27 millert 4175: { echo "$as_me:$LINENO: result: no" >&5
4176: echo "${ECHO_T}no" >&6; }
1.9 millert 4177: fi
4178:
1.27 millert 4179:
1.9 millert 4180: fi
4181: if test -z "$ac_cv_prog_CC"; then
4182: ac_ct_CC=$CC
4183: # Extract the first word of "gcc", so it can be a program name with args.
4184: set dummy gcc; ac_word=$2
1.27 millert 4185: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4186: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4187: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4188: echo $ECHO_N "(cached) $ECHO_C" >&6
4189: else
4190: if test -n "$ac_ct_CC"; then
4191: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4192: else
1.16 millert 4193: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194: for as_dir in $PATH
4195: do
4196: IFS=$as_save_IFS
4197: test -z "$as_dir" && as_dir=.
4198: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4199: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4200: ac_cv_prog_ac_ct_CC="gcc"
4201: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4202: break 2
4203: fi
4204: done
1.9 millert 4205: done
1.27 millert 4206: IFS=$as_save_IFS
1.9 millert 4207:
4208: fi
4209: fi
4210: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4211: if test -n "$ac_ct_CC"; then
1.27 millert 4212: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4213: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.9 millert 4214: else
1.27 millert 4215: { echo "$as_me:$LINENO: result: no" >&5
4216: echo "${ECHO_T}no" >&6; }
1.9 millert 4217: fi
4218:
1.27 millert 4219: if test "x$ac_ct_CC" = x; then
4220: CC=""
4221: else
4222: case $cross_compiling:$ac_tool_warned in
4223: yes:)
4224: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4225: whose name does not start with the host triplet. If you think this
4226: configuration is useful to you, please write to autoconf@gnu.org." >&5
4227: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4228: whose name does not start with the host triplet. If you think this
4229: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4230: ac_tool_warned=yes ;;
4231: esac
4232: CC=$ac_ct_CC
4233: fi
1.9 millert 4234: else
4235: CC="$ac_cv_prog_CC"
1.1 millert 4236: fi
4237:
4238: if test -z "$CC"; then
1.27 millert 4239: if test -n "$ac_tool_prefix"; then
4240: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1.9 millert 4241: set dummy ${ac_tool_prefix}cc; ac_word=$2
1.27 millert 4242: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4243: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4244: if test "${ac_cv_prog_CC+set}" = set; then
4245: echo $ECHO_N "(cached) $ECHO_C" >&6
4246: else
4247: if test -n "$CC"; then
4248: ac_cv_prog_CC="$CC" # Let the user override the test.
4249: else
1.16 millert 4250: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251: for as_dir in $PATH
4252: do
4253: IFS=$as_save_IFS
4254: test -z "$as_dir" && as_dir=.
4255: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4256: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4257: ac_cv_prog_CC="${ac_tool_prefix}cc"
4258: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259: break 2
4260: fi
4261: done
1.9 millert 4262: done
1.27 millert 4263: IFS=$as_save_IFS
1.9 millert 4264:
4265: fi
4266: fi
4267: CC=$ac_cv_prog_CC
4268: if test -n "$CC"; then
1.27 millert 4269: { echo "$as_me:$LINENO: result: $CC" >&5
4270: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4271: else
1.27 millert 4272: { echo "$as_me:$LINENO: result: no" >&5
4273: echo "${ECHO_T}no" >&6; }
1.9 millert 4274: fi
4275:
1.27 millert 4276:
1.16 millert 4277: fi
1.9 millert 4278: fi
4279: if test -z "$CC"; then
4280: # Extract the first word of "cc", so it can be a program name with args.
4281: set dummy cc; ac_word=$2
1.27 millert 4282: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4283: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4284: if test "${ac_cv_prog_CC+set}" = set; then
4285: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4286: else
4287: if test -n "$CC"; then
4288: ac_cv_prog_CC="$CC" # Let the user override the test.
4289: else
4290: ac_prog_rejected=no
1.16 millert 4291: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292: for as_dir in $PATH
4293: do
4294: IFS=$as_save_IFS
4295: test -z "$as_dir" && as_dir=.
4296: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4297: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4298: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4299: ac_prog_rejected=yes
4300: continue
4301: fi
4302: ac_cv_prog_CC="cc"
4303: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304: break 2
4305: fi
4306: done
1.9 millert 4307: done
1.27 millert 4308: IFS=$as_save_IFS
1.9 millert 4309:
1.1 millert 4310: if test $ac_prog_rejected = yes; then
4311: # We found a bogon in the path, so make sure we never use it.
4312: set dummy $ac_cv_prog_CC
4313: shift
1.9 millert 4314: if test $# != 0; then
1.1 millert 4315: # We chose a different compiler from the bogus one.
4316: # However, it has the same basename, so the bogon will be chosen
4317: # first if we set CC to just the basename; use the full file name.
4318: shift
1.16 millert 4319: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1.1 millert 4320: fi
4321: fi
4322: fi
4323: fi
1.9 millert 4324: CC=$ac_cv_prog_CC
1.1 millert 4325: if test -n "$CC"; then
1.27 millert 4326: { echo "$as_me:$LINENO: result: $CC" >&5
4327: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4328: else
1.27 millert 4329: { echo "$as_me:$LINENO: result: no" >&5
4330: echo "${ECHO_T}no" >&6; }
1.9 millert 4331: fi
4332:
1.27 millert 4333:
1.9 millert 4334: fi
4335: if test -z "$CC"; then
4336: if test -n "$ac_tool_prefix"; then
1.27 millert 4337: for ac_prog in cl.exe
1.9 millert 4338: do
4339: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4340: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1.27 millert 4341: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4342: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4343: if test "${ac_cv_prog_CC+set}" = set; then
4344: echo $ECHO_N "(cached) $ECHO_C" >&6
4345: else
4346: if test -n "$CC"; then
4347: ac_cv_prog_CC="$CC" # Let the user override the test.
4348: else
1.16 millert 4349: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350: for as_dir in $PATH
4351: do
4352: IFS=$as_save_IFS
4353: test -z "$as_dir" && as_dir=.
4354: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4355: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4356: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4357: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4358: break 2
4359: fi
4360: done
1.9 millert 4361: done
1.27 millert 4362: IFS=$as_save_IFS
1.9 millert 4363:
4364: fi
4365: fi
4366: CC=$ac_cv_prog_CC
4367: if test -n "$CC"; then
1.27 millert 4368: { echo "$as_me:$LINENO: result: $CC" >&5
4369: echo "${ECHO_T}$CC" >&6; }
1.9 millert 4370: else
1.27 millert 4371: { echo "$as_me:$LINENO: result: no" >&5
4372: echo "${ECHO_T}no" >&6; }
1.9 millert 4373: fi
4374:
1.27 millert 4375:
1.9 millert 4376: test -n "$CC" && break
4377: done
4378: fi
4379: if test -z "$CC"; then
4380: ac_ct_CC=$CC
1.27 millert 4381: for ac_prog in cl.exe
1.9 millert 4382: do
4383: # Extract the first word of "$ac_prog", so it can be a program name with args.
4384: set dummy $ac_prog; ac_word=$2
1.27 millert 4385: { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.9 millert 4387: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4388: echo $ECHO_N "(cached) $ECHO_C" >&6
4389: else
4390: if test -n "$ac_ct_CC"; then
4391: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4392: else
1.16 millert 4393: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394: for as_dir in $PATH
4395: do
4396: IFS=$as_save_IFS
4397: test -z "$as_dir" && as_dir=.
4398: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 4399: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.16 millert 4400: ac_cv_prog_ac_ct_CC="$ac_prog"
4401: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402: break 2
4403: fi
4404: done
1.9 millert 4405: done
1.27 millert 4406: IFS=$as_save_IFS
1.9 millert 4407:
4408: fi
4409: fi
4410: ac_ct_CC=$ac_cv_prog_ac_ct_CC
4411: if test -n "$ac_ct_CC"; then
1.27 millert 4412: { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4413: echo "${ECHO_T}$ac_ct_CC" >&6; }
1.1 millert 4414: else
1.27 millert 4415: { echo "$as_me:$LINENO: result: no" >&5
4416: echo "${ECHO_T}no" >&6; }
1.9 millert 4417: fi
4418:
1.27 millert 4419:
1.9 millert 4420: test -n "$ac_ct_CC" && break
4421: done
4422:
1.27 millert 4423: if test "x$ac_ct_CC" = x; then
4424: CC=""
4425: else
4426: case $cross_compiling:$ac_tool_warned in
4427: yes:)
4428: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4429: whose name does not start with the host triplet. If you think this
4430: configuration is useful to you, please write to autoconf@gnu.org." >&5
4431: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4432: whose name does not start with the host triplet. If you think this
4433: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4434: ac_tool_warned=yes ;;
4435: esac
4436: CC=$ac_ct_CC
4437: fi
1.1 millert 4438: fi
4439:
4440: fi
4441:
1.16 millert 4442:
4443: test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4444: See \`config.log' for more details." >&5
4445: echo "$as_me: error: no acceptable C compiler found in \$PATH
4446: See \`config.log' for more details." >&2;}
1.9 millert 4447: { (exit 1); exit 1; }; }
4448:
4449: # Provide some information about the compiler.
1.27 millert 4450: echo "$as_me:$LINENO: checking for C compiler version" >&5
1.9 millert 4451: ac_compiler=`set X $ac_compile; echo $2`
1.27 millert 4452: { (ac_try="$ac_compiler --version >&5"
4453: case "(($ac_try" in
4454: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455: *) ac_try_echo=$ac_try;;
4456: esac
4457: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458: (eval "$ac_compiler --version >&5") 2>&5
1.9 millert 4459: ac_status=$?
1.16 millert 4460: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4461: (exit $ac_status); }
1.27 millert 4462: { (ac_try="$ac_compiler -v >&5"
4463: case "(($ac_try" in
4464: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465: *) ac_try_echo=$ac_try;;
4466: esac
4467: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468: (eval "$ac_compiler -v >&5") 2>&5
1.9 millert 4469: ac_status=$?
1.16 millert 4470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4471: (exit $ac_status); }
1.27 millert 4472: { (ac_try="$ac_compiler -V >&5"
4473: case "(($ac_try" in
4474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475: *) ac_try_echo=$ac_try;;
4476: esac
4477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478: (eval "$ac_compiler -V >&5") 2>&5
1.9 millert 4479: ac_status=$?
1.16 millert 4480: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4481: (exit $ac_status); }
4482:
4483: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4484: /* confdefs.h. */
4485: _ACEOF
4486: cat confdefs.h >>conftest.$ac_ext
4487: cat >>conftest.$ac_ext <<_ACEOF
4488: /* end confdefs.h. */
1.9 millert 4489:
4490: int
4491: main ()
4492: {
1.1 millert 4493:
1.9 millert 4494: ;
4495: return 0;
4496: }
4497: _ACEOF
4498: ac_clean_files_save=$ac_clean_files
1.16 millert 4499: ac_clean_files="$ac_clean_files a.out a.exe b.out"
1.9 millert 4500: # Try to create an executable without -o first, disregard a.out.
4501: # It will help us diagnose broken compilers, and finding out an intuition
4502: # of exeext.
1.27 millert 4503: { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4504: echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1.9 millert 4505: ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1.27 millert 4506: #
4507: # List of possible output files, starting from the most likely.
4508: # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4509: # only as a last resort. b.out is created by i960 compilers.
4510: ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4511: #
4512: # The IRIX 6 linker writes into existing files which may not be
4513: # executable, retaining their permissions. Remove them first so a
4514: # subsequent execution test works.
4515: ac_rmfiles=
4516: for ac_file in $ac_files
4517: do
4518: case $ac_file in
4519: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4520: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4521: esac
4522: done
4523: rm -f $ac_rmfiles
4524:
4525: if { (ac_try="$ac_link_default"
4526: case "(($ac_try" in
4527: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4528: *) ac_try_echo=$ac_try;;
4529: esac
4530: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4531: (eval "$ac_link_default") 2>&5
1.9 millert 4532: ac_status=$?
1.16 millert 4533: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4534: (exit $ac_status); }; then
1.27 millert 4535: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4536: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4537: # in a Makefile. We should not override ac_cv_exeext if it was cached,
4538: # so that the user can short-circuit this test for compilers unknown to
4539: # Autoconf.
4540: for ac_file in $ac_files ''
1.16 millert 4541: do
4542: test -f "$ac_file" || continue
1.9 millert 4543: case $ac_file in
1.27 millert 4544: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1.25 millert 4545: ;;
1.16 millert 4546: [ab].out )
1.25 millert 4547: # We found the default executable, but exeext='' is most
4548: # certainly right.
4549: break;;
1.16 millert 4550: *.* )
1.27 millert 4551: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4552: then :; else
4553: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4554: fi
4555: # We set ac_cv_exeext here because the later test for it is not
4556: # safe: cross compilers may not add the suffix if given an `-o'
4557: # argument, so we may need to know it at that point already.
4558: # Even if this section looks crufty: it has the advantage of
4559: # actually working.
1.25 millert 4560: break;;
1.16 millert 4561: * )
1.25 millert 4562: break;;
1.9 millert 4563: esac
4564: done
1.27 millert 4565: test "$ac_cv_exeext" = no && ac_cv_exeext=
4566:
1.9 millert 4567: else
1.27 millert 4568: ac_file=''
4569: fi
4570:
4571: { echo "$as_me:$LINENO: result: $ac_file" >&5
4572: echo "${ECHO_T}$ac_file" >&6; }
4573: if test -z "$ac_file"; then
1.9 millert 4574: echo "$as_me: failed program was:" >&5
1.16 millert 4575: sed 's/^/| /' conftest.$ac_ext >&5
4576:
4577: { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4578: See \`config.log' for more details." >&5
4579: echo "$as_me: error: C compiler cannot create executables
4580: See \`config.log' for more details." >&2;}
1.9 millert 4581: { (exit 77); exit 77; }; }
4582: fi
4583:
4584: ac_exeext=$ac_cv_exeext
4585:
1.27 millert 4586: # Check that the compiler produces executables we can run. If not, either
1.9 millert 4587: # the compiler is broken, or we cross compile.
1.27 millert 4588: { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4589: echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1.9 millert 4590: # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4591: # If not cross compiling, check that we can run a simple program.
4592: if test "$cross_compiling" != yes; then
4593: if { ac_try='./$ac_file'
1.27 millert 4594: { (case "(($ac_try" in
4595: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596: *) ac_try_echo=$ac_try;;
4597: esac
4598: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599: (eval "$ac_try") 2>&5
1.9 millert 4600: ac_status=$?
1.16 millert 4601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4602: (exit $ac_status); }; }; then
4603: cross_compiling=no
1.1 millert 4604: else
1.9 millert 4605: if test "$cross_compiling" = maybe; then
4606: cross_compiling=yes
4607: else
1.16 millert 4608: { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4609: If you meant to cross compile, use \`--host'.
4610: See \`config.log' for more details." >&5
1.9 millert 4611: echo "$as_me: error: cannot run C compiled programs.
1.16 millert 4612: If you meant to cross compile, use \`--host'.
4613: See \`config.log' for more details." >&2;}
1.9 millert 4614: { (exit 1); exit 1; }; }
4615: fi
1.1 millert 4616: fi
1.9 millert 4617: fi
1.27 millert 4618: { echo "$as_me:$LINENO: result: yes" >&5
4619: echo "${ECHO_T}yes" >&6; }
1.9 millert 4620:
1.16 millert 4621: rm -f a.out a.exe conftest$ac_cv_exeext b.out
1.9 millert 4622: ac_clean_files=$ac_clean_files_save
1.27 millert 4623: # Check that the compiler produces executables we can run. If not, either
1.9 millert 4624: # the compiler is broken, or we cross compile.
1.27 millert 4625: { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4626: echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4627: { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4628: echo "${ECHO_T}$cross_compiling" >&6; }
4629:
4630: { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4631: echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4632: if { (ac_try="$ac_link"
4633: case "(($ac_try" in
4634: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4635: *) ac_try_echo=$ac_try;;
4636: esac
4637: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4638: (eval "$ac_link") 2>&5
1.9 millert 4639: ac_status=$?
1.16 millert 4640: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4641: (exit $ac_status); }; then
4642: # If both `conftest.exe' and `conftest' are `present' (well, observable)
4643: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4644: # work properly (i.e., refer to `conftest.exe'), while it won't with
4645: # `rm'.
1.16 millert 4646: for ac_file in conftest.exe conftest conftest.*; do
4647: test -f "$ac_file" || continue
1.9 millert 4648: case $ac_file in
1.27 millert 4649: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1.9 millert 4650: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1.25 millert 4651: break;;
1.9 millert 4652: * ) break;;
4653: esac
4654: done
1.1 millert 4655: else
1.16 millert 4656: { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4657: See \`config.log' for more details." >&5
4658: echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4659: See \`config.log' for more details." >&2;}
1.9 millert 4660: { (exit 1); exit 1; }; }
1.1 millert 4661: fi
4662:
1.9 millert 4663: rm -f conftest$ac_cv_exeext
1.27 millert 4664: { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4665: echo "${ECHO_T}$ac_cv_exeext" >&6; }
1.1 millert 4666:
1.9 millert 4667: rm -f conftest.$ac_ext
4668: EXEEXT=$ac_cv_exeext
4669: ac_exeext=$EXEEXT
1.27 millert 4670: { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4671: echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1.9 millert 4672: if test "${ac_cv_objext+set}" = set; then
4673: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4674: else
1.9 millert 4675: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4676: /* confdefs.h. */
4677: _ACEOF
4678: cat confdefs.h >>conftest.$ac_ext
4679: cat >>conftest.$ac_ext <<_ACEOF
4680: /* end confdefs.h. */
1.9 millert 4681:
4682: int
4683: main ()
4684: {
4685:
4686: ;
4687: return 0;
4688: }
4689: _ACEOF
4690: rm -f conftest.o conftest.obj
1.27 millert 4691: if { (ac_try="$ac_compile"
4692: case "(($ac_try" in
4693: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4694: *) ac_try_echo=$ac_try;;
4695: esac
4696: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697: (eval "$ac_compile") 2>&5
1.9 millert 4698: ac_status=$?
1.16 millert 4699: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 4700: (exit $ac_status); }; then
1.27 millert 4701: for ac_file in conftest.o conftest.obj conftest.*; do
4702: test -f "$ac_file" || continue;
1.9 millert 4703: case $ac_file in
1.27 millert 4704: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1.9 millert 4705: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4706: break;;
4707: esac
4708: done
1.1 millert 4709: else
1.9 millert 4710: echo "$as_me: failed program was:" >&5
1.16 millert 4711: sed 's/^/| /' conftest.$ac_ext >&5
4712:
4713: { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4714: See \`config.log' for more details." >&5
4715: echo "$as_me: error: cannot compute suffix of object files: cannot compile
4716: See \`config.log' for more details." >&2;}
1.9 millert 4717: { (exit 1); exit 1; }; }
1.1 millert 4718: fi
1.9 millert 4719:
4720: rm -f conftest.$ac_cv_objext conftest.$ac_ext
1.1 millert 4721: fi
1.27 millert 4722: { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4723: echo "${ECHO_T}$ac_cv_objext" >&6; }
1.9 millert 4724: OBJEXT=$ac_cv_objext
4725: ac_objext=$OBJEXT
1.27 millert 4726: { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4727: echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1.9 millert 4728: if test "${ac_cv_c_compiler_gnu+set}" = set; then
4729: echo $ECHO_N "(cached) $ECHO_C" >&6
4730: else
4731: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4732: /* confdefs.h. */
4733: _ACEOF
4734: cat confdefs.h >>conftest.$ac_ext
4735: cat >>conftest.$ac_ext <<_ACEOF
4736: /* end confdefs.h. */
1.1 millert 4737:
1.9 millert 4738: int
4739: main ()
4740: {
4741: #ifndef __GNUC__
4742: choke me
4743: #endif
1.1 millert 4744:
1.9 millert 4745: ;
4746: return 0;
4747: }
4748: _ACEOF
4749: rm -f conftest.$ac_objext
1.27 millert 4750: if { (ac_try="$ac_compile"
4751: case "(($ac_try" in
4752: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4753: *) ac_try_echo=$ac_try;;
4754: esac
4755: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4756: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4757: ac_status=$?
1.25 millert 4758: grep -v '^ *+' conftest.er1 >conftest.err
4759: rm -f conftest.er1
4760: cat conftest.err >&5
1.16 millert 4761: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 4762: (exit $ac_status); } && {
4763: test -z "$ac_c_werror_flag" ||
4764: test ! -s conftest.err
4765: } && test -s conftest.$ac_objext; then
1.9 millert 4766: ac_compiler_gnu=yes
4767: else
4768: echo "$as_me: failed program was:" >&5
1.16 millert 4769: sed 's/^/| /' conftest.$ac_ext >&5
4770:
1.27 millert 4771: ac_compiler_gnu=no
1.9 millert 4772: fi
1.27 millert 4773:
4774: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4775: ac_cv_c_compiler_gnu=$ac_compiler_gnu
4776:
4777: fi
1.27 millert 4778: { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4779: echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1.9 millert 4780: GCC=`test $ac_compiler_gnu = yes && echo yes`
4781: ac_test_CFLAGS=${CFLAGS+set}
4782: ac_save_CFLAGS=$CFLAGS
1.27 millert 4783: { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4784: echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1.9 millert 4785: if test "${ac_cv_prog_cc_g+set}" = set; then
4786: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 4787: else
1.27 millert 4788: ac_save_c_werror_flag=$ac_c_werror_flag
4789: ac_c_werror_flag=yes
4790: ac_cv_prog_cc_g=no
4791: CFLAGS="-g"
4792: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4793: /* confdefs.h. */
4794: _ACEOF
4795: cat confdefs.h >>conftest.$ac_ext
4796: cat >>conftest.$ac_ext <<_ACEOF
4797: /* end confdefs.h. */
1.9 millert 4798:
4799: int
4800: main ()
4801: {
4802:
4803: ;
4804: return 0;
4805: }
4806: _ACEOF
4807: rm -f conftest.$ac_objext
1.27 millert 4808: if { (ac_try="$ac_compile"
4809: case "(($ac_try" in
4810: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811: *) ac_try_echo=$ac_try;;
4812: esac
4813: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4815: ac_status=$?
1.25 millert 4816: grep -v '^ *+' conftest.er1 >conftest.err
4817: rm -f conftest.er1
4818: cat conftest.err >&5
1.16 millert 4819: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 4820: (exit $ac_status); } && {
4821: test -z "$ac_c_werror_flag" ||
4822: test ! -s conftest.err
4823: } && test -s conftest.$ac_objext; then
4824: ac_cv_prog_cc_g=yes
4825: else
4826: echo "$as_me: failed program was:" >&5
4827: sed 's/^/| /' conftest.$ac_ext >&5
4828:
4829: CFLAGS=""
4830: cat >conftest.$ac_ext <<_ACEOF
4831: /* confdefs.h. */
4832: _ACEOF
4833: cat confdefs.h >>conftest.$ac_ext
4834: cat >>conftest.$ac_ext <<_ACEOF
4835: /* end confdefs.h. */
4836:
4837: int
4838: main ()
4839: {
4840:
4841: ;
4842: return 0;
4843: }
4844: _ACEOF
4845: rm -f conftest.$ac_objext
4846: if { (ac_try="$ac_compile"
4847: case "(($ac_try" in
4848: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849: *) ac_try_echo=$ac_try;;
4850: esac
4851: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4852: (eval "$ac_compile") 2>conftest.er1
1.25 millert 4853: ac_status=$?
1.27 millert 4854: grep -v '^ *+' conftest.er1 >conftest.err
4855: rm -f conftest.er1
4856: cat conftest.err >&5
1.25 millert 4857: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 4858: (exit $ac_status); } && {
4859: test -z "$ac_c_werror_flag" ||
4860: test ! -s conftest.err
4861: } && test -s conftest.$ac_objext; then
4862: :
4863: else
4864: echo "$as_me: failed program was:" >&5
4865: sed 's/^/| /' conftest.$ac_ext >&5
4866:
4867: ac_c_werror_flag=$ac_save_c_werror_flag
4868: CFLAGS="-g"
4869: cat >conftest.$ac_ext <<_ACEOF
4870: /* confdefs.h. */
4871: _ACEOF
4872: cat confdefs.h >>conftest.$ac_ext
4873: cat >>conftest.$ac_ext <<_ACEOF
4874: /* end confdefs.h. */
4875:
4876: int
4877: main ()
4878: {
4879:
4880: ;
4881: return 0;
4882: }
4883: _ACEOF
4884: rm -f conftest.$ac_objext
4885: if { (ac_try="$ac_compile"
4886: case "(($ac_try" in
4887: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4888: *) ac_try_echo=$ac_try;;
4889: esac
4890: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4891: (eval "$ac_compile") 2>conftest.er1
1.9 millert 4892: ac_status=$?
1.27 millert 4893: grep -v '^ *+' conftest.er1 >conftest.err
4894: rm -f conftest.er1
4895: cat conftest.err >&5
1.16 millert 4896: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 4897: (exit $ac_status); } && {
4898: test -z "$ac_c_werror_flag" ||
4899: test ! -s conftest.err
4900: } && test -s conftest.$ac_objext; then
1.1 millert 4901: ac_cv_prog_cc_g=yes
4902: else
1.9 millert 4903: echo "$as_me: failed program was:" >&5
1.16 millert 4904: sed 's/^/| /' conftest.$ac_ext >&5
4905:
1.27 millert 4906:
4907: fi
4908:
4909: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4910: fi
4911:
4912: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 4913: fi
1.27 millert 4914:
4915: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916: ac_c_werror_flag=$ac_save_c_werror_flag
1.9 millert 4917: fi
1.27 millert 4918: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4919: echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1.9 millert 4920: if test "$ac_test_CFLAGS" = set; then
4921: CFLAGS=$ac_save_CFLAGS
4922: elif test $ac_cv_prog_cc_g = yes; then
4923: if test "$GCC" = yes; then
4924: CFLAGS="-g -O2"
4925: else
4926: CFLAGS="-g"
4927: fi
4928: else
4929: if test "$GCC" = yes; then
4930: CFLAGS="-O2"
4931: else
4932: CFLAGS=
4933: fi
4934: fi
1.27 millert 4935: { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4936: echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4937: if test "${ac_cv_prog_cc_c89+set}" = set; then
1.16 millert 4938: echo $ECHO_N "(cached) $ECHO_C" >&6
4939: else
1.27 millert 4940: ac_cv_prog_cc_c89=no
1.16 millert 4941: ac_save_CC=$CC
1.9 millert 4942: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 4943: /* confdefs.h. */
1.9 millert 4944: _ACEOF
1.16 millert 4945: cat confdefs.h >>conftest.$ac_ext
4946: cat >>conftest.$ac_ext <<_ACEOF
4947: /* end confdefs.h. */
4948: #include <stdarg.h>
4949: #include <stdio.h>
4950: #include <sys/types.h>
4951: #include <sys/stat.h>
4952: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4953: struct buf { int x; };
4954: FILE * (*rcsopen) (struct buf *, struct stat *, int);
4955: static char *e (p, i)
4956: char **p;
4957: int i;
1.9 millert 4958: {
1.16 millert 4959: return p[i];
1.9 millert 4960: }
1.16 millert 4961: static char *f (char * (*g) (char **, int), char **p, ...)
4962: {
4963: char *s;
4964: va_list v;
4965: va_start (v,p);
4966: s = g (p, va_arg (v,int));
4967: va_end (v);
4968: return s;
4969: }
1.25 millert 4970:
4971: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4972: function prototypes and stuff, but not '\xHH' hex character constants.
4973: These don't provoke an error unfortunately, instead are silently treated
1.27 millert 4974: as 'x'. The following induces an error, until -std is added to get
1.25 millert 4975: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4976: array size at least. It's necessary to write '\x00'==0 to get something
1.27 millert 4977: that's true only with -std. */
1.25 millert 4978: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4979:
1.27 millert 4980: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4981: inside strings and character constants. */
4982: #define FOO(x) 'x'
4983: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4984:
1.16 millert 4985: int test (int i, double x);
4986: struct s1 {int (*f) (int a);};
4987: struct s2 {int (*f) (double a);};
4988: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4989: int argc;
4990: char **argv;
4991: int
4992: main ()
4993: {
4994: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4995: ;
4996: return 0;
4997: }
4998: _ACEOF
1.27 millert 4999: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5000: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1.16 millert 5001: do
5002: CC="$ac_save_CC $ac_arg"
5003: rm -f conftest.$ac_objext
1.27 millert 5004: if { (ac_try="$ac_compile"
5005: case "(($ac_try" in
5006: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007: *) ac_try_echo=$ac_try;;
5008: esac
5009: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010: (eval "$ac_compile") 2>conftest.er1
1.16 millert 5011: ac_status=$?
1.25 millert 5012: grep -v '^ *+' conftest.er1 >conftest.err
5013: rm -f conftest.er1
5014: cat conftest.err >&5
1.16 millert 5015: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5016: (exit $ac_status); } && {
5017: test -z "$ac_c_werror_flag" ||
5018: test ! -s conftest.err
5019: } && test -s conftest.$ac_objext; then
5020: ac_cv_prog_cc_c89=$ac_arg
1.16 millert 5021: else
5022: echo "$as_me: failed program was:" >&5
5023: sed 's/^/| /' conftest.$ac_ext >&5
5024:
1.27 millert 5025:
1.16 millert 5026: fi
1.27 millert 5027:
5028: rm -f core conftest.err conftest.$ac_objext
5029: test "x$ac_cv_prog_cc_c89" != "xno" && break
1.16 millert 5030: done
1.27 millert 5031: rm -f conftest.$ac_ext
1.16 millert 5032: CC=$ac_save_CC
5033:
5034: fi
1.27 millert 5035: # AC_CACHE_VAL
5036: case "x$ac_cv_prog_cc_c89" in
5037: x)
5038: { echo "$as_me:$LINENO: result: none needed" >&5
5039: echo "${ECHO_T}none needed" >&6; } ;;
5040: xno)
5041: { echo "$as_me:$LINENO: result: unsupported" >&5
5042: echo "${ECHO_T}unsupported" >&6; } ;;
1.16 millert 5043: *)
1.27 millert 5044: CC="$CC $ac_cv_prog_cc_c89"
5045: { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5046: echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
1.16 millert 5047: esac
5048:
1.27 millert 5049:
5050: ac_ext=c
5051: ac_cpp='$CPP $CPPFLAGS'
5052: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5053: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5054: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5055:
5056:
5057: { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5058: echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5059: if test "${ac_cv_search_strerror+set}" = set; then
5060: echo $ECHO_N "(cached) $ECHO_C" >&6
5061: else
5062: ac_func_search_save_LIBS=$LIBS
1.16 millert 5063: cat >conftest.$ac_ext <<_ACEOF
5064: /* confdefs.h. */
5065: _ACEOF
5066: cat confdefs.h >>conftest.$ac_ext
5067: cat >>conftest.$ac_ext <<_ACEOF
5068: /* end confdefs.h. */
1.27 millert 5069:
5070: /* Override any GCC internal prototype to avoid an error.
5071: Use char because int might match the return type of a GCC
5072: builtin and then its argument prototype would still apply. */
5073: #ifdef __cplusplus
5074: extern "C"
5075: #endif
5076: char strerror ();
1.16 millert 5077: int
5078: main ()
5079: {
1.27 millert 5080: return strerror ();
1.16 millert 5081: ;
5082: return 0;
5083: }
5084: _ACEOF
1.27 millert 5085: for ac_lib in '' cposix; do
5086: if test -z "$ac_lib"; then
5087: ac_res="none required"
5088: else
5089: ac_res=-l$ac_lib
5090: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5091: fi
5092: rm -f conftest.$ac_objext conftest$ac_exeext
5093: if { (ac_try="$ac_link"
5094: case "(($ac_try" in
5095: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5096: *) ac_try_echo=$ac_try;;
5097: esac
5098: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5099: (eval "$ac_link") 2>conftest.er1
1.16 millert 5100: ac_status=$?
1.25 millert 5101: grep -v '^ *+' conftest.er1 >conftest.err
5102: rm -f conftest.er1
5103: cat conftest.err >&5
1.16 millert 5104: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5105: (exit $ac_status); } && {
5106: test -z "$ac_c_werror_flag" ||
5107: test ! -s conftest.err
5108: } && test -s conftest$ac_exeext &&
5109: $as_test_x conftest$ac_exeext; then
5110: ac_cv_search_strerror=$ac_res
1.9 millert 5111: else
5112: echo "$as_me: failed program was:" >&5
1.16 millert 5113: sed 's/^/| /' conftest.$ac_ext >&5
5114:
1.27 millert 5115:
5116: fi
5117:
5118: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5119: conftest$ac_exeext
5120: if test "${ac_cv_search_strerror+set}" = set; then
5121: break
1.9 millert 5122: fi
1.27 millert 5123: done
1.16 millert 5124: if test "${ac_cv_search_strerror+set}" = set; then
1.27 millert 5125: :
1.9 millert 5126: else
1.27 millert 5127: ac_cv_search_strerror=no
1.16 millert 5128: fi
1.27 millert 5129: rm conftest.$ac_ext
1.16 millert 5130: LIBS=$ac_func_search_save_LIBS
1.9 millert 5131: fi
1.27 millert 5132: { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5133: echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5134: ac_res=$ac_cv_search_strerror
5135: if test "$ac_res" != no; then
5136: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.9 millert 5137:
5138: fi
5139:
5140: ac_ext=c
5141: ac_cpp='$CPP $CPPFLAGS'
5142: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.27 millert 5145: { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5146: echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
1.1 millert 5147: # On Suns, sometimes $CPP names a directory.
5148: if test -n "$CPP" && test -d "$CPP"; then
5149: CPP=
5150: fi
5151: if test -z "$CPP"; then
1.9 millert 5152: if test "${ac_cv_prog_CPP+set}" = set; then
5153: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5154: else
1.9 millert 5155: # Double quotes because CPP needs to be expanded
5156: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5157: do
5158: ac_preproc_ok=false
5159: for ac_c_preproc_warn_flag in '' yes
5160: do
5161: # Use a header file that comes with gcc, so configuring glibc
5162: # with a fresh cross-compiler works.
1.16 millert 5163: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164: # <limits.h> exists even on freestanding compilers.
1.1 millert 5165: # On the NeXT, cc -E runs the code through the compiler's parser,
1.9 millert 5166: # not just through cpp. "Syntax error" is here to catch this case.
5167: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5168: /* confdefs.h. */
5169: _ACEOF
5170: cat confdefs.h >>conftest.$ac_ext
5171: cat >>conftest.$ac_ext <<_ACEOF
5172: /* end confdefs.h. */
5173: #ifdef __STDC__
5174: # include <limits.h>
5175: #else
5176: # include <assert.h>
5177: #endif
1.25 millert 5178: Syntax error
1.9 millert 5179: _ACEOF
1.27 millert 5180: if { (ac_try="$ac_cpp conftest.$ac_ext"
5181: case "(($ac_try" in
5182: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183: *) ac_try_echo=$ac_try;;
5184: esac
5185: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5187: ac_status=$?
1.16 millert 5188: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5189: rm -f conftest.er1
5190: cat conftest.err >&5
1.16 millert 5191: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5192: (exit $ac_status); } >/dev/null && {
5193: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194: test ! -s conftest.err
5195: }; then
1.1 millert 5196: :
5197: else
1.9 millert 5198: echo "$as_me: failed program was:" >&5
1.16 millert 5199: sed 's/^/| /' conftest.$ac_ext >&5
5200:
1.9 millert 5201: # Broken: fails on valid input.
5202: continue
5203: fi
1.27 millert 5204:
1.9 millert 5205: rm -f conftest.err conftest.$ac_ext
5206:
1.27 millert 5207: # OK, works on sane cases. Now check whether nonexistent headers
1.9 millert 5208: # can be detected and how.
5209: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5210: /* confdefs.h. */
5211: _ACEOF
5212: cat confdefs.h >>conftest.$ac_ext
5213: cat >>conftest.$ac_ext <<_ACEOF
5214: /* end confdefs.h. */
1.9 millert 5215: #include <ac_nonexistent.h>
5216: _ACEOF
1.27 millert 5217: if { (ac_try="$ac_cpp conftest.$ac_ext"
5218: case "(($ac_try" in
5219: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220: *) ac_try_echo=$ac_try;;
5221: esac
5222: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5224: ac_status=$?
1.16 millert 5225: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5226: rm -f conftest.er1
5227: cat conftest.err >&5
1.16 millert 5228: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5229: (exit $ac_status); } >/dev/null && {
5230: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5231: test ! -s conftest.err
5232: }; then
1.9 millert 5233: # Broken: success on invalid input.
5234: continue
5235: else
5236: echo "$as_me: failed program was:" >&5
1.16 millert 5237: sed 's/^/| /' conftest.$ac_ext >&5
5238:
1.9 millert 5239: # Passes both tests.
5240: ac_preproc_ok=:
5241: break
5242: fi
1.27 millert 5243:
1.9 millert 5244: rm -f conftest.err conftest.$ac_ext
5245:
5246: done
5247: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5248: rm -f conftest.err conftest.$ac_ext
5249: if $ac_preproc_ok; then
5250: break
5251: fi
5252:
5253: done
5254: ac_cv_prog_CPP=$CPP
5255:
5256: fi
5257: CPP=$ac_cv_prog_CPP
5258: else
5259: ac_cv_prog_CPP=$CPP
5260: fi
1.27 millert 5261: { echo "$as_me:$LINENO: result: $CPP" >&5
5262: echo "${ECHO_T}$CPP" >&6; }
1.9 millert 5263: ac_preproc_ok=false
5264: for ac_c_preproc_warn_flag in '' yes
5265: do
5266: # Use a header file that comes with gcc, so configuring glibc
5267: # with a fresh cross-compiler works.
1.16 millert 5268: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5269: # <limits.h> exists even on freestanding compilers.
1.9 millert 5270: # On the NeXT, cc -E runs the code through the compiler's parser,
5271: # not just through cpp. "Syntax error" is here to catch this case.
5272: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5273: /* confdefs.h. */
5274: _ACEOF
5275: cat confdefs.h >>conftest.$ac_ext
5276: cat >>conftest.$ac_ext <<_ACEOF
5277: /* end confdefs.h. */
5278: #ifdef __STDC__
5279: # include <limits.h>
5280: #else
5281: # include <assert.h>
5282: #endif
1.25 millert 5283: Syntax error
1.9 millert 5284: _ACEOF
1.27 millert 5285: if { (ac_try="$ac_cpp conftest.$ac_ext"
5286: case "(($ac_try" in
5287: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5288: *) ac_try_echo=$ac_try;;
5289: esac
5290: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5291: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5292: ac_status=$?
1.16 millert 5293: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5294: rm -f conftest.er1
5295: cat conftest.err >&5
1.16 millert 5296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5297: (exit $ac_status); } >/dev/null && {
5298: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5299: test ! -s conftest.err
5300: }; then
1.1 millert 5301: :
5302: else
1.9 millert 5303: echo "$as_me: failed program was:" >&5
1.16 millert 5304: sed 's/^/| /' conftest.$ac_ext >&5
5305:
1.9 millert 5306: # Broken: fails on valid input.
5307: continue
1.1 millert 5308: fi
1.27 millert 5309:
1.9 millert 5310: rm -f conftest.err conftest.$ac_ext
5311:
1.27 millert 5312: # OK, works on sane cases. Now check whether nonexistent headers
1.9 millert 5313: # can be detected and how.
5314: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 5315: /* confdefs.h. */
5316: _ACEOF
5317: cat confdefs.h >>conftest.$ac_ext
5318: cat >>conftest.$ac_ext <<_ACEOF
5319: /* end confdefs.h. */
1.9 millert 5320: #include <ac_nonexistent.h>
5321: _ACEOF
1.27 millert 5322: if { (ac_try="$ac_cpp conftest.$ac_ext"
5323: case "(($ac_try" in
5324: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325: *) ac_try_echo=$ac_try;;
5326: esac
5327: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 5329: ac_status=$?
1.16 millert 5330: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 5331: rm -f conftest.er1
5332: cat conftest.err >&5
1.16 millert 5333: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 5334: (exit $ac_status); } >/dev/null && {
5335: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5336: test ! -s conftest.err
5337: }; then
1.9 millert 5338: # Broken: success on invalid input.
5339: continue
1.1 millert 5340: else
1.9 millert 5341: echo "$as_me: failed program was:" >&5
1.16 millert 5342: sed 's/^/| /' conftest.$ac_ext >&5
5343:
1.9 millert 5344: # Passes both tests.
5345: ac_preproc_ok=:
5346: break
1.1 millert 5347: fi
1.27 millert 5348:
1.9 millert 5349: rm -f conftest.err conftest.$ac_ext
1.1 millert 5350:
1.9 millert 5351: done
5352: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5353: rm -f conftest.err conftest.$ac_ext
5354: if $ac_preproc_ok; then
5355: :
1.1 millert 5356: else
1.16 millert 5357: { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5358: See \`config.log' for more details." >&5
5359: echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5360: See \`config.log' for more details." >&2;}
1.9 millert 5361: { (exit 1); exit 1; }; }
1.1 millert 5362: fi
5363:
1.9 millert 5364: ac_ext=c
5365: ac_cpp='$CPP $CPPFLAGS'
5366: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5367: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5368: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.1 millert 5369:
1.16 millert 5370:
1.23 millert 5371: ac_aux_dir=
1.27 millert 5372: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5373: if test -f "$ac_dir/install-sh"; then
1.23 millert 5374: ac_aux_dir=$ac_dir
5375: ac_install_sh="$ac_aux_dir/install-sh -c"
5376: break
1.27 millert 5377: elif test -f "$ac_dir/install.sh"; then
1.23 millert 5378: ac_aux_dir=$ac_dir
5379: ac_install_sh="$ac_aux_dir/install.sh -c"
5380: break
1.27 millert 5381: elif test -f "$ac_dir/shtool"; then
1.23 millert 5382: ac_aux_dir=$ac_dir
5383: ac_install_sh="$ac_aux_dir/shtool install -c"
5384: break
5385: fi
5386: done
5387: if test -z "$ac_aux_dir"; then
1.27 millert 5388: { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5389: echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1.23 millert 5390: { (exit 1); exit 1; }; }
1.1 millert 5391: fi
1.27 millert 5392:
5393: # These three variables are undocumented and unsupported,
5394: # and are intended to be withdrawn in a future Autoconf release.
5395: # They can cause serious problems if a builder's source tree is in a directory
5396: # whose full name contains unusual characters.
5397: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5398: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5399: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5400:
1.23 millert 5401:
5402: # Make sure we can run config.sub.
1.27 millert 5403: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5404: { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5405: echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1.23 millert 5406: { (exit 1); exit 1; }; }
1.1 millert 5407:
1.27 millert 5408: { echo "$as_me:$LINENO: checking build system type" >&5
5409: echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1.23 millert 5410: if test "${ac_cv_build+set}" = set; then
1.9 millert 5411: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5412: else
1.27 millert 5413: ac_build_alias=$build_alias
5414: test "x$ac_build_alias" = x &&
5415: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5416: test "x$ac_build_alias" = x &&
1.23 millert 5417: { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5418: echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5419: { (exit 1); exit 1; }; }
1.27 millert 5420: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5421: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5422: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1.23 millert 5423: { (exit 1); exit 1; }; }
1.9 millert 5424:
1.1 millert 5425: fi
1.27 millert 5426: { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5427: echo "${ECHO_T}$ac_cv_build" >&6; }
5428: case $ac_cv_build in
5429: *-*-*) ;;
5430: *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5431: echo "$as_me: error: invalid value of canonical build" >&2;}
5432: { (exit 1); exit 1; }; };;
5433: esac
1.23 millert 5434: build=$ac_cv_build
1.27 millert 5435: ac_save_IFS=$IFS; IFS='-'
5436: set x $ac_cv_build
5437: shift
5438: build_cpu=$1
5439: build_vendor=$2
5440: shift; shift
5441: # Remember, the first character of IFS is used to create $*,
5442: # except with old shells:
5443: build_os=$*
5444: IFS=$ac_save_IFS
5445: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1.23 millert 5446:
5447:
1.27 millert 5448: { echo "$as_me:$LINENO: checking host system type" >&5
5449: echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1.23 millert 5450: if test "${ac_cv_host+set}" = set; then
5451: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 5452: else
1.27 millert 5453: if test "x$host_alias" = x; then
5454: ac_cv_host=$ac_cv_build
5455: else
5456: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5457: { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5458: echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1.23 millert 5459: { (exit 1); exit 1; }; }
1.27 millert 5460: fi
1.23 millert 5461:
1.1 millert 5462: fi
1.27 millert 5463: { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5464: echo "${ECHO_T}$ac_cv_host" >&6; }
5465: case $ac_cv_host in
5466: *-*-*) ;;
5467: *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5468: echo "$as_me: error: invalid value of canonical host" >&2;}
5469: { (exit 1); exit 1; }; };;
5470: esac
1.23 millert 5471: host=$ac_cv_host
1.27 millert 5472: ac_save_IFS=$IFS; IFS='-'
5473: set x $ac_cv_host
5474: shift
5475: host_cpu=$1
5476: host_vendor=$2
5477: shift; shift
5478: # Remember, the first character of IFS is used to create $*,
5479: # except with old shells:
5480: host_os=$*
5481: IFS=$ac_save_IFS
5482: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1.1 millert 5483:
1.23 millert 5484:
1.27 millert 5485: # Check whether --enable-static was given.
5486: if test "${enable_static+set}" = set; then
5487: enableval=$enable_static; p=${PACKAGE-default}
5488: case $enableval in
5489: yes) enable_static=yes ;;
5490: no) enable_static=no ;;
5491: *)
5492: enable_static=no
5493: # Look at the argument we got. We use all the common list separators.
5494: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5495: for pkg in $enableval; do
5496: IFS="$lt_save_ifs"
5497: if test "X$pkg" = "X$p"; then
5498: enable_static=yes
5499: fi
5500: done
5501: IFS="$lt_save_ifs"
5502: ;;
5503: esac
5504: else
5505: enable_static=no
5506: fi
1.23 millert 5507:
5508:
5509:
1.27 millert 5510: # Check whether --enable-shared was given.
5511: if test "${enable_shared+set}" = set; then
5512: enableval=$enable_shared; p=${PACKAGE-default}
5513: case $enableval in
5514: yes) enable_shared=yes ;;
5515: no) enable_shared=no ;;
5516: *)
5517: enable_shared=no
5518: # Look at the argument we got. We use all the common list separators.
5519: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5520: for pkg in $enableval; do
5521: IFS="$lt_save_ifs"
5522: if test "X$pkg" = "X$p"; then
5523: enable_shared=yes
5524: fi
5525: done
5526: IFS="$lt_save_ifs"
5527: ;;
5528: esac
5529: else
5530: enable_shared=yes
5531: fi
1.25 millert 5532:
5533:
1.27 millert 5534: # Check whether --enable-fast-install was given.
5535: if test "${enable_fast_install+set}" = set; then
5536: enableval=$enable_fast_install; p=${PACKAGE-default}
5537: case $enableval in
5538: yes) enable_fast_install=yes ;;
5539: no) enable_fast_install=no ;;
5540: *)
5541: enable_fast_install=no
5542: # Look at the argument we got. We use all the common list separators.
5543: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5544: for pkg in $enableval; do
5545: IFS="$lt_save_ifs"
5546: if test "X$pkg" = "X$p"; then
5547: enable_fast_install=yes
5548: fi
5549: done
5550: IFS="$lt_save_ifs"
5551: ;;
5552: esac
5553: else
5554: enable_fast_install=yes
5555: fi
1.25 millert 5556:
5557:
1.27 millert 5558: { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5559: echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
1.23 millert 5560: if test "${lt_cv_path_SED+set}" = set; then
5561: echo $ECHO_N "(cached) $ECHO_C" >&6
5562: else
5563: # Loop through the user's path and test for sed and gsed.
5564: # Then use that list of sed's as ones to test for truncation.
5565: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566: for as_dir in $PATH
5567: do
5568: IFS=$as_save_IFS
5569: test -z "$as_dir" && as_dir=.
5570: for lt_ac_prog in sed gsed; do
5571: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 5572: if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
1.23 millert 5573: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5574: fi
5575: done
5576: done
5577: done
1.27 millert 5578: IFS=$as_save_IFS
1.23 millert 5579: lt_ac_max=0
5580: lt_ac_count=0
5581: # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5582: # along with /bin/sed that truncates output.
5583: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
1.27 millert 5584: test ! -f $lt_ac_sed && continue
1.23 millert 5585: cat /dev/null > conftest.in
5586: lt_ac_count=0
1.27 millert 5587: echo $ECHO_N "0123456789$ECHO_C" >conftest.in
1.23 millert 5588: # Check for GNU sed and select it if it is found.
5589: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5590: lt_cv_path_SED=$lt_ac_sed
5591: break
5592: fi
5593: while true; do
5594: cat conftest.in conftest.in >conftest.tmp
5595: mv conftest.tmp conftest.in
5596: cp conftest.in conftest.nl
1.27 millert 5597: echo >>conftest.nl
1.23 millert 5598: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5599: cmp -s conftest.out conftest.nl || break
5600: # 10000 chars as input seems more than enough
5601: test $lt_ac_count -gt 10 && break
5602: lt_ac_count=`expr $lt_ac_count + 1`
5603: if test $lt_ac_count -gt $lt_ac_max; then
5604: lt_ac_max=$lt_ac_count
5605: lt_cv_path_SED=$lt_ac_sed
5606: fi
5607: done
5608: done
5609:
5610: fi
5611:
1.25 millert 5612: SED=$lt_cv_path_SED
5613:
1.27 millert 5614: { echo "$as_me:$LINENO: result: $SED" >&5
5615: echo "${ECHO_T}$SED" >&6; }
1.23 millert 5616:
1.27 millert 5617: { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5618: echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5619: if test "${ac_cv_path_GREP+set}" = set; then
5620: echo $ECHO_N "(cached) $ECHO_C" >&6
5621: else
5622: # Extract the first word of "grep ggrep" to use in msg output
5623: if test -z "$GREP"; then
5624: set dummy grep ggrep; ac_prog_name=$2
5625: if test "${ac_cv_path_GREP+set}" = set; then
5626: echo $ECHO_N "(cached) $ECHO_C" >&6
5627: else
5628: ac_path_GREP_found=false
5629: # Loop through the user's path and test for each of PROGNAME-LIST
5630: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632: do
5633: IFS=$as_save_IFS
5634: test -z "$as_dir" && as_dir=.
5635: for ac_prog in grep ggrep; do
5636: for ac_exec_ext in '' $ac_executable_extensions; do
5637: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5638: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5639: # Check for GNU ac_path_GREP and select it if it is found.
5640: # Check for GNU $ac_path_GREP
5641: case `"$ac_path_GREP" --version 2>&1` in
5642: *GNU*)
5643: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5644: *)
5645: ac_count=0
5646: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5647: while :
5648: do
5649: cat "conftest.in" "conftest.in" >"conftest.tmp"
5650: mv "conftest.tmp" "conftest.in"
5651: cp "conftest.in" "conftest.nl"
5652: echo 'GREP' >> "conftest.nl"
5653: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655: ac_count=`expr $ac_count + 1`
5656: if test $ac_count -gt ${ac_path_GREP_max-0}; then
5657: # Best one so far, save it but keep looking for a better one
5658: ac_cv_path_GREP="$ac_path_GREP"
5659: ac_path_GREP_max=$ac_count
5660: fi
5661: # 10*(2^10) chars as input seems more than enough
5662: test $ac_count -gt 10 && break
5663: done
5664: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665: esac
1.25 millert 5666:
5667:
1.27 millert 5668: $ac_path_GREP_found && break 3
5669: done
5670: done
1.25 millert 5671:
1.27 millert 5672: done
5673: IFS=$as_save_IFS
1.25 millert 5674:
5675:
1.27 millert 5676: fi
1.25 millert 5677:
1.27 millert 5678: GREP="$ac_cv_path_GREP"
5679: if test -z "$GREP"; then
5680: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5681: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5682: { (exit 1); exit 1; }; }
5683: fi
1.25 millert 5684:
1.27 millert 5685: else
5686: ac_cv_path_GREP=$GREP
5687: fi
1.25 millert 5688:
5689:
1.27 millert 5690: fi
5691: { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5692: echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5693: GREP="$ac_cv_path_GREP"
1.25 millert 5694:
5695:
1.27 millert 5696: { echo "$as_me:$LINENO: checking for egrep" >&5
5697: echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5698: if test "${ac_cv_path_EGREP+set}" = set; then
5699: echo $ECHO_N "(cached) $ECHO_C" >&6
5700: else
5701: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5702: then ac_cv_path_EGREP="$GREP -E"
5703: else
5704: # Extract the first word of "egrep" to use in msg output
5705: if test -z "$EGREP"; then
5706: set dummy egrep; ac_prog_name=$2
5707: if test "${ac_cv_path_EGREP+set}" = set; then
1.23 millert 5708: echo $ECHO_N "(cached) $ECHO_C" >&6
5709: else
1.27 millert 5710: ac_path_EGREP_found=false
5711: # Loop through the user's path and test for each of PROGNAME-LIST
5712: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5714: do
5715: IFS=$as_save_IFS
5716: test -z "$as_dir" && as_dir=.
5717: for ac_prog in egrep; do
5718: for ac_exec_ext in '' $ac_executable_extensions; do
5719: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5720: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5721: # Check for GNU ac_path_EGREP and select it if it is found.
5722: # Check for GNU $ac_path_EGREP
5723: case `"$ac_path_EGREP" --version 2>&1` in
5724: *GNU*)
5725: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5726: *)
5727: ac_count=0
5728: echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5729: while :
5730: do
5731: cat "conftest.in" "conftest.in" >"conftest.tmp"
5732: mv "conftest.tmp" "conftest.in"
5733: cp "conftest.in" "conftest.nl"
5734: echo 'EGREP' >> "conftest.nl"
5735: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5736: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5737: ac_count=`expr $ac_count + 1`
5738: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5739: # Best one so far, save it but keep looking for a better one
5740: ac_cv_path_EGREP="$ac_path_EGREP"
5741: ac_path_EGREP_max=$ac_count
1.23 millert 5742: fi
1.27 millert 5743: # 10*(2^10) chars as input seems more than enough
5744: test $ac_count -gt 10 && break
5745: done
5746: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5747: esac
1.25 millert 5748:
5749:
1.27 millert 5750: $ac_path_EGREP_found && break 3
5751: done
5752: done
1.25 millert 5753:
1.27 millert 5754: done
5755: IFS=$as_save_IFS
1.25 millert 5756:
5757:
1.27 millert 5758: fi
1.25 millert 5759:
1.27 millert 5760: EGREP="$ac_cv_path_EGREP"
5761: if test -z "$EGREP"; then
5762: { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5763: echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5764: { (exit 1); exit 1; }; }
5765: fi
1.25 millert 5766:
1.27 millert 5767: else
5768: ac_cv_path_EGREP=$EGREP
5769: fi
1.25 millert 5770:
5771:
1.27 millert 5772: fi
5773: fi
5774: { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5775: echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5776: EGREP="$ac_cv_path_EGREP"
1.25 millert 5777:
5778:
5779:
1.27 millert 5780: # Check whether --with-gnu-ld was given.
1.23 millert 5781: if test "${with_gnu_ld+set}" = set; then
1.27 millert 5782: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
1.23 millert 5783: else
5784: with_gnu_ld=no
1.27 millert 5785: fi
5786:
1.23 millert 5787: ac_prog=ld
5788: if test "$GCC" = yes; then
5789: # Check if gcc -print-prog-name=ld gives a path.
1.27 millert 5790: { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5791: echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
1.23 millert 5792: case $host in
5793: *-*-mingw*)
5794: # gcc leaves a trailing carriage return which upsets mingw
5795: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5796: *)
5797: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5798: esac
5799: case $ac_prog in
5800: # Accept absolute paths.
5801: [\\/]* | ?:[\\/]*)
5802: re_direlt='/[^/][^/]*/\.\./'
1.25 millert 5803: # Canonicalize the pathname of ld
1.27 millert 5804: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5805: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5806: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
1.23 millert 5807: done
5808: test -z "$LD" && LD="$ac_prog"
5809: ;;
5810: "")
5811: # If it fails, then pretend we aren't using GCC.
5812: ac_prog=ld
5813: ;;
5814: *)
5815: # If it is relative, then search for the first ld in PATH.
5816: with_gnu_ld=unknown
5817: ;;
5818: esac
5819: elif test "$with_gnu_ld" = yes; then
1.27 millert 5820: { echo "$as_me:$LINENO: checking for GNU ld" >&5
5821: echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
1.23 millert 5822: else
1.27 millert 5823: { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5824: echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
1.23 millert 5825: fi
5826: if test "${lt_cv_path_LD+set}" = set; then
5827: echo $ECHO_N "(cached) $ECHO_C" >&6
5828: else
5829: if test -z "$LD"; then
5830: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831: for ac_dir in $PATH; do
5832: IFS="$lt_save_ifs"
5833: test -z "$ac_dir" && ac_dir=.
5834: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5835: lt_cv_path_LD="$ac_dir/$ac_prog"
5836: # Check to see if the program is GNU ld. I'd rather use --version,
1.27 millert 5837: # but apparently some variants of GNU ld only accept -v.
1.23 millert 5838: # Break only if it was the GNU/non-GNU ld that we prefer.
5839: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5840: *GNU* | *'with BFD'*)
5841: test "$with_gnu_ld" != no && break
5842: ;;
5843: *)
5844: test "$with_gnu_ld" != yes && break
5845: ;;
5846: esac
5847: fi
5848: done
5849: IFS="$lt_save_ifs"
5850: else
5851: lt_cv_path_LD="$LD" # Let the user override the test with a path.
5852: fi
5853: fi
5854:
5855: LD="$lt_cv_path_LD"
5856: if test -n "$LD"; then
1.27 millert 5857: { echo "$as_me:$LINENO: result: $LD" >&5
5858: echo "${ECHO_T}$LD" >&6; }
1.23 millert 5859: else
1.27 millert 5860: { echo "$as_me:$LINENO: result: no" >&5
5861: echo "${ECHO_T}no" >&6; }
1.23 millert 5862: fi
5863: test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5864: echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5865: { (exit 1); exit 1; }; }
1.27 millert 5866: { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5867: echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
1.23 millert 5868: if test "${lt_cv_prog_gnu_ld+set}" = set; then
5869: echo $ECHO_N "(cached) $ECHO_C" >&6
5870: else
1.27 millert 5871: # I'd rather use --version here, but apparently some GNU lds only accept -v.
1.25 millert 5872: case `$LD -v 2>&1 </dev/null` in
1.23 millert 5873: *GNU* | *'with BFD'*)
5874: lt_cv_prog_gnu_ld=yes
5875: ;;
5876: *)
5877: lt_cv_prog_gnu_ld=no
5878: ;;
5879: esac
5880: fi
1.27 millert 5881: { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5882: echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
1.23 millert 5883: with_gnu_ld=$lt_cv_prog_gnu_ld
5884:
5885:
1.27 millert 5886: { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5887: echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5888: if test "${lt_cv_ld_reload_flag+set}" = set; then
5889: echo $ECHO_N "(cached) $ECHO_C" >&6
5890: else
5891: lt_cv_ld_reload_flag='-r'
5892: fi
5893: { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5894: echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5895: reload_flag=$lt_cv_ld_reload_flag
5896: case $reload_flag in
5897: "" | " "*) ;;
5898: *) reload_flag=" $reload_flag" ;;
5899: esac
5900: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5901: case $host_os in
5902: darwin*)
5903: if test "$GCC" = yes; then
5904: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5905: else
5906: reload_cmds='$LD$reload_flag -o $output$reload_objs'
5907: fi
5908: ;;
5909: esac
1.25 millert 5910:
1.27 millert 5911: { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5912: echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
1.23 millert 5913: if test "${lt_cv_path_NM+set}" = set; then
5914: echo $ECHO_N "(cached) $ECHO_C" >&6
5915: else
5916: if test -n "$NM"; then
5917: # Let the user override the test.
5918: lt_cv_path_NM="$NM"
5919: else
1.27 millert 5920: lt_nm_to_check="${ac_tool_prefix}nm"
5921: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5922: lt_nm_to_check="$lt_nm_to_check nm"
5923: fi
5924: for lt_tmp_nm in $lt_nm_to_check; do
5925: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5926: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5927: IFS="$lt_save_ifs"
5928: test -z "$ac_dir" && ac_dir=.
5929: tmp_nm="$ac_dir/$lt_tmp_nm"
5930: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5931: # Check to see if the nm accepts a BSD-compat flag.
5932: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5933: # nm: unknown option "B" ignored
5934: # Tru64's nm complains that /dev/null is an invalid object file
5935: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5936: */dev/null* | *'Invalid file or object type'*)
5937: lt_cv_path_NM="$tmp_nm -B"
1.23 millert 5938: break
5939: ;;
5940: *)
1.27 millert 5941: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5942: */dev/null*)
5943: lt_cv_path_NM="$tmp_nm -p"
5944: break
5945: ;;
5946: *)
5947: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5948: continue # so that we can try to find one that supports BSD flags
5949: ;;
5950: esac
1.23 millert 5951: ;;
5952: esac
1.27 millert 5953: fi
5954: done
5955: IFS="$lt_save_ifs"
1.23 millert 5956: done
5957: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5958: fi
5959: fi
1.27 millert 5960: { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5961: echo "${ECHO_T}$lt_cv_path_NM" >&6; }
1.23 millert 5962: NM="$lt_cv_path_NM"
1.25 millert 5963:
1.27 millert 5964: { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5965: echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
1.23 millert 5966: LN_S=$as_ln_s
5967: if test "$LN_S" = "ln -s"; then
1.27 millert 5968: { echo "$as_me:$LINENO: result: yes" >&5
5969: echo "${ECHO_T}yes" >&6; }
1.25 millert 5970: else
1.27 millert 5971: { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5972: echo "${ECHO_T}no, using $LN_S" >&6; }
1.25 millert 5973: fi
5974:
1.27 millert 5975: { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5976: echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
1.23 millert 5977: if test "${lt_cv_deplibs_check_method+set}" = set; then
5978: echo $ECHO_N "(cached) $ECHO_C" >&6
5979: else
5980: lt_cv_file_magic_cmd='$MAGIC_CMD'
5981: lt_cv_file_magic_test_file=
5982: lt_cv_deplibs_check_method='unknown'
5983: # Need to set the preceding variable on all platforms that support
5984: # interlibrary dependencies.
5985: # 'none' -- dependencies not supported.
5986: # `unknown' -- same as none, but documents that we really don't know.
5987: # 'pass_all' -- all dependencies passed with no checks.
5988: # 'test_compile' -- check by making test program.
5989: # 'file_magic [[regex]]' -- check by looking for files in library path
5990: # which responds to the $file_magic_cmd with a given extended regex.
5991: # If you have `file' or equivalent on your system and you're not sure
5992: # whether `pass_all' will *always* work, you probably want this one.
5993:
5994: case $host_os in
1.36 millert 5995: aix[4-9]*)
1.23 millert 5996: lt_cv_deplibs_check_method=pass_all
5997: ;;
5998:
5999: beos*)
6000: lt_cv_deplibs_check_method=pass_all
6001: ;;
6002:
1.25 millert 6003: bsdi[45]*)
1.23 millert 6004: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6005: lt_cv_file_magic_cmd='/usr/bin/file -L'
6006: lt_cv_file_magic_test_file=/shlib/libc.so
6007: ;;
6008:
1.25 millert 6009: cygwin*)
6010: # func_win32_libid is a shell function defined in ltmain.sh
1.23 millert 6011: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
1.25 millert 6012: lt_cv_file_magic_cmd='func_win32_libid'
6013: ;;
6014:
1.27 millert 6015: mingw* | pw32*)
1.25 millert 6016: # Base MSYS/MinGW do not provide the 'file' command needed by
1.27 millert 6017: # func_win32_libid shell function, so use a weaker test based on 'objdump',
6018: # unless we find 'file', for example because we are cross-compiling.
6019: if ( file / ) >/dev/null 2>&1; then
6020: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6021: lt_cv_file_magic_cmd='func_win32_libid'
6022: else
6023: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6024: lt_cv_file_magic_cmd='$OBJDUMP -f'
6025: fi
1.23 millert 6026: ;;
6027:
6028: darwin* | rhapsody*)
1.25 millert 6029: lt_cv_deplibs_check_method=pass_all
6030: ;;
1.23 millert 6031:
1.27 millert 6032: freebsd* | dragonfly*)
6033: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23 millert 6034: case $host_cpu in
6035: i*86 )
6036: # Not sure whether the presence of OpenBSD here was a mistake.
6037: # Let's accept both of them until this is cleared up.
1.27 millert 6038: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
1.23 millert 6039: lt_cv_file_magic_cmd=/usr/bin/file
1.27 millert 6040: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1.23 millert 6041: ;;
6042: esac
6043: else
6044: lt_cv_deplibs_check_method=pass_all
6045: fi
6046: ;;
6047:
6048: gnu*)
6049: lt_cv_deplibs_check_method=pass_all
6050: ;;
6051:
6052: hpux10.20* | hpux11*)
6053: lt_cv_file_magic_cmd=/usr/bin/file
1.27 millert 6054: case $host_cpu in
1.23 millert 6055: ia64*)
6056: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6057: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6058: ;;
6059: hppa*64*)
6060: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6061: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6062: ;;
6063: *)
6064: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6065: lt_cv_file_magic_test_file=/usr/lib/libc.sl
6066: ;;
6067: esac
6068: ;;
6069:
1.27 millert 6070: interix[3-9]*)
6071: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6072: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6073: ;;
6074:
1.23 millert 6075: irix5* | irix6* | nonstopux*)
1.25 millert 6076: case $LD in
6077: *-32|*"-32 ") libmagic=32-bit;;
6078: *-n32|*"-n32 ") libmagic=N32;;
6079: *-64|*"-64 ") libmagic=64-bit;;
6080: *) libmagic=never-match;;
1.23 millert 6081: esac
6082: lt_cv_deplibs_check_method=pass_all
6083: ;;
6084:
6085: # This must be Linux ELF.
1.27 millert 6086: linux* | k*bsd*-gnu)
1.25 millert 6087: lt_cv_deplibs_check_method=pass_all
1.23 millert 6088: ;;
6089:
1.27 millert 6090: netbsd*)
6091: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1.23 millert 6092: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6093: else
6094: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6095: fi
6096: ;;
6097:
6098: newos6*)
6099: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6100: lt_cv_file_magic_cmd=/usr/bin/file
6101: lt_cv_file_magic_test_file=/usr/lib/libnls.so
6102: ;;
6103:
1.27 millert 6104: nto-qnx*)
6105: lt_cv_deplibs_check_method=unknown
1.23 millert 6106: ;;
6107:
6108: openbsd*)
1.27 millert 6109: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1.25 millert 6110: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
1.23 millert 6111: else
1.25 millert 6112: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
1.23 millert 6113: fi
6114: ;;
6115:
6116: osf3* | osf4* | osf5*)
6117: lt_cv_deplibs_check_method=pass_all
6118: ;;
6119:
1.27 millert 6120: rdos*)
1.23 millert 6121: lt_cv_deplibs_check_method=pass_all
6122: ;;
6123:
6124: solaris*)
6125: lt_cv_deplibs_check_method=pass_all
6126: ;;
6127:
1.27 millert 6128: sysv4 | sysv4.3*)
1.23 millert 6129: case $host_vendor in
6130: motorola)
6131: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
1.27 millert 6132: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1.23 millert 6133: ;;
6134: ncr)
6135: lt_cv_deplibs_check_method=pass_all
6136: ;;
6137: sequent)
6138: lt_cv_file_magic_cmd='/bin/file'
6139: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6140: ;;
6141: sni)
6142: lt_cv_file_magic_cmd='/bin/file'
6143: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6144: lt_cv_file_magic_test_file=/lib/libc.so
6145: ;;
6146: siemens)
6147: lt_cv_deplibs_check_method=pass_all
6148: ;;
1.27 millert 6149: pc)
6150: lt_cv_deplibs_check_method=pass_all
6151: ;;
1.23 millert 6152: esac
6153: ;;
6154:
1.27 millert 6155: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1.25 millert 6156: lt_cv_deplibs_check_method=pass_all
6157: ;;
1.23 millert 6158: esac
6159:
6160: fi
1.27 millert 6161: { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6162: echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
1.23 millert 6163: file_magic_cmd=$lt_cv_file_magic_cmd
6164: deplibs_check_method=$lt_cv_deplibs_check_method
6165: test -z "$deplibs_check_method" && deplibs_check_method=unknown
6166:
6167:
6168:
6169:
1.27 millert 6170: # If no C compiler was specified, use CC.
6171: LTCC=${LTCC-"$CC"}
1.23 millert 6172:
1.27 millert 6173: # If no C compiler flags were specified, use CFLAGS.
6174: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23 millert 6175:
1.27 millert 6176: # Allow CC to be a program name with arguments.
6177: compiler=$CC
1.23 millert 6178:
1.27 millert 6179: # Check whether --enable-libtool-lock was given.
6180: if test "${enable_libtool_lock+set}" = set; then
6181: enableval=$enable_libtool_lock;
6182: fi
1.23 millert 6183:
1.27 millert 6184: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.23 millert 6185:
1.27 millert 6186: # Some flags need to be propagated to the compiler or linker for good
6187: # libtool support.
6188: case $host in
6189: ia64-*-hpux*)
6190: # Find out which ABI we are using.
6191: echo 'int i;' > conftest.$ac_ext
6192: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193: (eval $ac_compile) 2>&5
6194: ac_status=$?
6195: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196: (exit $ac_status); }; then
6197: case `/usr/bin/file conftest.$ac_objext` in
6198: *ELF-32*)
6199: HPUX_IA64_MODE="32"
6200: ;;
6201: *ELF-64*)
6202: HPUX_IA64_MODE="64"
6203: ;;
6204: esac
6205: fi
6206: rm -rf conftest*
6207: ;;
6208: *-*-irix6*)
6209: # Find out which ABI we are using.
1.39 ! millert 6210: echo '#line 6210 "configure"' > conftest.$ac_ext
1.27 millert 6211: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6212: (eval $ac_compile) 2>&5
6213: ac_status=$?
6214: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215: (exit $ac_status); }; then
6216: if test "$lt_cv_prog_gnu_ld" = yes; then
6217: case `/usr/bin/file conftest.$ac_objext` in
6218: *32-bit*)
6219: LD="${LD-ld} -melf32bsmip"
6220: ;;
6221: *N32*)
6222: LD="${LD-ld} -melf32bmipn32"
6223: ;;
6224: *64-bit*)
6225: LD="${LD-ld} -melf64bmip"
6226: ;;
6227: esac
6228: else
6229: case `/usr/bin/file conftest.$ac_objext` in
6230: *32-bit*)
6231: LD="${LD-ld} -32"
6232: ;;
6233: *N32*)
6234: LD="${LD-ld} -n32"
6235: ;;
6236: *64-bit*)
6237: LD="${LD-ld} -64"
6238: ;;
6239: esac
6240: fi
6241: fi
6242: rm -rf conftest*
6243: ;;
1.23 millert 6244:
1.27 millert 6245: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6246: s390*-*linux*|sparc*-*linux*)
6247: # Find out which ABI we are using.
6248: echo 'int i;' > conftest.$ac_ext
6249: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6250: (eval $ac_compile) 2>&5
6251: ac_status=$?
6252: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253: (exit $ac_status); }; then
6254: case `/usr/bin/file conftest.o` in
6255: *32-bit*)
6256: case $host in
6257: x86_64-*kfreebsd*-gnu)
6258: LD="${LD-ld} -m elf_i386_fbsd"
6259: ;;
6260: x86_64-*linux*)
6261: LD="${LD-ld} -m elf_i386"
6262: ;;
6263: ppc64-*linux*|powerpc64-*linux*)
6264: LD="${LD-ld} -m elf32ppclinux"
6265: ;;
6266: s390x-*linux*)
6267: LD="${LD-ld} -m elf_s390"
6268: ;;
6269: sparc64-*linux*)
6270: LD="${LD-ld} -m elf32_sparc"
6271: ;;
6272: esac
6273: ;;
6274: *64-bit*)
6275: case $host in
6276: x86_64-*kfreebsd*-gnu)
6277: LD="${LD-ld} -m elf_x86_64_fbsd"
6278: ;;
6279: x86_64-*linux*)
6280: LD="${LD-ld} -m elf_x86_64"
6281: ;;
6282: ppc*-*linux*|powerpc*-*linux*)
6283: LD="${LD-ld} -m elf64ppc"
6284: ;;
6285: s390*-*linux*)
6286: LD="${LD-ld} -m elf64_s390"
6287: ;;
6288: sparc*-*linux*)
6289: LD="${LD-ld} -m elf64_sparc"
6290: ;;
6291: esac
6292: ;;
6293: esac
6294: fi
6295: rm -rf conftest*
6296: ;;
1.25 millert 6297:
1.27 millert 6298: *-*-sco3.2v5*)
6299: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6300: SAVE_CFLAGS="$CFLAGS"
6301: CFLAGS="$CFLAGS -belf"
6302: { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6303: echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6304: if test "${lt_cv_cc_needs_belf+set}" = set; then
1.23 millert 6305: echo $ECHO_N "(cached) $ECHO_C" >&6
6306: else
1.27 millert 6307: ac_ext=c
6308: ac_cpp='$CPP $CPPFLAGS'
6309: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6310: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6311: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6312:
6313: cat >conftest.$ac_ext <<_ACEOF
6314: /* confdefs.h. */
6315: _ACEOF
6316: cat confdefs.h >>conftest.$ac_ext
6317: cat >>conftest.$ac_ext <<_ACEOF
6318: /* end confdefs.h. */
6319:
6320: int
6321: main ()
6322: {
1.23 millert 6323:
1.27 millert 6324: ;
6325: return 0;
6326: }
6327: _ACEOF
6328: rm -f conftest.$ac_objext conftest$ac_exeext
6329: if { (ac_try="$ac_link"
6330: case "(($ac_try" in
6331: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332: *) ac_try_echo=$ac_try;;
6333: esac
6334: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335: (eval "$ac_link") 2>conftest.er1
6336: ac_status=$?
6337: grep -v '^ *+' conftest.er1 >conftest.err
6338: rm -f conftest.er1
6339: cat conftest.err >&5
6340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341: (exit $ac_status); } && {
6342: test -z "$ac_c_werror_flag" ||
6343: test ! -s conftest.err
6344: } && test -s conftest$ac_exeext &&
6345: $as_test_x conftest$ac_exeext; then
6346: lt_cv_cc_needs_belf=yes
1.25 millert 6347: else
1.27 millert 6348: echo "$as_me: failed program was:" >&5
6349: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6350:
1.27 millert 6351: lt_cv_cc_needs_belf=no
1.25 millert 6352: fi
1.23 millert 6353:
1.27 millert 6354: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6355: conftest$ac_exeext conftest.$ac_ext
6356: ac_ext=c
6357: ac_cpp='$CPP $CPPFLAGS'
6358: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6359: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6360: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 6361:
6362: fi
1.27 millert 6363: { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6364: echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6365: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6366: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6367: CFLAGS="$SAVE_CFLAGS"
6368: fi
6369: ;;
6370: sparc*-*solaris*)
6371: # Find out which ABI we are using.
6372: echo 'int i;' > conftest.$ac_ext
6373: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6374: (eval $ac_compile) 2>&5
6375: ac_status=$?
6376: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377: (exit $ac_status); }; then
6378: case `/usr/bin/file conftest.o` in
6379: *64-bit*)
6380: case $lt_cv_prog_gnu_ld in
6381: yes*) LD="${LD-ld} -m elf64_sparc" ;;
1.36 millert 6382: *)
6383: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6384: LD="${LD-ld} -64"
6385: fi
6386: ;;
1.27 millert 6387: esac
6388: ;;
6389: esac
6390: fi
6391: rm -rf conftest*
6392: ;;
1.25 millert 6393:
6394:
1.27 millert 6395: esac
1.25 millert 6396:
1.27 millert 6397: need_locks="$enable_libtool_lock"
1.25 millert 6398:
6399:
6400:
1.27 millert 6401: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6402: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6403: if test "${ac_cv_header_stdc+set}" = set; then
6404: echo $ECHO_N "(cached) $ECHO_C" >&6
6405: else
6406: cat >conftest.$ac_ext <<_ACEOF
6407: /* confdefs.h. */
6408: _ACEOF
6409: cat confdefs.h >>conftest.$ac_ext
6410: cat >>conftest.$ac_ext <<_ACEOF
6411: /* end confdefs.h. */
6412: #include <stdlib.h>
6413: #include <stdarg.h>
6414: #include <string.h>
6415: #include <float.h>
1.23 millert 6416:
1.27 millert 6417: int
6418: main ()
6419: {
1.23 millert 6420:
1.27 millert 6421: ;
6422: return 0;
6423: }
6424: _ACEOF
6425: rm -f conftest.$ac_objext
6426: if { (ac_try="$ac_compile"
6427: case "(($ac_try" in
6428: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429: *) ac_try_echo=$ac_try;;
6430: esac
6431: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6432: (eval "$ac_compile") 2>conftest.er1
6433: ac_status=$?
6434: grep -v '^ *+' conftest.er1 >conftest.err
6435: rm -f conftest.er1
6436: cat conftest.err >&5
6437: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438: (exit $ac_status); } && {
6439: test -z "$ac_c_werror_flag" ||
6440: test ! -s conftest.err
6441: } && test -s conftest.$ac_objext; then
6442: ac_cv_header_stdc=yes
6443: else
6444: echo "$as_me: failed program was:" >&5
6445: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6446:
1.27 millert 6447: ac_cv_header_stdc=no
6448: fi
1.23 millert 6449:
1.27 millert 6450: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 6451:
1.27 millert 6452: if test $ac_cv_header_stdc = yes; then
6453: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6454: cat >conftest.$ac_ext <<_ACEOF
6455: /* confdefs.h. */
6456: _ACEOF
6457: cat confdefs.h >>conftest.$ac_ext
6458: cat >>conftest.$ac_ext <<_ACEOF
6459: /* end confdefs.h. */
6460: #include <string.h>
1.23 millert 6461:
1.27 millert 6462: _ACEOF
6463: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6464: $EGREP "memchr" >/dev/null 2>&1; then
6465: :
1.25 millert 6466: else
1.27 millert 6467: ac_cv_header_stdc=no
1.25 millert 6468: fi
1.27 millert 6469: rm -f conftest*
1.23 millert 6470:
1.25 millert 6471: fi
1.23 millert 6472:
1.27 millert 6473: if test $ac_cv_header_stdc = yes; then
6474: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6475: cat >conftest.$ac_ext <<_ACEOF
6476: /* confdefs.h. */
6477: _ACEOF
6478: cat confdefs.h >>conftest.$ac_ext
6479: cat >>conftest.$ac_ext <<_ACEOF
6480: /* end confdefs.h. */
6481: #include <stdlib.h>
6482:
6483: _ACEOF
6484: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6485: $EGREP "free" >/dev/null 2>&1; then
6486: :
1.25 millert 6487: else
1.27 millert 6488: ac_cv_header_stdc=no
1.23 millert 6489: fi
1.27 millert 6490: rm -f conftest*
1.23 millert 6491:
6492: fi
6493:
1.27 millert 6494: if test $ac_cv_header_stdc = yes; then
6495: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6496: if test "$cross_compiling" = yes; then
6497: :
6498: else
6499: cat >conftest.$ac_ext <<_ACEOF
6500: /* confdefs.h. */
6501: _ACEOF
6502: cat confdefs.h >>conftest.$ac_ext
6503: cat >>conftest.$ac_ext <<_ACEOF
6504: /* end confdefs.h. */
6505: #include <ctype.h>
6506: #include <stdlib.h>
6507: #if ((' ' & 0x0FF) == 0x020)
6508: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6509: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6510: #else
6511: # define ISLOWER(c) \
6512: (('a' <= (c) && (c) <= 'i') \
6513: || ('j' <= (c) && (c) <= 'r') \
6514: || ('s' <= (c) && (c) <= 'z'))
6515: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6516: #endif
1.25 millert 6517:
1.27 millert 6518: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6519: int
6520: main ()
6521: {
6522: int i;
6523: for (i = 0; i < 256; i++)
6524: if (XOR (islower (i), ISLOWER (i))
6525: || toupper (i) != TOUPPER (i))
6526: return 2;
6527: return 0;
6528: }
6529: _ACEOF
6530: rm -f conftest$ac_exeext
6531: if { (ac_try="$ac_link"
6532: case "(($ac_try" in
6533: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534: *) ac_try_echo=$ac_try;;
6535: esac
6536: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537: (eval "$ac_link") 2>&5
6538: ac_status=$?
6539: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6541: { (case "(($ac_try" in
6542: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543: *) ac_try_echo=$ac_try;;
6544: esac
6545: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546: (eval "$ac_try") 2>&5
6547: ac_status=$?
6548: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549: (exit $ac_status); }; }; then
6550: :
1.25 millert 6551: else
1.27 millert 6552: echo "$as_me: program exited with status $ac_status" >&5
6553: echo "$as_me: failed program was:" >&5
6554: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6555:
1.27 millert 6556: ( exit $ac_status )
6557: ac_cv_header_stdc=no
1.25 millert 6558: fi
1.27 millert 6559: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.23 millert 6560: fi
6561:
6562:
6563: fi
6564: fi
1.27 millert 6565: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6566: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6567: if test $ac_cv_header_stdc = yes; then
6568:
6569: cat >>confdefs.h <<\_ACEOF
6570: #define STDC_HEADERS 1
6571: _ACEOF
1.23 millert 6572:
6573: fi
6574:
1.27 millert 6575: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
1.23 millert 6576:
6577:
6578:
6579:
6580:
6581:
6582:
6583:
6584:
1.27 millert 6585: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6586: inttypes.h stdint.h unistd.h
6587: do
6588: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6589: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6590: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6591: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6592: echo $ECHO_N "(cached) $ECHO_C" >&6
6593: else
6594: cat >conftest.$ac_ext <<_ACEOF
6595: /* confdefs.h. */
6596: _ACEOF
6597: cat confdefs.h >>conftest.$ac_ext
6598: cat >>conftest.$ac_ext <<_ACEOF
6599: /* end confdefs.h. */
6600: $ac_includes_default
1.23 millert 6601:
1.27 millert 6602: #include <$ac_header>
6603: _ACEOF
6604: rm -f conftest.$ac_objext
6605: if { (ac_try="$ac_compile"
6606: case "(($ac_try" in
6607: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6608: *) ac_try_echo=$ac_try;;
6609: esac
6610: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6611: (eval "$ac_compile") 2>conftest.er1
6612: ac_status=$?
6613: grep -v '^ *+' conftest.er1 >conftest.err
6614: rm -f conftest.er1
6615: cat conftest.err >&5
6616: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617: (exit $ac_status); } && {
6618: test -z "$ac_c_werror_flag" ||
6619: test ! -s conftest.err
6620: } && test -s conftest.$ac_objext; then
6621: eval "$as_ac_Header=yes"
6622: else
6623: echo "$as_me: failed program was:" >&5
6624: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6625:
1.27 millert 6626: eval "$as_ac_Header=no"
6627: fi
1.23 millert 6628:
1.27 millert 6629: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630: fi
6631: ac_res=`eval echo '${'$as_ac_Header'}'`
6632: { echo "$as_me:$LINENO: result: $ac_res" >&5
6633: echo "${ECHO_T}$ac_res" >&6; }
6634: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6635: cat >>confdefs.h <<_ACEOF
6636: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6637: _ACEOF
1.23 millert 6638:
1.27 millert 6639: fi
1.23 millert 6640:
1.27 millert 6641: done
1.23 millert 6642:
6643:
6644:
1.27 millert 6645: for ac_header in dlfcn.h
6646: do
6647: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6648: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6649: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652: echo $ECHO_N "(cached) $ECHO_C" >&6
6653: fi
6654: ac_res=`eval echo '${'$as_ac_Header'}'`
6655: { echo "$as_me:$LINENO: result: $ac_res" >&5
6656: echo "${ECHO_T}$ac_res" >&6; }
6657: else
6658: # Is the header compilable?
6659: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6660: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6661: cat >conftest.$ac_ext <<_ACEOF
6662: /* confdefs.h. */
6663: _ACEOF
6664: cat confdefs.h >>conftest.$ac_ext
6665: cat >>conftest.$ac_ext <<_ACEOF
6666: /* end confdefs.h. */
6667: $ac_includes_default
6668: #include <$ac_header>
6669: _ACEOF
6670: rm -f conftest.$ac_objext
6671: if { (ac_try="$ac_compile"
6672: case "(($ac_try" in
6673: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674: *) ac_try_echo=$ac_try;;
6675: esac
6676: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677: (eval "$ac_compile") 2>conftest.er1
6678: ac_status=$?
6679: grep -v '^ *+' conftest.er1 >conftest.err
6680: rm -f conftest.er1
6681: cat conftest.err >&5
6682: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683: (exit $ac_status); } && {
6684: test -z "$ac_c_werror_flag" ||
6685: test ! -s conftest.err
6686: } && test -s conftest.$ac_objext; then
6687: ac_header_compiler=yes
6688: else
6689: echo "$as_me: failed program was:" >&5
6690: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6691:
1.27 millert 6692: ac_header_compiler=no
6693: fi
1.23 millert 6694:
1.27 millert 6695: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6697: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23 millert 6698:
1.27 millert 6699: # Is the header present?
6700: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6701: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6702: cat >conftest.$ac_ext <<_ACEOF
6703: /* confdefs.h. */
6704: _ACEOF
6705: cat confdefs.h >>conftest.$ac_ext
6706: cat >>conftest.$ac_ext <<_ACEOF
6707: /* end confdefs.h. */
6708: #include <$ac_header>
6709: _ACEOF
6710: if { (ac_try="$ac_cpp conftest.$ac_ext"
6711: case "(($ac_try" in
6712: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713: *) ac_try_echo=$ac_try;;
6714: esac
6715: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6717: ac_status=$?
6718: grep -v '^ *+' conftest.er1 >conftest.err
6719: rm -f conftest.er1
6720: cat conftest.err >&5
6721: echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722: (exit $ac_status); } >/dev/null && {
6723: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6724: test ! -s conftest.err
6725: }; then
6726: ac_header_preproc=yes
6727: else
6728: echo "$as_me: failed program was:" >&5
6729: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 6730:
1.27 millert 6731: ac_header_preproc=no
6732: fi
1.23 millert 6733:
1.27 millert 6734: rm -f conftest.err conftest.$ac_ext
6735: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6736: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23 millert 6737:
1.27 millert 6738: # So? What about this header?
6739: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6740: yes:no: )
6741: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6742: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6743: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6744: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6745: ac_header_preproc=yes
6746: ;;
6747: no:yes:* )
6748: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6749: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6750: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6751: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6752: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6753: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6754: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6755: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6756: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6757: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6758: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6759: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.23 millert 6760:
1.27 millert 6761: ;;
6762: esac
6763: { echo "$as_me:$LINENO: checking for $ac_header" >&5
6764: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6765: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 6766: echo $ECHO_N "(cached) $ECHO_C" >&6
6767: else
1.27 millert 6768: eval "$as_ac_Header=\$ac_header_preproc"
6769: fi
6770: ac_res=`eval echo '${'$as_ac_Header'}'`
6771: { echo "$as_me:$LINENO: result: $ac_res" >&5
6772: echo "${ECHO_T}$ac_res" >&6; }
6773:
6774: fi
6775: if test `eval echo '${'$as_ac_Header'}'` = yes; then
6776: cat >>confdefs.h <<_ACEOF
6777: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6778: _ACEOF
6779:
6780: fi
1.23 millert 6781:
1.27 millert 6782: done
1.23 millert 6783:
6784:
1.27 millert 6785: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6786: # find the maximum length of command line arguments
6787: { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6788: echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6789: if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6790: echo $ECHO_N "(cached) $ECHO_C" >&6
6791: else
6792: i=0
6793: teststring="ABCD"
6794:
6795: case $build_os in
6796: msdosdjgpp*)
6797: # On DJGPP, this test can blow up pretty badly due to problems in libc
6798: # (any single argument exceeding 2000 bytes causes a buffer overrun
6799: # during glob expansion). Even if it were fixed, the result of this
6800: # check would be larger than it should be.
6801: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6802: ;;
6803:
6804: gnu*)
6805: # Under GNU Hurd, this test is not required because there is
6806: # no limit to the length of command line arguments.
6807: # Libtool will interpret -1 as no limit whatsoever
6808: lt_cv_sys_max_cmd_len=-1;
6809: ;;
6810:
6811: cygwin* | mingw*)
6812: # On Win9x/ME, this test blows up -- it succeeds, but takes
6813: # about 5 minutes as the teststring grows exponentially.
6814: # Worse, since 9x/ME are not pre-emptively multitasking,
6815: # you end up with a "frozen" computer, even though with patience
6816: # the test eventually succeeds (with a max line length of 256k).
6817: # Instead, let's just punt: use the minimum linelength reported by
6818: # all of the supported platforms: 8192 (on NT/2K/XP).
6819: lt_cv_sys_max_cmd_len=8192;
6820: ;;
6821:
6822: amigaos*)
6823: # On AmigaOS with pdksh, this test takes hours, literally.
6824: # So we just punt and use a minimum line length of 8192.
6825: lt_cv_sys_max_cmd_len=8192;
6826: ;;
6827:
6828: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6829: # This has been around since 386BSD, at least. Likely further.
6830: if test -x /sbin/sysctl; then
6831: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6832: elif test -x /usr/sbin/sysctl; then
6833: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6834: else
6835: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6836: fi
6837: # And add a safety zone
6838: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6839: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6840: ;;
6841:
6842: interix*)
6843: # We know the value 262144 and hardcode it with a safety zone (like BSD)
6844: lt_cv_sys_max_cmd_len=196608
6845: ;;
6846:
6847: osf*)
6848: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6849: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6850: # nice to cause kernel panics so lets avoid the loop below.
6851: # First set a reasonable default.
6852: lt_cv_sys_max_cmd_len=16384
6853: #
6854: if test -x /sbin/sysconfig; then
6855: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6856: *1*) lt_cv_sys_max_cmd_len=-1 ;;
6857: esac
6858: fi
6859: ;;
6860: sco3.2v5*)
6861: lt_cv_sys_max_cmd_len=102400
6862: ;;
6863: sysv5* | sco5v6* | sysv4.2uw2*)
6864: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6865: if test -n "$kargmax"; then
6866: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6867: else
6868: lt_cv_sys_max_cmd_len=32768
6869: fi
6870: ;;
6871: *)
6872: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6873: if test -n "$lt_cv_sys_max_cmd_len"; then
6874: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6875: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6876: else
6877: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6878: while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6879: = "XX$teststring") >/dev/null 2>&1 &&
6880: new_result=`expr "X$teststring" : ".*" 2>&1` &&
6881: lt_cv_sys_max_cmd_len=$new_result &&
6882: test $i != 17 # 1/2 MB should be enough
6883: do
6884: i=`expr $i + 1`
6885: teststring=$teststring$teststring
6886: done
6887: teststring=
6888: # Add a significant safety factor because C++ compilers can tack on massive
6889: # amounts of additional arguments before passing them to the linker.
6890: # It appears as though 1/2 is a usable value.
6891: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6892: fi
6893: ;;
6894: esac
6895:
6896: fi
6897:
6898: if test -n $lt_cv_sys_max_cmd_len ; then
6899: { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6900: echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6901: else
6902: { echo "$as_me:$LINENO: result: none" >&5
6903: echo "${ECHO_T}none" >&6; }
6904: fi
6905:
6906:
6907:
6908:
6909:
6910: # Check for command to grab the raw symbol name followed by C symbol from nm.
6911: { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6912: echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6913: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6914: echo $ECHO_N "(cached) $ECHO_C" >&6
6915: else
6916:
6917: # These are sane defaults that work on at least a few old systems.
6918: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6919:
6920: # Character class describing NM global symbol codes.
6921: symcode='[BCDEGRST]'
6922:
6923: # Regexp to match symbols that can be accessed directly from C.
6924: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6925:
6926: # Transform an extracted symbol line into a proper C declaration
6927: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6928:
6929: # Transform an extracted symbol line into symbol name and symbol address
6930: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
1.23 millert 6931:
1.25 millert 6932: # Define system-specific variables.
6933: case $host_os in
6934: aix*)
6935: symcode='[BCDT]'
6936: ;;
6937: cygwin* | mingw* | pw32*)
6938: symcode='[ABCDGISTW]'
6939: ;;
1.27 millert 6940: hpux*) # Its linker distinguishes data from code symbols
1.25 millert 6941: if test "$host_cpu" = ia64; then
6942: symcode='[ABCDEGRST]'
6943: fi
1.27 millert 6944: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6945: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6946: ;;
6947: linux* | k*bsd*-gnu)
6948: if test "$host_cpu" = ia64; then
6949: symcode='[ABCDGIRSTW]'
6950: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6951: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6952: fi
1.25 millert 6953: ;;
6954: irix* | nonstopux*)
6955: symcode='[BCDEGRST]'
6956: ;;
6957: osf*)
6958: symcode='[BCDEGQRST]'
6959: ;;
1.27 millert 6960: solaris*)
1.25 millert 6961: symcode='[BDRT]'
6962: ;;
1.27 millert 6963: sco3.2v5*)
6964: symcode='[DT]'
6965: ;;
6966: sysv4.2uw2*)
6967: symcode='[DT]'
6968: ;;
6969: sysv5* | sco5v6* | unixware* | OpenUNIX*)
6970: symcode='[ABDT]'
6971: ;;
1.25 millert 6972: sysv4)
6973: symcode='[DFNSTU]'
6974: ;;
6975: esac
1.23 millert 6976:
1.25 millert 6977: # Handle CRLF in mingw tool chain
6978: opt_cr=
6979: case $build_os in
6980: mingw*)
1.27 millert 6981: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1.25 millert 6982: ;;
6983: esac
6984:
1.27 millert 6985: # If we're using GNU nm, then use its standard symbol codes.
6986: case `$NM -V 2>&1` in
6987: *GNU* | *'with BFD'*)
6988: symcode='[ABCDGIRSTW]' ;;
6989: esac
6990:
6991: # Try without a prefix undercore, then with it.
1.25 millert 6992: for ac_symprfx in "" "_"; do
6993:
1.27 millert 6994: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6995: symxfrm="\\1 $ac_symprfx\\2 \\2"
6996:
1.25 millert 6997: # Write the raw and C identifiers.
1.27 millert 6998: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
1.23 millert 6999:
1.25 millert 7000: # Check to see that the pipe works correctly.
7001: pipe_works=no
7002:
7003: rm -f conftest*
1.27 millert 7004: cat > conftest.$ac_ext <<EOF
1.25 millert 7005: #ifdef __cplusplus
7006: extern "C" {
7007: #endif
7008: char nm_test_var;
7009: void nm_test_func(){}
7010: #ifdef __cplusplus
7011: }
7012: #endif
7013: int main(){nm_test_var='a';nm_test_func();return(0);}
1.27 millert 7014: EOF
1.25 millert 7015:
7016: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7017: (eval $ac_compile) 2>&5
1.23 millert 7018: ac_status=$?
7019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 7020: (exit $ac_status); }; then
7021: # Now try to grab the symbols.
7022: nlist=conftest.nm
7023: if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7024: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
1.23 millert 7025: ac_status=$?
7026: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 7027: (exit $ac_status); } && test -s "$nlist"; then
7028: # Try sorting and uniquifying the output.
7029: if sort "$nlist" | uniq > "$nlist"T; then
7030: mv -f "$nlist"T "$nlist"
7031: else
7032: rm -f "$nlist"T
7033: fi
7034:
7035: # Make sure that we snagged all the symbols we need.
1.27 millert 7036: if grep ' nm_test_var$' "$nlist" >/dev/null; then
7037: if grep ' nm_test_func$' "$nlist" >/dev/null; then
7038: cat <<EOF > conftest.$ac_ext
1.25 millert 7039: #ifdef __cplusplus
7040: extern "C" {
7041: #endif
7042:
1.27 millert 7043: EOF
1.25 millert 7044: # Now generate the symbol file.
1.27 millert 7045: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
1.23 millert 7046:
1.27 millert 7047: cat <<EOF >> conftest.$ac_ext
7048: #if defined (__STDC__) && __STDC__
7049: # define lt_ptr_t void *
7050: #else
7051: # define lt_ptr_t char *
7052: # define const
7053: #endif
1.23 millert 7054:
1.27 millert 7055: /* The mapping between symbol names and symbols. */
1.25 millert 7056: const struct {
7057: const char *name;
1.27 millert 7058: lt_ptr_t address;
1.25 millert 7059: }
1.27 millert 7060: lt_preloaded_symbols[] =
1.23 millert 7061: {
1.27 millert 7062: EOF
7063: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7064: cat <<\EOF >> conftest.$ac_ext
7065: {0, (lt_ptr_t) 0}
1.25 millert 7066: };
7067:
7068: #ifdef __cplusplus
1.23 millert 7069: }
1.25 millert 7070: #endif
1.27 millert 7071: EOF
1.25 millert 7072: # Now try linking the two files.
7073: mv conftest.$ac_objext conftstm.$ac_objext
7074: lt_save_LIBS="$LIBS"
7075: lt_save_CFLAGS="$CFLAGS"
7076: LIBS="conftstm.$ac_objext"
7077: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7078: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7079: (eval $ac_link) 2>&5
1.23 millert 7080: ac_status=$?
7081: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.25 millert 7082: (exit $ac_status); } && test -s conftest${ac_exeext}; then
7083: pipe_works=yes
7084: fi
7085: LIBS="$lt_save_LIBS"
7086: CFLAGS="$lt_save_CFLAGS"
7087: else
7088: echo "cannot find nm_test_func in $nlist" >&5
7089: fi
7090: else
7091: echo "cannot find nm_test_var in $nlist" >&5
7092: fi
7093: else
7094: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7095: fi
7096: else
7097: echo "$progname: failed program was:" >&5
7098: cat conftest.$ac_ext >&5
7099: fi
1.36 millert 7100: rm -rf conftest* conftst*
1.25 millert 7101:
7102: # Do not use the global_symbol_pipe unless it works.
7103: if test "$pipe_works" = yes; then
7104: break
7105: else
7106: lt_cv_sys_global_symbol_pipe=
7107: fi
7108: done
1.23 millert 7109:
7110: fi
7111:
1.25 millert 7112: if test -z "$lt_cv_sys_global_symbol_pipe"; then
7113: lt_cv_sys_global_symbol_to_cdecl=
7114: fi
7115: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
1.27 millert 7116: { echo "$as_me:$LINENO: result: failed" >&5
7117: echo "${ECHO_T}failed" >&6; }
1.25 millert 7118: else
1.27 millert 7119: { echo "$as_me:$LINENO: result: ok" >&5
7120: echo "${ECHO_T}ok" >&6; }
1.23 millert 7121: fi
1.25 millert 7122:
1.27 millert 7123: { echo "$as_me:$LINENO: checking for objdir" >&5
7124: echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7125: if test "${lt_cv_objdir+set}" = set; then
7126: echo $ECHO_N "(cached) $ECHO_C" >&6
7127: else
7128: rm -f .libs 2>/dev/null
7129: mkdir .libs 2>/dev/null
7130: if test -d .libs; then
7131: lt_cv_objdir=.libs
7132: else
7133: # MS-DOS does not allow filenames that begin with a dot.
7134: lt_cv_objdir=_libs
7135: fi
7136: rmdir .libs 2>/dev/null
7137: fi
7138: { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7139: echo "${ECHO_T}$lt_cv_objdir" >&6; }
7140: objdir=$lt_cv_objdir
1.25 millert 7141:
7142:
7143:
7144:
7145:
1.27 millert 7146: case $host_os in
7147: aix3*)
7148: # AIX sometimes has problems with the GCC collect2 program. For some
7149: # reason, if we set the COLLECT_NAMES environment variable, the problems
7150: # vanish in a puff of smoke.
7151: if test "X${COLLECT_NAMES+set}" != Xset; then
7152: COLLECT_NAMES=
7153: export COLLECT_NAMES
7154: fi
7155: ;;
7156: esac
1.25 millert 7157:
1.27 millert 7158: # Sed substitution that helps us do robust quoting. It backslashifies
7159: # metacharacters that are still active within double-quoted strings.
7160: Xsed='sed -e 1s/^X//'
7161: sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
1.25 millert 7162:
1.27 millert 7163: # Same as above, but do not quote variable references.
7164: double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
1.25 millert 7165:
1.27 millert 7166: # Sed substitution to delay expansion of an escaped shell variable in a
7167: # double_quote_subst'ed string.
7168: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1.25 millert 7169:
1.27 millert 7170: # Sed substitution to avoid accidental globbing in evaled expressions
7171: no_glob_subst='s/\*/\\\*/g'
1.25 millert 7172:
1.27 millert 7173: # Constants:
7174: rm="rm -f"
1.25 millert 7175:
1.27 millert 7176: # Global variables:
7177: default_ofile=libtool
7178: can_build_shared=yes
1.25 millert 7179:
1.27 millert 7180: # All known linkers require a `.a' archive for static linking (except MSVC,
7181: # which needs '.lib').
7182: libext=a
7183: ltmain="$ac_aux_dir/ltmain.sh"
7184: ofile="$default_ofile"
7185: with_gnu_ld="$lt_cv_prog_gnu_ld"
1.25 millert 7186:
1.27 millert 7187: if test -n "$ac_tool_prefix"; then
7188: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7189: set dummy ${ac_tool_prefix}ar; ac_word=$2
7190: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7191: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7192: if test "${ac_cv_prog_AR+set}" = set; then
7193: echo $ECHO_N "(cached) $ECHO_C" >&6
7194: else
7195: if test -n "$AR"; then
7196: ac_cv_prog_AR="$AR" # Let the user override the test.
7197: else
7198: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199: for as_dir in $PATH
7200: do
7201: IFS=$as_save_IFS
7202: test -z "$as_dir" && as_dir=.
7203: for ac_exec_ext in '' $ac_executable_extensions; do
7204: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205: ac_cv_prog_AR="${ac_tool_prefix}ar"
7206: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7207: break 2
7208: fi
7209: done
7210: done
7211: IFS=$as_save_IFS
1.25 millert 7212:
1.27 millert 7213: fi
7214: fi
7215: AR=$ac_cv_prog_AR
7216: if test -n "$AR"; then
7217: { echo "$as_me:$LINENO: result: $AR" >&5
7218: echo "${ECHO_T}$AR" >&6; }
7219: else
7220: { echo "$as_me:$LINENO: result: no" >&5
7221: echo "${ECHO_T}no" >&6; }
7222: fi
1.25 millert 7223:
7224:
1.27 millert 7225: fi
7226: if test -z "$ac_cv_prog_AR"; then
7227: ac_ct_AR=$AR
7228: # Extract the first word of "ar", so it can be a program name with args.
7229: set dummy ar; ac_word=$2
7230: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7231: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7232: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7233: echo $ECHO_N "(cached) $ECHO_C" >&6
7234: else
7235: if test -n "$ac_ct_AR"; then
7236: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7237: else
7238: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239: for as_dir in $PATH
7240: do
7241: IFS=$as_save_IFS
7242: test -z "$as_dir" && as_dir=.
7243: for ac_exec_ext in '' $ac_executable_extensions; do
7244: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245: ac_cv_prog_ac_ct_AR="ar"
7246: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7247: break 2
7248: fi
7249: done
7250: done
7251: IFS=$as_save_IFS
1.25 millert 7252:
1.27 millert 7253: fi
7254: fi
7255: ac_ct_AR=$ac_cv_prog_ac_ct_AR
7256: if test -n "$ac_ct_AR"; then
7257: { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7258: echo "${ECHO_T}$ac_ct_AR" >&6; }
7259: else
7260: { echo "$as_me:$LINENO: result: no" >&5
7261: echo "${ECHO_T}no" >&6; }
7262: fi
1.25 millert 7263:
1.27 millert 7264: if test "x$ac_ct_AR" = x; then
7265: AR="false"
7266: else
7267: case $cross_compiling:$ac_tool_warned in
7268: yes:)
7269: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7270: whose name does not start with the host triplet. If you think this
7271: configuration is useful to you, please write to autoconf@gnu.org." >&5
7272: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7273: whose name does not start with the host triplet. If you think this
7274: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7275: ac_tool_warned=yes ;;
7276: esac
7277: AR=$ac_ct_AR
7278: fi
7279: else
7280: AR="$ac_cv_prog_AR"
7281: fi
1.25 millert 7282:
1.27 millert 7283: if test -n "$ac_tool_prefix"; then
7284: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7285: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7286: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7287: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7288: if test "${ac_cv_prog_RANLIB+set}" = set; then
7289: echo $ECHO_N "(cached) $ECHO_C" >&6
7290: else
7291: if test -n "$RANLIB"; then
7292: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7293: else
7294: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7295: for as_dir in $PATH
7296: do
7297: IFS=$as_save_IFS
7298: test -z "$as_dir" && as_dir=.
7299: for ac_exec_ext in '' $ac_executable_extensions; do
7300: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7302: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7303: break 2
7304: fi
7305: done
7306: done
7307: IFS=$as_save_IFS
1.25 millert 7308:
1.27 millert 7309: fi
7310: fi
7311: RANLIB=$ac_cv_prog_RANLIB
7312: if test -n "$RANLIB"; then
7313: { echo "$as_me:$LINENO: result: $RANLIB" >&5
7314: echo "${ECHO_T}$RANLIB" >&6; }
7315: else
7316: { echo "$as_me:$LINENO: result: no" >&5
7317: echo "${ECHO_T}no" >&6; }
7318: fi
1.25 millert 7319:
7320:
1.27 millert 7321: fi
7322: if test -z "$ac_cv_prog_RANLIB"; then
7323: ac_ct_RANLIB=$RANLIB
7324: # Extract the first word of "ranlib", so it can be a program name with args.
7325: set dummy ranlib; ac_word=$2
7326: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7327: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7328: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1.23 millert 7329: echo $ECHO_N "(cached) $ECHO_C" >&6
7330: else
1.27 millert 7331: if test -n "$ac_ct_RANLIB"; then
7332: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1.23 millert 7333: else
1.27 millert 7334: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335: for as_dir in $PATH
7336: do
7337: IFS=$as_save_IFS
7338: test -z "$as_dir" && as_dir=.
7339: for ac_exec_ext in '' $ac_executable_extensions; do
7340: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341: ac_cv_prog_ac_ct_RANLIB="ranlib"
7342: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343: break 2
7344: fi
7345: done
7346: done
7347: IFS=$as_save_IFS
1.23 millert 7348:
7349: fi
1.27 millert 7350: fi
7351: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7352: if test -n "$ac_ct_RANLIB"; then
7353: { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7354: echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
1.23 millert 7355: else
1.27 millert 7356: { echo "$as_me:$LINENO: result: no" >&5
7357: echo "${ECHO_T}no" >&6; }
1.25 millert 7358: fi
1.23 millert 7359:
1.27 millert 7360: if test "x$ac_ct_RANLIB" = x; then
7361: RANLIB=":"
7362: else
7363: case $cross_compiling:$ac_tool_warned in
7364: yes:)
7365: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7366: whose name does not start with the host triplet. If you think this
7367: configuration is useful to you, please write to autoconf@gnu.org." >&5
7368: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7369: whose name does not start with the host triplet. If you think this
7370: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7371: ac_tool_warned=yes ;;
7372: esac
7373: RANLIB=$ac_ct_RANLIB
7374: fi
7375: else
7376: RANLIB="$ac_cv_prog_RANLIB"
1.23 millert 7377: fi
1.25 millert 7378:
1.27 millert 7379: if test -n "$ac_tool_prefix"; then
7380: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7381: set dummy ${ac_tool_prefix}strip; ac_word=$2
7382: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7383: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7384: if test "${ac_cv_prog_STRIP+set}" = set; then
7385: echo $ECHO_N "(cached) $ECHO_C" >&6
7386: else
7387: if test -n "$STRIP"; then
7388: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7389: else
7390: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391: for as_dir in $PATH
7392: do
7393: IFS=$as_save_IFS
7394: test -z "$as_dir" && as_dir=.
7395: for ac_exec_ext in '' $ac_executable_extensions; do
7396: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7397: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7398: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7399: break 2
7400: fi
7401: done
7402: done
7403: IFS=$as_save_IFS
1.25 millert 7404:
1.27 millert 7405: fi
7406: fi
7407: STRIP=$ac_cv_prog_STRIP
7408: if test -n "$STRIP"; then
7409: { echo "$as_me:$LINENO: result: $STRIP" >&5
7410: echo "${ECHO_T}$STRIP" >&6; }
1.25 millert 7411: else
1.27 millert 7412: { echo "$as_me:$LINENO: result: no" >&5
7413: echo "${ECHO_T}no" >&6; }
1.25 millert 7414: fi
1.27 millert 7415:
1.25 millert 7416:
7417: fi
1.27 millert 7418: if test -z "$ac_cv_prog_STRIP"; then
7419: ac_ct_STRIP=$STRIP
7420: # Extract the first word of "strip", so it can be a program name with args.
7421: set dummy strip; ac_word=$2
7422: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7423: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7424: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7425: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 7426: else
1.27 millert 7427: if test -n "$ac_ct_STRIP"; then
7428: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1.23 millert 7429: else
1.27 millert 7430: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431: for as_dir in $PATH
7432: do
7433: IFS=$as_save_IFS
7434: test -z "$as_dir" && as_dir=.
7435: for ac_exec_ext in '' $ac_executable_extensions; do
7436: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7437: ac_cv_prog_ac_ct_STRIP="strip"
7438: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439: break 2
7440: fi
7441: done
7442: done
7443: IFS=$as_save_IFS
1.23 millert 7444:
1.25 millert 7445: fi
7446: fi
1.27 millert 7447: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7448: if test -n "$ac_ct_STRIP"; then
7449: { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7450: echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7451: else
7452: { echo "$as_me:$LINENO: result: no" >&5
7453: echo "${ECHO_T}no" >&6; }
1.23 millert 7454: fi
1.25 millert 7455:
1.27 millert 7456: if test "x$ac_ct_STRIP" = x; then
7457: STRIP=":"
7458: else
7459: case $cross_compiling:$ac_tool_warned in
7460: yes:)
7461: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7462: whose name does not start with the host triplet. If you think this
7463: configuration is useful to you, please write to autoconf@gnu.org." >&5
7464: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7465: whose name does not start with the host triplet. If you think this
7466: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7467: ac_tool_warned=yes ;;
7468: esac
7469: STRIP=$ac_ct_STRIP
7470: fi
7471: else
7472: STRIP="$ac_cv_prog_STRIP"
1.23 millert 7473: fi
7474:
1.25 millert 7475:
1.27 millert 7476: old_CC="$CC"
7477: old_CFLAGS="$CFLAGS"
1.25 millert 7478:
1.27 millert 7479: # Set sane defaults for various variables
7480: test -z "$AR" && AR=ar
7481: test -z "$AR_FLAGS" && AR_FLAGS=cru
7482: test -z "$AS" && AS=as
7483: test -z "$CC" && CC=cc
7484: test -z "$LTCC" && LTCC=$CC
7485: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7486: test -z "$DLLTOOL" && DLLTOOL=dlltool
7487: test -z "$LD" && LD=ld
7488: test -z "$LN_S" && LN_S="ln -s"
7489: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7490: test -z "$NM" && NM=nm
7491: test -z "$SED" && SED=sed
7492: test -z "$OBJDUMP" && OBJDUMP=objdump
7493: test -z "$RANLIB" && RANLIB=:
7494: test -z "$STRIP" && STRIP=:
7495: test -z "$ac_objext" && ac_objext=o
1.25 millert 7496:
1.27 millert 7497: # Determine commands to create old-style static archives.
7498: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7499: old_postinstall_cmds='chmod 644 $oldlib'
7500: old_postuninstall_cmds=
1.25 millert 7501:
1.27 millert 7502: if test -n "$RANLIB"; then
7503: case $host_os in
7504: openbsd*)
7505: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7506: ;;
7507: *)
7508: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7509: ;;
7510: esac
7511: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7512: fi
1.25 millert 7513:
1.27 millert 7514: for cc_temp in $compiler""; do
7515: case $cc_temp in
7516: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7517: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7518: \-*) ;;
7519: *) break;;
7520: esac
7521: done
7522: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.25 millert 7523:
7524:
1.27 millert 7525: # Only perform the check for file, if the check method requires it
7526: case $deplibs_check_method in
7527: file_magic*)
7528: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7529: { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7530: echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7531: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.23 millert 7532: echo $ECHO_N "(cached) $ECHO_C" >&6
7533: else
1.27 millert 7534: case $MAGIC_CMD in
7535: [\\/*] | ?:[\\/]*)
7536: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7537: ;;
7538: *)
7539: lt_save_MAGIC_CMD="$MAGIC_CMD"
7540: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7541: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7542: for ac_dir in $ac_dummy; do
7543: IFS="$lt_save_ifs"
7544: test -z "$ac_dir" && ac_dir=.
7545: if test -f $ac_dir/${ac_tool_prefix}file; then
7546: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7547: if test -n "$file_magic_test_file"; then
7548: case $deplibs_check_method in
7549: "file_magic "*)
7550: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7551: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7552: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7553: $EGREP "$file_magic_regex" > /dev/null; then
7554: :
7555: else
7556: cat <<EOF 1>&2
1.25 millert 7557:
1.27 millert 7558: *** Warning: the command libtool uses to detect shared libraries,
7559: *** $file_magic_cmd, produces output that libtool cannot recognize.
7560: *** The result is that libtool may fail to recognize shared libraries
7561: *** as such. This will affect the creation of libtool libraries that
7562: *** depend on shared libraries, but programs linked with such libtool
7563: *** libraries will work regardless of this problem. Nevertheless, you
7564: *** may want to report the problem to your system manager and/or to
7565: *** bug-libtool@gnu.org
1.23 millert 7566:
1.27 millert 7567: EOF
7568: fi ;;
7569: esac
7570: fi
7571: break
7572: fi
7573: done
7574: IFS="$lt_save_ifs"
7575: MAGIC_CMD="$lt_save_MAGIC_CMD"
7576: ;;
7577: esac
1.25 millert 7578: fi
7579:
1.27 millert 7580: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7581: if test -n "$MAGIC_CMD"; then
7582: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7583: echo "${ECHO_T}$MAGIC_CMD" >&6; }
7584: else
7585: { echo "$as_me:$LINENO: result: no" >&5
7586: echo "${ECHO_T}no" >&6; }
1.23 millert 7587: fi
7588:
1.27 millert 7589: if test -z "$lt_cv_path_MAGIC_CMD"; then
7590: if test -n "$ac_tool_prefix"; then
7591: { echo "$as_me:$LINENO: checking for file" >&5
7592: echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7593: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
1.25 millert 7594: echo $ECHO_N "(cached) $ECHO_C" >&6
7595: else
1.27 millert 7596: case $MAGIC_CMD in
7597: [\\/*] | ?:[\\/]*)
7598: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599: ;;
7600: *)
7601: lt_save_MAGIC_CMD="$MAGIC_CMD"
7602: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7603: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7604: for ac_dir in $ac_dummy; do
7605: IFS="$lt_save_ifs"
7606: test -z "$ac_dir" && ac_dir=.
7607: if test -f $ac_dir/file; then
7608: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7609: if test -n "$file_magic_test_file"; then
7610: case $deplibs_check_method in
7611: "file_magic "*)
7612: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7613: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7614: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7615: $EGREP "$file_magic_regex" > /dev/null; then
7616: :
7617: else
7618: cat <<EOF 1>&2
1.25 millert 7619:
1.27 millert 7620: *** Warning: the command libtool uses to detect shared libraries,
7621: *** $file_magic_cmd, produces output that libtool cannot recognize.
7622: *** The result is that libtool may fail to recognize shared libraries
7623: *** as such. This will affect the creation of libtool libraries that
7624: *** depend on shared libraries, but programs linked with such libtool
7625: *** libraries will work regardless of this problem. Nevertheless, you
7626: *** may want to report the problem to your system manager and/or to
7627: *** bug-libtool@gnu.org
1.23 millert 7628:
1.27 millert 7629: EOF
7630: fi ;;
7631: esac
7632: fi
7633: break
7634: fi
7635: done
7636: IFS="$lt_save_ifs"
7637: MAGIC_CMD="$lt_save_MAGIC_CMD"
7638: ;;
7639: esac
1.25 millert 7640: fi
1.27 millert 7641:
7642: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7643: if test -n "$MAGIC_CMD"; then
7644: { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7645: echo "${ECHO_T}$MAGIC_CMD" >&6; }
7646: else
7647: { echo "$as_me:$LINENO: result: no" >&5
7648: echo "${ECHO_T}no" >&6; }
1.25 millert 7649: fi
7650:
1.27 millert 7651: else
7652: MAGIC_CMD=:
7653: fi
1.23 millert 7654: fi
7655:
1.27 millert 7656: fi
7657: ;;
7658: esac
1.23 millert 7659:
1.36 millert 7660:
7661: case $host_os in
7662: rhapsody* | darwin*)
7663: if test -n "$ac_tool_prefix"; then
7664: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7665: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7666: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7669: echo $ECHO_N "(cached) $ECHO_C" >&6
7670: else
7671: if test -n "$DSYMUTIL"; then
7672: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7673: else
7674: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675: for as_dir in $PATH
7676: do
7677: IFS=$as_save_IFS
7678: test -z "$as_dir" && as_dir=.
7679: for ac_exec_ext in '' $ac_executable_extensions; do
7680: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7681: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7682: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7683: break 2
7684: fi
7685: done
7686: done
7687: IFS=$as_save_IFS
7688:
7689: fi
7690: fi
7691: DSYMUTIL=$ac_cv_prog_DSYMUTIL
7692: if test -n "$DSYMUTIL"; then
7693: { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7694: echo "${ECHO_T}$DSYMUTIL" >&6; }
7695: else
7696: { echo "$as_me:$LINENO: result: no" >&5
7697: echo "${ECHO_T}no" >&6; }
7698: fi
7699:
7700:
7701: fi
7702: if test -z "$ac_cv_prog_DSYMUTIL"; then
7703: ac_ct_DSYMUTIL=$DSYMUTIL
7704: # Extract the first word of "dsymutil", so it can be a program name with args.
7705: set dummy dsymutil; ac_word=$2
7706: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7709: echo $ECHO_N "(cached) $ECHO_C" >&6
7710: else
7711: if test -n "$ac_ct_DSYMUTIL"; then
7712: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7713: else
7714: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715: for as_dir in $PATH
7716: do
7717: IFS=$as_save_IFS
7718: test -z "$as_dir" && as_dir=.
7719: for ac_exec_ext in '' $ac_executable_extensions; do
7720: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7722: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7723: break 2
7724: fi
7725: done
7726: done
7727: IFS=$as_save_IFS
7728:
7729: fi
7730: fi
7731: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7732: if test -n "$ac_ct_DSYMUTIL"; then
7733: { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7734: echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7735: else
7736: { echo "$as_me:$LINENO: result: no" >&5
7737: echo "${ECHO_T}no" >&6; }
7738: fi
7739:
7740: if test "x$ac_ct_DSYMUTIL" = x; then
7741: DSYMUTIL=":"
7742: else
7743: case $cross_compiling:$ac_tool_warned in
7744: yes:)
7745: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7746: whose name does not start with the host triplet. If you think this
7747: configuration is useful to you, please write to autoconf@gnu.org." >&5
7748: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7749: whose name does not start with the host triplet. If you think this
7750: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7751: ac_tool_warned=yes ;;
7752: esac
7753: DSYMUTIL=$ac_ct_DSYMUTIL
7754: fi
7755: else
7756: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7757: fi
7758:
7759: if test -n "$ac_tool_prefix"; then
7760: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7761: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7762: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764: if test "${ac_cv_prog_NMEDIT+set}" = set; then
7765: echo $ECHO_N "(cached) $ECHO_C" >&6
7766: else
7767: if test -n "$NMEDIT"; then
7768: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7769: else
7770: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771: for as_dir in $PATH
7772: do
7773: IFS=$as_save_IFS
7774: test -z "$as_dir" && as_dir=.
7775: for ac_exec_ext in '' $ac_executable_extensions; do
7776: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7778: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779: break 2
7780: fi
7781: done
7782: done
7783: IFS=$as_save_IFS
7784:
7785: fi
7786: fi
7787: NMEDIT=$ac_cv_prog_NMEDIT
7788: if test -n "$NMEDIT"; then
7789: { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7790: echo "${ECHO_T}$NMEDIT" >&6; }
7791: else
7792: { echo "$as_me:$LINENO: result: no" >&5
7793: echo "${ECHO_T}no" >&6; }
7794: fi
7795:
7796:
7797: fi
7798: if test -z "$ac_cv_prog_NMEDIT"; then
7799: ac_ct_NMEDIT=$NMEDIT
7800: # Extract the first word of "nmedit", so it can be a program name with args.
7801: set dummy nmedit; ac_word=$2
7802: { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7805: echo $ECHO_N "(cached) $ECHO_C" >&6
7806: else
7807: if test -n "$ac_ct_NMEDIT"; then
7808: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7809: else
7810: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811: for as_dir in $PATH
7812: do
7813: IFS=$as_save_IFS
7814: test -z "$as_dir" && as_dir=.
7815: for ac_exec_ext in '' $ac_executable_extensions; do
7816: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817: ac_cv_prog_ac_ct_NMEDIT="nmedit"
7818: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819: break 2
7820: fi
7821: done
7822: done
7823: IFS=$as_save_IFS
7824:
7825: fi
7826: fi
7827: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7828: if test -n "$ac_ct_NMEDIT"; then
7829: { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7830: echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7831: else
7832: { echo "$as_me:$LINENO: result: no" >&5
7833: echo "${ECHO_T}no" >&6; }
7834: fi
7835:
7836: if test "x$ac_ct_NMEDIT" = x; then
7837: NMEDIT=":"
7838: else
7839: case $cross_compiling:$ac_tool_warned in
7840: yes:)
7841: { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7842: whose name does not start with the host triplet. If you think this
7843: configuration is useful to you, please write to autoconf@gnu.org." >&5
7844: echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7845: whose name does not start with the host triplet. If you think this
7846: configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7847: ac_tool_warned=yes ;;
7848: esac
7849: NMEDIT=$ac_ct_NMEDIT
7850: fi
7851: else
7852: NMEDIT="$ac_cv_prog_NMEDIT"
7853: fi
7854:
7855:
7856: { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7857: echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7858: if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7859: echo $ECHO_N "(cached) $ECHO_C" >&6
7860: else
7861: lt_cv_apple_cc_single_mod=no
7862: if test -z "${LT_MULTI_MODULE}"; then
7863: # By default we will add the -single_module flag. You can override
7864: # by either setting the environment variable LT_MULTI_MODULE
7865: # non-empty at configure time, or by adding -multi_module to the
7866: # link flags.
7867: echo "int foo(void){return 1;}" > conftest.c
7868: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7869: -dynamiclib ${wl}-single_module conftest.c
7870: if test -f libconftest.dylib; then
7871: lt_cv_apple_cc_single_mod=yes
7872: rm -rf libconftest.dylib*
7873: fi
7874: rm conftest.c
7875: fi
7876: fi
7877: { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7878: echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7879: { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7880: echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7881: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7882: echo $ECHO_N "(cached) $ECHO_C" >&6
7883: else
7884: lt_cv_ld_exported_symbols_list=no
7885: save_LDFLAGS=$LDFLAGS
7886: echo "_main" > conftest.sym
7887: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7888: cat >conftest.$ac_ext <<_ACEOF
7889: /* confdefs.h. */
7890: _ACEOF
7891: cat confdefs.h >>conftest.$ac_ext
7892: cat >>conftest.$ac_ext <<_ACEOF
7893: /* end confdefs.h. */
7894:
7895: int
7896: main ()
7897: {
7898:
7899: ;
7900: return 0;
7901: }
7902: _ACEOF
7903: rm -f conftest.$ac_objext conftest$ac_exeext
7904: if { (ac_try="$ac_link"
7905: case "(($ac_try" in
7906: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907: *) ac_try_echo=$ac_try;;
7908: esac
7909: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910: (eval "$ac_link") 2>conftest.er1
7911: ac_status=$?
7912: grep -v '^ *+' conftest.er1 >conftest.err
7913: rm -f conftest.er1
7914: cat conftest.err >&5
7915: echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916: (exit $ac_status); } && {
7917: test -z "$ac_c_werror_flag" ||
7918: test ! -s conftest.err
7919: } && test -s conftest$ac_exeext &&
7920: $as_test_x conftest$ac_exeext; then
7921: lt_cv_ld_exported_symbols_list=yes
7922: else
7923: echo "$as_me: failed program was:" >&5
7924: sed 's/^/| /' conftest.$ac_ext >&5
7925:
7926: lt_cv_ld_exported_symbols_list=no
7927: fi
7928:
7929: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7930: conftest$ac_exeext conftest.$ac_ext
7931: LDFLAGS="$save_LDFLAGS"
7932:
7933: fi
7934: { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7935: echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7936: case $host_os in
7937: rhapsody* | darwin1.[0123])
7938: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7939: darwin1.*)
7940: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7941: darwin*)
7942: # if running on 10.5 or later, the deployment target defaults
7943: # to the OS version, if on x86, and 10.4, the deployment
7944: # target defaults to 10.4. Don't you love it?
7945: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7946: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7947: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7948: 10.[012]*)
7949: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7950: 10.*)
7951: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7952: esac
7953: ;;
7954: esac
7955: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7956: _lt_dar_single_mod='$single_module'
7957: fi
7958: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7959: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7960: else
7961: _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7962: fi
7963: if test "$DSYMUTIL" != ":"; then
7964: _lt_dsymutil="~$DSYMUTIL \$lib || :"
7965: else
7966: _lt_dsymutil=
7967: fi
7968: ;;
7969: esac
7970:
7971:
1.27 millert 7972: enable_dlopen=no
7973: enable_win32_dll=no
1.25 millert 7974:
1.27 millert 7975: # Check whether --enable-libtool-lock was given.
7976: if test "${enable_libtool_lock+set}" = set; then
7977: enableval=$enable_libtool_lock;
7978: fi
1.25 millert 7979:
1.27 millert 7980: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1.25 millert 7981:
1.23 millert 7982:
1.27 millert 7983: # Check whether --with-pic was given.
7984: if test "${with_pic+set}" = set; then
7985: withval=$with_pic; pic_mode="$withval"
1.23 millert 7986: else
1.27 millert 7987: pic_mode=default
7988: fi
1.25 millert 7989:
1.27 millert 7990: test -z "$pic_mode" && pic_mode=default
1.23 millert 7991:
1.27 millert 7992: # Use C for the default configuration in the libtool script
7993: tagname=
7994: lt_save_CC="$CC"
7995: ac_ext=c
7996: ac_cpp='$CPP $CPPFLAGS'
7997: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 8000:
8001:
1.27 millert 8002: # Source file extension for C test sources.
8003: ac_ext=c
1.23 millert 8004:
1.27 millert 8005: # Object file extension for compiled C test sources.
8006: objext=o
8007: objext=$objext
1.23 millert 8008:
1.27 millert 8009: # Code to be used in simple compile tests
8010: lt_simple_compile_test_code="int some_variable = 0;"
1.23 millert 8011:
1.27 millert 8012: # Code to be used in simple link tests
8013: lt_simple_link_test_code='int main(){return(0);}'
1.23 millert 8014:
8015:
1.27 millert 8016: # If no C compiler was specified, use CC.
8017: LTCC=${LTCC-"$CC"}
1.23 millert 8018:
1.27 millert 8019: # If no C compiler flags were specified, use CFLAGS.
8020: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1.23 millert 8021:
1.27 millert 8022: # Allow CC to be a program name with arguments.
8023: compiler=$CC
1.23 millert 8024:
8025:
1.27 millert 8026: # save warnings/boilerplate of simple test code
8027: ac_outfile=conftest.$ac_objext
8028: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8029: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8030: _lt_compiler_boilerplate=`cat conftest.err`
8031: $rm conftest*
8032:
8033: ac_outfile=conftest.$ac_objext
8034: echo "$lt_simple_link_test_code" >conftest.$ac_ext
8035: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8036: _lt_linker_boilerplate=`cat conftest.err`
1.36 millert 8037: $rm -r conftest*
1.23 millert 8038:
8039:
1.27 millert 8040: ## CAVEAT EMPTOR:
8041: ## There is no encapsulation within the following macros, do not change
8042: ## the running order or otherwise move them around unless you know exactly
8043: ## what you are doing...
1.23 millert 8044:
1.27 millert 8045: lt_prog_compiler_no_builtin_flag=
1.23 millert 8046:
1.27 millert 8047: if test "$GCC" = yes; then
8048: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
1.23 millert 8049:
8050:
1.27 millert 8051: { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8052: echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8053: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8054: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 8055: else
1.27 millert 8056: lt_cv_prog_compiler_rtti_exceptions=no
8057: ac_outfile=conftest.$ac_objext
8058: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8059: lt_compiler_flag="-fno-rtti -fno-exceptions"
8060: # Insert the option either (1) after the last *FLAGS variable, or
8061: # (2) before a word containing "conftest.", or (3) at the end.
8062: # Note that $ac_compile itself does not contain backslashes and begins
8063: # with a dollar sign (not a hyphen), so the echo should work correctly.
8064: # The option is referenced via a variable to avoid confusing sed.
8065: lt_compile=`echo "$ac_compile" | $SED \
8066: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8067: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8068: -e 's:$: $lt_compiler_flag:'`
1.39 ! millert 8069: (eval echo "\"\$as_me:8069: $lt_compile\"" >&5)
1.27 millert 8070: (eval "$lt_compile" 2>conftest.err)
8071: ac_status=$?
8072: cat conftest.err >&5
1.39 ! millert 8073: echo "$as_me:8073: \$? = $ac_status" >&5
1.27 millert 8074: if (exit $ac_status) && test -s "$ac_outfile"; then
8075: # The compiler can only warn and ignore the option if not recognized
8076: # So say no if there are warnings other than the usual output.
8077: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8078: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8079: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8080: lt_cv_prog_compiler_rtti_exceptions=yes
8081: fi
8082: fi
8083: $rm conftest*
1.23 millert 8084:
1.25 millert 8085: fi
1.27 millert 8086: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8087: echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
1.25 millert 8088:
1.27 millert 8089: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8090: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
1.25 millert 8091: else
1.27 millert 8092: :
8093: fi
1.23 millert 8094:
1.25 millert 8095: fi
1.23 millert 8096:
1.27 millert 8097: lt_prog_compiler_wl=
8098: lt_prog_compiler_pic=
8099: lt_prog_compiler_static=
1.23 millert 8100:
1.27 millert 8101: { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8102: echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
1.25 millert 8103:
1.27 millert 8104: if test "$GCC" = yes; then
8105: lt_prog_compiler_wl='-Wl,'
8106: lt_prog_compiler_static='-static'
1.25 millert 8107:
1.27 millert 8108: case $host_os in
8109: aix*)
8110: # All AIX code is PIC.
8111: if test "$host_cpu" = ia64; then
8112: # AIX 5 now supports IA64 processor
8113: lt_prog_compiler_static='-Bstatic'
8114: fi
8115: ;;
1.25 millert 8116:
1.27 millert 8117: amigaos*)
8118: # FIXME: we need at least 68020 code to build shared libraries, but
8119: # adding the `-m68020' flag to GCC prevents building anything better,
8120: # like `-m68040'.
8121: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8122: ;;
1.25 millert 8123:
1.27 millert 8124: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8125: # PIC is the default for these OSes.
8126: ;;
1.23 millert 8127:
1.27 millert 8128: mingw* | cygwin* | pw32* | os2*)
8129: # This hack is so that the source file can tell whether it is being
8130: # built for inclusion in a dll (and should export symbols for example).
8131: # Although the cygwin gcc ignores -fPIC, still need this for old-style
8132: # (--disable-auto-import) libraries
8133: lt_prog_compiler_pic='-DDLL_EXPORT'
8134: ;;
1.23 millert 8135:
1.27 millert 8136: darwin* | rhapsody*)
8137: # PIC is the default on this platform
8138: # Common symbols not allowed in MH_DYLIB files
8139: lt_prog_compiler_pic='-fno-common'
8140: ;;
1.23 millert 8141:
1.27 millert 8142: interix[3-9]*)
8143: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8144: # Instead, we relocate shared libraries at runtime.
8145: ;;
1.23 millert 8146:
1.27 millert 8147: msdosdjgpp*)
8148: # Just because we use GCC doesn't mean we suddenly get shared libraries
8149: # on systems that don't support them.
8150: lt_prog_compiler_can_build_shared=no
8151: enable_shared=no
8152: ;;
1.23 millert 8153:
1.27 millert 8154: sysv4*MP*)
8155: if test -d /usr/nec; then
8156: lt_prog_compiler_pic=-Kconform_pic
8157: fi
8158: ;;
1.23 millert 8159:
1.27 millert 8160: hpux*)
8161: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8162: # not for PA HP-UX.
8163: case $host_cpu in
8164: hppa*64*|ia64*)
8165: # +Z the default
8166: ;;
8167: *)
8168: lt_prog_compiler_pic='-fPIC'
8169: ;;
8170: esac
8171: ;;
1.23 millert 8172:
1.27 millert 8173: *)
8174: lt_prog_compiler_pic='-fPIC'
8175: ;;
8176: esac
8177: else
8178: # PORTME Check for flag to pass linker flags through the system compiler.
8179: case $host_os in
8180: aix*)
8181: lt_prog_compiler_wl='-Wl,'
8182: if test "$host_cpu" = ia64; then
8183: # AIX 5 now supports IA64 processor
8184: lt_prog_compiler_static='-Bstatic'
8185: else
8186: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8187: fi
8188: ;;
8189: darwin*)
8190: # PIC is the default on this platform
8191: # Common symbols not allowed in MH_DYLIB files
8192: case $cc_basename in
8193: xlc*)
8194: lt_prog_compiler_pic='-qnocommon'
8195: lt_prog_compiler_wl='-Wl,'
8196: ;;
8197: esac
8198: ;;
1.23 millert 8199:
1.27 millert 8200: mingw* | cygwin* | pw32* | os2*)
8201: # This hack is so that the source file can tell whether it is being
8202: # built for inclusion in a dll (and should export symbols for example).
8203: lt_prog_compiler_pic='-DDLL_EXPORT'
8204: ;;
1.25 millert 8205:
1.27 millert 8206: hpux9* | hpux10* | hpux11*)
8207: lt_prog_compiler_wl='-Wl,'
8208: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8209: # not for PA HP-UX.
8210: case $host_cpu in
8211: hppa*64*|ia64*)
8212: # +Z the default
8213: ;;
8214: *)
8215: lt_prog_compiler_pic='+Z'
8216: ;;
8217: esac
8218: # Is there a better lt_prog_compiler_static that works with the bundled CC?
8219: lt_prog_compiler_static='${wl}-a ${wl}archive'
8220: ;;
1.23 millert 8221:
1.27 millert 8222: irix5* | irix6* | nonstopux*)
8223: lt_prog_compiler_wl='-Wl,'
8224: # PIC (with -KPIC) is the default.
8225: lt_prog_compiler_static='-non_shared'
8226: ;;
1.23 millert 8227:
1.27 millert 8228: newsos6)
8229: lt_prog_compiler_pic='-KPIC'
8230: lt_prog_compiler_static='-Bstatic'
8231: ;;
1.23 millert 8232:
1.27 millert 8233: linux* | k*bsd*-gnu)
8234: case $cc_basename in
8235: icc* | ecc*)
8236: lt_prog_compiler_wl='-Wl,'
8237: lt_prog_compiler_pic='-KPIC'
8238: lt_prog_compiler_static='-static'
8239: ;;
8240: pgcc* | pgf77* | pgf90* | pgf95*)
8241: # Portland Group compilers (*not* the Pentium gcc compiler,
8242: # which looks to be a dead project)
8243: lt_prog_compiler_wl='-Wl,'
8244: lt_prog_compiler_pic='-fpic'
8245: lt_prog_compiler_static='-Bstatic'
8246: ;;
8247: ccc*)
8248: lt_prog_compiler_wl='-Wl,'
8249: # All Alpha code is PIC.
8250: lt_prog_compiler_static='-non_shared'
8251: ;;
8252: *)
8253: case `$CC -V 2>&1 | sed 5q` in
8254: *Sun\ C*)
8255: # Sun C 5.9
8256: lt_prog_compiler_pic='-KPIC'
8257: lt_prog_compiler_static='-Bstatic'
8258: lt_prog_compiler_wl='-Wl,'
8259: ;;
8260: *Sun\ F*)
8261: # Sun Fortran 8.3 passes all unrecognized flags to the linker
8262: lt_prog_compiler_pic='-KPIC'
8263: lt_prog_compiler_static='-Bstatic'
8264: lt_prog_compiler_wl=''
8265: ;;
8266: esac
8267: ;;
8268: esac
8269: ;;
1.23 millert 8270:
1.27 millert 8271: osf3* | osf4* | osf5*)
8272: lt_prog_compiler_wl='-Wl,'
8273: # All OSF/1 code is PIC.
8274: lt_prog_compiler_static='-non_shared'
8275: ;;
1.23 millert 8276:
1.27 millert 8277: rdos*)
8278: lt_prog_compiler_static='-non_shared'
8279: ;;
1.25 millert 8280:
1.27 millert 8281: solaris*)
8282: lt_prog_compiler_pic='-KPIC'
8283: lt_prog_compiler_static='-Bstatic'
8284: case $cc_basename in
8285: f77* | f90* | f95*)
8286: lt_prog_compiler_wl='-Qoption ld ';;
8287: *)
8288: lt_prog_compiler_wl='-Wl,';;
8289: esac
8290: ;;
1.25 millert 8291:
1.27 millert 8292: sunos4*)
8293: lt_prog_compiler_wl='-Qoption ld '
8294: lt_prog_compiler_pic='-PIC'
8295: lt_prog_compiler_static='-Bstatic'
8296: ;;
1.25 millert 8297:
1.27 millert 8298: sysv4 | sysv4.2uw2* | sysv4.3*)
8299: lt_prog_compiler_wl='-Wl,'
8300: lt_prog_compiler_pic='-KPIC'
8301: lt_prog_compiler_static='-Bstatic'
8302: ;;
1.25 millert 8303:
1.27 millert 8304: sysv4*MP*)
8305: if test -d /usr/nec ;then
8306: lt_prog_compiler_pic='-Kconform_pic'
8307: lt_prog_compiler_static='-Bstatic'
8308: fi
8309: ;;
1.25 millert 8310:
1.27 millert 8311: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8312: lt_prog_compiler_wl='-Wl,'
8313: lt_prog_compiler_pic='-KPIC'
8314: lt_prog_compiler_static='-Bstatic'
8315: ;;
1.25 millert 8316:
1.27 millert 8317: unicos*)
8318: lt_prog_compiler_wl='-Wl,'
8319: lt_prog_compiler_can_build_shared=no
8320: ;;
1.23 millert 8321:
1.27 millert 8322: uts4*)
8323: lt_prog_compiler_pic='-pic'
8324: lt_prog_compiler_static='-Bstatic'
8325: ;;
1.23 millert 8326:
1.27 millert 8327: *)
8328: lt_prog_compiler_can_build_shared=no
8329: ;;
1.25 millert 8330: esac
8331: fi
1.23 millert 8332:
1.27 millert 8333: { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8334: echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
1.23 millert 8335:
1.27 millert 8336: #
8337: # Check to make sure the PIC flag actually works.
8338: #
8339: if test -n "$lt_prog_compiler_pic"; then
1.23 millert 8340:
1.27 millert 8341: { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8342: echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
1.36 millert 8343: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
1.23 millert 8344: echo $ECHO_N "(cached) $ECHO_C" >&6
8345: else
1.36 millert 8346: lt_cv_prog_compiler_pic_works=no
1.27 millert 8347: ac_outfile=conftest.$ac_objext
8348: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8350: # Insert the option either (1) after the last *FLAGS variable, or
8351: # (2) before a word containing "conftest.", or (3) at the end.
8352: # Note that $ac_compile itself does not contain backslashes and begins
8353: # with a dollar sign (not a hyphen), so the echo should work correctly.
8354: # The option is referenced via a variable to avoid confusing sed.
8355: lt_compile=`echo "$ac_compile" | $SED \
8356: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358: -e 's:$: $lt_compiler_flag:'`
1.39 ! millert 8359: (eval echo "\"\$as_me:8359: $lt_compile\"" >&5)
1.27 millert 8360: (eval "$lt_compile" 2>conftest.err)
8361: ac_status=$?
8362: cat conftest.err >&5
1.39 ! millert 8363: echo "$as_me:8363: \$? = $ac_status" >&5
1.27 millert 8364: if (exit $ac_status) && test -s "$ac_outfile"; then
8365: # The compiler can only warn and ignore the option if not recognized
8366: # So say no if there are warnings other than the usual output.
8367: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8368: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1.36 millert 8370: lt_cv_prog_compiler_pic_works=yes
1.27 millert 8371: fi
8372: fi
8373: $rm conftest*
1.23 millert 8374:
1.27 millert 8375: fi
1.36 millert 8376: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8377: echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
1.23 millert 8378:
1.36 millert 8379: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
1.27 millert 8380: case $lt_prog_compiler_pic in
8381: "" | " "*) ;;
8382: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8383: esac
8384: else
8385: lt_prog_compiler_pic=
8386: lt_prog_compiler_can_build_shared=no
1.23 millert 8387: fi
1.25 millert 8388:
1.23 millert 8389: fi
1.27 millert 8390: case $host_os in
8391: # For platforms which do not support PIC, -DPIC is meaningless:
8392: *djgpp*)
8393: lt_prog_compiler_pic=
8394: ;;
8395: *)
8396: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
1.25 millert 8397: ;;
1.27 millert 8398: esac
1.25 millert 8399:
1.27 millert 8400: #
8401: # Check to make sure the static flag actually works.
8402: #
8403: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8404: { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8405: echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
1.36 millert 8406: if test "${lt_cv_prog_compiler_static_works+set}" = set; then
1.27 millert 8407: echo $ECHO_N "(cached) $ECHO_C" >&6
8408: else
1.36 millert 8409: lt_cv_prog_compiler_static_works=no
1.27 millert 8410: save_LDFLAGS="$LDFLAGS"
8411: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8412: echo "$lt_simple_link_test_code" > conftest.$ac_ext
8413: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8414: # The linker can only warn and ignore the option if not recognized
8415: # So say no if there are warnings
8416: if test -s conftest.err; then
8417: # Append any errors to the config.log.
8418: cat conftest.err 1>&5
8419: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8420: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8421: if diff conftest.exp conftest.er2 >/dev/null; then
1.36 millert 8422: lt_cv_prog_compiler_static_works=yes
1.27 millert 8423: fi
8424: else
1.36 millert 8425: lt_cv_prog_compiler_static_works=yes
1.27 millert 8426: fi
8427: fi
1.36 millert 8428: $rm -r conftest*
1.27 millert 8429: LDFLAGS="$save_LDFLAGS"
1.25 millert 8430:
1.23 millert 8431: fi
1.36 millert 8432: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8433: echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
1.23 millert 8434:
1.36 millert 8435: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
1.27 millert 8436: :
8437: else
8438: lt_prog_compiler_static=
8439: fi
1.23 millert 8440:
8441:
1.27 millert 8442: { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8443: echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8444: if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8445: echo $ECHO_N "(cached) $ECHO_C" >&6
8446: else
8447: lt_cv_prog_compiler_c_o=no
8448: $rm -r conftest 2>/dev/null
8449: mkdir conftest
8450: cd conftest
8451: mkdir out
8452: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8453:
8454: lt_compiler_flag="-o out/conftest2.$ac_objext"
8455: # Insert the option either (1) after the last *FLAGS variable, or
8456: # (2) before a word containing "conftest.", or (3) at the end.
8457: # Note that $ac_compile itself does not contain backslashes and begins
8458: # with a dollar sign (not a hyphen), so the echo should work correctly.
8459: lt_compile=`echo "$ac_compile" | $SED \
8460: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8461: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462: -e 's:$: $lt_compiler_flag:'`
1.39 ! millert 8463: (eval echo "\"\$as_me:8463: $lt_compile\"" >&5)
1.27 millert 8464: (eval "$lt_compile" 2>out/conftest.err)
8465: ac_status=$?
8466: cat out/conftest.err >&5
1.39 ! millert 8467: echo "$as_me:8467: \$? = $ac_status" >&5
1.27 millert 8468: if (exit $ac_status) && test -s out/conftest2.$ac_objext
8469: then
8470: # The compiler can only warn and ignore the option if not recognized
8471: # So say no if there are warnings
8472: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8473: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8474: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8475: lt_cv_prog_compiler_c_o=yes
8476: fi
8477: fi
8478: chmod u+w . 2>&5
8479: $rm conftest*
8480: # SGI C++ compiler will create directory out/ii_files/ for
8481: # template instantiation
8482: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8483: $rm out/* && rmdir out
8484: cd ..
8485: rmdir conftest
8486: $rm conftest*
1.23 millert 8487:
1.27 millert 8488: fi
8489: { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8490: echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8491:
8492:
8493: hard_links="nottested"
8494: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8495: # do not overwrite the value of need_locks provided by the user
8496: { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8497: echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8498: hard_links=yes
8499: $rm conftest*
8500: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8501: touch conftest.a
8502: ln conftest.a conftest.b 2>&5 || hard_links=no
8503: ln conftest.a conftest.b 2>/dev/null && hard_links=no
8504: { echo "$as_me:$LINENO: result: $hard_links" >&5
8505: echo "${ECHO_T}$hard_links" >&6; }
8506: if test "$hard_links" = no; then
8507: { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8508: echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8509: need_locks=warn
8510: fi
8511: else
8512: need_locks=no
8513: fi
1.23 millert 8514:
1.27 millert 8515: { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8516: echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
1.23 millert 8517:
1.27 millert 8518: runpath_var=
8519: allow_undefined_flag=
8520: enable_shared_with_static_runtimes=no
8521: archive_cmds=
8522: archive_expsym_cmds=
8523: old_archive_From_new_cmds=
8524: old_archive_from_expsyms_cmds=
8525: export_dynamic_flag_spec=
8526: whole_archive_flag_spec=
8527: thread_safe_flag_spec=
8528: hardcode_libdir_flag_spec=
8529: hardcode_libdir_flag_spec_ld=
8530: hardcode_libdir_separator=
8531: hardcode_direct=no
8532: hardcode_minus_L=no
8533: hardcode_shlibpath_var=unsupported
8534: link_all_deplibs=unknown
8535: hardcode_automatic=no
8536: module_cmds=
8537: module_expsym_cmds=
8538: always_export_symbols=no
8539: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8540: # include_expsyms should be a list of space-separated symbols to be *always*
8541: # included in the symbol list
8542: include_expsyms=
8543: # exclude_expsyms can be an extended regexp of symbols to exclude
8544: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8545: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8546: # as well as any symbol that contains `d'.
1.36 millert 8547: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
1.27 millert 8548: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8549: # platforms (ab)use it in PIC code, but their linkers get confused if
8550: # the symbol is explicitly referenced. Since portable code cannot
8551: # rely on this symbol name, it's probably fine to never include it in
8552: # preloaded symbol tables.
1.36 millert 8553: # Exclude shared library initialization/finalization symbols.
1.27 millert 8554: extract_expsyms_cmds=
8555: # Just being paranoid about ensuring that cc_basename is set.
8556: for cc_temp in $compiler""; do
8557: case $cc_temp in
8558: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8559: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8560: \-*) ;;
8561: *) break;;
8562: esac
8563: done
8564: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1.23 millert 8565:
1.27 millert 8566: case $host_os in
8567: cygwin* | mingw* | pw32*)
8568: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8569: # When not using gcc, we currently assume that we are using
8570: # Microsoft Visual C++.
8571: if test "$GCC" != yes; then
8572: with_gnu_ld=no
8573: fi
8574: ;;
8575: interix*)
8576: # we just hope/assume this is gcc and not c89 (= MSVC++)
8577: with_gnu_ld=yes
8578: ;;
8579: openbsd*)
8580: with_gnu_ld=no
8581: ;;
8582: esac
1.23 millert 8583:
1.27 millert 8584: ld_shlibs=yes
8585: if test "$with_gnu_ld" = yes; then
8586: # If archive_cmds runs LD, not CC, wlarc should be empty
8587: wlarc='${wl}'
1.23 millert 8588:
1.27 millert 8589: # Set some defaults for GNU ld with shared library support. These
8590: # are reset later if shared libraries are not supported. Putting them
8591: # here allows them to be overridden if necessary.
8592: runpath_var=LD_RUN_PATH
8593: hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8594: export_dynamic_flag_spec='${wl}--export-dynamic'
8595: # ancient GNU ld didn't support --whole-archive et. al.
8596: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8597: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8598: else
8599: whole_archive_flag_spec=
8600: fi
8601: supports_anon_versioning=no
8602: case `$LD -v 2>/dev/null` in
8603: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8604: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8605: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8606: *\ 2.11.*) ;; # other 2.11 versions
8607: *) supports_anon_versioning=yes ;;
8608: esac
1.23 millert 8609:
1.27 millert 8610: # See if GNU ld supports shared libraries.
8611: case $host_os in
1.36 millert 8612: aix[3-9]*)
1.27 millert 8613: # On AIX/PPC, the GNU linker is very broken
8614: if test "$host_cpu" != ia64; then
8615: ld_shlibs=no
8616: cat <<EOF 1>&2
1.23 millert 8617:
1.27 millert 8618: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8619: *** to be unable to reliably create shared libraries on AIX.
8620: *** Therefore, libtool is disabling shared libraries support. If you
8621: *** really care for shared libraries, you may want to modify your PATH
8622: *** so that a non-GNU linker is found, and then restart.
1.23 millert 8623:
1.27 millert 8624: EOF
8625: fi
8626: ;;
1.23 millert 8627:
1.27 millert 8628: amigaos*)
8629: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8630: hardcode_libdir_flag_spec='-L$libdir'
8631: hardcode_minus_L=yes
1.23 millert 8632:
1.27 millert 8633: # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8634: # that the semantics of dynamic libraries on AmigaOS, at least up
8635: # to version 4, is to share data among multiple programs linked
8636: # with the same dynamic library. Since this doesn't match the
8637: # behavior of shared libraries on other platforms, we can't use
8638: # them.
8639: ld_shlibs=no
8640: ;;
1.23 millert 8641:
1.27 millert 8642: beos*)
8643: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8644: allow_undefined_flag=unsupported
8645: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8646: # support --undefined. This deserves some investigation. FIXME
8647: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648: else
8649: ld_shlibs=no
8650: fi
8651: ;;
1.23 millert 8652:
1.27 millert 8653: cygwin* | mingw* | pw32*)
8654: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8655: # as there is no search path for DLLs.
8656: hardcode_libdir_flag_spec='-L$libdir'
8657: allow_undefined_flag=unsupported
8658: always_export_symbols=no
8659: enable_shared_with_static_runtimes=yes
8660: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
1.25 millert 8661:
1.27 millert 8662: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8663: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8664: # If the export-symbols file already is a .def file (1st line
8665: # is EXPORTS), use it as is; otherwise, prepend...
8666: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8667: cp $export_symbols $output_objdir/$soname.def;
8668: else
8669: echo EXPORTS > $output_objdir/$soname.def;
8670: cat $export_symbols >> $output_objdir/$soname.def;
8671: fi~
8672: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8673: else
8674: ld_shlibs=no
8675: fi
8676: ;;
1.25 millert 8677:
1.27 millert 8678: interix[3-9]*)
8679: hardcode_direct=no
8680: hardcode_shlibpath_var=no
8681: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8682: export_dynamic_flag_spec='${wl}-E'
8683: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8684: # Instead, shared libraries are loaded at an image base (0x10000000 by
8685: # default) and relocated if they conflict, which is a slow very memory
8686: # consuming and fragmenting process. To avoid this, we pick a random,
8687: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8688: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8689: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8690: archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8691: ;;
8692:
8693: gnu* | linux* | k*bsd*-gnu)
8694: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8695: tmp_addflag=
8696: case $cc_basename,$host_cpu in
8697: pgcc*) # Portland Group C compiler
8698: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8699: tmp_addflag=' $pic_flag'
1.25 millert 8700: ;;
1.27 millert 8701: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8702: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8703: tmp_addflag=' $pic_flag -Mnomain' ;;
8704: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8705: tmp_addflag=' -i_dynamic' ;;
8706: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8707: tmp_addflag=' -i_dynamic -nofor_main' ;;
8708: ifc* | ifort*) # Intel Fortran compiler
8709: tmp_addflag=' -nofor_main' ;;
1.25 millert 8710: esac
1.27 millert 8711: case `$CC -V 2>&1 | sed 5q` in
8712: *Sun\ C*) # Sun C 5.9
8713: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8714: tmp_sharedflag='-G' ;;
8715: *Sun\ F*) # Sun Fortran 8.3
8716: tmp_sharedflag='-G' ;;
8717: *)
8718: tmp_sharedflag='-shared' ;;
1.25 millert 8719: esac
1.27 millert 8720: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1.25 millert 8721:
1.27 millert 8722: if test $supports_anon_versioning = yes; then
8723: archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8724: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8725: $echo "local: *; };" >> $output_objdir/$libname.ver~
8726: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8727: fi
8728: else
8729: ld_shlibs=no
8730: fi
8731: ;;
1.23 millert 8732:
1.27 millert 8733: netbsd*)
8734: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8735: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8736: wlarc=
8737: else
8738: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8739: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8740: fi
8741: ;;
1.23 millert 8742:
1.27 millert 8743: solaris*)
8744: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8745: ld_shlibs=no
8746: cat <<EOF 1>&2
8747:
8748: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8749: *** create shared libraries on Solaris systems. Therefore, libtool
8750: *** is disabling shared libraries support. We urge you to upgrade GNU
8751: *** binutils to release 2.9.1 or newer. Another option is to modify
8752: *** your PATH or compiler configuration so that the native linker is
8753: *** used, and then restart.
8754:
8755: EOF
8756: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8757: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8758: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8759: else
8760: ld_shlibs=no
8761: fi
8762: ;;
8763:
8764: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8765: case `$LD -v 2>&1` in
8766: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8767: ld_shlibs=no
8768: cat <<_LT_EOF 1>&2
8769:
8770: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8771: *** reliably create shared libraries on SCO systems. Therefore, libtool
8772: *** is disabling shared libraries support. We urge you to upgrade GNU
8773: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8774: *** your PATH or compiler configuration so that the native linker is
8775: *** used, and then restart.
8776:
8777: _LT_EOF
8778: ;;
8779: *)
8780: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8781: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8782: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8783: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8784: else
8785: ld_shlibs=no
8786: fi
8787: ;;
8788: esac
8789: ;;
8790:
8791: sunos4*)
8792: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8793: wlarc=
8794: hardcode_direct=yes
8795: hardcode_shlibpath_var=no
8796: ;;
8797:
8798: *)
8799: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8800: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8802: else
8803: ld_shlibs=no
8804: fi
8805: ;;
8806: esac
8807:
8808: if test "$ld_shlibs" = no; then
8809: runpath_var=
8810: hardcode_libdir_flag_spec=
8811: export_dynamic_flag_spec=
8812: whole_archive_flag_spec=
8813: fi
8814: else
8815: # PORTME fill in a description of your system's linker (not GNU ld)
8816: case $host_os in
8817: aix3*)
8818: allow_undefined_flag=unsupported
8819: always_export_symbols=yes
8820: archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8821: # Note: this linker hardcodes the directories in LIBPATH if there
8822: # are no directories specified by -L.
8823: hardcode_minus_L=yes
8824: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8825: # Neither direct hardcoding nor static linking is supported with a
8826: # broken collect2.
8827: hardcode_direct=unsupported
8828: fi
8829: ;;
8830:
1.36 millert 8831: aix[4-9]*)
1.27 millert 8832: if test "$host_cpu" = ia64; then
8833: # On IA64, the linker does run time linking by default, so we don't
8834: # have to do anything special.
8835: aix_use_runtimelinking=no
8836: exp_sym_flag='-Bexport'
8837: no_entry_flag=""
8838: else
8839: # If we're using GNU nm, then we don't want the "-C" option.
8840: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8841: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8842: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8843: else
8844: export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8845: fi
8846: aix_use_runtimelinking=no
8847:
8848: # Test if we are trying to use run time linking or normal
8849: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8850: # need to do runtime linking.
1.36 millert 8851: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
1.27 millert 8852: for ld_flag in $LDFLAGS; do
8853: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8854: aix_use_runtimelinking=yes
8855: break
8856: fi
8857: done
8858: ;;
8859: esac
8860:
8861: exp_sym_flag='-bexport'
8862: no_entry_flag='-bnoentry'
8863: fi
8864:
8865: # When large executables or shared objects are built, AIX ld can
8866: # have problems creating the table of contents. If linking a library
8867: # or program results in "error TOC overflow" add -mminimal-toc to
8868: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8869: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8870:
8871: archive_cmds=''
8872: hardcode_direct=yes
8873: hardcode_libdir_separator=':'
8874: link_all_deplibs=yes
8875:
8876: if test "$GCC" = yes; then
8877: case $host_os in aix4.[012]|aix4.[012].*)
8878: # We only want to do this on AIX 4.2 and lower, the check
8879: # below for broken collect2 doesn't work under 4.3+
8880: collect2name=`${CC} -print-prog-name=collect2`
8881: if test -f "$collect2name" && \
8882: strings "$collect2name" | grep resolve_lib_name >/dev/null
8883: then
8884: # We have reworked collect2
8885: :
8886: else
8887: # We have old collect2
8888: hardcode_direct=unsupported
8889: # It fails to find uninstalled libraries when the uninstalled
8890: # path is not listed in the libpath. Setting hardcode_minus_L
8891: # to unsupported forces relinking
8892: hardcode_minus_L=yes
8893: hardcode_libdir_flag_spec='-L$libdir'
8894: hardcode_libdir_separator=
8895: fi
8896: ;;
8897: esac
8898: shared_flag='-shared'
8899: if test "$aix_use_runtimelinking" = yes; then
8900: shared_flag="$shared_flag "'${wl}-G'
8901: fi
8902: else
8903: # not using gcc
8904: if test "$host_cpu" = ia64; then
8905: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8906: # chokes on -Wl,-G. The following line is correct:
8907: shared_flag='-G'
8908: else
8909: if test "$aix_use_runtimelinking" = yes; then
8910: shared_flag='${wl}-G'
8911: else
8912: shared_flag='${wl}-bM:SRE'
8913: fi
8914: fi
8915: fi
8916:
8917: # It seems that -bexpall does not export symbols beginning with
8918: # underscore (_), so it is better to generate a list of symbols to export.
8919: always_export_symbols=yes
8920: if test "$aix_use_runtimelinking" = yes; then
8921: # Warning - without using the other runtime loading flags (-brtl),
8922: # -berok will link without error, but may produce a broken library.
8923: allow_undefined_flag='-berok'
8924: # Determine the default libpath from the value encoded in an empty executable.
8925: cat >conftest.$ac_ext <<_ACEOF
8926: /* confdefs.h. */
8927: _ACEOF
8928: cat confdefs.h >>conftest.$ac_ext
8929: cat >>conftest.$ac_ext <<_ACEOF
8930: /* end confdefs.h. */
8931:
8932: int
8933: main ()
8934: {
1.23 millert 8935:
1.25 millert 8936: ;
8937: return 0;
8938: }
8939: _ACEOF
8940: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 8941: if { (ac_try="$ac_link"
8942: case "(($ac_try" in
8943: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944: *) ac_try_echo=$ac_try;;
8945: esac
8946: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8947: (eval "$ac_link") 2>conftest.er1
1.25 millert 8948: ac_status=$?
8949: grep -v '^ *+' conftest.er1 >conftest.err
8950: rm -f conftest.er1
8951: cat conftest.err >&5
8952: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 8953: (exit $ac_status); } && {
8954: test -z "$ac_c_werror_flag" ||
8955: test ! -s conftest.err
8956: } && test -s conftest$ac_exeext &&
8957: $as_test_x conftest$ac_exeext; then
8958:
8959: lt_aix_libpath_sed='
8960: /Import File Strings/,/^$/ {
8961: /^0/ {
8962: s/^0 *\(.*\)$/\1/
8963: p
8964: }
8965: }'
8966: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8967: # Check for a 64-bit object if we didn't find anything.
8968: if test -z "$aix_libpath"; then
8969: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8970: fi
1.23 millert 8971: else
1.25 millert 8972: echo "$as_me: failed program was:" >&5
8973: sed 's/^/| /' conftest.$ac_ext >&5
8974:
1.23 millert 8975:
8976: fi
8977:
1.27 millert 8978: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8979: conftest$ac_exeext conftest.$ac_ext
8980: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.25 millert 8981:
1.27 millert 8982: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8983: archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8984: else
8985: if test "$host_cpu" = ia64; then
8986: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8987: allow_undefined_flag="-z nodefs"
8988: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8989: else
8990: # Determine the default libpath from the value encoded in an empty executable.
8991: cat >conftest.$ac_ext <<_ACEOF
8992: /* confdefs.h. */
8993: _ACEOF
8994: cat confdefs.h >>conftest.$ac_ext
8995: cat >>conftest.$ac_ext <<_ACEOF
8996: /* end confdefs.h. */
1.23 millert 8997:
1.27 millert 8998: int
8999: main ()
9000: {
1.23 millert 9001:
1.27 millert 9002: ;
9003: return 0;
9004: }
9005: _ACEOF
9006: rm -f conftest.$ac_objext conftest$ac_exeext
9007: if { (ac_try="$ac_link"
9008: case "(($ac_try" in
9009: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010: *) ac_try_echo=$ac_try;;
9011: esac
9012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013: (eval "$ac_link") 2>conftest.er1
9014: ac_status=$?
9015: grep -v '^ *+' conftest.er1 >conftest.err
9016: rm -f conftest.er1
9017: cat conftest.err >&5
9018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019: (exit $ac_status); } && {
9020: test -z "$ac_c_werror_flag" ||
9021: test ! -s conftest.err
9022: } && test -s conftest$ac_exeext &&
9023: $as_test_x conftest$ac_exeext; then
1.23 millert 9024:
1.27 millert 9025: lt_aix_libpath_sed='
9026: /Import File Strings/,/^$/ {
9027: /^0/ {
9028: s/^0 *\(.*\)$/\1/
9029: p
9030: }
9031: }'
9032: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9033: # Check for a 64-bit object if we didn't find anything.
9034: if test -z "$aix_libpath"; then
9035: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9036: fi
1.23 millert 9037: else
1.27 millert 9038: echo "$as_me: failed program was:" >&5
9039: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 9040:
9041:
1.27 millert 9042: fi
1.23 millert 9043:
1.27 millert 9044: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9045: conftest$ac_exeext conftest.$ac_ext
9046: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1.23 millert 9047:
1.27 millert 9048: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9049: # Warning - without using the other run time loading flags,
9050: # -berok will link without error, but may produce a broken library.
9051: no_undefined_flag=' ${wl}-bernotok'
9052: allow_undefined_flag=' ${wl}-berok'
9053: # Exported symbols can be pulled into shared objects from archives
9054: whole_archive_flag_spec='$convenience'
9055: archive_cmds_need_lc=yes
9056: # This is similar to how AIX traditionally builds its shared libraries.
9057: archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9058: fi
9059: fi
9060: ;;
1.23 millert 9061:
1.27 millert 9062: amigaos*)
9063: archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9064: hardcode_libdir_flag_spec='-L$libdir'
9065: hardcode_minus_L=yes
9066: # see comment about different semantics on the GNU ld section
9067: ld_shlibs=no
9068: ;;
1.23 millert 9069:
1.27 millert 9070: bsdi[45]*)
9071: export_dynamic_flag_spec=-rdynamic
9072: ;;
1.25 millert 9073:
1.27 millert 9074: cygwin* | mingw* | pw32*)
9075: # When not using gcc, we currently assume that we are using
9076: # Microsoft Visual C++.
9077: # hardcode_libdir_flag_spec is actually meaningless, as there is
9078: # no search path for DLLs.
9079: hardcode_libdir_flag_spec=' '
9080: allow_undefined_flag=unsupported
9081: # Tell ltmain to make .lib files, not .a files.
9082: libext=lib
9083: # Tell ltmain to make .dll files, not .so files.
9084: shrext_cmds=".dll"
9085: # FIXME: Setting linknames here is a bad hack.
9086: archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9087: # The linker will automatically build a .lib file if we build a DLL.
9088: old_archive_From_new_cmds='true'
9089: # FIXME: Should let the user specify the lib program.
9090: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9091: fix_srcfile_path='`cygpath -w "$srcfile"`'
9092: enable_shared_with_static_runtimes=yes
9093: ;;
1.25 millert 9094:
1.27 millert 9095: darwin* | rhapsody*)
9096: case $host_os in
9097: rhapsody* | darwin1.[012])
9098: allow_undefined_flag='${wl}-undefined ${wl}suppress'
9099: ;;
9100: *) # Darwin 1.3 on
9101: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9102: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9103: else
9104: case ${MACOSX_DEPLOYMENT_TARGET} in
9105: 10.[012])
9106: allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9107: ;;
9108: 10.*)
9109: allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9110: ;;
9111: esac
9112: fi
9113: ;;
9114: esac
9115: archive_cmds_need_lc=no
9116: hardcode_direct=no
9117: hardcode_automatic=yes
9118: hardcode_shlibpath_var=unsupported
9119: whole_archive_flag_spec=''
9120: link_all_deplibs=yes
9121: if test "$GCC" = yes ; then
9122: output_verbose_link_cmd='echo'
1.36 millert 9123: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9124: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9125: archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9126: module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1.27 millert 9127: else
9128: case $cc_basename in
9129: xlc*)
9130: output_verbose_link_cmd='echo'
9131: archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9132: module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9133: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9134: archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9135: module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9136: ;;
9137: *)
9138: ld_shlibs=no
9139: ;;
9140: esac
9141: fi
9142: ;;
1.25 millert 9143:
1.27 millert 9144: dgux*)
9145: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9146: hardcode_libdir_flag_spec='-L$libdir'
9147: hardcode_shlibpath_var=no
1.25 millert 9148: ;;
9149:
1.27 millert 9150: freebsd1*)
9151: ld_shlibs=no
9152: ;;
1.23 millert 9153:
1.27 millert 9154: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9155: # support. Future versions do this automatically, but an explicit c++rt0.o
9156: # does not break anything, and helps significantly (at the cost of a little
9157: # extra space).
9158: freebsd2.2*)
9159: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9160: hardcode_libdir_flag_spec='-R$libdir'
9161: hardcode_direct=yes
9162: hardcode_shlibpath_var=no
9163: ;;
1.23 millert 9164:
1.27 millert 9165: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9166: freebsd2*)
9167: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9168: hardcode_direct=yes
9169: hardcode_minus_L=yes
9170: hardcode_shlibpath_var=no
9171: ;;
1.23 millert 9172:
1.27 millert 9173: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9174: freebsd* | dragonfly*)
9175: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9176: hardcode_libdir_flag_spec='-R$libdir'
9177: hardcode_direct=yes
9178: hardcode_shlibpath_var=no
9179: ;;
1.23 millert 9180:
1.27 millert 9181: hpux9*)
9182: if test "$GCC" = yes; then
9183: archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9184: else
9185: archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9186: fi
9187: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9188: hardcode_libdir_separator=:
9189: hardcode_direct=yes
1.23 millert 9190:
1.27 millert 9191: # hardcode_minus_L: Not really in the search PATH,
9192: # but as the default location of the library.
9193: hardcode_minus_L=yes
9194: export_dynamic_flag_spec='${wl}-E'
9195: ;;
1.23 millert 9196:
1.27 millert 9197: hpux10*)
9198: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9199: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9200: else
9201: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9202: fi
9203: if test "$with_gnu_ld" = no; then
9204: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9205: hardcode_libdir_separator=:
1.23 millert 9206:
1.27 millert 9207: hardcode_direct=yes
9208: export_dynamic_flag_spec='${wl}-E'
1.23 millert 9209:
1.27 millert 9210: # hardcode_minus_L: Not really in the search PATH,
9211: # but as the default location of the library.
9212: hardcode_minus_L=yes
9213: fi
9214: ;;
1.23 millert 9215:
1.27 millert 9216: hpux11*)
9217: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9218: case $host_cpu in
9219: hppa*64*)
9220: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9221: ;;
9222: ia64*)
9223: archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9224: ;;
9225: *)
9226: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9227: ;;
9228: esac
9229: else
9230: case $host_cpu in
9231: hppa*64*)
9232: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9233: ;;
9234: ia64*)
9235: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9236: ;;
9237: *)
9238: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9239: ;;
9240: esac
9241: fi
9242: if test "$with_gnu_ld" = no; then
9243: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9244: hardcode_libdir_separator=:
1.23 millert 9245:
1.27 millert 9246: case $host_cpu in
9247: hppa*64*|ia64*)
9248: hardcode_libdir_flag_spec_ld='+b $libdir'
9249: hardcode_direct=no
9250: hardcode_shlibpath_var=no
9251: ;;
9252: *)
9253: hardcode_direct=yes
9254: export_dynamic_flag_spec='${wl}-E'
1.23 millert 9255:
1.27 millert 9256: # hardcode_minus_L: Not really in the search PATH,
9257: # but as the default location of the library.
9258: hardcode_minus_L=yes
9259: ;;
9260: esac
9261: fi
9262: ;;
1.23 millert 9263:
1.27 millert 9264: irix5* | irix6* | nonstopux*)
9265: if test "$GCC" = yes; then
9266: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9267: else
9268: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9269: hardcode_libdir_flag_spec_ld='-rpath $libdir'
9270: fi
9271: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9272: hardcode_libdir_separator=:
9273: link_all_deplibs=yes
9274: ;;
1.23 millert 9275:
1.27 millert 9276: netbsd*)
9277: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9278: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9279: else
9280: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9281: fi
9282: hardcode_libdir_flag_spec='-R$libdir'
9283: hardcode_direct=yes
9284: hardcode_shlibpath_var=no
9285: ;;
1.23 millert 9286:
1.27 millert 9287: newsos6)
9288: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9289: hardcode_direct=yes
9290: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291: hardcode_libdir_separator=:
9292: hardcode_shlibpath_var=no
9293: ;;
1.23 millert 9294:
1.27 millert 9295: openbsd*)
9296: if test -f /usr/libexec/ld.so; then
9297: hardcode_direct=yes
9298: hardcode_shlibpath_var=no
9299: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9300: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9301: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9302: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9303: export_dynamic_flag_spec='${wl}-E'
9304: else
9305: case $host_os in
9306: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9307: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308: hardcode_libdir_flag_spec='-R$libdir'
9309: ;;
9310: *)
9311: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313: ;;
9314: esac
9315: fi
9316: else
9317: ld_shlibs=no
9318: fi
9319: ;;
1.23 millert 9320:
1.27 millert 9321: os2*)
9322: hardcode_libdir_flag_spec='-L$libdir'
9323: hardcode_minus_L=yes
9324: allow_undefined_flag=unsupported
9325: archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9326: old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9327: ;;
1.23 millert 9328:
1.27 millert 9329: osf3*)
9330: if test "$GCC" = yes; then
9331: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9332: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9333: else
9334: allow_undefined_flag=' -expect_unresolved \*'
9335: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9336: fi
9337: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338: hardcode_libdir_separator=:
1.25 millert 9339: ;;
1.23 millert 9340:
1.27 millert 9341: osf4* | osf5*) # as osf3* with the addition of -msym flag
9342: if test "$GCC" = yes; then
9343: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9344: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9345: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9346: else
9347: allow_undefined_flag=' -expect_unresolved \*'
9348: archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
9349: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9350: $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
1.23 millert 9351:
1.27 millert 9352: # Both c and cxx compiler support -rpath directly
9353: hardcode_libdir_flag_spec='-rpath $libdir'
9354: fi
9355: hardcode_libdir_separator=:
9356: ;;
1.23 millert 9357:
1.27 millert 9358: solaris*)
9359: no_undefined_flag=' -z text'
9360: if test "$GCC" = yes; then
9361: wlarc='${wl}'
9362: archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9363: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9364: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9365: else
9366: wlarc=''
9367: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9368: archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9369: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9370: fi
9371: hardcode_libdir_flag_spec='-R$libdir'
9372: hardcode_shlibpath_var=no
9373: case $host_os in
9374: solaris2.[0-5] | solaris2.[0-5].*) ;;
9375: *)
9376: # The compiler driver will combine and reorder linker options,
9377: # but understands `-z linker_flag'. GCC discards it without `$wl',
9378: # but is careful enough not to reorder.
9379: # Supported since Solaris 2.6 (maybe 2.5.1?)
9380: if test "$GCC" = yes; then
9381: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9382: else
9383: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9384: fi
9385: ;;
9386: esac
9387: link_all_deplibs=yes
9388: ;;
1.23 millert 9389:
1.27 millert 9390: sunos4*)
9391: if test "x$host_vendor" = xsequent; then
9392: # Use $CC to link under sequent, because it throws in some extra .o
9393: # files that make .init and .fini sections work.
9394: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9395: else
9396: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9397: fi
9398: hardcode_libdir_flag_spec='-L$libdir'
9399: hardcode_direct=yes
9400: hardcode_minus_L=yes
9401: hardcode_shlibpath_var=no
9402: ;;
1.23 millert 9403:
1.27 millert 9404: sysv4)
9405: case $host_vendor in
9406: sni)
9407: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9408: hardcode_direct=yes # is this really true???
9409: ;;
9410: siemens)
9411: ## LD is ld it makes a PLAMLIB
9412: ## CC just makes a GrossModule.
9413: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9414: reload_cmds='$CC -r -o $output$reload_objs'
9415: hardcode_direct=no
9416: ;;
9417: motorola)
9418: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9419: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9420: ;;
9421: esac
9422: runpath_var='LD_RUN_PATH'
9423: hardcode_shlibpath_var=no
9424: ;;
1.23 millert 9425:
1.27 millert 9426: sysv4.3*)
9427: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428: hardcode_shlibpath_var=no
9429: export_dynamic_flag_spec='-Bexport'
9430: ;;
1.23 millert 9431:
1.27 millert 9432: sysv4*MP*)
9433: if test -d /usr/nec; then
9434: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9435: hardcode_shlibpath_var=no
9436: runpath_var=LD_RUN_PATH
9437: hardcode_runpath_var=yes
9438: ld_shlibs=yes
9439: fi
9440: ;;
1.23 millert 9441:
1.27 millert 9442: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9443: no_undefined_flag='${wl}-z,text'
9444: archive_cmds_need_lc=no
9445: hardcode_shlibpath_var=no
9446: runpath_var='LD_RUN_PATH'
1.23 millert 9447:
1.27 millert 9448: if test "$GCC" = yes; then
9449: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9450: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9451: else
9452: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9454: fi
9455: ;;
1.23 millert 9456:
1.27 millert 9457: sysv5* | sco3.2v5* | sco5v6*)
9458: # Note: We can NOT use -z defs as we might desire, because we do not
9459: # link with -lc, and that would cause any symbols used from libc to
9460: # always be unresolved, which means just about no library would
9461: # ever link correctly. If we're not using GNU ld we use -z text
9462: # though, which does catch some bad symbols but isn't as heavy-handed
9463: # as -z defs.
9464: no_undefined_flag='${wl}-z,text'
9465: allow_undefined_flag='${wl}-z,nodefs'
9466: archive_cmds_need_lc=no
9467: hardcode_shlibpath_var=no
9468: hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9469: hardcode_libdir_separator=':'
9470: link_all_deplibs=yes
9471: export_dynamic_flag_spec='${wl}-Bexport'
9472: runpath_var='LD_RUN_PATH'
1.23 millert 9473:
1.27 millert 9474: if test "$GCC" = yes; then
9475: archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9476: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9477: else
9478: archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9480: fi
9481: ;;
1.23 millert 9482:
1.27 millert 9483: uts4*)
9484: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9485: hardcode_libdir_flag_spec='-L$libdir'
9486: hardcode_shlibpath_var=no
9487: ;;
1.23 millert 9488:
1.27 millert 9489: *)
9490: ld_shlibs=no
9491: ;;
9492: esac
9493: fi
1.23 millert 9494:
1.27 millert 9495: { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9496: echo "${ECHO_T}$ld_shlibs" >&6; }
9497: test "$ld_shlibs" = no && can_build_shared=no
1.23 millert 9498:
1.27 millert 9499: #
9500: # Do we need to explicitly link libc?
9501: #
9502: case "x$archive_cmds_need_lc" in
9503: x|xyes)
9504: # Assume -lc should be added
9505: archive_cmds_need_lc=yes
1.23 millert 9506:
1.27 millert 9507: if test "$enable_shared" = yes && test "$GCC" = yes; then
9508: case $archive_cmds in
9509: *'~'*)
9510: # FIXME: we may have to deal with multi-command sequences.
9511: ;;
9512: '$CC '*)
9513: # Test whether the compiler implicitly links with -lc since on some
9514: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9515: # to ld, don't add -lc before -lgcc.
9516: { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9517: echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9518: $rm conftest*
9519: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1.25 millert 9520:
1.27 millert 9521: if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9522: (eval $ac_compile) 2>&5
9523: ac_status=$?
9524: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525: (exit $ac_status); } 2>conftest.err; then
9526: soname=conftest
9527: lib=conftest
9528: libobjs=conftest.$ac_objext
9529: deplibs=
9530: wl=$lt_prog_compiler_wl
9531: pic_flag=$lt_prog_compiler_pic
9532: compiler_flags=-v
9533: linker_flags=-v
9534: verstring=
9535: output_objdir=.
9536: libname=conftest
9537: lt_save_allow_undefined_flag=$allow_undefined_flag
9538: allow_undefined_flag=
9539: if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9540: (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9541: ac_status=$?
9542: echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543: (exit $ac_status); }
9544: then
9545: archive_cmds_need_lc=no
9546: else
9547: archive_cmds_need_lc=yes
9548: fi
9549: allow_undefined_flag=$lt_save_allow_undefined_flag
9550: else
9551: cat conftest.err 1>&5
9552: fi
9553: $rm conftest*
9554: { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9555: echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9556: ;;
9557: esac
9558: fi
9559: ;;
9560: esac
1.23 millert 9561:
1.27 millert 9562: { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9563: echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9564: library_names_spec=
9565: libname_spec='lib$name'
9566: soname_spec=
9567: shrext_cmds=".so"
9568: postinstall_cmds=
9569: postuninstall_cmds=
9570: finish_cmds=
9571: finish_eval=
9572: shlibpath_var=
9573: shlibpath_overrides_runpath=unknown
9574: version_type=none
9575: dynamic_linker="$host_os ld.so"
9576: sys_lib_dlsearch_path_spec="/lib /usr/lib"
1.23 millert 9577:
1.27 millert 9578: if test "$GCC" = yes; then
9579: case $host_os in
9580: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9581: *) lt_awk_arg="/^libraries:/" ;;
9582: esac
9583: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9584: if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9585: # if the path contains ";" then we assume it to be the separator
9586: # otherwise default to the standard path separator (i.e. ":") - it is
9587: # assumed that no part of a normal pathname contains ";" but that should
9588: # okay in the real world where ";" in dirpaths is itself problematic.
9589: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9590: else
9591: lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9592: fi
9593: # Ok, now we have the path, separated by spaces, we can step through it
9594: # and add multilib dir if necessary.
9595: lt_tmp_lt_search_path_spec=
9596: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9597: for lt_sys_path in $lt_search_path_spec; do
9598: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9599: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9600: else
9601: test -d "$lt_sys_path" && \
9602: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9603: fi
9604: done
9605: lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9606: BEGIN {RS=" "; FS="/|\n";} {
9607: lt_foo="";
9608: lt_count=0;
9609: for (lt_i = NF; lt_i > 0; lt_i--) {
9610: if ($lt_i != "" && $lt_i != ".") {
9611: if ($lt_i == "..") {
9612: lt_count++;
9613: } else {
9614: if (lt_count == 0) {
9615: lt_foo="/" $lt_i lt_foo;
9616: } else {
9617: lt_count--;
9618: }
9619: }
9620: }
9621: }
9622: if (lt_foo != "") { lt_freq[lt_foo]++; }
9623: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9624: }'`
9625: sys_lib_search_path_spec=`echo $lt_search_path_spec`
1.25 millert 9626: else
1.27 millert 9627: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1.25 millert 9628: fi
1.27 millert 9629: need_lib_prefix=no
9630: hardcode_into_libs=no
1.25 millert 9631:
1.27 millert 9632: # when you set need_version to no, make sure it does not cause -set_version
9633: # flags to be left without arguments
9634: need_version=no
1.25 millert 9635:
1.27 millert 9636: case $host_os in
9637: aix3*)
9638: version_type=linux
9639: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9640: shlibpath_var=LIBPATH
1.25 millert 9641:
1.27 millert 9642: # AIX 3 has no versioning support, so we append a major version to the name.
9643: soname_spec='${libname}${release}${shared_ext}$major'
9644: ;;
1.23 millert 9645:
1.36 millert 9646: aix[4-9]*)
1.27 millert 9647: version_type=linux
9648: need_lib_prefix=no
9649: need_version=no
9650: hardcode_into_libs=yes
9651: if test "$host_cpu" = ia64; then
9652: # AIX 5 supports IA64
9653: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9654: shlibpath_var=LD_LIBRARY_PATH
9655: else
9656: # With GCC up to 2.95.x, collect2 would create an import file
9657: # for dependence libraries. The import file would start with
9658: # the line `#! .'. This would cause the generated library to
9659: # depend on `.', always an invalid library. This was fixed in
9660: # development snapshots of GCC prior to 3.0.
9661: case $host_os in
9662: aix4 | aix4.[01] | aix4.[01].*)
9663: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9664: echo ' yes '
9665: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9666: :
9667: else
9668: can_build_shared=no
9669: fi
9670: ;;
9671: esac
9672: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9673: # soname into executable. Probably we can add versioning support to
9674: # collect2, so additional links can be useful in future.
9675: if test "$aix_use_runtimelinking" = yes; then
9676: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9677: # instead of lib<name>.a to let people know that these are not
9678: # typical AIX shared libraries.
9679: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9680: else
9681: # We preserve .a as extension for shared libraries through AIX4.2
9682: # and later when we are not doing run time linking.
9683: library_names_spec='${libname}${release}.a $libname.a'
9684: soname_spec='${libname}${release}${shared_ext}$major'
9685: fi
9686: shlibpath_var=LIBPATH
9687: fi
9688: ;;
1.23 millert 9689:
1.27 millert 9690: amigaos*)
9691: library_names_spec='$libname.ixlibrary $libname.a'
9692: # Create ${libname}_ixlibrary.a entries in /sys/libs.
9693: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9694: ;;
1.23 millert 9695:
1.27 millert 9696: beos*)
9697: library_names_spec='${libname}${shared_ext}'
9698: dynamic_linker="$host_os ld.so"
9699: shlibpath_var=LIBRARY_PATH
9700: ;;
1.23 millert 9701:
1.27 millert 9702: bsdi[45]*)
9703: version_type=linux
9704: need_version=no
9705: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9706: soname_spec='${libname}${release}${shared_ext}$major'
9707: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9708: shlibpath_var=LD_LIBRARY_PATH
9709: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9710: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9711: # the default ld.so.conf also contains /usr/contrib/lib and
9712: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9713: # libtool to hard-code these into programs
9714: ;;
1.23 millert 9715:
1.27 millert 9716: cygwin* | mingw* | pw32*)
9717: version_type=windows
9718: shrext_cmds=".dll"
9719: need_version=no
9720: need_lib_prefix=no
1.23 millert 9721:
1.27 millert 9722: case $GCC,$host_os in
9723: yes,cygwin* | yes,mingw* | yes,pw32*)
9724: library_names_spec='$libname.dll.a'
9725: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9726: postinstall_cmds='base_file=`basename \${file}`~
9727: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9728: dldir=$destdir/`dirname \$dlpath`~
9729: test -d \$dldir || mkdir -p \$dldir~
9730: $install_prog $dir/$dlname \$dldir/$dlname~
9731: chmod a+x \$dldir/$dlname'
9732: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9733: dlpath=$dir/\$dldll~
9734: $rm \$dlpath'
9735: shlibpath_overrides_runpath=yes
1.23 millert 9736:
1.27 millert 9737: case $host_os in
9738: cygwin*)
9739: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9740: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9741: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9742: ;;
9743: mingw*)
9744: # MinGW DLLs use traditional 'lib' prefix
9745: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9746: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9747: if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9748: # It is most probably a Windows format PATH printed by
9749: # mingw gcc, but we are running on Cygwin. Gcc prints its search
9750: # path with ; separators, and with drive letters. We can handle the
9751: # drive letters (cygwin fileutils understands them), so leave them,
9752: # especially as we might pass files found there to a mingw objdump,
9753: # which wouldn't understand a cygwinified path. Ahh.
9754: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9755: else
9756: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9757: fi
9758: ;;
9759: pw32*)
9760: # pw32 DLLs use 'pw' prefix rather than 'lib'
9761: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9762: ;;
9763: esac
9764: ;;
1.23 millert 9765:
1.27 millert 9766: *)
9767: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9768: ;;
9769: esac
9770: dynamic_linker='Win32 ld.exe'
9771: # FIXME: first we should search . and the directory the executable is in
9772: shlibpath_var=PATH
9773: ;;
1.23 millert 9774:
1.27 millert 9775: darwin* | rhapsody*)
9776: dynamic_linker="$host_os dyld"
9777: version_type=darwin
9778: need_lib_prefix=no
9779: need_version=no
9780: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9781: soname_spec='${libname}${release}${major}$shared_ext'
9782: shlibpath_overrides_runpath=yes
9783: shlibpath_var=DYLD_LIBRARY_PATH
9784: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1.23 millert 9785:
1.27 millert 9786: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9787: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9788: ;;
1.23 millert 9789:
1.27 millert 9790: dgux*)
9791: version_type=linux
9792: need_lib_prefix=no
9793: need_version=no
9794: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9795: soname_spec='${libname}${release}${shared_ext}$major'
9796: shlibpath_var=LD_LIBRARY_PATH
9797: ;;
1.23 millert 9798:
1.27 millert 9799: freebsd1*)
9800: dynamic_linker=no
9801: ;;
1.23 millert 9802:
1.27 millert 9803: freebsd* | dragonfly*)
9804: # DragonFly does not have aout. When/if they implement a new
9805: # versioning mechanism, adjust this.
9806: if test -x /usr/bin/objformat; then
9807: objformat=`/usr/bin/objformat`
9808: else
9809: case $host_os in
9810: freebsd[123]*) objformat=aout ;;
9811: *) objformat=elf ;;
9812: esac
9813: fi
9814: version_type=freebsd-$objformat
9815: case $version_type in
9816: freebsd-elf*)
9817: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9818: need_version=no
9819: need_lib_prefix=no
9820: ;;
9821: freebsd-*)
9822: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9823: need_version=no
9824: ;;
9825: esac
9826: shlibpath_var=LD_LIBRARY_PATH
9827: case $host_os in
9828: freebsd2*)
9829: shlibpath_overrides_runpath=yes
9830: ;;
9831: freebsd3.[01]* | freebsdelf3.[01]*)
9832: shlibpath_overrides_runpath=yes
9833: hardcode_into_libs=yes
9834: ;;
9835: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9836: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9837: shlibpath_overrides_runpath=no
9838: hardcode_into_libs=yes
9839: ;;
9840: *) # from 4.6 on, and DragonFly
9841: shlibpath_overrides_runpath=yes
9842: hardcode_into_libs=yes
9843: ;;
9844: esac
9845: ;;
1.23 millert 9846:
1.27 millert 9847: gnu*)
9848: version_type=linux
9849: need_lib_prefix=no
9850: need_version=no
9851: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9852: soname_spec='${libname}${release}${shared_ext}$major'
9853: shlibpath_var=LD_LIBRARY_PATH
9854: hardcode_into_libs=yes
9855: ;;
1.23 millert 9856:
1.27 millert 9857: hpux9* | hpux10* | hpux11*)
9858: # Give a soname corresponding to the major version so that dld.sl refuses to
9859: # link against other versions.
9860: version_type=sunos
9861: need_lib_prefix=no
9862: need_version=no
9863: case $host_cpu in
9864: ia64*)
9865: shrext_cmds='.so'
9866: hardcode_into_libs=yes
9867: dynamic_linker="$host_os dld.so"
9868: shlibpath_var=LD_LIBRARY_PATH
9869: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9870: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9871: soname_spec='${libname}${release}${shared_ext}$major'
9872: if test "X$HPUX_IA64_MODE" = X32; then
9873: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9874: else
9875: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9876: fi
9877: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9878: ;;
9879: hppa*64*)
9880: shrext_cmds='.sl'
9881: hardcode_into_libs=yes
9882: dynamic_linker="$host_os dld.sl"
9883: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9884: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9885: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9886: soname_spec='${libname}${release}${shared_ext}$major'
9887: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9888: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9889: ;;
9890: *)
9891: shrext_cmds='.sl'
9892: dynamic_linker="$host_os dld.sl"
9893: shlibpath_var=SHLIB_PATH
9894: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9895: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9896: soname_spec='${libname}${release}${shared_ext}$major'
9897: ;;
9898: esac
9899: # HP-UX runs *really* slowly unless shared libraries are mode 555.
9900: postinstall_cmds='chmod 555 $lib'
9901: ;;
1.23 millert 9902:
1.27 millert 9903: interix[3-9]*)
9904: version_type=linux
9905: need_lib_prefix=no
9906: need_version=no
9907: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9908: soname_spec='${libname}${release}${shared_ext}$major'
9909: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9910: shlibpath_var=LD_LIBRARY_PATH
9911: shlibpath_overrides_runpath=no
9912: hardcode_into_libs=yes
9913: ;;
1.23 millert 9914:
1.27 millert 9915: irix5* | irix6* | nonstopux*)
9916: case $host_os in
9917: nonstopux*) version_type=nonstopux ;;
9918: *)
9919: if test "$lt_cv_prog_gnu_ld" = yes; then
9920: version_type=linux
9921: else
9922: version_type=irix
9923: fi ;;
9924: esac
9925: need_lib_prefix=no
9926: need_version=no
9927: soname_spec='${libname}${release}${shared_ext}$major'
9928: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9929: case $host_os in
9930: irix5* | nonstopux*)
9931: libsuff= shlibsuff=
9932: ;;
9933: *)
9934: case $LD in # libtool.m4 will add one of these switches to LD
9935: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9936: libsuff= shlibsuff= libmagic=32-bit;;
9937: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9938: libsuff=32 shlibsuff=N32 libmagic=N32;;
9939: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9940: libsuff=64 shlibsuff=64 libmagic=64-bit;;
9941: *) libsuff= shlibsuff= libmagic=never-match;;
9942: esac
9943: ;;
9944: esac
9945: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9946: shlibpath_overrides_runpath=no
9947: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9948: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9949: hardcode_into_libs=yes
9950: ;;
1.23 millert 9951:
1.27 millert 9952: # No shared lib support for Linux oldld, aout, or coff.
9953: linux*oldld* | linux*aout* | linux*coff*)
9954: dynamic_linker=no
1.25 millert 9955: ;;
1.23 millert 9956:
1.27 millert 9957: # This must be Linux ELF.
9958: linux* | k*bsd*-gnu)
9959: version_type=linux
9960: need_lib_prefix=no
9961: need_version=no
9962: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9963: soname_spec='${libname}${release}${shared_ext}$major'
9964: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9965: shlibpath_var=LD_LIBRARY_PATH
9966: shlibpath_overrides_runpath=no
9967: # This implies no fast_install, which is unacceptable.
9968: # Some rework will be needed to allow for fast_install
9969: # before this can be enabled.
9970: hardcode_into_libs=yes
1.23 millert 9971:
1.27 millert 9972: # Append ld.so.conf contents to the search path
9973: if test -f /etc/ld.so.conf; then
9974: lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9975: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9976: fi
1.23 millert 9977:
1.27 millert 9978: # We used to test for /lib/ld.so.1 and disable shared libraries on
9979: # powerpc, because MkLinux only supported shared libraries with the
9980: # GNU dynamic linker. Since this was broken with cross compilers,
9981: # most powerpc-linux boxes support dynamic linking these days and
9982: # people can always --disable-shared, the test was removed, and we
9983: # assume the GNU/Linux dynamic linker is in use.
9984: dynamic_linker='GNU/Linux ld.so'
9985: ;;
1.23 millert 9986:
1.27 millert 9987: netbsd*)
9988: version_type=sunos
9989: need_lib_prefix=no
9990: need_version=no
9991: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9992: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9993: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9994: dynamic_linker='NetBSD (a.out) ld.so'
9995: else
9996: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9997: soname_spec='${libname}${release}${shared_ext}$major'
9998: dynamic_linker='NetBSD ld.elf_so'
9999: fi
10000: shlibpath_var=LD_LIBRARY_PATH
10001: shlibpath_overrides_runpath=yes
10002: hardcode_into_libs=yes
10003: ;;
1.23 millert 10004:
1.27 millert 10005: newsos6)
10006: version_type=linux
10007: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10008: shlibpath_var=LD_LIBRARY_PATH
10009: shlibpath_overrides_runpath=yes
10010: ;;
1.23 millert 10011:
1.27 millert 10012: nto-qnx*)
10013: version_type=linux
10014: need_lib_prefix=no
10015: need_version=no
10016: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10017: soname_spec='${libname}${release}${shared_ext}$major'
10018: shlibpath_var=LD_LIBRARY_PATH
10019: shlibpath_overrides_runpath=yes
10020: ;;
1.23 millert 10021:
1.27 millert 10022: openbsd*)
10023: version_type=sunos
10024: sys_lib_dlsearch_path_spec="/usr/lib"
10025: need_lib_prefix=no
10026: need_version=no
10027: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10028: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10029: shlibpath_var=LD_LIBRARY_PATH
10030: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10031: case $host_os in
10032: openbsd2.[89] | openbsd2.[89].*)
10033: shlibpath_overrides_runpath=no
10034: ;;
10035: *)
10036: shlibpath_overrides_runpath=yes
10037: ;;
10038: esac
10039: else
10040: shlibpath_overrides_runpath=yes
10041: fi
10042: ;;
1.23 millert 10043:
1.27 millert 10044: os2*)
10045: libname_spec='$name'
10046: shrext_cmds=".dll"
10047: need_lib_prefix=no
10048: library_names_spec='$libname${shared_ext} $libname.a'
10049: dynamic_linker='OS/2 ld.exe'
10050: shlibpath_var=LIBPATH
10051: ;;
1.23 millert 10052:
1.27 millert 10053: osf3* | osf4* | osf5*)
10054: version_type=osf
10055: need_lib_prefix=no
10056: need_version=no
10057: soname_spec='${libname}${release}${shared_ext}$major'
10058: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059: shlibpath_var=LD_LIBRARY_PATH
10060: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10061: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10062: ;;
1.23 millert 10063:
1.27 millert 10064: rdos*)
10065: dynamic_linker=no
10066: ;;
1.23 millert 10067:
1.27 millert 10068: solaris*)
10069: version_type=linux
10070: need_lib_prefix=no
10071: need_version=no
10072: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073: soname_spec='${libname}${release}${shared_ext}$major'
10074: shlibpath_var=LD_LIBRARY_PATH
10075: shlibpath_overrides_runpath=yes
10076: hardcode_into_libs=yes
10077: # ldd complains unless libraries are executable
10078: postinstall_cmds='chmod +x $lib'
10079: ;;
1.23 millert 10080:
1.27 millert 10081: sunos4*)
10082: version_type=sunos
10083: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10084: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10085: shlibpath_var=LD_LIBRARY_PATH
10086: shlibpath_overrides_runpath=yes
10087: if test "$with_gnu_ld" = yes; then
10088: need_lib_prefix=no
10089: fi
10090: need_version=no
10091: ;;
1.23 millert 10092:
1.27 millert 10093: sysv4 | sysv4.3*)
10094: version_type=linux
10095: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10096: soname_spec='${libname}${release}${shared_ext}$major'
10097: shlibpath_var=LD_LIBRARY_PATH
10098: case $host_vendor in
10099: sni)
10100: shlibpath_overrides_runpath=no
10101: need_lib_prefix=no
10102: export_dynamic_flag_spec='${wl}-Blargedynsym'
10103: runpath_var=LD_RUN_PATH
10104: ;;
10105: siemens)
10106: need_lib_prefix=no
10107: ;;
10108: motorola)
10109: need_lib_prefix=no
10110: need_version=no
10111: shlibpath_overrides_runpath=no
10112: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10113: ;;
10114: esac
1.25 millert 10115: ;;
10116:
1.27 millert 10117: sysv4*MP*)
10118: if test -d /usr/nec ;then
10119: version_type=linux
10120: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10121: soname_spec='$libname${shared_ext}.$major'
10122: shlibpath_var=LD_LIBRARY_PATH
10123: fi
10124: ;;
1.25 millert 10125:
1.27 millert 10126: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10127: version_type=freebsd-elf
10128: need_lib_prefix=no
10129: need_version=no
10130: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10131: soname_spec='${libname}${release}${shared_ext}$major'
10132: shlibpath_var=LD_LIBRARY_PATH
10133: hardcode_into_libs=yes
10134: if test "$with_gnu_ld" = yes; then
10135: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10136: shlibpath_overrides_runpath=no
10137: else
10138: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10139: shlibpath_overrides_runpath=yes
10140: case $host_os in
10141: sco3.2v5*)
10142: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10143: ;;
10144: esac
10145: fi
10146: sys_lib_dlsearch_path_spec='/usr/lib'
1.25 millert 10147: ;;
1.23 millert 10148:
1.27 millert 10149: uts4*)
10150: version_type=linux
10151: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10152: soname_spec='${libname}${release}${shared_ext}$major'
10153: shlibpath_var=LD_LIBRARY_PATH
10154: ;;
1.23 millert 10155:
1.25 millert 10156: *)
1.27 millert 10157: dynamic_linker=no
1.25 millert 10158: ;;
10159: esac
1.27 millert 10160: { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10161: echo "${ECHO_T}$dynamic_linker" >&6; }
10162: test "$dynamic_linker" = no && can_build_shared=no
1.23 millert 10163:
1.36 millert 10164: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10165: echo $ECHO_N "(cached) $ECHO_C" >&6
10166: else
10167: lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10168: fi
10169:
10170: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10171: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10172: echo $ECHO_N "(cached) $ECHO_C" >&6
10173: else
10174: lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10175: fi
10176:
10177: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10178:
1.27 millert 10179: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10180: if test "$GCC" = yes; then
10181: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1.25 millert 10182: fi
10183:
1.27 millert 10184: { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10185: echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10186: hardcode_action=
10187: if test -n "$hardcode_libdir_flag_spec" || \
10188: test -n "$runpath_var" || \
10189: test "X$hardcode_automatic" = "Xyes" ; then
1.23 millert 10190:
1.32 millert 10191: # We can hardcode non-existent directories.
1.27 millert 10192: if test "$hardcode_direct" != no &&
10193: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10194: # have to relink, otherwise we might link with an installed library
10195: # when we should be linking with a yet-to-be-installed one
10196: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10197: test "$hardcode_minus_L" != no; then
10198: # Linking always hardcodes the temporary library directory.
10199: hardcode_action=relink
1.25 millert 10200: else
1.27 millert 10201: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10202: hardcode_action=immediate
1.25 millert 10203: fi
1.27 millert 10204: else
10205: # We cannot hardcode anything, or else we can only hardcode existing
10206: # directories.
10207: hardcode_action=unsupported
1.23 millert 10208: fi
1.27 millert 10209: { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10210: echo "${ECHO_T}$hardcode_action" >&6; }
1.23 millert 10211:
1.27 millert 10212: if test "$hardcode_action" = relink; then
10213: # Fast installation is not supported
10214: enable_fast_install=no
10215: elif test "$shlibpath_overrides_runpath" = yes ||
10216: test "$enable_shared" = no; then
10217: # Fast installation is not necessary
10218: enable_fast_install=needless
10219: fi
1.25 millert 10220:
1.27 millert 10221: striplib=
10222: old_striplib=
10223: { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10224: echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10225: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10226: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10227: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10228: { echo "$as_me:$LINENO: result: yes" >&5
10229: echo "${ECHO_T}yes" >&6; }
10230: else
10231: # FIXME - insert some real tests, host_os isn't really good enough
10232: case $host_os in
10233: darwin*)
10234: if test -n "$STRIP" ; then
10235: striplib="$STRIP -x"
10236: old_striplib="$STRIP -S"
10237: { echo "$as_me:$LINENO: result: yes" >&5
10238: echo "${ECHO_T}yes" >&6; }
10239: else
10240: { echo "$as_me:$LINENO: result: no" >&5
10241: echo "${ECHO_T}no" >&6; }
10242: fi
10243: ;;
10244: *)
10245: { echo "$as_me:$LINENO: result: no" >&5
10246: echo "${ECHO_T}no" >&6; }
10247: ;;
10248: esac
10249: fi
1.25 millert 10250:
1.27 millert 10251: if test "x$enable_dlopen" != xyes; then
10252: enable_dlopen=unknown
10253: enable_dlopen_self=unknown
10254: enable_dlopen_self_static=unknown
10255: else
10256: lt_cv_dlopen=no
10257: lt_cv_dlopen_libs=
1.25 millert 10258:
1.27 millert 10259: case $host_os in
10260: beos*)
10261: lt_cv_dlopen="load_add_on"
10262: lt_cv_dlopen_libs=
10263: lt_cv_dlopen_self=yes
10264: ;;
1.23 millert 10265:
1.27 millert 10266: mingw* | pw32*)
10267: lt_cv_dlopen="LoadLibrary"
10268: lt_cv_dlopen_libs=
10269: ;;
1.23 millert 10270:
1.27 millert 10271: cygwin*)
10272: lt_cv_dlopen="dlopen"
10273: lt_cv_dlopen_libs=
10274: ;;
1.23 millert 10275:
1.27 millert 10276: darwin*)
10277: # if libdl is installed we need to link against it
10278: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10279: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10280: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10281: echo $ECHO_N "(cached) $ECHO_C" >&6
10282: else
10283: ac_check_lib_save_LIBS=$LIBS
10284: LIBS="-ldl $LIBS"
10285: cat >conftest.$ac_ext <<_ACEOF
10286: /* confdefs.h. */
10287: _ACEOF
10288: cat confdefs.h >>conftest.$ac_ext
10289: cat >>conftest.$ac_ext <<_ACEOF
10290: /* end confdefs.h. */
1.23 millert 10291:
1.27 millert 10292: /* Override any GCC internal prototype to avoid an error.
10293: Use char because int might match the return type of a GCC
10294: builtin and then its argument prototype would still apply. */
10295: #ifdef __cplusplus
10296: extern "C"
10297: #endif
10298: char dlopen ();
10299: int
10300: main ()
10301: {
10302: return dlopen ();
10303: ;
10304: return 0;
10305: }
10306: _ACEOF
10307: rm -f conftest.$ac_objext conftest$ac_exeext
10308: if { (ac_try="$ac_link"
10309: case "(($ac_try" in
10310: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10311: *) ac_try_echo=$ac_try;;
10312: esac
10313: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10314: (eval "$ac_link") 2>conftest.er1
10315: ac_status=$?
10316: grep -v '^ *+' conftest.er1 >conftest.err
10317: rm -f conftest.er1
10318: cat conftest.err >&5
10319: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320: (exit $ac_status); } && {
10321: test -z "$ac_c_werror_flag" ||
10322: test ! -s conftest.err
10323: } && test -s conftest$ac_exeext &&
10324: $as_test_x conftest$ac_exeext; then
10325: ac_cv_lib_dl_dlopen=yes
10326: else
10327: echo "$as_me: failed program was:" >&5
10328: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 10329:
1.27 millert 10330: ac_cv_lib_dl_dlopen=no
10331: fi
1.23 millert 10332:
1.27 millert 10333: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334: conftest$ac_exeext conftest.$ac_ext
10335: LIBS=$ac_check_lib_save_LIBS
10336: fi
10337: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10338: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10339: if test $ac_cv_lib_dl_dlopen = yes; then
10340: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10341: else
1.23 millert 10342:
1.27 millert 10343: lt_cv_dlopen="dyld"
10344: lt_cv_dlopen_libs=
10345: lt_cv_dlopen_self=yes
1.23 millert 10346:
1.27 millert 10347: fi
1.23 millert 10348:
1.27 millert 10349: ;;
1.23 millert 10350:
1.27 millert 10351: *)
10352: { echo "$as_me:$LINENO: checking for shl_load" >&5
10353: echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10354: if test "${ac_cv_func_shl_load+set}" = set; then
10355: echo $ECHO_N "(cached) $ECHO_C" >&6
10356: else
10357: cat >conftest.$ac_ext <<_ACEOF
10358: /* confdefs.h. */
10359: _ACEOF
10360: cat confdefs.h >>conftest.$ac_ext
10361: cat >>conftest.$ac_ext <<_ACEOF
10362: /* end confdefs.h. */
10363: /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10364: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10365: #define shl_load innocuous_shl_load
1.23 millert 10366:
1.27 millert 10367: /* System header to define __stub macros and hopefully few prototypes,
10368: which can conflict with char shl_load (); below.
10369: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10370: <limits.h> exists even on freestanding compilers. */
1.23 millert 10371:
1.27 millert 10372: #ifdef __STDC__
10373: # include <limits.h>
10374: #else
10375: # include <assert.h>
10376: #endif
1.23 millert 10377:
1.27 millert 10378: #undef shl_load
1.23 millert 10379:
1.27 millert 10380: /* Override any GCC internal prototype to avoid an error.
10381: Use char because int might match the return type of a GCC
10382: builtin and then its argument prototype would still apply. */
10383: #ifdef __cplusplus
10384: extern "C"
10385: #endif
10386: char shl_load ();
10387: /* The GNU C library defines this for functions which it implements
10388: to always fail with ENOSYS. Some functions are actually named
10389: something starting with __ and the normal name is an alias. */
10390: #if defined __stub_shl_load || defined __stub___shl_load
10391: choke me
10392: #endif
1.23 millert 10393:
1.27 millert 10394: int
10395: main ()
10396: {
10397: return shl_load ();
10398: ;
10399: return 0;
10400: }
10401: _ACEOF
10402: rm -f conftest.$ac_objext conftest$ac_exeext
10403: if { (ac_try="$ac_link"
10404: case "(($ac_try" in
10405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406: *) ac_try_echo=$ac_try;;
10407: esac
10408: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409: (eval "$ac_link") 2>conftest.er1
10410: ac_status=$?
10411: grep -v '^ *+' conftest.er1 >conftest.err
10412: rm -f conftest.er1
10413: cat conftest.err >&5
10414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415: (exit $ac_status); } && {
10416: test -z "$ac_c_werror_flag" ||
10417: test ! -s conftest.err
10418: } && test -s conftest$ac_exeext &&
10419: $as_test_x conftest$ac_exeext; then
10420: ac_cv_func_shl_load=yes
10421: else
10422: echo "$as_me: failed program was:" >&5
10423: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 10424:
1.27 millert 10425: ac_cv_func_shl_load=no
10426: fi
1.23 millert 10427:
1.27 millert 10428: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429: conftest$ac_exeext conftest.$ac_ext
1.25 millert 10430: fi
1.27 millert 10431: { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432: echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10433: if test $ac_cv_func_shl_load = yes; then
10434: lt_cv_dlopen="shl_load"
10435: else
10436: { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10437: echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10438: if test "${ac_cv_lib_dld_shl_load+set}" = set; then
1.25 millert 10439: echo $ECHO_N "(cached) $ECHO_C" >&6
10440: else
1.27 millert 10441: ac_check_lib_save_LIBS=$LIBS
10442: LIBS="-ldld $LIBS"
10443: cat >conftest.$ac_ext <<_ACEOF
10444: /* confdefs.h. */
10445: _ACEOF
10446: cat confdefs.h >>conftest.$ac_ext
10447: cat >>conftest.$ac_ext <<_ACEOF
10448: /* end confdefs.h. */
1.25 millert 10449:
1.27 millert 10450: /* Override any GCC internal prototype to avoid an error.
10451: Use char because int might match the return type of a GCC
10452: builtin and then its argument prototype would still apply. */
10453: #ifdef __cplusplus
10454: extern "C"
10455: #endif
10456: char shl_load ();
10457: int
10458: main ()
10459: {
10460: return shl_load ();
10461: ;
10462: return 0;
10463: }
10464: _ACEOF
10465: rm -f conftest.$ac_objext conftest$ac_exeext
10466: if { (ac_try="$ac_link"
10467: case "(($ac_try" in
10468: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10469: *) ac_try_echo=$ac_try;;
10470: esac
10471: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10472: (eval "$ac_link") 2>conftest.er1
10473: ac_status=$?
10474: grep -v '^ *+' conftest.er1 >conftest.err
10475: rm -f conftest.er1
10476: cat conftest.err >&5
10477: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478: (exit $ac_status); } && {
10479: test -z "$ac_c_werror_flag" ||
10480: test ! -s conftest.err
10481: } && test -s conftest$ac_exeext &&
10482: $as_test_x conftest$ac_exeext; then
10483: ac_cv_lib_dld_shl_load=yes
1.25 millert 10484: else
1.27 millert 10485: echo "$as_me: failed program was:" >&5
10486: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10487:
1.27 millert 10488: ac_cv_lib_dld_shl_load=no
1.25 millert 10489: fi
10490:
1.27 millert 10491: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10492: conftest$ac_exeext conftest.$ac_ext
10493: LIBS=$ac_check_lib_save_LIBS
10494: fi
10495: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10496: echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10497: if test $ac_cv_lib_dld_shl_load = yes; then
1.36 millert 10498: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
1.27 millert 10499: else
10500: { echo "$as_me:$LINENO: checking for dlopen" >&5
10501: echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10502: if test "${ac_cv_func_dlopen+set}" = set; then
10503: echo $ECHO_N "(cached) $ECHO_C" >&6
10504: else
10505: cat >conftest.$ac_ext <<_ACEOF
10506: /* confdefs.h. */
10507: _ACEOF
10508: cat confdefs.h >>conftest.$ac_ext
10509: cat >>conftest.$ac_ext <<_ACEOF
10510: /* end confdefs.h. */
10511: /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10512: For example, HP-UX 11i <limits.h> declares gettimeofday. */
10513: #define dlopen innocuous_dlopen
10514:
10515: /* System header to define __stub macros and hopefully few prototypes,
10516: which can conflict with char dlopen (); below.
10517: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10518: <limits.h> exists even on freestanding compilers. */
10519:
10520: #ifdef __STDC__
10521: # include <limits.h>
10522: #else
10523: # include <assert.h>
10524: #endif
10525:
10526: #undef dlopen
10527:
10528: /* Override any GCC internal prototype to avoid an error.
10529: Use char because int might match the return type of a GCC
10530: builtin and then its argument prototype would still apply. */
10531: #ifdef __cplusplus
10532: extern "C"
10533: #endif
10534: char dlopen ();
10535: /* The GNU C library defines this for functions which it implements
10536: to always fail with ENOSYS. Some functions are actually named
10537: something starting with __ and the normal name is an alias. */
10538: #if defined __stub_dlopen || defined __stub___dlopen
10539: choke me
10540: #endif
10541:
10542: int
10543: main ()
10544: {
10545: return dlopen ();
10546: ;
10547: return 0;
10548: }
10549: _ACEOF
10550: rm -f conftest.$ac_objext conftest$ac_exeext
10551: if { (ac_try="$ac_link"
10552: case "(($ac_try" in
10553: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554: *) ac_try_echo=$ac_try;;
10555: esac
10556: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557: (eval "$ac_link") 2>conftest.er1
10558: ac_status=$?
10559: grep -v '^ *+' conftest.er1 >conftest.err
10560: rm -f conftest.er1
10561: cat conftest.err >&5
10562: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563: (exit $ac_status); } && {
10564: test -z "$ac_c_werror_flag" ||
10565: test ! -s conftest.err
10566: } && test -s conftest$ac_exeext &&
10567: $as_test_x conftest$ac_exeext; then
10568: ac_cv_func_dlopen=yes
10569: else
10570: echo "$as_me: failed program was:" >&5
10571: sed 's/^/| /' conftest.$ac_ext >&5
10572:
10573: ac_cv_func_dlopen=no
10574: fi
10575:
10576: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10577: conftest$ac_exeext conftest.$ac_ext
10578: fi
10579: { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10580: echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10581: if test $ac_cv_func_dlopen = yes; then
10582: lt_cv_dlopen="dlopen"
10583: else
10584: { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10585: echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10586: if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10587: echo $ECHO_N "(cached) $ECHO_C" >&6
10588: else
10589: ac_check_lib_save_LIBS=$LIBS
10590: LIBS="-ldl $LIBS"
10591: cat >conftest.$ac_ext <<_ACEOF
10592: /* confdefs.h. */
10593: _ACEOF
10594: cat confdefs.h >>conftest.$ac_ext
10595: cat >>conftest.$ac_ext <<_ACEOF
10596: /* end confdefs.h. */
10597:
10598: /* Override any GCC internal prototype to avoid an error.
10599: Use char because int might match the return type of a GCC
10600: builtin and then its argument prototype would still apply. */
10601: #ifdef __cplusplus
10602: extern "C"
10603: #endif
10604: char dlopen ();
10605: int
10606: main ()
10607: {
10608: return dlopen ();
10609: ;
10610: return 0;
10611: }
10612: _ACEOF
10613: rm -f conftest.$ac_objext conftest$ac_exeext
10614: if { (ac_try="$ac_link"
10615: case "(($ac_try" in
10616: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617: *) ac_try_echo=$ac_try;;
10618: esac
10619: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620: (eval "$ac_link") 2>conftest.er1
10621: ac_status=$?
10622: grep -v '^ *+' conftest.er1 >conftest.err
10623: rm -f conftest.er1
10624: cat conftest.err >&5
10625: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626: (exit $ac_status); } && {
10627: test -z "$ac_c_werror_flag" ||
10628: test ! -s conftest.err
10629: } && test -s conftest$ac_exeext &&
10630: $as_test_x conftest$ac_exeext; then
10631: ac_cv_lib_dl_dlopen=yes
10632: else
10633: echo "$as_me: failed program was:" >&5
10634: sed 's/^/| /' conftest.$ac_ext >&5
10635:
10636: ac_cv_lib_dl_dlopen=no
10637: fi
10638:
10639: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640: conftest$ac_exeext conftest.$ac_ext
10641: LIBS=$ac_check_lib_save_LIBS
10642: fi
10643: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10644: echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10645: if test $ac_cv_lib_dl_dlopen = yes; then
10646: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10647: else
10648: { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10649: echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10650: if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10651: echo $ECHO_N "(cached) $ECHO_C" >&6
10652: else
10653: ac_check_lib_save_LIBS=$LIBS
10654: LIBS="-lsvld $LIBS"
10655: cat >conftest.$ac_ext <<_ACEOF
10656: /* confdefs.h. */
10657: _ACEOF
10658: cat confdefs.h >>conftest.$ac_ext
10659: cat >>conftest.$ac_ext <<_ACEOF
10660: /* end confdefs.h. */
10661:
10662: /* Override any GCC internal prototype to avoid an error.
10663: Use char because int might match the return type of a GCC
10664: builtin and then its argument prototype would still apply. */
10665: #ifdef __cplusplus
10666: extern "C"
10667: #endif
10668: char dlopen ();
10669: int
10670: main ()
10671: {
10672: return dlopen ();
10673: ;
10674: return 0;
10675: }
10676: _ACEOF
10677: rm -f conftest.$ac_objext conftest$ac_exeext
10678: if { (ac_try="$ac_link"
10679: case "(($ac_try" in
10680: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681: *) ac_try_echo=$ac_try;;
10682: esac
10683: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684: (eval "$ac_link") 2>conftest.er1
10685: ac_status=$?
10686: grep -v '^ *+' conftest.er1 >conftest.err
10687: rm -f conftest.er1
10688: cat conftest.err >&5
10689: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690: (exit $ac_status); } && {
10691: test -z "$ac_c_werror_flag" ||
10692: test ! -s conftest.err
10693: } && test -s conftest$ac_exeext &&
10694: $as_test_x conftest$ac_exeext; then
10695: ac_cv_lib_svld_dlopen=yes
10696: else
10697: echo "$as_me: failed program was:" >&5
10698: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10699:
1.27 millert 10700: ac_cv_lib_svld_dlopen=no
10701: fi
1.25 millert 10702:
1.27 millert 10703: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10704: conftest$ac_exeext conftest.$ac_ext
10705: LIBS=$ac_check_lib_save_LIBS
10706: fi
10707: { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10708: echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10709: if test $ac_cv_lib_svld_dlopen = yes; then
10710: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10711: else
10712: { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10713: echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10714: if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10715: echo $ECHO_N "(cached) $ECHO_C" >&6
10716: else
10717: ac_check_lib_save_LIBS=$LIBS
10718: LIBS="-ldld $LIBS"
10719: cat >conftest.$ac_ext <<_ACEOF
10720: /* confdefs.h. */
10721: _ACEOF
10722: cat confdefs.h >>conftest.$ac_ext
10723: cat >>conftest.$ac_ext <<_ACEOF
10724: /* end confdefs.h. */
1.25 millert 10725:
1.27 millert 10726: /* Override any GCC internal prototype to avoid an error.
10727: Use char because int might match the return type of a GCC
10728: builtin and then its argument prototype would still apply. */
10729: #ifdef __cplusplus
10730: extern "C"
10731: #endif
10732: char dld_link ();
10733: int
10734: main ()
10735: {
10736: return dld_link ();
10737: ;
10738: return 0;
10739: }
10740: _ACEOF
10741: rm -f conftest.$ac_objext conftest$ac_exeext
10742: if { (ac_try="$ac_link"
10743: case "(($ac_try" in
10744: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10745: *) ac_try_echo=$ac_try;;
10746: esac
10747: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10748: (eval "$ac_link") 2>conftest.er1
10749: ac_status=$?
10750: grep -v '^ *+' conftest.er1 >conftest.err
10751: rm -f conftest.er1
10752: cat conftest.err >&5
10753: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10754: (exit $ac_status); } && {
10755: test -z "$ac_c_werror_flag" ||
10756: test ! -s conftest.err
10757: } && test -s conftest$ac_exeext &&
10758: $as_test_x conftest$ac_exeext; then
10759: ac_cv_lib_dld_dld_link=yes
10760: else
10761: echo "$as_me: failed program was:" >&5
10762: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 10763:
1.27 millert 10764: ac_cv_lib_dld_dld_link=no
10765: fi
1.25 millert 10766:
1.27 millert 10767: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10768: conftest$ac_exeext conftest.$ac_ext
10769: LIBS=$ac_check_lib_save_LIBS
10770: fi
10771: { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10772: echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10773: if test $ac_cv_lib_dld_dld_link = yes; then
1.36 millert 10774: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
1.27 millert 10775: fi
1.25 millert 10776:
1.23 millert 10777:
1.27 millert 10778: fi
1.23 millert 10779:
10780:
1.27 millert 10781: fi
1.23 millert 10782:
1.25 millert 10783:
1.27 millert 10784: fi
1.23 millert 10785:
10786:
1.27 millert 10787: fi
1.23 millert 10788:
10789:
1.27 millert 10790: fi
1.23 millert 10791:
1.27 millert 10792: ;;
10793: esac
1.23 millert 10794:
1.27 millert 10795: if test "x$lt_cv_dlopen" != xno; then
10796: enable_dlopen=yes
10797: else
10798: enable_dlopen=no
10799: fi
1.25 millert 10800:
1.27 millert 10801: case $lt_cv_dlopen in
10802: dlopen)
10803: save_CPPFLAGS="$CPPFLAGS"
10804: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1.23 millert 10805:
1.27 millert 10806: save_LDFLAGS="$LDFLAGS"
10807: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1.25 millert 10808:
1.27 millert 10809: save_LIBS="$LIBS"
10810: LIBS="$lt_cv_dlopen_libs $LIBS"
1.23 millert 10811:
1.27 millert 10812: { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10813: echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10814: if test "${lt_cv_dlopen_self+set}" = set; then
10815: echo $ECHO_N "(cached) $ECHO_C" >&6
10816: else
10817: if test "$cross_compiling" = yes; then :
10818: lt_cv_dlopen_self=cross
10819: else
10820: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10821: lt_status=$lt_dlunknown
10822: cat > conftest.$ac_ext <<EOF
1.39 ! millert 10823: #line 10823 "configure"
1.27 millert 10824: #include "confdefs.h"
1.23 millert 10825:
1.27 millert 10826: #if HAVE_DLFCN_H
10827: #include <dlfcn.h>
10828: #endif
1.25 millert 10829:
1.27 millert 10830: #include <stdio.h>
1.25 millert 10831:
1.27 millert 10832: #ifdef RTLD_GLOBAL
10833: # define LT_DLGLOBAL RTLD_GLOBAL
10834: #else
10835: # ifdef DL_GLOBAL
10836: # define LT_DLGLOBAL DL_GLOBAL
10837: # else
10838: # define LT_DLGLOBAL 0
10839: # endif
10840: #endif
1.25 millert 10841:
1.27 millert 10842: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10843: find out it does not work in some platform. */
10844: #ifndef LT_DLLAZY_OR_NOW
10845: # ifdef RTLD_LAZY
10846: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10847: # else
10848: # ifdef DL_LAZY
10849: # define LT_DLLAZY_OR_NOW DL_LAZY
10850: # else
10851: # ifdef RTLD_NOW
10852: # define LT_DLLAZY_OR_NOW RTLD_NOW
10853: # else
10854: # ifdef DL_NOW
10855: # define LT_DLLAZY_OR_NOW DL_NOW
10856: # else
10857: # define LT_DLLAZY_OR_NOW 0
10858: # endif
10859: # endif
10860: # endif
10861: # endif
10862: #endif
1.23 millert 10863:
1.27 millert 10864: #ifdef __cplusplus
10865: extern "C" void exit (int);
10866: #endif
1.23 millert 10867:
1.27 millert 10868: void fnord() { int i=42;}
10869: int main ()
10870: {
10871: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10872: int status = $lt_dlunknown;
1.23 millert 10873:
1.27 millert 10874: if (self)
10875: {
10876: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10877: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10878: /* dlclose (self); */
10879: }
10880: else
10881: puts (dlerror ());
1.23 millert 10882:
1.27 millert 10883: exit (status);
10884: }
10885: EOF
10886: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10887: (eval $ac_link) 2>&5
10888: ac_status=$?
10889: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10891: (./conftest; exit; ) >&5 2>/dev/null
10892: lt_status=$?
10893: case x$lt_status in
10894: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10895: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10896: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
1.23 millert 10897: esac
1.27 millert 10898: else :
10899: # compilation failed
10900: lt_cv_dlopen_self=no
1.23 millert 10901: fi
1.27 millert 10902: fi
10903: rm -fr conftest*
1.23 millert 10904:
10905:
1.27 millert 10906: fi
10907: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10908: echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
1.23 millert 10909:
1.27 millert 10910: if test "x$lt_cv_dlopen_self" = xyes; then
10911: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10912: { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10913: echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10914: if test "${lt_cv_dlopen_self_static+set}" = set; then
1.25 millert 10915: echo $ECHO_N "(cached) $ECHO_C" >&6
1.23 millert 10916: else
1.27 millert 10917: if test "$cross_compiling" = yes; then :
10918: lt_cv_dlopen_self_static=cross
1.25 millert 10919: else
1.27 millert 10920: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10921: lt_status=$lt_dlunknown
10922: cat > conftest.$ac_ext <<EOF
1.39 ! millert 10923: #line 10923 "configure"
1.27 millert 10924: #include "confdefs.h"
1.23 millert 10925:
1.27 millert 10926: #if HAVE_DLFCN_H
10927: #include <dlfcn.h>
10928: #endif
1.23 millert 10929:
1.27 millert 10930: #include <stdio.h>
1.25 millert 10931:
1.27 millert 10932: #ifdef RTLD_GLOBAL
10933: # define LT_DLGLOBAL RTLD_GLOBAL
10934: #else
10935: # ifdef DL_GLOBAL
10936: # define LT_DLGLOBAL DL_GLOBAL
10937: # else
10938: # define LT_DLGLOBAL 0
10939: # endif
10940: #endif
1.25 millert 10941:
1.27 millert 10942: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10943: find out it does not work in some platform. */
10944: #ifndef LT_DLLAZY_OR_NOW
10945: # ifdef RTLD_LAZY
10946: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10947: # else
10948: # ifdef DL_LAZY
10949: # define LT_DLLAZY_OR_NOW DL_LAZY
10950: # else
10951: # ifdef RTLD_NOW
10952: # define LT_DLLAZY_OR_NOW RTLD_NOW
10953: # else
10954: # ifdef DL_NOW
10955: # define LT_DLLAZY_OR_NOW DL_NOW
10956: # else
10957: # define LT_DLLAZY_OR_NOW 0
10958: # endif
10959: # endif
10960: # endif
10961: # endif
10962: #endif
1.25 millert 10963:
1.27 millert 10964: #ifdef __cplusplus
10965: extern "C" void exit (int);
10966: #endif
1.25 millert 10967:
1.27 millert 10968: void fnord() { int i=42;}
10969: int main ()
10970: {
10971: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10972: int status = $lt_dlunknown;
1.25 millert 10973:
1.27 millert 10974: if (self)
10975: {
10976: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10977: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10978: /* dlclose (self); */
10979: }
10980: else
10981: puts (dlerror ());
1.25 millert 10982:
1.27 millert 10983: exit (status);
10984: }
10985: EOF
10986: if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10987: (eval $ac_link) 2>&5
10988: ac_status=$?
10989: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990: (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10991: (./conftest; exit; ) >&5 2>/dev/null
10992: lt_status=$?
10993: case x$lt_status in
10994: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10995: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10996: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10997: esac
10998: else :
10999: # compilation failed
11000: lt_cv_dlopen_self_static=no
11001: fi
1.23 millert 11002: fi
1.27 millert 11003: rm -fr conftest*
1.23 millert 11004:
11005:
1.25 millert 11006: fi
1.27 millert 11007: { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11008: echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11009: fi
1.23 millert 11010:
1.27 millert 11011: CPPFLAGS="$save_CPPFLAGS"
11012: LDFLAGS="$save_LDFLAGS"
11013: LIBS="$save_LIBS"
1.25 millert 11014: ;;
11015: esac
1.23 millert 11016:
1.27 millert 11017: case $lt_cv_dlopen_self in
11018: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11019: *) enable_dlopen_self=unknown ;;
11020: esac
1.23 millert 11021:
1.27 millert 11022: case $lt_cv_dlopen_self_static in
11023: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11024: *) enable_dlopen_self_static=unknown ;;
1.23 millert 11025: esac
1.27 millert 11026: fi
1.23 millert 11027:
11028:
1.27 millert 11029: # Report which library types will actually be built
11030: { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11031: echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11032: { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11033: echo "${ECHO_T}$can_build_shared" >&6; }
11034:
11035: { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11036: echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11037: test "$can_build_shared" = "no" && enable_shared=no
1.25 millert 11038:
1.27 millert 11039: # On AIX, shared libraries and static libraries use the same namespace, and
11040: # are all built from PIC.
11041: case $host_os in
11042: aix3*)
11043: test "$enable_shared" = yes && enable_static=no
11044: if test -n "$RANLIB"; then
11045: archive_cmds="$archive_cmds~\$RANLIB \$lib"
11046: postinstall_cmds='$RANLIB $lib'
11047: fi
1.23 millert 11048: ;;
11049:
1.36 millert 11050: aix[4-9]*)
1.27 millert 11051: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11052: test "$enable_shared" = yes && enable_static=no
11053: fi
11054: ;;
1.23 millert 11055: esac
1.27 millert 11056: { echo "$as_me:$LINENO: result: $enable_shared" >&5
11057: echo "${ECHO_T}$enable_shared" >&6; }
1.23 millert 11058:
1.27 millert 11059: { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11060: echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11061: # Make sure either enable_shared or enable_static is yes.
11062: test "$enable_shared" = yes || enable_static=yes
11063: { echo "$as_me:$LINENO: result: $enable_static" >&5
11064: echo "${ECHO_T}$enable_static" >&6; }
11065:
11066: # The else clause should only fire when bootstrapping the
11067: # libtool distribution, otherwise you forgot to ship ltmain.sh
11068: # with your package, and you will get complaints that there are
11069: # no rules to generate ltmain.sh.
11070: if test -f "$ltmain"; then
11071: # See if we are running on zsh, and set the options which allow our commands through
11072: # without removal of \ escapes.
11073: if test -n "${ZSH_VERSION+set}" ; then
11074: setopt NO_GLOB_SUBST
11075: fi
11076: # Now quote all the things that may contain metacharacters while being
11077: # careful not to overquote the AC_SUBSTed values. We take copies of the
11078: # variables and quote the copies for generation of the libtool script.
11079: for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11080: SED SHELL STRIP \
11081: libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11082: old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11083: deplibs_check_method reload_flag reload_cmds need_locks \
11084: lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11085: lt_cv_sys_global_symbol_to_c_name_address \
11086: sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11087: old_postinstall_cmds old_postuninstall_cmds \
11088: compiler \
11089: CC \
11090: LD \
11091: lt_prog_compiler_wl \
11092: lt_prog_compiler_pic \
11093: lt_prog_compiler_static \
11094: lt_prog_compiler_no_builtin_flag \
11095: export_dynamic_flag_spec \
11096: thread_safe_flag_spec \
11097: whole_archive_flag_spec \
11098: enable_shared_with_static_runtimes \
11099: old_archive_cmds \
11100: old_archive_from_new_cmds \
11101: predep_objects \
11102: postdep_objects \
11103: predeps \
11104: postdeps \
11105: compiler_lib_search_path \
1.36 millert 11106: compiler_lib_search_dirs \
1.27 millert 11107: archive_cmds \
11108: archive_expsym_cmds \
11109: postinstall_cmds \
11110: postuninstall_cmds \
11111: old_archive_from_expsyms_cmds \
11112: allow_undefined_flag \
11113: no_undefined_flag \
11114: export_symbols_cmds \
11115: hardcode_libdir_flag_spec \
11116: hardcode_libdir_flag_spec_ld \
11117: hardcode_libdir_separator \
11118: hardcode_automatic \
11119: module_cmds \
11120: module_expsym_cmds \
11121: lt_cv_prog_compiler_c_o \
11122: fix_srcfile_path \
11123: exclude_expsyms \
11124: include_expsyms; do
11125:
11126: case $var in
11127: old_archive_cmds | \
11128: old_archive_from_new_cmds | \
11129: archive_cmds | \
11130: archive_expsym_cmds | \
11131: module_cmds | \
11132: module_expsym_cmds | \
11133: old_archive_from_expsyms_cmds | \
11134: export_symbols_cmds | \
11135: extract_expsyms_cmds | reload_cmds | finish_cmds | \
11136: postinstall_cmds | postuninstall_cmds | \
11137: old_postinstall_cmds | old_postuninstall_cmds | \
11138: sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11139: # Double-quote double-evaled strings.
11140: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11141: ;;
11142: *)
11143: eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11144: ;;
11145: esac
11146: done
1.23 millert 11147:
1.27 millert 11148: case $lt_echo in
11149: *'\$0 --fallback-echo"')
11150: lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11151: ;;
11152: esac
1.23 millert 11153:
1.27 millert 11154: cfgfile="${ofile}T"
11155: trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11156: $rm -f "$cfgfile"
11157: { echo "$as_me:$LINENO: creating $ofile" >&5
11158: echo "$as_me: creating $ofile" >&6;}
1.23 millert 11159:
1.27 millert 11160: cat <<__EOF__ >> "$cfgfile"
11161: #! $SHELL
1.23 millert 11162:
1.27 millert 11163: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11164: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11165: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11166: #
1.36 millert 11167: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1.27 millert 11168: # Free Software Foundation, Inc.
11169: #
11170: # This file is part of GNU Libtool:
11171: # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11172: #
11173: # This program is free software; you can redistribute it and/or modify
11174: # it under the terms of the GNU General Public License as published by
11175: # the Free Software Foundation; either version 2 of the License, or
11176: # (at your option) any later version.
11177: #
11178: # This program is distributed in the hope that it will be useful, but
11179: # WITHOUT ANY WARRANTY; without even the implied warranty of
11180: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11181: # General Public License for more details.
11182: #
11183: # You should have received a copy of the GNU General Public License
11184: # along with this program; if not, write to the Free Software
11185: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11186: #
11187: # As a special exception to the GNU General Public License, if you
11188: # distribute this file as part of a program that contains a
11189: # configuration script generated by Autoconf, you may include it under
11190: # the same distribution terms that you use for the rest of that program.
1.23 millert 11191:
1.27 millert 11192: # A sed program that does not truncate output.
11193: SED=$lt_SED
1.23 millert 11194:
1.27 millert 11195: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11196: Xsed="$SED -e 1s/^X//"
1.23 millert 11197:
1.27 millert 11198: # The HP-UX ksh and POSIX shell print the target directory to stdout
11199: # if CDPATH is set.
11200: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1.23 millert 11201:
1.27 millert 11202: # The names of the tagged configurations supported by this script.
11203: available_tags=
1.23 millert 11204:
1.27 millert 11205: # ### BEGIN LIBTOOL CONFIG
1.23 millert 11206:
1.27 millert 11207: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1.23 millert 11208:
1.27 millert 11209: # Shell to use when invoking shell scripts.
11210: SHELL=$lt_SHELL
1.23 millert 11211:
1.27 millert 11212: # Whether or not to build shared libraries.
11213: build_libtool_libs=$enable_shared
1.23 millert 11214:
1.27 millert 11215: # Whether or not to build static libraries.
11216: build_old_libs=$enable_static
1.23 millert 11217:
1.27 millert 11218: # Whether or not to add -lc for building shared libraries.
11219: build_libtool_need_lc=$archive_cmds_need_lc
1.23 millert 11220:
1.27 millert 11221: # Whether or not to disallow shared libs when runtime libs are static
11222: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
1.23 millert 11223:
1.27 millert 11224: # Whether or not to optimize for fast installation.
11225: fast_install=$enable_fast_install
1.23 millert 11226:
1.27 millert 11227: # The host system.
11228: host_alias=$host_alias
11229: host=$host
11230: host_os=$host_os
1.23 millert 11231:
1.27 millert 11232: # The build system.
11233: build_alias=$build_alias
11234: build=$build
11235: build_os=$build_os
1.23 millert 11236:
1.27 millert 11237: # An echo program that does not interpret backslashes.
11238: echo=$lt_echo
1.23 millert 11239:
1.27 millert 11240: # The archiver.
11241: AR=$lt_AR
11242: AR_FLAGS=$lt_AR_FLAGS
1.23 millert 11243:
1.27 millert 11244: # A C compiler.
11245: LTCC=$lt_LTCC
1.23 millert 11246:
1.27 millert 11247: # LTCC compiler flags.
11248: LTCFLAGS=$lt_LTCFLAGS
1.23 millert 11249:
1.27 millert 11250: # A language-specific compiler.
11251: CC=$lt_compiler
1.23 millert 11252:
1.27 millert 11253: # Is the compiler the GNU C compiler?
11254: with_gcc=$GCC
1.23 millert 11255:
1.27 millert 11256: # An ERE matcher.
11257: EGREP=$lt_EGREP
1.23 millert 11258:
1.27 millert 11259: # The linker used to build libraries.
11260: LD=$lt_LD
1.23 millert 11261:
1.27 millert 11262: # Whether we need hard or soft links.
11263: LN_S=$lt_LN_S
1.23 millert 11264:
1.27 millert 11265: # A BSD-compatible nm program.
11266: NM=$lt_NM
1.23 millert 11267:
1.27 millert 11268: # A symbol stripping program
11269: STRIP=$lt_STRIP
1.23 millert 11270:
1.27 millert 11271: # Used to examine libraries when file_magic_cmd begins "file"
11272: MAGIC_CMD=$MAGIC_CMD
1.23 millert 11273:
1.27 millert 11274: # Used on cygwin: DLL creation program.
11275: DLLTOOL="$DLLTOOL"
1.23 millert 11276:
1.27 millert 11277: # Used on cygwin: object dumper.
11278: OBJDUMP="$OBJDUMP"
1.23 millert 11279:
1.27 millert 11280: # Used on cygwin: assembler.
11281: AS="$AS"
1.23 millert 11282:
1.27 millert 11283: # The name of the directory that contains temporary libtool files.
11284: objdir=$objdir
1.23 millert 11285:
1.27 millert 11286: # How to create reloadable object files.
11287: reload_flag=$lt_reload_flag
11288: reload_cmds=$lt_reload_cmds
1.23 millert 11289:
1.27 millert 11290: # How to pass a linker flag through the compiler.
11291: wl=$lt_lt_prog_compiler_wl
1.23 millert 11292:
1.27 millert 11293: # Object file suffix (normally "o").
11294: objext="$ac_objext"
1.23 millert 11295:
1.27 millert 11296: # Old archive suffix (normally "a").
11297: libext="$libext"
1.23 millert 11298:
1.27 millert 11299: # Shared library suffix (normally ".so").
11300: shrext_cmds='$shrext_cmds'
1.23 millert 11301:
1.27 millert 11302: # Executable file suffix (normally "").
11303: exeext="$exeext"
1.23 millert 11304:
1.27 millert 11305: # Additional compiler flags for building library objects.
11306: pic_flag=$lt_lt_prog_compiler_pic
11307: pic_mode=$pic_mode
1.23 millert 11308:
1.27 millert 11309: # What is the maximum length of a command?
11310: max_cmd_len=$lt_cv_sys_max_cmd_len
1.23 millert 11311:
1.27 millert 11312: # Does compiler simultaneously support -c and -o options?
11313: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
1.23 millert 11314:
1.27 millert 11315: # Must we lock files when doing compilation?
11316: need_locks=$lt_need_locks
1.23 millert 11317:
1.27 millert 11318: # Do we need the lib prefix for modules?
11319: need_lib_prefix=$need_lib_prefix
1.23 millert 11320:
1.27 millert 11321: # Do we need a version for libraries?
11322: need_version=$need_version
1.23 millert 11323:
1.27 millert 11324: # Whether dlopen is supported.
11325: dlopen_support=$enable_dlopen
1.23 millert 11326:
1.27 millert 11327: # Whether dlopen of programs is supported.
11328: dlopen_self=$enable_dlopen_self
1.23 millert 11329:
1.27 millert 11330: # Whether dlopen of statically linked programs is supported.
11331: dlopen_self_static=$enable_dlopen_self_static
1.23 millert 11332:
1.27 millert 11333: # Compiler flag to prevent dynamic linking.
11334: link_static_flag=$lt_lt_prog_compiler_static
1.23 millert 11335:
1.27 millert 11336: # Compiler flag to turn off builtin functions.
11337: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
1.23 millert 11338:
1.27 millert 11339: # Compiler flag to allow reflexive dlopens.
11340: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
1.23 millert 11341:
1.27 millert 11342: # Compiler flag to generate shared objects directly from archives.
11343: whole_archive_flag_spec=$lt_whole_archive_flag_spec
1.23 millert 11344:
1.27 millert 11345: # Compiler flag to generate thread-safe objects.
11346: thread_safe_flag_spec=$lt_thread_safe_flag_spec
1.23 millert 11347:
1.27 millert 11348: # Library versioning type.
11349: version_type=$version_type
1.23 millert 11350:
1.27 millert 11351: # Format of library name prefix.
11352: libname_spec=$lt_libname_spec
1.23 millert 11353:
1.27 millert 11354: # List of archive names. First name is the real one, the rest are links.
11355: # The last name is the one that the linker finds with -lNAME.
11356: library_names_spec=$lt_library_names_spec
1.25 millert 11357:
1.27 millert 11358: # The coded name of the library, if different from the real name.
11359: soname_spec=$lt_soname_spec
1.25 millert 11360:
1.27 millert 11361: # Commands used to build and install an old-style archive.
11362: RANLIB=$lt_RANLIB
11363: old_archive_cmds=$lt_old_archive_cmds
11364: old_postinstall_cmds=$lt_old_postinstall_cmds
11365: old_postuninstall_cmds=$lt_old_postuninstall_cmds
1.25 millert 11366:
1.27 millert 11367: # Create an old-style archive from a shared archive.
11368: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
1.25 millert 11369:
1.27 millert 11370: # Create a temporary old-style archive to link instead of a shared archive.
11371: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
1.25 millert 11372:
1.27 millert 11373: # Commands used to build and install a shared archive.
11374: archive_cmds=$lt_archive_cmds
11375: archive_expsym_cmds=$lt_archive_expsym_cmds
11376: postinstall_cmds=$lt_postinstall_cmds
11377: postuninstall_cmds=$lt_postuninstall_cmds
1.25 millert 11378:
1.27 millert 11379: # Commands used to build a loadable module (assumed same as above if empty)
11380: module_cmds=$lt_module_cmds
11381: module_expsym_cmds=$lt_module_expsym_cmds
1.25 millert 11382:
1.27 millert 11383: # Commands to strip libraries.
11384: old_striplib=$lt_old_striplib
11385: striplib=$lt_striplib
1.25 millert 11386:
1.27 millert 11387: # Dependencies to place before the objects being linked to create a
11388: # shared library.
11389: predep_objects=$lt_predep_objects
11390:
11391: # Dependencies to place after the objects being linked to create a
11392: # shared library.
11393: postdep_objects=$lt_postdep_objects
11394:
11395: # Dependencies to place before the objects being linked to create a
11396: # shared library.
11397: predeps=$lt_predeps
11398:
11399: # Dependencies to place after the objects being linked to create a
11400: # shared library.
11401: postdeps=$lt_postdeps
11402:
1.36 millert 11403: # The directories searched by this compiler when creating a shared
11404: # library
11405: compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11406:
1.27 millert 11407: # The library search path used internally by the compiler when linking
11408: # a shared library.
11409: compiler_lib_search_path=$lt_compiler_lib_search_path
1.25 millert 11410:
1.27 millert 11411: # Method to check whether dependent libraries are shared objects.
11412: deplibs_check_method=$lt_deplibs_check_method
1.25 millert 11413:
1.27 millert 11414: # Command to use when deplibs_check_method == file_magic.
11415: file_magic_cmd=$lt_file_magic_cmd
1.25 millert 11416:
1.27 millert 11417: # Flag that allows shared libraries with undefined symbols to be built.
11418: allow_undefined_flag=$lt_allow_undefined_flag
1.25 millert 11419:
1.27 millert 11420: # Flag that forces no undefined symbols.
11421: no_undefined_flag=$lt_no_undefined_flag
1.25 millert 11422:
1.27 millert 11423: # Commands used to finish a libtool library installation in a directory.
11424: finish_cmds=$lt_finish_cmds
1.25 millert 11425:
1.27 millert 11426: # Same as above, but a single script fragment to be evaled but not shown.
11427: finish_eval=$lt_finish_eval
1.25 millert 11428:
1.27 millert 11429: # Take the output of nm and produce a listing of raw symbols and C names.
11430: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
1.25 millert 11431:
1.27 millert 11432: # Transform the output of nm in a proper C declaration
11433: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
1.25 millert 11434:
1.27 millert 11435: # Transform the output of nm in a C name address pair
11436: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
1.25 millert 11437:
1.27 millert 11438: # This is the shared library runtime path variable.
11439: runpath_var=$runpath_var
1.25 millert 11440:
1.27 millert 11441: # This is the shared library path variable.
11442: shlibpath_var=$shlibpath_var
1.25 millert 11443:
1.27 millert 11444: # Is shlibpath searched before the hard-coded library search path?
11445: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
1.25 millert 11446:
1.27 millert 11447: # How to hardcode a shared library path into an executable.
11448: hardcode_action=$hardcode_action
1.25 millert 11449:
1.27 millert 11450: # Whether we should hardcode library paths into libraries.
11451: hardcode_into_libs=$hardcode_into_libs
1.25 millert 11452:
1.27 millert 11453: # Flag to hardcode \$libdir into a binary during linking.
11454: # This must work even if \$libdir does not exist.
11455: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
1.25 millert 11456:
1.27 millert 11457: # If ld is used when linking, flag to hardcode \$libdir into
11458: # a binary during linking. This must work even if \$libdir does
11459: # not exist.
11460: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
1.23 millert 11461:
1.27 millert 11462: # Whether we need a single -rpath flag with a separated argument.
11463: hardcode_libdir_separator=$lt_hardcode_libdir_separator
1.23 millert 11464:
1.27 millert 11465: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11466: # resulting binary.
11467: hardcode_direct=$hardcode_direct
1.25 millert 11468:
1.27 millert 11469: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11470: # resulting binary.
11471: hardcode_minus_L=$hardcode_minus_L
1.25 millert 11472:
1.27 millert 11473: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11474: # the resulting binary.
11475: hardcode_shlibpath_var=$hardcode_shlibpath_var
1.25 millert 11476:
1.27 millert 11477: # Set to yes if building a shared library automatically hardcodes DIR into the library
11478: # and all subsequent libraries and executables linked against it.
11479: hardcode_automatic=$hardcode_automatic
1.25 millert 11480:
1.27 millert 11481: # Variables whose values should be saved in libtool wrapper scripts and
11482: # restored at relink time.
11483: variables_saved_for_relink="$variables_saved_for_relink"
1.25 millert 11484:
1.27 millert 11485: # Whether libtool must link a program against all its dependency libraries.
11486: link_all_deplibs=$link_all_deplibs
1.23 millert 11487:
1.27 millert 11488: # Compile-time system search path for libraries
11489: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
1.23 millert 11490:
1.27 millert 11491: # Run-time system search path for libraries
11492: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
1.23 millert 11493:
1.27 millert 11494: # Fix the shell variable \$srcfile for the compiler.
11495: fix_srcfile_path=$lt_fix_srcfile_path
1.23 millert 11496:
1.27 millert 11497: # Set to yes if exported symbols are required.
11498: always_export_symbols=$always_export_symbols
1.23 millert 11499:
1.27 millert 11500: # The commands to list exported symbols.
11501: export_symbols_cmds=$lt_export_symbols_cmds
1.23 millert 11502:
1.27 millert 11503: # The commands to extract the exported symbol list from a shared archive.
11504: extract_expsyms_cmds=$lt_extract_expsyms_cmds
1.23 millert 11505:
1.27 millert 11506: # Symbols that should not be listed in the preloaded symbols.
11507: exclude_expsyms=$lt_exclude_expsyms
1.23 millert 11508:
1.27 millert 11509: # Symbols that must always be exported.
11510: include_expsyms=$lt_include_expsyms
1.23 millert 11511:
1.27 millert 11512: # ### END LIBTOOL CONFIG
1.23 millert 11513:
1.27 millert 11514: __EOF__
1.23 millert 11515:
11516:
1.27 millert 11517: case $host_os in
1.25 millert 11518: aix3*)
1.27 millert 11519: cat <<\EOF >> "$cfgfile"
1.23 millert 11520:
1.27 millert 11521: # AIX sometimes has problems with the GCC collect2 program. For some
11522: # reason, if we set the COLLECT_NAMES environment variable, the problems
11523: # vanish in a puff of smoke.
11524: if test "X${COLLECT_NAMES+set}" != Xset; then
11525: COLLECT_NAMES=
11526: export COLLECT_NAMES
11527: fi
11528: EOF
1.25 millert 11529: ;;
11530: esac
1.23 millert 11531:
1.27 millert 11532: # We use sed instead of cat because bash on DJGPP gets confused if
11533: # if finds mixed CR/LF and LF-only lines. Since sed operates in
11534: # text mode, it properly converts lines to CR/LF. This bash problem
11535: # is reportedly fixed, but why not run on old versions too?
11536: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
1.23 millert 11537:
1.27 millert 11538: mv -f "$cfgfile" "$ofile" || \
11539: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11540: chmod +x "$ofile"
1.23 millert 11541:
1.27 millert 11542: else
11543: # If there is no Makefile yet, we rely on a make rule to execute
11544: # `config.status --recheck' to rerun these tests and create the
11545: # libtool script then.
11546: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11547: if test -f "$ltmain_in"; then
11548: test -f Makefile && make "$ltmain"
11549: fi
11550: fi
1.23 millert 11551:
11552:
1.25 millert 11553: ac_ext=c
11554: ac_cpp='$CPP $CPPFLAGS'
11555: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557: ac_compiler_gnu=$ac_cv_c_compiler_gnu
1.23 millert 11558:
1.25 millert 11559: CC="$lt_save_CC"
1.23 millert 11560:
11561:
11562:
1.27 millert 11563: # This can be used to rebuild libtool when needed
11564: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1.23 millert 11565:
1.27 millert 11566: # Always use our own libtool.
11567: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1.23 millert 11568:
1.27 millert 11569: # Prevent multiple expansion
1.23 millert 11570:
11571:
11572:
11573:
11574:
11575:
11576:
11577:
11578:
11579:
1.25 millert 11580: if test "$enable_shared" = "no"; then
11581: with_noexec=no
11582: else
1.26 millert 11583: eval _shrext="$shrext_cmds"
1.25 millert 11584: fi
1.27 millert 11585: { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11586: echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
1.23 millert 11587:
1.27 millert 11588: # Check whether --with-noexec was given.
1.25 millert 11589: if test "${with_noexec+set}" = set; then
1.27 millert 11590: withval=$with_noexec; case $with_noexec in
1.25 millert 11591: yes) with_noexec="$libexecdir/sudo_noexec$_shrext"
11592: ;;
11593: no) ;;
11594: *) ;;
11595: esac
11596: else
11597: with_noexec="$libexecdir/sudo_noexec$_shrext"
1.27 millert 11598: fi
11599:
11600: { echo "$as_me:$LINENO: result: $with_noexec" >&5
11601: echo "${ECHO_T}$with_noexec" >&6; }
1.36 millert 11602: NOEXECFILE="sudo_noexec$_shrext"
1.25 millert 11603: NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
1.23 millert 11604:
1.25 millert 11605: if test "$with_devel" = "yes" -a -n "$GCC"; then
11606: CFLAGS="${CFLAGS} -Wall"
11607: fi
1.23 millert 11608:
1.25 millert 11609: # Extract the first word of "uname", so it can be a program name with args.
11610: set dummy uname; ac_word=$2
1.27 millert 11611: { echo "$as_me:$LINENO: checking for $ac_word" >&5
11612: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11613: if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11614: echo $ECHO_N "(cached) $ECHO_C" >&6
11615: else
11616: if test -n "$UNAMEPROG"; then
11617: ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11618: else
11619: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11620: for as_dir in $PATH
11621: do
11622: IFS=$as_save_IFS
11623: test -z "$as_dir" && as_dir=.
11624: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 11625: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11626: ac_cv_prog_UNAMEPROG="uname"
11627: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11628: break 2
11629: fi
11630: done
11631: done
1.27 millert 11632: IFS=$as_save_IFS
1.23 millert 11633:
1.25 millert 11634: fi
11635: fi
11636: UNAMEPROG=$ac_cv_prog_UNAMEPROG
11637: if test -n "$UNAMEPROG"; then
1.27 millert 11638: { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11639: echo "${ECHO_T}$UNAMEPROG" >&6; }
1.25 millert 11640: else
1.27 millert 11641: { echo "$as_me:$LINENO: result: no" >&5
11642: echo "${ECHO_T}no" >&6; }
1.25 millert 11643: fi
1.23 millert 11644:
1.27 millert 11645:
1.25 millert 11646: # Extract the first word of "tr", so it can be a program name with args.
11647: set dummy tr; ac_word=$2
1.27 millert 11648: { echo "$as_me:$LINENO: checking for $ac_word" >&5
11649: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11650: if test "${ac_cv_prog_TRPROG+set}" = set; then
11651: echo $ECHO_N "(cached) $ECHO_C" >&6
11652: else
11653: if test -n "$TRPROG"; then
11654: ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11655: else
11656: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657: for as_dir in $PATH
11658: do
11659: IFS=$as_save_IFS
11660: test -z "$as_dir" && as_dir=.
11661: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 11662: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11663: ac_cv_prog_TRPROG="tr"
11664: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11665: break 2
11666: fi
11667: done
11668: done
1.27 millert 11669: IFS=$as_save_IFS
1.23 millert 11670:
1.25 millert 11671: fi
11672: fi
11673: TRPROG=$ac_cv_prog_TRPROG
11674: if test -n "$TRPROG"; then
1.27 millert 11675: { echo "$as_me:$LINENO: result: $TRPROG" >&5
11676: echo "${ECHO_T}$TRPROG" >&6; }
1.25 millert 11677: else
1.27 millert 11678: { echo "$as_me:$LINENO: result: no" >&5
11679: echo "${ECHO_T}no" >&6; }
1.25 millert 11680: fi
1.23 millert 11681:
1.27 millert 11682:
1.25 millert 11683: # Extract the first word of "nroff", so it can be a program name with args.
11684: set dummy nroff; ac_word=$2
1.27 millert 11685: { echo "$as_me:$LINENO: checking for $ac_word" >&5
11686: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 11687: if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11688: echo $ECHO_N "(cached) $ECHO_C" >&6
11689: else
11690: if test -n "$NROFFPROG"; then
11691: ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11692: else
11693: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11694: for as_dir in $PATH
11695: do
11696: IFS=$as_save_IFS
11697: test -z "$as_dir" && as_dir=.
11698: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 11699: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 11700: ac_cv_prog_NROFFPROG="nroff"
11701: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11702: break 2
11703: fi
11704: done
11705: done
1.27 millert 11706: IFS=$as_save_IFS
1.23 millert 11707:
1.25 millert 11708: fi
11709: fi
11710: NROFFPROG=$ac_cv_prog_NROFFPROG
11711: if test -n "$NROFFPROG"; then
1.27 millert 11712: { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11713: echo "${ECHO_T}$NROFFPROG" >&6; }
1.25 millert 11714: else
1.27 millert 11715: { echo "$as_me:$LINENO: result: no" >&5
11716: echo "${ECHO_T}no" >&6; }
1.25 millert 11717: fi
1.23 millert 11718:
1.27 millert 11719:
1.25 millert 11720: if test -z "$NROFFPROG"; then
11721: MANTYPE="cat"
11722: mansrcdir='$(srcdir)'
11723: fi
1.23 millert 11724:
1.25 millert 11725: if test -n "$sudo_cv_prev_host"; then
11726: if test "$sudo_cv_prev_host" != "$host"; then
11727: { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11728: echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11729: { (exit 1); exit 1; }; }
11730: else
1.27 millert 11731: { echo "$as_me:$LINENO: checking previous host type" >&5
11732: echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
1.25 millert 11733: if test "${sudo_cv_prev_host+set}" = set; then
11734: echo $ECHO_N "(cached) $ECHO_C" >&6
11735: else
11736: sudo_cv_prev_host="$host"
11737: fi
1.23 millert 11738:
1.27 millert 11739: { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11740: echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
1.25 millert 11741: fi
11742: else
11743: # this will produce no output since there is no cached value
11744: if test "${sudo_cv_prev_host+set}" = set; then
11745: echo $ECHO_N "(cached) $ECHO_C" >&6
11746: else
11747: sudo_cv_prev_host="$host"
11748: fi
1.23 millert 11749:
1.25 millert 11750: fi
1.23 millert 11751:
1.25 millert 11752: if test -n "$host_os"; then
11753: OS=`echo $host_os | sed 's/[0-9].*//'`
11754: OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11755: OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11756: else
11757: OS="unknown"
11758: OSREV=0
11759: OSMAJOR=0
11760: fi
1.23 millert 11761:
1.25 millert 11762: case "$host" in
11763: *-*-sunos4*)
11764: # getcwd(3) opens a pipe to getpwd(1)!?!
11765: BROKEN_GETCWD=1
1.23 millert 11766:
1.25 millert 11767: # system headers lack prototypes but gcc helps...
11768: if test -n "$GCC"; then
11769: OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11770: fi
1.23 millert 11771:
1.25 millert 11772: shadow_funcs="getpwanam issecure"
11773: ;;
11774: *-*-solaris2*)
11775: # To get the crypt(3) prototype (so we pass -Wall)
11776: OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11777: # AFS support needs -lucb
11778: if test "$with_AFS" = "yes"; then
11779: AFS_LIBS="-lc -lucb"
11780: fi
11781: : ${mansectsu='1m'}
11782: : ${mansectform='4'}
11783: : ${with_rpath='yes'}
1.27 millert 11784: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 11785: ;;
11786: *-*-aix*)
11787: # To get all prototypes (so we pass -Wall)
11788: OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11789: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11790: if test X"$with_blibpath" != X"no"; then
1.27 millert 11791: { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11792: echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
1.25 millert 11793: O_LDFLAGS="$LDFLAGS"
11794: LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11795: cat >conftest.$ac_ext <<_ACEOF
11796: /* confdefs.h. */
11797: _ACEOF
11798: cat confdefs.h >>conftest.$ac_ext
11799: cat >>conftest.$ac_ext <<_ACEOF
11800: /* end confdefs.h. */
1.23 millert 11801:
1.25 millert 11802: int
11803: main ()
11804: {
1.23 millert 11805:
1.25 millert 11806: ;
11807: return 0;
11808: }
11809: _ACEOF
11810: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 11811: if { (ac_try="$ac_link"
11812: case "(($ac_try" in
11813: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814: *) ac_try_echo=$ac_try;;
11815: esac
11816: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817: (eval "$ac_link") 2>conftest.er1
1.25 millert 11818: ac_status=$?
11819: grep -v '^ *+' conftest.er1 >conftest.err
11820: rm -f conftest.er1
11821: cat conftest.err >&5
11822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 11823: (exit $ac_status); } && {
11824: test -z "$ac_c_werror_flag" ||
11825: test ! -s conftest.err
11826: } && test -s conftest$ac_exeext &&
11827: $as_test_x conftest$ac_exeext; then
1.23 millert 11828:
1.25 millert 11829: if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11830: blibpath="$with_blibpath"
11831: elif test -n "$GCC"; then
11832: blibpath="/usr/lib:/lib:/usr/local/lib"
11833: else
11834: blibpath="/usr/lib:/lib"
11835: fi
1.27 millert 11836: { echo "$as_me:$LINENO: result: yes" >&5
11837: echo "${ECHO_T}yes" >&6; }
1.23 millert 11838:
1.25 millert 11839: else
11840: echo "$as_me: failed program was:" >&5
11841: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11842:
1.27 millert 11843: { echo "$as_me:$LINENO: result: no" >&5
11844: echo "${ECHO_T}no" >&6; }
1.25 millert 11845: fi
1.27 millert 11846:
11847: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11848: conftest$ac_exeext conftest.$ac_ext
11849: fi
11850: LDFLAGS="$O_LDFLAGS"
1.23 millert 11851:
1.27 millert 11852: # Use authenticate(3) as the default authentication method
1.25 millert 11853: if test X"$with_aixauth" = X""; then
1.23 millert 11854:
1.25 millert 11855: for ac_func in authenticate
11856: do
11857: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 11858: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11859: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11860: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 11861: echo $ECHO_N "(cached) $ECHO_C" >&6
11862: else
11863: cat >conftest.$ac_ext <<_ACEOF
11864: /* confdefs.h. */
11865: _ACEOF
11866: cat confdefs.h >>conftest.$ac_ext
11867: cat >>conftest.$ac_ext <<_ACEOF
11868: /* end confdefs.h. */
11869: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11870: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11871: #define $ac_func innocuous_$ac_func
1.23 millert 11872:
1.25 millert 11873: /* System header to define __stub macros and hopefully few prototypes,
11874: which can conflict with char $ac_func (); below.
11875: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11876: <limits.h> exists even on freestanding compilers. */
1.23 millert 11877:
1.25 millert 11878: #ifdef __STDC__
11879: # include <limits.h>
11880: #else
11881: # include <assert.h>
11882: #endif
1.23 millert 11883:
1.25 millert 11884: #undef $ac_func
1.23 millert 11885:
1.27 millert 11886: /* Override any GCC internal prototype to avoid an error.
11887: Use char because int might match the return type of a GCC
11888: builtin and then its argument prototype would still apply. */
1.25 millert 11889: #ifdef __cplusplus
11890: extern "C"
11891: #endif
11892: char $ac_func ();
11893: /* The GNU C library defines this for functions which it implements
11894: to always fail with ENOSYS. Some functions are actually named
11895: something starting with __ and the normal name is an alias. */
1.27 millert 11896: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 11897: choke me
11898: #endif
1.23 millert 11899:
1.25 millert 11900: int
11901: main ()
11902: {
1.27 millert 11903: return $ac_func ();
1.25 millert 11904: ;
11905: return 0;
11906: }
11907: _ACEOF
11908: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 11909: if { (ac_try="$ac_link"
11910: case "(($ac_try" in
11911: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912: *) ac_try_echo=$ac_try;;
11913: esac
11914: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915: (eval "$ac_link") 2>conftest.er1
1.25 millert 11916: ac_status=$?
11917: grep -v '^ *+' conftest.er1 >conftest.err
11918: rm -f conftest.er1
11919: cat conftest.err >&5
11920: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 11921: (exit $ac_status); } && {
11922: test -z "$ac_c_werror_flag" ||
11923: test ! -s conftest.err
11924: } && test -s conftest$ac_exeext &&
11925: $as_test_x conftest$ac_exeext; then
1.25 millert 11926: eval "$as_ac_var=yes"
11927: else
11928: echo "$as_me: failed program was:" >&5
11929: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 11930:
1.27 millert 11931: eval "$as_ac_var=no"
1.25 millert 11932: fi
1.27 millert 11933:
11934: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 11935: conftest$ac_exeext conftest.$ac_ext
11936: fi
1.27 millert 11937: ac_res=`eval echo '${'$as_ac_var'}'`
11938: { echo "$as_me:$LINENO: result: $ac_res" >&5
11939: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 11940: if test `eval echo '${'$as_ac_var'}'` = yes; then
11941: cat >>confdefs.h <<_ACEOF
11942: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11943: _ACEOF
1.27 millert 11944: AUTH_EXCL_DEF="AIX_AUTH"
1.25 millert 11945: fi
11946: done
1.23 millert 11947:
1.25 millert 11948: fi
1.37 millert 11949:
1.39 ! millert 11950: # AIX analog of nsswitch.conf, enabled by default
! 11951:
! 11952: # Check whether --with-netsvc was given.
! 11953: if test "${with_netsvc+set}" = set; then
! 11954: withval=$with_netsvc; case $with_netsvc in
! 11955: no) ;;
! 11956: yes) with_netsvc="/etc/netsvc.conf"
! 11957: ;;
! 11958: *) ;;
! 11959: esac
! 11960: fi
! 11961:
! 11962: if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
! 11963: with_netsvc="/etc/netsvc.conf"
! 11964: fi
! 11965:
1.37 millert 11966: # AIX-specific functions
11967:
11968: for ac_func in getuserattr
11969: do
11970: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11971: { echo "$as_me:$LINENO: checking for $ac_func" >&5
11972: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11973: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11974: echo $ECHO_N "(cached) $ECHO_C" >&6
11975: else
11976: cat >conftest.$ac_ext <<_ACEOF
11977: /* confdefs.h. */
11978: _ACEOF
11979: cat confdefs.h >>conftest.$ac_ext
11980: cat >>conftest.$ac_ext <<_ACEOF
11981: /* end confdefs.h. */
11982: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11983: For example, HP-UX 11i <limits.h> declares gettimeofday. */
11984: #define $ac_func innocuous_$ac_func
11985:
11986: /* System header to define __stub macros and hopefully few prototypes,
11987: which can conflict with char $ac_func (); below.
11988: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11989: <limits.h> exists even on freestanding compilers. */
11990:
11991: #ifdef __STDC__
11992: # include <limits.h>
11993: #else
11994: # include <assert.h>
11995: #endif
11996:
11997: #undef $ac_func
11998:
11999: /* Override any GCC internal prototype to avoid an error.
12000: Use char because int might match the return type of a GCC
12001: builtin and then its argument prototype would still apply. */
12002: #ifdef __cplusplus
12003: extern "C"
12004: #endif
12005: char $ac_func ();
12006: /* The GNU C library defines this for functions which it implements
12007: to always fail with ENOSYS. Some functions are actually named
12008: something starting with __ and the normal name is an alias. */
12009: #if defined __stub_$ac_func || defined __stub___$ac_func
12010: choke me
12011: #endif
12012:
12013: int
12014: main ()
12015: {
12016: return $ac_func ();
12017: ;
12018: return 0;
12019: }
12020: _ACEOF
12021: rm -f conftest.$ac_objext conftest$ac_exeext
12022: if { (ac_try="$ac_link"
12023: case "(($ac_try" in
12024: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12025: *) ac_try_echo=$ac_try;;
12026: esac
12027: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028: (eval "$ac_link") 2>conftest.er1
12029: ac_status=$?
12030: grep -v '^ *+' conftest.er1 >conftest.err
12031: rm -f conftest.er1
12032: cat conftest.err >&5
12033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034: (exit $ac_status); } && {
12035: test -z "$ac_c_werror_flag" ||
12036: test ! -s conftest.err
12037: } && test -s conftest$ac_exeext &&
12038: $as_test_x conftest$ac_exeext; then
12039: eval "$as_ac_var=yes"
12040: else
12041: echo "$as_me: failed program was:" >&5
12042: sed 's/^/| /' conftest.$ac_ext >&5
12043:
12044: eval "$as_ac_var=no"
12045: fi
12046:
12047: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12048: conftest$ac_exeext conftest.$ac_ext
12049: fi
12050: ac_res=`eval echo '${'$as_ac_var'}'`
12051: { echo "$as_me:$LINENO: result: $ac_res" >&5
12052: echo "${ECHO_T}$ac_res" >&6; }
12053: if test `eval echo '${'$as_ac_var'}'` = yes; then
12054: cat >>confdefs.h <<_ACEOF
12055: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12056: _ACEOF
12057:
12058: fi
12059: done
12060:
12061: SUDO_OBJS="$SUDO_OBJS aix.o"
1.25 millert 12062: ;;
12063: *-*-hiuxmpp*)
12064: : ${mansectsu='1m'}
12065: : ${mansectform='4'}
12066: ;;
12067: *-*-hpux*)
12068: # AFS support needs -lBSD
12069: if test "$with_AFS" = "yes"; then
12070: AFS_LIBS="-lc -lBSD"
12071: fi
12072: : ${mansectsu='1m'}
12073: : ${mansectform='4'}
1.23 millert 12074:
1.38 millert 12075: # HP-UX bundled compiler can't generate shared objects
12076: if test "x$ac_cv_prog_cc_c89" = "xno"; then
12077: with_noexec=no
12078: fi
1.25 millert 12079: case "$host" in
12080: *-*-hpux1-8.*)
12081: cat >>confdefs.h <<\_ACEOF
12082: #define BROKEN_SYSLOG 1
12083: _ACEOF
1.23 millert 12084:
12085:
1.25 millert 12086: # Not sure if setuid binaries are safe in < 9.x
12087: if test -n "$GCC"; then
12088: SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12089: else
12090: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12091: fi
12092: ;;
12093: *-*-hpux9.*)
12094: cat >>confdefs.h <<\_ACEOF
12095: #define BROKEN_SYSLOG 1
12096: _ACEOF
1.23 millert 12097:
12098:
1.25 millert 12099: shadow_funcs="getspwuid"
1.23 millert 12100:
1.25 millert 12101: # DCE support (requires ANSI C compiler)
12102: if test "$with_DCE" = "yes"; then
12103: # order of libs in 9.X is important. -lc_r must be last
12104: SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12105: LIBS="${LIBS} -ldce -lM -lc_r"
12106: CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12107: fi
12108: ;;
12109: *-*-hpux10.*)
12110: shadow_funcs="getprpwnam iscomsec"
12111: shadow_libs="-lsec"
12112: ;;
12113: *)
12114: shadow_funcs="getspnam iscomsec"
12115: shadow_libs="-lsec"
1.27 millert 12116: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12117: ;;
12118: esac
12119: ;;
12120: *-dec-osf*)
12121: # ignore envariables wrt dynamic lib path
12122: SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
1.23 millert 12123:
1.28 millert 12124: : ${CHECKSIA='true'}
1.27 millert 12125: { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12126: echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12127: # Check whether --enable-sia was given.
1.25 millert 12128: if test "${enable_sia+set}" = set; then
1.27 millert 12129: enableval=$enable_sia; case "$enableval" in
12130: yes) { echo "$as_me:$LINENO: result: no" >&5
12131: echo "${ECHO_T}no" >&6; }
1.28 millert 12132: CHECKSIA=true
1.25 millert 12133: ;;
1.27 millert 12134: no) { echo "$as_me:$LINENO: result: yes" >&5
12135: echo "${ECHO_T}yes" >&6; }
1.25 millert 12136: CHECKSIA=false
12137: ;;
1.27 millert 12138: *) { echo "$as_me:$LINENO: result: no" >&5
12139: echo "${ECHO_T}no" >&6; }
1.25 millert 12140: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12141: echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12142: ;;
12143: esac
1.23 millert 12144:
1.25 millert 12145: else
1.27 millert 12146: { echo "$as_me:$LINENO: result: no" >&5
12147: echo "${ECHO_T}no" >&6; }
12148: fi
12149:
1.23 millert 12150:
1.25 millert 12151: shadow_funcs="getprpwnam dispcrypt"
12152: # OSF/1 4.x and higher need -ldb too
12153: if test $OSMAJOR -lt 4; then
12154: shadow_libs="-lsecurity -laud -lm"
12155: else
12156: shadow_libs="-lsecurity -ldb -laud -lm"
12157: fi
1.23 millert 12158:
1.25 millert 12159: # use SIA by default, if we have it
1.27 millert 12160: test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
1.23 millert 12161:
1.27 millert 12162: #
12163: # Some versions of Digital Unix ship with a broken
12164: # copy of prot.h, which we need for shadow passwords.
12165: # XXX - make should remove this as part of distclean
12166: #
12167: { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12168: echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12169: cat >conftest.$ac_ext <<_ACEOF
1.25 millert 12170: /* confdefs.h. */
12171: _ACEOF
12172: cat confdefs.h >>conftest.$ac_ext
12173: cat >>conftest.$ac_ext <<_ACEOF
12174: /* end confdefs.h. */
1.23 millert 12175:
1.25 millert 12176: #include <sys/types.h>
12177: #include <sys/security.h>
12178: #include <prot.h>
1.23 millert 12179:
1.25 millert 12180: int
12181: main ()
12182: {
12183: exit(0);
12184: ;
12185: return 0;
12186: }
12187: _ACEOF
12188: rm -f conftest.$ac_objext
1.27 millert 12189: if { (ac_try="$ac_compile"
12190: case "(($ac_try" in
12191: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192: *) ac_try_echo=$ac_try;;
12193: esac
12194: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12196: ac_status=$?
12197: grep -v '^ *+' conftest.er1 >conftest.err
12198: rm -f conftest.er1
12199: cat conftest.err >&5
12200: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12201: (exit $ac_status); } && {
12202: test -z "$ac_c_werror_flag" ||
12203: test ! -s conftest.err
12204: } && test -s conftest.$ac_objext; then
12205: { echo "$as_me:$LINENO: result: no" >&5
12206: echo "${ECHO_T}no" >&6; }
1.25 millert 12207: else
12208: echo "$as_me: failed program was:" >&5
12209: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12210:
1.27 millert 12211: { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12212: echo "${ECHO_T}yes, fixing locally" >&6; }
12213: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
1.23 millert 12214:
1.25 millert 12215: fi
1.27 millert 12216:
12217: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 12218: : ${mansectsu='8'}
12219: : ${mansectform='4'}
12220: ;;
12221: *-*-irix*)
12222: OSDEFS="${OSDEFS} -D_BSD_TYPES"
12223: if test -z "$NROFFPROG"; then
12224: MAN_POSTINSTALL=' /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
12225: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12226: if test -d /usr/share/catman/local; then
12227: mandir="/usr/share/catman/local"
12228: else
12229: mandir="/usr/catman/local"
12230: fi
12231: fi
12232: else
12233: if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12234: if test -d "/usr/share/man/local"; then
12235: mandir="/usr/share/man/local"
12236: else
12237: mandir="/usr/man/local"
12238: fi
12239: fi
12240: fi
12241: # IRIX <= 4 needs -lsun
12242: if test "$OSMAJOR" -le 4; then
1.27 millert 12243: { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12244: echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
1.25 millert 12245: if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12246: echo $ECHO_N "(cached) $ECHO_C" >&6
12247: else
12248: ac_check_lib_save_LIBS=$LIBS
12249: LIBS="-lsun $LIBS"
12250: cat >conftest.$ac_ext <<_ACEOF
12251: /* confdefs.h. */
12252: _ACEOF
12253: cat confdefs.h >>conftest.$ac_ext
12254: cat >>conftest.$ac_ext <<_ACEOF
12255: /* end confdefs.h. */
1.23 millert 12256:
1.27 millert 12257: /* Override any GCC internal prototype to avoid an error.
12258: Use char because int might match the return type of a GCC
12259: builtin and then its argument prototype would still apply. */
1.25 millert 12260: #ifdef __cplusplus
12261: extern "C"
12262: #endif
12263: char getpwnam ();
12264: int
12265: main ()
12266: {
1.27 millert 12267: return getpwnam ();
1.25 millert 12268: ;
12269: return 0;
12270: }
12271: _ACEOF
12272: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 12273: if { (ac_try="$ac_link"
12274: case "(($ac_try" in
12275: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12276: *) ac_try_echo=$ac_try;;
12277: esac
12278: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12279: (eval "$ac_link") 2>conftest.er1
1.25 millert 12280: ac_status=$?
12281: grep -v '^ *+' conftest.er1 >conftest.err
12282: rm -f conftest.er1
12283: cat conftest.err >&5
12284: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12285: (exit $ac_status); } && {
12286: test -z "$ac_c_werror_flag" ||
12287: test ! -s conftest.err
12288: } && test -s conftest$ac_exeext &&
12289: $as_test_x conftest$ac_exeext; then
1.25 millert 12290: ac_cv_lib_sun_getpwnam=yes
12291: else
12292: echo "$as_me: failed program was:" >&5
12293: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12294:
1.27 millert 12295: ac_cv_lib_sun_getpwnam=no
1.25 millert 12296: fi
1.27 millert 12297:
12298: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 12299: conftest$ac_exeext conftest.$ac_ext
12300: LIBS=$ac_check_lib_save_LIBS
12301: fi
1.27 millert 12302: { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12303: echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
1.25 millert 12304: if test $ac_cv_lib_sun_getpwnam = yes; then
12305: LIBS="${LIBS} -lsun"
12306: fi
1.23 millert 12307:
1.25 millert 12308: fi
12309: : ${mansectsu='1m'}
12310: : ${mansectform='4'}
12311: ;;
1.36 millert 12312: *-*-linux*|*-*-k*bsd*-gnu)
1.25 millert 12313: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12314: # Some Linux versions need to link with -lshadow
12315: shadow_funcs="getspnam"
12316: shadow_libs_optional="-lshadow"
1.27 millert 12317: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12318: ;;
12319: *-convex-bsd*)
12320: OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12321: if test -z "$GCC"; then
12322: CFLAGS="${CFLAGS} -D__STDC__"
12323: fi
1.23 millert 12324:
1.25 millert 12325: shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12326: shadow_funcs="getprpwnam"
12327: shadow_libs="-lprot"
12328: ;;
12329: *-*-ultrix*)
12330: OS="ultrix"
12331: shadow_funcs="getauthuid"
12332: shadow_libs="-lauth"
12333: ;;
12334: *-*-riscos*)
12335: LIBS="${LIBS} -lsun -lbsd"
12336: CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12337: OSDEFS="${OSDEFS} -D_MIPS"
12338: : ${mansectsu='1m'}
12339: : ${mansectform='4'}
12340: ;;
12341: *-*-isc*)
12342: OSDEFS="${OSDEFS} -D_ISC"
12343: LIB_CRYPT=1
12344: SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12345: LIBS="${LIBS} -lcrypt"
1.23 millert 12346:
1.25 millert 12347: shadow_funcs="getspnam"
12348: shadow_libs="-lsec"
1.23 millert 12349:
1.25 millert 12350: : ${mansectsu='1m'}
12351: : ${mansectform='4'}
12352: ;;
12353: *-*-sco*|*-sco-*)
12354: shadow_funcs="getprpwnam"
12355: shadow_libs="-lprot -lx"
12356: : ${mansectsu='1m'}
12357: : ${mansectform='4'}
12358: ;;
12359: m88k-motorola-sysv*)
12360: # motorolla's cc (a variant of gcc) does -O but not -O2
12361: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12362: : ${mansectsu='1m'}
12363: : ${mansectform='4'}
12364: ;;
12365: *-sequent-sysv*)
12366: shadow_funcs="getspnam"
12367: shadow_libs="-lsec"
12368: : ${mansectsu='1m'}
12369: : ${mansectform='4'}
12370: : ${with_rpath='yes'}
12371: ;;
12372: *-ncr-sysv4*|*-ncr-sysvr4*)
1.27 millert 12373: { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12374: echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
1.25 millert 12375: if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12376: echo $ECHO_N "(cached) $ECHO_C" >&6
12377: else
12378: ac_check_lib_save_LIBS=$LIBS
12379: LIBS="-lc89 $LIBS"
12380: cat >conftest.$ac_ext <<_ACEOF
12381: /* confdefs.h. */
12382: _ACEOF
12383: cat confdefs.h >>conftest.$ac_ext
12384: cat >>conftest.$ac_ext <<_ACEOF
12385: /* end confdefs.h. */
1.23 millert 12386:
1.27 millert 12387: /* Override any GCC internal prototype to avoid an error.
12388: Use char because int might match the return type of a GCC
12389: builtin and then its argument prototype would still apply. */
1.25 millert 12390: #ifdef __cplusplus
12391: extern "C"
12392: #endif
12393: char strcasecmp ();
12394: int
12395: main ()
12396: {
1.27 millert 12397: return strcasecmp ();
1.25 millert 12398: ;
12399: return 0;
12400: }
12401: _ACEOF
12402: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 12403: if { (ac_try="$ac_link"
12404: case "(($ac_try" in
12405: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406: *) ac_try_echo=$ac_try;;
12407: esac
12408: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409: (eval "$ac_link") 2>conftest.er1
1.25 millert 12410: ac_status=$?
12411: grep -v '^ *+' conftest.er1 >conftest.err
12412: rm -f conftest.er1
12413: cat conftest.err >&5
12414: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12415: (exit $ac_status); } && {
12416: test -z "$ac_c_werror_flag" ||
12417: test ! -s conftest.err
12418: } && test -s conftest$ac_exeext &&
12419: $as_test_x conftest$ac_exeext; then
1.25 millert 12420: ac_cv_lib_c89_strcasecmp=yes
12421: else
12422: echo "$as_me: failed program was:" >&5
12423: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12424:
1.27 millert 12425: ac_cv_lib_c89_strcasecmp=no
1.25 millert 12426: fi
1.27 millert 12427:
12428: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 12429: conftest$ac_exeext conftest.$ac_ext
12430: LIBS=$ac_check_lib_save_LIBS
12431: fi
1.27 millert 12432: { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12433: echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
1.25 millert 12434: if test $ac_cv_lib_c89_strcasecmp = yes; then
12435: cat >>confdefs.h <<\_ACEOF
12436: #define HAVE_STRCASECMP 1
12437: _ACEOF
12438: LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12439: fi
1.23 millert 12440:
1.25 millert 12441: : ${mansectsu='1m'}
12442: : ${mansectform='4'}
12443: : ${with_rpath='yes'}
12444: ;;
12445: *-ccur-sysv4*|*-ccur-sysvr4*)
12446: LIBS="${LIBS} -lgen"
12447: SUDO_LIBS="${SUDO_LIBS} -lgen"
12448: : ${mansectsu='1m'}
12449: : ${mansectform='4'}
12450: : ${with_rpath='yes'}
12451: ;;
12452: *-*-bsdi*)
12453: SKIP_SETREUID=yes
12454: # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12455: if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12456: case "$OSMAJOR" in
12457: 2|3) { echo "$as_me:$LINENO: using shlicc as CC" >&5
12458: echo "$as_me: using shlicc as CC" >&6;}
12459: ac_cv_prog_CC=shlicc
12460: CC="$ac_cv_prog_CC"
12461: ;;
12462: esac
12463: fi
12464: # Check for newer BSD auth API (just check for >= 3.0?)
12465: if test -z "$with_bsdauth"; then
1.23 millert 12466:
1.25 millert 12467: for ac_func in auth_challenge
12468: do
12469: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 12470: { echo "$as_me:$LINENO: checking for $ac_func" >&5
12471: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12472: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 12473: echo $ECHO_N "(cached) $ECHO_C" >&6
12474: else
12475: cat >conftest.$ac_ext <<_ACEOF
12476: /* confdefs.h. */
12477: _ACEOF
12478: cat confdefs.h >>conftest.$ac_ext
12479: cat >>conftest.$ac_ext <<_ACEOF
12480: /* end confdefs.h. */
12481: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12482: For example, HP-UX 11i <limits.h> declares gettimeofday. */
12483: #define $ac_func innocuous_$ac_func
1.23 millert 12484:
1.25 millert 12485: /* System header to define __stub macros and hopefully few prototypes,
12486: which can conflict with char $ac_func (); below.
12487: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12488: <limits.h> exists even on freestanding compilers. */
1.23 millert 12489:
1.25 millert 12490: #ifdef __STDC__
12491: # include <limits.h>
12492: #else
12493: # include <assert.h>
12494: #endif
1.23 millert 12495:
1.25 millert 12496: #undef $ac_func
1.23 millert 12497:
1.27 millert 12498: /* Override any GCC internal prototype to avoid an error.
12499: Use char because int might match the return type of a GCC
12500: builtin and then its argument prototype would still apply. */
1.25 millert 12501: #ifdef __cplusplus
12502: extern "C"
12503: #endif
12504: char $ac_func ();
12505: /* The GNU C library defines this for functions which it implements
12506: to always fail with ENOSYS. Some functions are actually named
12507: something starting with __ and the normal name is an alias. */
1.27 millert 12508: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 12509: choke me
12510: #endif
1.23 millert 12511:
1.25 millert 12512: int
12513: main ()
12514: {
1.27 millert 12515: return $ac_func ();
1.25 millert 12516: ;
12517: return 0;
12518: }
12519: _ACEOF
12520: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 12521: if { (ac_try="$ac_link"
12522: case "(($ac_try" in
12523: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12524: *) ac_try_echo=$ac_try;;
12525: esac
12526: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12527: (eval "$ac_link") 2>conftest.er1
1.25 millert 12528: ac_status=$?
12529: grep -v '^ *+' conftest.er1 >conftest.err
12530: rm -f conftest.er1
12531: cat conftest.err >&5
12532: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12533: (exit $ac_status); } && {
12534: test -z "$ac_c_werror_flag" ||
12535: test ! -s conftest.err
12536: } && test -s conftest$ac_exeext &&
12537: $as_test_x conftest$ac_exeext; then
1.25 millert 12538: eval "$as_ac_var=yes"
12539: else
12540: echo "$as_me: failed program was:" >&5
12541: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12542:
1.27 millert 12543: eval "$as_ac_var=no"
1.25 millert 12544: fi
1.27 millert 12545:
12546: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 12547: conftest$ac_exeext conftest.$ac_ext
12548: fi
1.27 millert 12549: ac_res=`eval echo '${'$as_ac_var'}'`
12550: { echo "$as_me:$LINENO: result: $ac_res" >&5
12551: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 12552: if test `eval echo '${'$as_ac_var'}'` = yes; then
12553: cat >>confdefs.h <<_ACEOF
12554: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12555: _ACEOF
1.27 millert 12556: AUTH_EXCL_DEF="BSD_AUTH"
1.25 millert 12557: fi
12558: done
1.23 millert 12559:
1.25 millert 12560: fi
12561: ;;
12562: *-*-freebsd*)
12563: # FreeBSD has a real setreuid(2) starting with 2.1 and
12564: # backported to 2.0.5. We just take 2.1 and above...
12565: case "$OSREV" in
12566: 0.*|1.*|2.0*)
12567: SKIP_SETREUID=yes
12568: ;;
12569: esac
12570: if test "$with_skey" = "yes"; then
12571: SUDO_LIBS="${SUDO_LIBS} -lmd"
12572: fi
1.27 millert 12573: CHECKSHADOW="false"
12574: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12575: : ${with_logincap='maybe'}
12576: ;;
12577: *-*-*openbsd*)
12578: # OpenBSD has a real setreuid(2) starting with 3.3 but
12579: # we will use setreuid(2) instead.
12580: SKIP_SETREUID=yes
1.27 millert 12581: CHECKSHADOW="false"
1.25 millert 12582: # OpenBSD >= 3.0 supports BSD auth
12583: if test -z "$with_bsdauth"; then
12584: case "$OSREV" in
12585: 0-2.*)
12586: ;;
12587: *)
1.27 millert 12588: AUTH_EXCL_DEF="BSD_AUTH"
1.25 millert 12589: ;;
12590: esac
12591: fi
12592: : ${with_logincap='maybe'}
12593: ;;
12594: *-*-*netbsd*)
12595: # NetBSD has a real setreuid(2) starting with 1.3.2
12596: case "$OSREV" in
12597: 0.9*|1.012*|1.3|1.3.1)
12598: SKIP_SETREUID=yes
12599: ;;
12600: esac
1.27 millert 12601: CHECKSHADOW="false"
12602: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12603: : ${with_logincap='maybe'}
12604: ;;
12605: *-*-dragonfly*)
12606: if test "$with_skey" = "yes"; then
12607: SUDO_LIBS="${SUDO_LIBS} -lmd"
12608: fi
1.27 millert 12609: CHECKSHADOW="false"
12610: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12611: : ${with_logincap='yes'}
12612: ;;
12613: *-*-*bsd*)
1.27 millert 12614: CHECKSHADOW="false"
1.25 millert 12615: ;;
12616: *-*-darwin*)
12617: SKIP_SETREUID=yes
1.27 millert 12618: CHECKSHADOW="false"
12619: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
1.25 millert 12620: : ${with_logincap='yes'}
12621: ;;
12622: *-*-nextstep*)
12623: # lockf() on is broken on the NeXT -- use flock instead
12624: ac_cv_func_lockf=no
12625: ac_cv_func_flock=yes
12626: ;;
12627: *-*-*sysv4*)
12628: : ${mansectsu='1m'}
12629: : ${mansectform='4'}
12630: : ${with_rpath='yes'}
12631: ;;
12632: *-*-sysv*)
12633: : ${mansectsu='1m'}
12634: : ${mansectform='4'}
1.27 millert 12635: ;;
12636: *-gnu*)
12637: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12638: ;;
12639: esac
12640:
12641: AUTH_REG=${AUTH_REG# }
12642: AUTH_EXCL=${AUTH_EXCL# }
12643: if test -n "$AUTH_EXCL"; then
12644: set -- $AUTH_EXCL
12645: if test $# != 1; then
12646: { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12647: echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12648: { (exit 1); exit 1; }; }
12649: fi
12650: if test -n "$AUTH_REG"; then
12651: { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12652: echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12653: { (exit 1); exit 1; }; }
12654: fi
12655: fi
12656: if test X"${with_skey}${with_opie}" = X"yesyes"; then
12657: { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12658: echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12659: { (exit 1); exit 1; }; }
12660: fi
1.23 millert 12661:
1.25 millert 12662: : ${mansectsu='8'}
12663: : ${mansectform='5'}
1.23 millert 12664:
1.25 millert 12665: if test -n "$with_libpath"; then
12666: for i in ${with_libpath}; do
1.23 millert 12667:
1.25 millert 12668: if test X"$with_rpath" = X"yes"; then
12669: LDFLAGS="${LDFLAGS} -L$i -R$i"
12670: else
12671: LDFLAGS="${LDFLAGS} -L$i"
12672: fi
12673: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12674: blibpath_add="${blibpath_add}:$i"
12675: fi
1.23 millert 12676:
1.25 millert 12677: done
12678: fi
12679: if test -n "$with_libraries"; then
12680: for i in ${with_libraries}; do
12681: case $i in
12682: -l*) ;;
12683: *.a) ;;
12684: *.o) ;;
12685: *) i="-l${i}";;
12686: esac
12687: LIBS="${LIBS} ${i}"
12688: done
12689: fi
1.23 millert 12690:
1.25 millert 12691: if test $ac_cv_c_compiler_gnu = yes; then
1.27 millert 12692: { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12693: echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
1.25 millert 12694: if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12695: echo $ECHO_N "(cached) $ECHO_C" >&6
12696: else
12697: ac_pattern="Autoconf.*'x'"
12698: cat >conftest.$ac_ext <<_ACEOF
12699: /* confdefs.h. */
12700: _ACEOF
12701: cat confdefs.h >>conftest.$ac_ext
12702: cat >>conftest.$ac_ext <<_ACEOF
12703: /* end confdefs.h. */
12704: #include <sgtty.h>
12705: Autoconf TIOCGETP
12706: _ACEOF
12707: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12708: $EGREP "$ac_pattern" >/dev/null 2>&1; then
12709: ac_cv_prog_gcc_traditional=yes
12710: else
12711: ac_cv_prog_gcc_traditional=no
12712: fi
12713: rm -f conftest*
1.23 millert 12714:
12715:
1.25 millert 12716: if test $ac_cv_prog_gcc_traditional = no; then
12717: cat >conftest.$ac_ext <<_ACEOF
12718: /* confdefs.h. */
12719: _ACEOF
12720: cat confdefs.h >>conftest.$ac_ext
12721: cat >>conftest.$ac_ext <<_ACEOF
12722: /* end confdefs.h. */
12723: #include <termio.h>
12724: Autoconf TCGETA
12725: _ACEOF
12726: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727: $EGREP "$ac_pattern" >/dev/null 2>&1; then
12728: ac_cv_prog_gcc_traditional=yes
12729: fi
12730: rm -f conftest*
1.23 millert 12731:
1.25 millert 12732: fi
12733: fi
1.27 millert 12734: { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12735: echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
1.25 millert 12736: if test $ac_cv_prog_gcc_traditional = yes; then
12737: CC="$CC -traditional"
12738: fi
12739: fi
1.23 millert 12740:
1.27 millert 12741: { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12742: echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
1.25 millert 12743: if test "${ac_cv_c_const+set}" = set; then
12744: echo $ECHO_N "(cached) $ECHO_C" >&6
12745: else
12746: cat >conftest.$ac_ext <<_ACEOF
12747: /* confdefs.h. */
12748: _ACEOF
12749: cat confdefs.h >>conftest.$ac_ext
12750: cat >>conftest.$ac_ext <<_ACEOF
12751: /* end confdefs.h. */
1.23 millert 12752:
1.25 millert 12753: int
12754: main ()
12755: {
12756: /* FIXME: Include the comments suggested by Paul. */
12757: #ifndef __cplusplus
12758: /* Ultrix mips cc rejects this. */
12759: typedef int charset[2];
1.27 millert 12760: const charset cs;
1.25 millert 12761: /* SunOS 4.1.1 cc rejects this. */
1.27 millert 12762: char const *const *pcpcc;
12763: char **ppc;
1.25 millert 12764: /* NEC SVR4.0.2 mips cc rejects this. */
12765: struct point {int x, y;};
12766: static struct point const zero = {0,0};
12767: /* AIX XL C 1.02.0.0 rejects this.
12768: It does not let you subtract one const X* pointer from another in
12769: an arm of an if-expression whose if-part is not a constant
12770: expression */
12771: const char *g = "string";
1.27 millert 12772: pcpcc = &g + (g ? g-g : 0);
1.25 millert 12773: /* HPUX 7.0 cc rejects these. */
1.27 millert 12774: ++pcpcc;
12775: ppc = (char**) pcpcc;
12776: pcpcc = (char const *const *) ppc;
1.25 millert 12777: { /* SCO 3.2v4 cc rejects this. */
12778: char *t;
12779: char const *s = 0 ? (char *) 0 : (char const *) 0;
1.23 millert 12780:
1.25 millert 12781: *t++ = 0;
1.27 millert 12782: if (s) return 0;
1.25 millert 12783: }
12784: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12785: int x[] = {25, 17};
12786: const int *foo = &x[0];
12787: ++foo;
12788: }
12789: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12790: typedef const int *iptr;
12791: iptr p = 0;
12792: ++p;
12793: }
12794: { /* AIX XL C 1.02.0.0 rejects this saying
12795: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12796: struct s { int j; const int *ap[3]; };
12797: struct s *b; b->j = 5;
12798: }
12799: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12800: const int foo = 10;
1.27 millert 12801: if (!foo) return 0;
1.25 millert 12802: }
1.27 millert 12803: return !cs[0] && !zero.x;
1.25 millert 12804: #endif
1.23 millert 12805:
1.25 millert 12806: ;
12807: return 0;
12808: }
12809: _ACEOF
12810: rm -f conftest.$ac_objext
1.27 millert 12811: if { (ac_try="$ac_compile"
12812: case "(($ac_try" in
12813: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12814: *) ac_try_echo=$ac_try;;
12815: esac
12816: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12817: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12818: ac_status=$?
12819: grep -v '^ *+' conftest.er1 >conftest.err
12820: rm -f conftest.er1
12821: cat conftest.err >&5
12822: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12823: (exit $ac_status); } && {
12824: test -z "$ac_c_werror_flag" ||
12825: test ! -s conftest.err
12826: } && test -s conftest.$ac_objext; then
1.25 millert 12827: ac_cv_c_const=yes
12828: else
12829: echo "$as_me: failed program was:" >&5
12830: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12831:
1.27 millert 12832: ac_cv_c_const=no
1.25 millert 12833: fi
1.27 millert 12834:
12835: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 12836: fi
1.27 millert 12837: { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12838: echo "${ECHO_T}$ac_cv_c_const" >&6; }
1.25 millert 12839: if test $ac_cv_c_const = no; then
1.23 millert 12840:
1.25 millert 12841: cat >>confdefs.h <<\_ACEOF
12842: #define const
12843: _ACEOF
1.23 millert 12844:
1.25 millert 12845: fi
1.23 millert 12846:
1.27 millert 12847: { echo "$as_me:$LINENO: checking for working volatile" >&5
12848: echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
1.25 millert 12849: if test "${ac_cv_c_volatile+set}" = set; then
12850: echo $ECHO_N "(cached) $ECHO_C" >&6
12851: else
12852: cat >conftest.$ac_ext <<_ACEOF
12853: /* confdefs.h. */
12854: _ACEOF
12855: cat confdefs.h >>conftest.$ac_ext
12856: cat >>conftest.$ac_ext <<_ACEOF
12857: /* end confdefs.h. */
1.23 millert 12858:
1.25 millert 12859: int
12860: main ()
12861: {
1.23 millert 12862:
1.25 millert 12863: volatile int x;
1.27 millert 12864: int * volatile y = (int *) 0;
12865: return !x && !y;
1.25 millert 12866: ;
12867: return 0;
12868: }
12869: _ACEOF
12870: rm -f conftest.$ac_objext
1.27 millert 12871: if { (ac_try="$ac_compile"
12872: case "(($ac_try" in
12873: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12874: *) ac_try_echo=$ac_try;;
12875: esac
12876: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12877: (eval "$ac_compile") 2>conftest.er1
1.25 millert 12878: ac_status=$?
12879: grep -v '^ *+' conftest.er1 >conftest.err
12880: rm -f conftest.er1
12881: cat conftest.err >&5
12882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 12883: (exit $ac_status); } && {
12884: test -z "$ac_c_werror_flag" ||
12885: test ! -s conftest.err
12886: } && test -s conftest.$ac_objext; then
1.25 millert 12887: ac_cv_c_volatile=yes
12888: else
12889: echo "$as_me: failed program was:" >&5
12890: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 12891:
1.27 millert 12892: ac_cv_c_volatile=no
1.25 millert 12893: fi
1.27 millert 12894:
12895: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 12896: fi
1.27 millert 12897: { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12898: echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
1.25 millert 12899: if test $ac_cv_c_volatile = no; then
1.23 millert 12900:
1.25 millert 12901: cat >>confdefs.h <<\_ACEOF
12902: #define volatile
12903: _ACEOF
1.23 millert 12904:
1.25 millert 12905: fi
1.23 millert 12906:
1.25 millert 12907: for ac_prog in 'bison -y' byacc
12908: do
12909: # Extract the first word of "$ac_prog", so it can be a program name with args.
12910: set dummy $ac_prog; ac_word=$2
1.27 millert 12911: { echo "$as_me:$LINENO: checking for $ac_word" >&5
12912: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1.25 millert 12913: if test "${ac_cv_prog_YACC+set}" = set; then
12914: echo $ECHO_N "(cached) $ECHO_C" >&6
12915: else
12916: if test -n "$YACC"; then
12917: ac_cv_prog_YACC="$YACC" # Let the user override the test.
12918: else
12919: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12920: for as_dir in $PATH
12921: do
12922: IFS=$as_save_IFS
12923: test -z "$as_dir" && as_dir=.
12924: for ac_exec_ext in '' $ac_executable_extensions; do
1.27 millert 12925: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.25 millert 12926: ac_cv_prog_YACC="$ac_prog"
12927: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12928: break 2
12929: fi
12930: done
12931: done
1.27 millert 12932: IFS=$as_save_IFS
1.23 millert 12933:
1.25 millert 12934: fi
12935: fi
12936: YACC=$ac_cv_prog_YACC
12937: if test -n "$YACC"; then
1.27 millert 12938: { echo "$as_me:$LINENO: result: $YACC" >&5
12939: echo "${ECHO_T}$YACC" >&6; }
1.25 millert 12940: else
1.27 millert 12941: { echo "$as_me:$LINENO: result: no" >&5
12942: echo "${ECHO_T}no" >&6; }
1.25 millert 12943: fi
1.23 millert 12944:
1.27 millert 12945:
1.25 millert 12946: test -n "$YACC" && break
12947: done
12948: test -n "$YACC" || YACC="yacc"
1.23 millert 12949:
1.27 millert 12950: { echo "$as_me:$LINENO: checking for mv" >&5
12951: echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
1.25 millert 12952: if test -f "/usr/bin/mv"; then
1.27 millert 12953: { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12954: echo "${ECHO_T}/usr/bin/mv" >&6; }
1.25 millert 12955: cat >>confdefs.h <<\EOF
12956: #define _PATH_MV "/usr/bin/mv"
12957: EOF
1.23 millert 12958:
1.25 millert 12959: elif test -f "/bin/mv"; then
1.27 millert 12960: { echo "$as_me:$LINENO: result: /bin/mv" >&5
12961: echo "${ECHO_T}/bin/mv" >&6; }
1.25 millert 12962: cat >>confdefs.h <<\EOF
12963: #define _PATH_MV "/bin/mv"
12964: EOF
1.23 millert 12965:
1.25 millert 12966: elif test -f "/usr/ucb/mv"; then
1.27 millert 12967: { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12968: echo "${ECHO_T}/usr/ucb/mv" >&6; }
1.25 millert 12969: cat >>confdefs.h <<\EOF
12970: #define _PATH_MV "/usr/ucb/mv"
12971: EOF
1.23 millert 12972:
1.25 millert 12973: elif test -f "/usr/sbin/mv"; then
1.27 millert 12974: { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12975: echo "${ECHO_T}/usr/sbin/mv" >&6; }
1.25 millert 12976: cat >>confdefs.h <<\EOF
12977: #define _PATH_MV "/usr/sbin/mv"
12978: EOF
1.23 millert 12979:
1.25 millert 12980: else
1.27 millert 12981: { echo "$as_me:$LINENO: result: not found" >&5
12982: echo "${ECHO_T}not found" >&6; }
1.25 millert 12983: fi
1.23 millert 12984:
1.27 millert 12985: { echo "$as_me:$LINENO: checking for bourne shell" >&5
12986: echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
1.25 millert 12987: if test -f "/bin/sh"; then
1.27 millert 12988: { echo "$as_me:$LINENO: result: /bin/sh" >&5
12989: echo "${ECHO_T}/bin/sh" >&6; }
1.25 millert 12990: cat >>confdefs.h <<\EOF
12991: #define _PATH_BSHELL "/bin/sh"
12992: EOF
1.23 millert 12993:
1.25 millert 12994: elif test -f "/usr/bin/sh"; then
1.27 millert 12995: { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12996: echo "${ECHO_T}/usr/bin/sh" >&6; }
1.25 millert 12997: cat >>confdefs.h <<\EOF
12998: #define _PATH_BSHELL "/usr/bin/sh"
12999: EOF
1.23 millert 13000:
1.25 millert 13001: elif test -f "/sbin/sh"; then
1.27 millert 13002: { echo "$as_me:$LINENO: result: /sbin/sh" >&5
13003: echo "${ECHO_T}/sbin/sh" >&6; }
1.25 millert 13004: cat >>confdefs.h <<\EOF
13005: #define _PATH_BSHELL "/sbin/sh"
13006: EOF
1.23 millert 13007:
1.25 millert 13008: elif test -f "/usr/sbin/sh"; then
1.27 millert 13009: { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
13010: echo "${ECHO_T}/usr/sbin/sh" >&6; }
1.25 millert 13011: cat >>confdefs.h <<\EOF
13012: #define _PATH_BSHELL "/usr/sbin/sh"
13013: EOF
1.23 millert 13014:
1.25 millert 13015: elif test -f "/bin/ksh"; then
1.27 millert 13016: { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13017: echo "${ECHO_T}/bin/ksh" >&6; }
1.25 millert 13018: cat >>confdefs.h <<\EOF
13019: #define _PATH_BSHELL "/bin/ksh"
13020: EOF
1.23 millert 13021:
1.25 millert 13022: elif test -f "/usr/bin/ksh"; then
1.27 millert 13023: { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13024: echo "${ECHO_T}/usr/bin/ksh" >&6; }
1.25 millert 13025: cat >>confdefs.h <<\EOF
13026: #define _PATH_BSHELL "/usr/bin/ksh"
13027: EOF
1.23 millert 13028:
1.25 millert 13029: elif test -f "/bin/bash"; then
1.27 millert 13030: { echo "$as_me:$LINENO: result: /bin/bash" >&5
13031: echo "${ECHO_T}/bin/bash" >&6; }
1.25 millert 13032: cat >>confdefs.h <<\EOF
13033: #define _PATH_BSHELL "/bin/bash"
13034: EOF
1.23 millert 13035:
1.25 millert 13036: elif test -f "/usr/bin/bash"; then
1.27 millert 13037: { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13038: echo "${ECHO_T}/usr/bin/bash" >&6; }
1.25 millert 13039: cat >>confdefs.h <<\EOF
13040: #define _PATH_BSHELL "/usr/bin/bash"
13041: EOF
1.23 millert 13042:
1.25 millert 13043: else
1.27 millert 13044: { echo "$as_me:$LINENO: result: not found" >&5
13045: echo "${ECHO_T}not found" >&6; }
1.25 millert 13046: fi
1.23 millert 13047:
1.25 millert 13048: if test -z "$with_sendmail"; then
1.27 millert 13049: { echo "$as_me:$LINENO: checking for sendmail" >&5
13050: echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
1.25 millert 13051: if test -f "/usr/sbin/sendmail"; then
1.27 millert 13052: { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13053: echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
1.25 millert 13054: cat >>confdefs.h <<\EOF
13055: #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13056: EOF
1.23 millert 13057:
1.25 millert 13058: elif test -f "/usr/lib/sendmail"; then
1.27 millert 13059: { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13060: echo "${ECHO_T}/usr/lib/sendmail" >&6; }
1.25 millert 13061: cat >>confdefs.h <<\EOF
13062: #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13063: EOF
1.23 millert 13064:
1.25 millert 13065: elif test -f "/usr/etc/sendmail"; then
1.27 millert 13066: { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13067: echo "${ECHO_T}/usr/etc/sendmail" >&6; }
1.25 millert 13068: cat >>confdefs.h <<\EOF
13069: #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13070: EOF
1.23 millert 13071:
1.25 millert 13072: elif test -f "/usr/ucblib/sendmail"; then
1.27 millert 13073: { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13074: echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
1.25 millert 13075: cat >>confdefs.h <<\EOF
13076: #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13077: EOF
1.23 millert 13078:
1.25 millert 13079: elif test -f "/usr/local/lib/sendmail"; then
1.27 millert 13080: { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13081: echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
1.25 millert 13082: cat >>confdefs.h <<\EOF
13083: #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13084: EOF
1.23 millert 13085:
1.25 millert 13086: elif test -f "/usr/local/bin/sendmail"; then
1.27 millert 13087: { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13088: echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
1.25 millert 13089: cat >>confdefs.h <<\EOF
13090: #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13091: EOF
1.23 millert 13092:
1.25 millert 13093: else
1.27 millert 13094: { echo "$as_me:$LINENO: result: not found" >&5
13095: echo "${ECHO_T}not found" >&6; }
1.25 millert 13096: fi
1.23 millert 13097:
1.25 millert 13098: fi
13099: if test -z "$with_editor"; then
1.27 millert 13100: { echo "$as_me:$LINENO: checking for vi" >&5
13101: echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
1.25 millert 13102: if test -f "/usr/bin/vi"; then
1.27 millert 13103: { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13104: echo "${ECHO_T}/usr/bin/vi" >&6; }
1.25 millert 13105: cat >>confdefs.h <<\EOF
13106: #define _PATH_VI "/usr/bin/vi"
13107: EOF
1.23 millert 13108:
1.25 millert 13109: elif test -f "/usr/ucb/vi"; then
1.27 millert 13110: { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13111: echo "${ECHO_T}/usr/ucb/vi" >&6; }
1.25 millert 13112: cat >>confdefs.h <<\EOF
13113: #define _PATH_VI "/usr/ucb/vi"
13114: EOF
1.23 millert 13115:
1.25 millert 13116: elif test -f "/usr/bsd/vi"; then
1.27 millert 13117: { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13118: echo "${ECHO_T}/usr/bsd/vi" >&6; }
1.25 millert 13119: cat >>confdefs.h <<\EOF
13120: #define _PATH_VI "/usr/bsd/vi"
13121: EOF
1.23 millert 13122:
1.25 millert 13123: elif test -f "/bin/vi"; then
1.27 millert 13124: { echo "$as_me:$LINENO: result: /bin/vi" >&5
13125: echo "${ECHO_T}/bin/vi" >&6; }
1.25 millert 13126: cat >>confdefs.h <<\EOF
13127: #define _PATH_VI "/bin/vi"
13128: EOF
1.23 millert 13129:
1.25 millert 13130: elif test -f "/usr/local/bin/vi"; then
1.27 millert 13131: { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13132: echo "${ECHO_T}/usr/local/bin/vi" >&6; }
1.25 millert 13133: cat >>confdefs.h <<\EOF
13134: #define _PATH_VI "/usr/local/bin/vi"
13135: EOF
1.23 millert 13136:
13137: else
1.27 millert 13138: { echo "$as_me:$LINENO: result: not found" >&5
13139: echo "${ECHO_T}not found" >&6; }
1.23 millert 13140: fi
13141:
1.25 millert 13142: fi
1.27 millert 13143: { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13144: echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
1.25 millert 13145: if test "${ac_cv_header_stdc+set}" = set; then
13146: echo $ECHO_N "(cached) $ECHO_C" >&6
13147: else
13148: cat >conftest.$ac_ext <<_ACEOF
13149: /* confdefs.h. */
13150: _ACEOF
13151: cat confdefs.h >>conftest.$ac_ext
13152: cat >>conftest.$ac_ext <<_ACEOF
13153: /* end confdefs.h. */
13154: #include <stdlib.h>
13155: #include <stdarg.h>
13156: #include <string.h>
13157: #include <float.h>
1.23 millert 13158:
1.25 millert 13159: int
13160: main ()
13161: {
1.23 millert 13162:
1.25 millert 13163: ;
13164: return 0;
13165: }
13166: _ACEOF
13167: rm -f conftest.$ac_objext
1.27 millert 13168: if { (ac_try="$ac_compile"
13169: case "(($ac_try" in
13170: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171: *) ac_try_echo=$ac_try;;
13172: esac
13173: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174: (eval "$ac_compile") 2>conftest.er1
1.25 millert 13175: ac_status=$?
13176: grep -v '^ *+' conftest.er1 >conftest.err
13177: rm -f conftest.er1
13178: cat conftest.err >&5
13179: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13180: (exit $ac_status); } && {
13181: test -z "$ac_c_werror_flag" ||
13182: test ! -s conftest.err
13183: } && test -s conftest.$ac_objext; then
1.25 millert 13184: ac_cv_header_stdc=yes
13185: else
13186: echo "$as_me: failed program was:" >&5
13187: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 13188:
1.27 millert 13189: ac_cv_header_stdc=no
1.25 millert 13190: fi
1.27 millert 13191:
13192: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 13193:
1.25 millert 13194: if test $ac_cv_header_stdc = yes; then
13195: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13196: cat >conftest.$ac_ext <<_ACEOF
13197: /* confdefs.h. */
13198: _ACEOF
13199: cat confdefs.h >>conftest.$ac_ext
13200: cat >>conftest.$ac_ext <<_ACEOF
13201: /* end confdefs.h. */
13202: #include <string.h>
1.23 millert 13203:
1.25 millert 13204: _ACEOF
13205: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13206: $EGREP "memchr" >/dev/null 2>&1; then
13207: :
13208: else
13209: ac_cv_header_stdc=no
13210: fi
13211: rm -f conftest*
1.23 millert 13212:
13213: fi
13214:
1.25 millert 13215: if test $ac_cv_header_stdc = yes; then
13216: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13217: cat >conftest.$ac_ext <<_ACEOF
13218: /* confdefs.h. */
13219: _ACEOF
13220: cat confdefs.h >>conftest.$ac_ext
13221: cat >>conftest.$ac_ext <<_ACEOF
13222: /* end confdefs.h. */
13223: #include <stdlib.h>
1.23 millert 13224:
1.25 millert 13225: _ACEOF
13226: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13227: $EGREP "free" >/dev/null 2>&1; then
13228: :
1.23 millert 13229: else
1.25 millert 13230: ac_cv_header_stdc=no
1.23 millert 13231: fi
1.25 millert 13232: rm -f conftest*
1.23 millert 13233:
13234: fi
13235:
1.25 millert 13236: if test $ac_cv_header_stdc = yes; then
13237: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13238: if test "$cross_compiling" = yes; then
13239: :
1.1 millert 13240: else
1.25 millert 13241: cat >conftest.$ac_ext <<_ACEOF
13242: /* confdefs.h. */
13243: _ACEOF
13244: cat confdefs.h >>conftest.$ac_ext
13245: cat >>conftest.$ac_ext <<_ACEOF
13246: /* end confdefs.h. */
13247: #include <ctype.h>
1.27 millert 13248: #include <stdlib.h>
1.25 millert 13249: #if ((' ' & 0x0FF) == 0x020)
13250: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13251: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13252: #else
13253: # define ISLOWER(c) \
13254: (('a' <= (c) && (c) <= 'i') \
13255: || ('j' <= (c) && (c) <= 'r') \
13256: || ('s' <= (c) && (c) <= 'z'))
13257: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13258: #endif
13259:
13260: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13261: int
13262: main ()
13263: {
13264: int i;
13265: for (i = 0; i < 256; i++)
13266: if (XOR (islower (i), ISLOWER (i))
13267: || toupper (i) != TOUPPER (i))
1.27 millert 13268: return 2;
13269: return 0;
1.25 millert 13270: }
13271: _ACEOF
13272: rm -f conftest$ac_exeext
1.27 millert 13273: if { (ac_try="$ac_link"
13274: case "(($ac_try" in
13275: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13276: *) ac_try_echo=$ac_try;;
13277: esac
13278: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13279: (eval "$ac_link") 2>&5
1.25 millert 13280: ac_status=$?
13281: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
1.27 millert 13283: { (case "(($ac_try" in
13284: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13285: *) ac_try_echo=$ac_try;;
13286: esac
13287: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13288: (eval "$ac_try") 2>&5
1.25 millert 13289: ac_status=$?
13290: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291: (exit $ac_status); }; }; then
13292: :
1.1 millert 13293: else
1.25 millert 13294: echo "$as_me: program exited with status $ac_status" >&5
13295: echo "$as_me: failed program was:" >&5
13296: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 13297:
1.25 millert 13298: ( exit $ac_status )
13299: ac_cv_header_stdc=no
13300: fi
1.27 millert 13301: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.1 millert 13302: fi
1.27 millert 13303:
13304:
1.1 millert 13305: fi
13306: fi
1.27 millert 13307: { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13308: echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
1.25 millert 13309: if test $ac_cv_header_stdc = yes; then
1.1 millert 13310:
1.25 millert 13311: cat >>confdefs.h <<\_ACEOF
13312: #define STDC_HEADERS 1
13313: _ACEOF
1.9 millert 13314:
1.1 millert 13315: fi
13316:
1.25 millert 13317:
13318:
13319:
13320:
13321:
13322: ac_header_dirent=no
13323: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13324: as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
1.27 millert 13325: { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13326: echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13327: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13328: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13329: else
1.25 millert 13330: cat >conftest.$ac_ext <<_ACEOF
13331: /* confdefs.h. */
13332: _ACEOF
13333: cat confdefs.h >>conftest.$ac_ext
13334: cat >>conftest.$ac_ext <<_ACEOF
13335: /* end confdefs.h. */
13336: #include <sys/types.h>
13337: #include <$ac_hdr>
13338:
13339: int
13340: main ()
13341: {
13342: if ((DIR *) 0)
13343: return 0;
13344: ;
13345: return 0;
13346: }
13347: _ACEOF
13348: rm -f conftest.$ac_objext
1.27 millert 13349: if { (ac_try="$ac_compile"
13350: case "(($ac_try" in
13351: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13352: *) ac_try_echo=$ac_try;;
13353: esac
13354: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355: (eval "$ac_compile") 2>conftest.er1
1.25 millert 13356: ac_status=$?
13357: grep -v '^ *+' conftest.er1 >conftest.err
13358: rm -f conftest.er1
13359: cat conftest.err >&5
13360: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13361: (exit $ac_status); } && {
13362: test -z "$ac_c_werror_flag" ||
13363: test ! -s conftest.err
13364: } && test -s conftest.$ac_objext; then
1.25 millert 13365: eval "$as_ac_Header=yes"
1.1 millert 13366: else
1.25 millert 13367: echo "$as_me: failed program was:" >&5
13368: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 13369:
1.27 millert 13370: eval "$as_ac_Header=no"
1.1 millert 13371: fi
1.27 millert 13372:
13373: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.23 millert 13374: fi
1.27 millert 13375: ac_res=`eval echo '${'$as_ac_Header'}'`
13376: { echo "$as_me:$LINENO: result: $ac_res" >&5
13377: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 13378: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13379: cat >>confdefs.h <<_ACEOF
13380: #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13381: _ACEOF
1.9 millert 13382:
1.25 millert 13383: ac_header_dirent=$ac_hdr; break
1.9 millert 13384: fi
1.16 millert 13385:
1.25 millert 13386: done
13387: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13388: if test $ac_header_dirent = dirent.h; then
1.27 millert 13389: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13390: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25 millert 13391: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 13392: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13393: else
1.25 millert 13394: ac_func_search_save_LIBS=$LIBS
13395: cat >conftest.$ac_ext <<_ACEOF
13396: /* confdefs.h. */
13397: _ACEOF
13398: cat confdefs.h >>conftest.$ac_ext
13399: cat >>conftest.$ac_ext <<_ACEOF
13400: /* end confdefs.h. */
1.1 millert 13401:
1.27 millert 13402: /* Override any GCC internal prototype to avoid an error.
13403: Use char because int might match the return type of a GCC
13404: builtin and then its argument prototype would still apply. */
1.25 millert 13405: #ifdef __cplusplus
13406: extern "C"
13407: #endif
13408: char opendir ();
13409: int
13410: main ()
13411: {
1.27 millert 13412: return opendir ();
1.25 millert 13413: ;
13414: return 0;
13415: }
13416: _ACEOF
1.27 millert 13417: for ac_lib in '' dir; do
13418: if test -z "$ac_lib"; then
13419: ac_res="none required"
13420: else
13421: ac_res=-l$ac_lib
13422: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13423: fi
13424: rm -f conftest.$ac_objext conftest$ac_exeext
13425: if { (ac_try="$ac_link"
13426: case "(($ac_try" in
13427: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428: *) ac_try_echo=$ac_try;;
13429: esac
13430: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431: (eval "$ac_link") 2>conftest.er1
1.25 millert 13432: ac_status=$?
13433: grep -v '^ *+' conftest.er1 >conftest.err
13434: rm -f conftest.er1
13435: cat conftest.err >&5
13436: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13437: (exit $ac_status); } && {
13438: test -z "$ac_c_werror_flag" ||
13439: test ! -s conftest.err
13440: } && test -s conftest$ac_exeext &&
13441: $as_test_x conftest$ac_exeext; then
13442: ac_cv_search_opendir=$ac_res
1.1 millert 13443: else
1.25 millert 13444: echo "$as_me: failed program was:" >&5
13445: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 13446:
1.27 millert 13447:
1.1 millert 13448: fi
13449:
1.27 millert 13450: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13451: conftest$ac_exeext
13452: if test "${ac_cv_search_opendir+set}" = set; then
13453: break
13454: fi
13455: done
13456: if test "${ac_cv_search_opendir+set}" = set; then
13457: :
1.1 millert 13458: else
1.27 millert 13459: ac_cv_search_opendir=no
1.25 millert 13460: fi
1.27 millert 13461: rm conftest.$ac_ext
1.25 millert 13462: LIBS=$ac_func_search_save_LIBS
1.1 millert 13463: fi
1.27 millert 13464: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13465: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13466: ac_res=$ac_cv_search_opendir
13467: if test "$ac_res" != no; then
13468: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.1 millert 13469:
1.25 millert 13470: fi
1.1 millert 13471:
1.25 millert 13472: else
1.27 millert 13473: { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13474: echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
1.25 millert 13475: if test "${ac_cv_search_opendir+set}" = set; then
1.9 millert 13476: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13477: else
1.25 millert 13478: ac_func_search_save_LIBS=$LIBS
13479: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13480: /* confdefs.h. */
13481: _ACEOF
13482: cat confdefs.h >>conftest.$ac_ext
13483: cat >>conftest.$ac_ext <<_ACEOF
13484: /* end confdefs.h. */
1.25 millert 13485:
1.27 millert 13486: /* Override any GCC internal prototype to avoid an error.
13487: Use char because int might match the return type of a GCC
13488: builtin and then its argument prototype would still apply. */
1.9 millert 13489: #ifdef __cplusplus
13490: extern "C"
13491: #endif
1.25 millert 13492: char opendir ();
1.16 millert 13493: int
13494: main ()
13495: {
1.27 millert 13496: return opendir ();
1.9 millert 13497: ;
13498: return 0;
13499: }
13500: _ACEOF
1.27 millert 13501: for ac_lib in '' x; do
13502: if test -z "$ac_lib"; then
13503: ac_res="none required"
13504: else
13505: ac_res=-l$ac_lib
13506: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13507: fi
13508: rm -f conftest.$ac_objext conftest$ac_exeext
13509: if { (ac_try="$ac_link"
13510: case "(($ac_try" in
13511: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512: *) ac_try_echo=$ac_try;;
13513: esac
13514: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515: (eval "$ac_link") 2>conftest.er1
1.9 millert 13516: ac_status=$?
1.25 millert 13517: grep -v '^ *+' conftest.er1 >conftest.err
13518: rm -f conftest.er1
13519: cat conftest.err >&5
1.16 millert 13520: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13521: (exit $ac_status); } && {
13522: test -z "$ac_c_werror_flag" ||
13523: test ! -s conftest.err
13524: } && test -s conftest$ac_exeext &&
13525: $as_test_x conftest$ac_exeext; then
13526: ac_cv_search_opendir=$ac_res
1.9 millert 13527: else
13528: echo "$as_me: failed program was:" >&5
1.16 millert 13529: sed 's/^/| /' conftest.$ac_ext >&5
13530:
1.27 millert 13531:
1.1 millert 13532: fi
1.17 millert 13533:
1.27 millert 13534: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13535: conftest$ac_exeext
13536: if test "${ac_cv_search_opendir+set}" = set; then
13537: break
13538: fi
13539: done
13540: if test "${ac_cv_search_opendir+set}" = set; then
13541: :
1.17 millert 13542: else
1.27 millert 13543: ac_cv_search_opendir=no
1.25 millert 13544: fi
1.27 millert 13545: rm conftest.$ac_ext
1.25 millert 13546: LIBS=$ac_func_search_save_LIBS
13547: fi
1.27 millert 13548: { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13549: echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13550: ac_res=$ac_cv_search_opendir
13551: if test "$ac_res" != no; then
13552: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.25 millert 13553:
13554: fi
13555:
13556: fi
13557:
1.27 millert 13558: { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13559: echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
1.25 millert 13560: if test "${ac_cv_header_time+set}" = set; then
1.9 millert 13561: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 13562: else
1.25 millert 13563: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13564: /* confdefs.h. */
13565: _ACEOF
13566: cat confdefs.h >>conftest.$ac_ext
13567: cat >>conftest.$ac_ext <<_ACEOF
13568: /* end confdefs.h. */
1.25 millert 13569: #include <sys/types.h>
13570: #include <sys/time.h>
13571: #include <time.h>
1.9 millert 13572:
13573: int
13574: main ()
13575: {
1.25 millert 13576: if ((struct tm *) 0)
13577: return 0;
1.9 millert 13578: ;
13579: return 0;
13580: }
13581: _ACEOF
1.25 millert 13582: rm -f conftest.$ac_objext
1.27 millert 13583: if { (ac_try="$ac_compile"
13584: case "(($ac_try" in
13585: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586: *) ac_try_echo=$ac_try;;
13587: esac
13588: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13590: ac_status=$?
1.25 millert 13591: grep -v '^ *+' conftest.er1 >conftest.err
13592: rm -f conftest.er1
13593: cat conftest.err >&5
1.16 millert 13594: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13595: (exit $ac_status); } && {
13596: test -z "$ac_c_werror_flag" ||
13597: test ! -s conftest.err
13598: } && test -s conftest.$ac_objext; then
1.25 millert 13599: ac_cv_header_time=yes
1.9 millert 13600: else
13601: echo "$as_me: failed program was:" >&5
1.16 millert 13602: sed 's/^/| /' conftest.$ac_ext >&5
13603:
1.27 millert 13604: ac_cv_header_time=no
1.9 millert 13605: fi
1.27 millert 13606:
13607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 13608: fi
1.27 millert 13609: { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13610: echo "${ECHO_T}$ac_cv_header_time" >&6; }
1.25 millert 13611: if test $ac_cv_header_time = yes; then
13612:
13613: cat >>confdefs.h <<\_ACEOF
13614: #define TIME_WITH_SYS_TIME 1
1.16 millert 13615: _ACEOF
1.25 millert 13616:
13617: fi
13618:
13619:
13620:
13621:
13622:
13623:
13624:
13625:
13626: for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13627: do
13628: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 millert 13629: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13630: { echo "$as_me:$LINENO: checking for $ac_header" >&5
13631: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13632: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13633: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13634: fi
1.27 millert 13635: ac_res=`eval echo '${'$as_ac_Header'}'`
13636: { echo "$as_me:$LINENO: result: $ac_res" >&5
13637: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 13638: else
1.25 millert 13639: # Is the header compilable?
1.27 millert 13640: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13641: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.9 millert 13642: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13643: /* confdefs.h. */
13644: _ACEOF
13645: cat confdefs.h >>conftest.$ac_ext
13646: cat >>conftest.$ac_ext <<_ACEOF
13647: /* end confdefs.h. */
1.25 millert 13648: $ac_includes_default
13649: #include <$ac_header>
1.9 millert 13650: _ACEOF
1.25 millert 13651: rm -f conftest.$ac_objext
1.27 millert 13652: if { (ac_try="$ac_compile"
13653: case "(($ac_try" in
13654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13655: *) ac_try_echo=$ac_try;;
13656: esac
13657: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13658: (eval "$ac_compile") 2>conftest.er1
1.9 millert 13659: ac_status=$?
1.25 millert 13660: grep -v '^ *+' conftest.er1 >conftest.err
13661: rm -f conftest.er1
13662: cat conftest.err >&5
1.16 millert 13663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13664: (exit $ac_status); } && {
13665: test -z "$ac_c_werror_flag" ||
13666: test ! -s conftest.err
13667: } && test -s conftest.$ac_objext; then
1.25 millert 13668: ac_header_compiler=yes
1.9 millert 13669: else
13670: echo "$as_me: failed program was:" >&5
1.16 millert 13671: sed 's/^/| /' conftest.$ac_ext >&5
13672:
1.27 millert 13673: ac_header_compiler=no
1.9 millert 13674: fi
1.27 millert 13675:
13676: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13677: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13678: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 13679:
13680: # Is the header present?
1.27 millert 13681: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13682: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.25 millert 13683: cat >conftest.$ac_ext <<_ACEOF
13684: /* confdefs.h. */
13685: _ACEOF
13686: cat confdefs.h >>conftest.$ac_ext
13687: cat >>conftest.$ac_ext <<_ACEOF
13688: /* end confdefs.h. */
13689: #include <$ac_header>
1.16 millert 13690: _ACEOF
1.27 millert 13691: if { (ac_try="$ac_cpp conftest.$ac_ext"
13692: case "(($ac_try" in
13693: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694: *) ac_try_echo=$ac_try;;
13695: esac
13696: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 13698: ac_status=$?
13699: grep -v '^ *+' conftest.er1 >conftest.err
13700: rm -f conftest.er1
13701: cat conftest.err >&5
13702: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13703: (exit $ac_status); } >/dev/null && {
13704: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13705: test ! -s conftest.err
13706: }; then
1.25 millert 13707: ac_header_preproc=yes
13708: else
13709: echo "$as_me: failed program was:" >&5
13710: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 13711:
1.25 millert 13712: ac_header_preproc=no
1.1 millert 13713: fi
1.27 millert 13714:
1.25 millert 13715: rm -f conftest.err conftest.$ac_ext
1.27 millert 13716: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13717: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 millert 13718:
1.25 millert 13719: # So? What about this header?
13720: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13721: yes:no: )
13722: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13723: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13724: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13725: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13726: ac_header_preproc=yes
13727: ;;
13728: no:yes:* )
13729: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13730: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13731: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13732: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13733: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13734: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13735: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13736: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13737: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13738: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13739: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13740: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 millert 13741:
1.25 millert 13742: ;;
13743: esac
1.27 millert 13744: { echo "$as_me:$LINENO: checking for $ac_header" >&5
13745: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13746: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13747: echo $ECHO_N "(cached) $ECHO_C" >&6
13748: else
13749: eval "$as_ac_Header=\$ac_header_preproc"
13750: fi
1.27 millert 13751: ac_res=`eval echo '${'$as_ac_Header'}'`
13752: { echo "$as_me:$LINENO: result: $ac_res" >&5
13753: echo "${ECHO_T}$ac_res" >&6; }
1.23 millert 13754:
1.25 millert 13755: fi
13756: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13757: cat >>confdefs.h <<_ACEOF
13758: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.23 millert 13759: _ACEOF
13760:
1.25 millert 13761: fi
1.23 millert 13762:
1.25 millert 13763: done
1.23 millert 13764:
1.37 millert 13765: if test "$OS" != "ultrix"; then
13766: { echo "$as_me:$LINENO: checking POSIX termios" >&5
13767: echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13768: if test "${ac_cv_sys_posix_termios+set}" = set; then
13769: echo $ECHO_N "(cached) $ECHO_C" >&6
13770: else
13771: cat >conftest.$ac_ext <<_ACEOF
13772: /* confdefs.h. */
13773: _ACEOF
13774: cat confdefs.h >>conftest.$ac_ext
13775: cat >>conftest.$ac_ext <<_ACEOF
13776: /* end confdefs.h. */
13777: #include <sys/types.h>
13778: #include <unistd.h>
13779: #include <termios.h>
13780:
13781: int
13782: main ()
13783: {
13784: /* SunOS 4.0.3 has termios.h but not the library calls. */
13785: tcgetattr(0, 0);
13786: ;
13787: return 0;
13788: }
13789: _ACEOF
13790: rm -f conftest.$ac_objext conftest$ac_exeext
13791: if { (ac_try="$ac_link"
13792: case "(($ac_try" in
13793: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794: *) ac_try_echo=$ac_try;;
13795: esac
13796: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797: (eval "$ac_link") 2>conftest.er1
13798: ac_status=$?
13799: grep -v '^ *+' conftest.er1 >conftest.err
13800: rm -f conftest.er1
13801: cat conftest.err >&5
13802: echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803: (exit $ac_status); } && {
13804: test -z "$ac_c_werror_flag" ||
13805: test ! -s conftest.err
13806: } && test -s conftest$ac_exeext &&
13807: $as_test_x conftest$ac_exeext; then
13808: ac_cv_sys_posix_termios=yes
13809: else
13810: echo "$as_me: failed program was:" >&5
13811: sed 's/^/| /' conftest.$ac_ext >&5
13812:
13813: ac_cv_sys_posix_termios=no
13814: fi
13815:
13816: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13817: conftest$ac_exeext conftest.$ac_ext
13818: fi
13819: { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13820: echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13821:
13822: if test "$ac_cv_sys_posix_termios" = "yes"; then
13823: cat >>confdefs.h <<\_ACEOF
13824: #define HAVE_TERMIOS_H 1
13825: _ACEOF
13826:
13827: else
1.23 millert 13828:
1.37 millert 13829: for ac_header in termio.h
1.23 millert 13830: do
1.25 millert 13831: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
1.27 millert 13832: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13833: { echo "$as_me:$LINENO: checking for $ac_header" >&5
13834: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13835: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 13836: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 13837: fi
1.27 millert 13838: ac_res=`eval echo '${'$as_ac_Header'}'`
13839: { echo "$as_me:$LINENO: result: $ac_res" >&5
13840: echo "${ECHO_T}$ac_res" >&6; }
1.23 millert 13841: else
1.25 millert 13842: # Is the header compilable?
1.27 millert 13843: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13844: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
1.25 millert 13845: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 13846: /* confdefs.h. */
13847: _ACEOF
13848: cat confdefs.h >>conftest.$ac_ext
13849: cat >>conftest.$ac_ext <<_ACEOF
13850: /* end confdefs.h. */
1.25 millert 13851: $ac_includes_default
13852: #include <$ac_header>
1.23 millert 13853: _ACEOF
1.25 millert 13854: rm -f conftest.$ac_objext
1.27 millert 13855: if { (ac_try="$ac_compile"
13856: case "(($ac_try" in
13857: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13858: *) ac_try_echo=$ac_try;;
13859: esac
13860: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13861: (eval "$ac_compile") 2>conftest.er1
1.23 millert 13862: ac_status=$?
1.25 millert 13863: grep -v '^ *+' conftest.er1 >conftest.err
13864: rm -f conftest.er1
13865: cat conftest.err >&5
1.23 millert 13866: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13867: (exit $ac_status); } && {
13868: test -z "$ac_c_werror_flag" ||
13869: test ! -s conftest.err
13870: } && test -s conftest.$ac_objext; then
1.25 millert 13871: ac_header_compiler=yes
1.23 millert 13872: else
13873: echo "$as_me: failed program was:" >&5
13874: sed 's/^/| /' conftest.$ac_ext >&5
13875:
1.27 millert 13876: ac_header_compiler=no
1.23 millert 13877: fi
1.27 millert 13878:
13879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13880: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13881: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.23 millert 13882:
1.25 millert 13883: # Is the header present?
1.27 millert 13884: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13885: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9 millert 13886: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13887: /* confdefs.h. */
13888: _ACEOF
13889: cat confdefs.h >>conftest.$ac_ext
13890: cat >>conftest.$ac_ext <<_ACEOF
13891: /* end confdefs.h. */
1.25 millert 13892: #include <$ac_header>
1.9 millert 13893: _ACEOF
1.27 millert 13894: if { (ac_try="$ac_cpp conftest.$ac_ext"
13895: case "(($ac_try" in
13896: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897: *) ac_try_echo=$ac_try;;
13898: esac
13899: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 13901: ac_status=$?
1.25 millert 13902: grep -v '^ *+' conftest.er1 >conftest.err
13903: rm -f conftest.er1
13904: cat conftest.err >&5
1.16 millert 13905: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 13906: (exit $ac_status); } >/dev/null && {
13907: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13908: test ! -s conftest.err
13909: }; then
1.25 millert 13910: ac_header_preproc=yes
1.9 millert 13911: else
13912: echo "$as_me: failed program was:" >&5
1.16 millert 13913: sed 's/^/| /' conftest.$ac_ext >&5
13914:
1.25 millert 13915: ac_header_preproc=no
13916: fi
1.27 millert 13917:
1.25 millert 13918: rm -f conftest.err conftest.$ac_ext
1.27 millert 13919: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13920: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 13921:
13922: # So? What about this header?
13923: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13924: yes:no: )
13925: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13926: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13927: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13928: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13929: ac_header_preproc=yes
13930: ;;
13931: no:yes:* )
13932: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13933: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13934: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13935: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13936: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13937: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13938: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13939: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13940: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13941: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13942: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13943: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 millert 13944:
1.25 millert 13945: ;;
13946: esac
1.27 millert 13947: { echo "$as_me:$LINENO: checking for $ac_header" >&5
13948: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13949: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 13950: echo $ECHO_N "(cached) $ECHO_C" >&6
13951: else
13952: eval "$as_ac_Header=\$ac_header_preproc"
13953: fi
1.27 millert 13954: ac_res=`eval echo '${'$as_ac_Header'}'`
13955: { echo "$as_me:$LINENO: result: $ac_res" >&5
13956: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 13957:
1.9 millert 13958: fi
1.25 millert 13959: if test `eval echo '${'$as_ac_Header'}'` = yes; then
13960: cat >>confdefs.h <<_ACEOF
13961: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13962: _ACEOF
13963:
1.9 millert 13964: fi
1.25 millert 13965:
13966: done
13967:
1.37 millert 13968: fi
13969: fi
13970: if test ${with_logincap-'no'} != "no"; then
13971:
13972: for ac_header in login_cap.h
13973: do
13974: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13975: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13976: { echo "$as_me:$LINENO: checking for $ac_header" >&5
13977: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13978: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 13979: echo $ECHO_N "(cached) $ECHO_C" >&6
1.37 millert 13980: fi
13981: ac_res=`eval echo '${'$as_ac_Header'}'`
13982: { echo "$as_me:$LINENO: result: $ac_res" >&5
13983: echo "${ECHO_T}$ac_res" >&6; }
1.1 millert 13984: else
1.37 millert 13985: # Is the header compilable?
13986: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13987: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13988: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 13989: /* confdefs.h. */
13990: _ACEOF
13991: cat confdefs.h >>conftest.$ac_ext
13992: cat >>conftest.$ac_ext <<_ACEOF
13993: /* end confdefs.h. */
1.37 millert 13994: $ac_includes_default
13995: #include <$ac_header>
1.9 millert 13996: _ACEOF
1.37 millert 13997: rm -f conftest.$ac_objext
1.27 millert 13998: if { (ac_try="$ac_compile"
13999: case "(($ac_try" in
14000: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001: *) ac_try_echo=$ac_try;;
14002: esac
14003: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004: (eval "$ac_compile") 2>conftest.er1
1.25 millert 14005: ac_status=$?
14006: grep -v '^ *+' conftest.er1 >conftest.err
14007: rm -f conftest.er1
14008: cat conftest.err >&5
14009: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14010: (exit $ac_status); } && {
14011: test -z "$ac_c_werror_flag" ||
14012: test ! -s conftest.err
14013: } && test -s conftest.$ac_objext; then
1.25 millert 14014: ac_header_compiler=yes
1.9 millert 14015: else
14016: echo "$as_me: failed program was:" >&5
1.16 millert 14017: sed 's/^/| /' conftest.$ac_ext >&5
14018:
1.27 millert 14019: ac_header_compiler=no
1.9 millert 14020: fi
1.27 millert 14021:
14022: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.9 millert 14025:
1.25 millert 14026: # Is the header present?
1.27 millert 14027: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14028: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
1.9 millert 14029: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14030: /* confdefs.h. */
14031: _ACEOF
14032: cat confdefs.h >>conftest.$ac_ext
14033: cat >>conftest.$ac_ext <<_ACEOF
14034: /* end confdefs.h. */
1.25 millert 14035: #include <$ac_header>
1.9 millert 14036: _ACEOF
1.27 millert 14037: if { (ac_try="$ac_cpp conftest.$ac_ext"
14038: case "(($ac_try" in
14039: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040: *) ac_try_echo=$ac_try;;
14041: esac
14042: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 14044: ac_status=$?
1.25 millert 14045: grep -v '^ *+' conftest.er1 >conftest.err
14046: rm -f conftest.er1
14047: cat conftest.err >&5
1.16 millert 14048: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14049: (exit $ac_status); } >/dev/null && {
14050: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14051: test ! -s conftest.err
14052: }; then
1.25 millert 14053: ac_header_preproc=yes
1.9 millert 14054: else
14055: echo "$as_me: failed program was:" >&5
1.16 millert 14056: sed 's/^/| /' conftest.$ac_ext >&5
14057:
1.25 millert 14058: ac_header_preproc=no
1.9 millert 14059: fi
1.27 millert 14060:
1.25 millert 14061: rm -f conftest.err conftest.$ac_ext
1.27 millert 14062: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 14064:
14065: # So? What about this header?
14066: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14067: yes:no: )
14068: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14069: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14071: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14072: ac_header_preproc=yes
14073: ;;
14074: no:yes:* )
14075: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14076: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14077: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14078: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14079: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14080: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14081: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14082: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14083: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14084: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14085: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14086: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.27 millert 14087:
1.25 millert 14088: ;;
14089: esac
1.27 millert 14090: { echo "$as_me:$LINENO: checking for $ac_header" >&5
14091: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14092: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 14093: echo $ECHO_N "(cached) $ECHO_C" >&6
14094: else
14095: eval "$as_ac_Header=\$ac_header_preproc"
1.9 millert 14096: fi
1.27 millert 14097: ac_res=`eval echo '${'$as_ac_Header'}'`
14098: { echo "$as_me:$LINENO: result: $ac_res" >&5
14099: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 14100:
1.1 millert 14101: fi
1.25 millert 14102: if test `eval echo '${'$as_ac_Header'}'` = yes; then
14103: cat >>confdefs.h <<_ACEOF
14104: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14105: _ACEOF
1.37 millert 14106: LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
1.31 millert 14107: case "$OS" in
14108: freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil"
14109: ;;
14110: esac
14111:
1.25 millert 14112: fi
1.1 millert 14113:
1.25 millert 14114: done
1.1 millert 14115:
1.25 millert 14116: fi
14117: if test ${with_project-'no'} != "no"; then
14118: if test "${ac_cv_header_project_h+set}" = set; then
1.27 millert 14119: { echo "$as_me:$LINENO: checking for project.h" >&5
14120: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25 millert 14121: if test "${ac_cv_header_project_h+set}" = set; then
1.9 millert 14122: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 14123: fi
1.27 millert 14124: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14125: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.1 millert 14126: else
1.25 millert 14127: # Is the header compilable?
1.27 millert 14128: { echo "$as_me:$LINENO: checking project.h usability" >&5
14129: echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
1.25 millert 14130: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14131: /* confdefs.h. */
14132: _ACEOF
14133: cat confdefs.h >>conftest.$ac_ext
14134: cat >>conftest.$ac_ext <<_ACEOF
14135: /* end confdefs.h. */
1.25 millert 14136: $ac_includes_default
14137: #include <project.h>
1.9 millert 14138: _ACEOF
1.25 millert 14139: rm -f conftest.$ac_objext
1.27 millert 14140: if { (ac_try="$ac_compile"
14141: case "(($ac_try" in
14142: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14143: *) ac_try_echo=$ac_try;;
14144: esac
14145: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14146: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14147: ac_status=$?
1.25 millert 14148: grep -v '^ *+' conftest.er1 >conftest.err
14149: rm -f conftest.er1
14150: cat conftest.err >&5
1.16 millert 14151: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14152: (exit $ac_status); } && {
14153: test -z "$ac_c_werror_flag" ||
14154: test ! -s conftest.err
14155: } && test -s conftest.$ac_objext; then
1.25 millert 14156: ac_header_compiler=yes
1.9 millert 14157: else
14158: echo "$as_me: failed program was:" >&5
1.16 millert 14159: sed 's/^/| /' conftest.$ac_ext >&5
14160:
1.27 millert 14161: ac_header_compiler=no
1.9 millert 14162: fi
1.27 millert 14163:
14164: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14165: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14166: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.1 millert 14167:
1.25 millert 14168: # Is the header present?
1.27 millert 14169: { echo "$as_me:$LINENO: checking project.h presence" >&5
14170: echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
1.25 millert 14171: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14172: /* confdefs.h. */
14173: _ACEOF
14174: cat confdefs.h >>conftest.$ac_ext
14175: cat >>conftest.$ac_ext <<_ACEOF
14176: /* end confdefs.h. */
1.25 millert 14177: #include <project.h>
1.9 millert 14178: _ACEOF
1.27 millert 14179: if { (ac_try="$ac_cpp conftest.$ac_ext"
14180: case "(($ac_try" in
14181: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182: *) ac_try_echo=$ac_try;;
14183: esac
14184: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 14186: ac_status=$?
1.25 millert 14187: grep -v '^ *+' conftest.er1 >conftest.err
14188: rm -f conftest.er1
14189: cat conftest.err >&5
1.16 millert 14190: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14191: (exit $ac_status); } >/dev/null && {
14192: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14193: test ! -s conftest.err
14194: }; then
1.25 millert 14195: ac_header_preproc=yes
1.9 millert 14196: else
14197: echo "$as_me: failed program was:" >&5
1.16 millert 14198: sed 's/^/| /' conftest.$ac_ext >&5
14199:
1.25 millert 14200: ac_header_preproc=no
14201: fi
1.27 millert 14202:
1.25 millert 14203: rm -f conftest.err conftest.$ac_ext
1.27 millert 14204: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14205: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.25 millert 14206:
14207: # So? What about this header?
14208: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14209: yes:no: )
14210: { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14211: echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14212: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14213: echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14214: ac_header_preproc=yes
14215: ;;
14216: no:yes:* )
14217: { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14218: echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14219: { echo "$as_me:$LINENO: WARNING: project.h: check for missing prerequisite headers?" >&5
14220: echo "$as_me: WARNING: project.h: check for missing prerequisite headers?" >&2;}
14221: { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14222: echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14223: { echo "$as_me:$LINENO: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&5
14224: echo "$as_me: WARNING: project.h: section \"Present But Cannot Be Compiled\"" >&2;}
14225: { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14226: echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14227: { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14228: echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
1.27 millert 14229:
1.25 millert 14230: ;;
14231: esac
1.27 millert 14232: { echo "$as_me:$LINENO: checking for project.h" >&5
14233: echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
1.25 millert 14234: if test "${ac_cv_header_project_h+set}" = set; then
14235: echo $ECHO_N "(cached) $ECHO_C" >&6
14236: else
14237: ac_cv_header_project_h=$ac_header_preproc
1.9 millert 14238: fi
1.27 millert 14239: { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14240: echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
1.25 millert 14241:
1.9 millert 14242: fi
1.25 millert 14243: if test $ac_cv_header_project_h = yes; then
14244: cat >>confdefs.h <<\_ACEOF
14245: #define HAVE_PROJECT_H 1
1.16 millert 14246: _ACEOF
1.1 millert 14247:
1.25 millert 14248: SUDO_LIBS="${SUDO_LIBS} -lproject"
1.1 millert 14249: else
1.25 millert 14250: -
1.1 millert 14251: fi
14252:
1.25 millert 14253:
14254: fi
1.27 millert 14255: { echo "$as_me:$LINENO: checking for mode_t" >&5
14256: echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
1.25 millert 14257: if test "${ac_cv_type_mode_t+set}" = set; then
1.9 millert 14258: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14259: else
1.25 millert 14260: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14261: /* confdefs.h. */
14262: _ACEOF
14263: cat confdefs.h >>conftest.$ac_ext
14264: cat >>conftest.$ac_ext <<_ACEOF
14265: /* end confdefs.h. */
1.25 millert 14266: $ac_includes_default
1.27 millert 14267: typedef mode_t ac__type_new_;
1.9 millert 14268: int
14269: main ()
14270: {
1.27 millert 14271: if ((ac__type_new_ *) 0)
1.25 millert 14272: return 0;
1.27 millert 14273: if (sizeof (ac__type_new_))
1.25 millert 14274: return 0;
1.9 millert 14275: ;
14276: return 0;
14277: }
14278: _ACEOF
1.25 millert 14279: rm -f conftest.$ac_objext
1.27 millert 14280: if { (ac_try="$ac_compile"
14281: case "(($ac_try" in
14282: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14283: *) ac_try_echo=$ac_try;;
14284: esac
14285: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14287: ac_status=$?
1.25 millert 14288: grep -v '^ *+' conftest.er1 >conftest.err
14289: rm -f conftest.er1
14290: cat conftest.err >&5
1.16 millert 14291: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14292: (exit $ac_status); } && {
14293: test -z "$ac_c_werror_flag" ||
14294: test ! -s conftest.err
14295: } && test -s conftest.$ac_objext; then
1.25 millert 14296: ac_cv_type_mode_t=yes
1.9 millert 14297: else
14298: echo "$as_me: failed program was:" >&5
1.16 millert 14299: sed 's/^/| /' conftest.$ac_ext >&5
14300:
1.27 millert 14301: ac_cv_type_mode_t=no
1.9 millert 14302: fi
1.27 millert 14303:
14304: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14305: fi
1.27 millert 14306: { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14307: echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
1.25 millert 14308: if test $ac_cv_type_mode_t = yes; then
14309: :
1.1 millert 14310: else
1.25 millert 14311:
14312: cat >>confdefs.h <<_ACEOF
14313: #define mode_t int
14314: _ACEOF
14315:
1.1 millert 14316: fi
14317:
1.27 millert 14318: { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14319: echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
1.25 millert 14320: if test "${ac_cv_type_uid_t+set}" = set; then
1.9 millert 14321: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14322: else
1.9 millert 14323: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14324: /* confdefs.h. */
14325: _ACEOF
14326: cat confdefs.h >>conftest.$ac_ext
14327: cat >>conftest.$ac_ext <<_ACEOF
14328: /* end confdefs.h. */
1.25 millert 14329: #include <sys/types.h>
1.1 millert 14330:
1.9 millert 14331: _ACEOF
1.25 millert 14332: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14333: $EGREP "uid_t" >/dev/null 2>&1; then
14334: ac_cv_type_uid_t=yes
1.9 millert 14335: else
1.25 millert 14336: ac_cv_type_uid_t=no
14337: fi
14338: rm -f conftest*
1.16 millert 14339:
1.9 millert 14340: fi
1.27 millert 14341: { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14342: echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
1.25 millert 14343: if test $ac_cv_type_uid_t = no; then
14344:
14345: cat >>confdefs.h <<\_ACEOF
14346: #define uid_t int
14347: _ACEOF
14348:
14349:
14350: cat >>confdefs.h <<\_ACEOF
14351: #define gid_t int
1.16 millert 14352: _ACEOF
1.1 millert 14353:
14354: fi
14355:
1.37 millert 14356: { echo "$as_me:$LINENO: checking for __signed char" >&5
14357: echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14358: if test "${ac_cv_type___signed_char+set}" = set; then
1.25 millert 14359: echo $ECHO_N "(cached) $ECHO_C" >&6
14360: else
14361: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14362: /* confdefs.h. */
14363: _ACEOF
14364: cat confdefs.h >>conftest.$ac_ext
14365: cat >>conftest.$ac_ext <<_ACEOF
14366: /* end confdefs.h. */
1.37 millert 14367: $ac_includes_default
14368: typedef __signed char ac__type_new_;
1.9 millert 14369: int
14370: main ()
14371: {
1.27 millert 14372: if ((ac__type_new_ *) 0)
1.25 millert 14373: return 0;
1.27 millert 14374: if (sizeof (ac__type_new_))
1.25 millert 14375: return 0;
1.9 millert 14376: ;
14377: return 0;
14378: }
14379: _ACEOF
14380: rm -f conftest.$ac_objext
1.27 millert 14381: if { (ac_try="$ac_compile"
14382: case "(($ac_try" in
14383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384: *) ac_try_echo=$ac_try;;
14385: esac
14386: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14387: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14388: ac_status=$?
1.25 millert 14389: grep -v '^ *+' conftest.er1 >conftest.err
14390: rm -f conftest.er1
14391: cat conftest.err >&5
1.16 millert 14392: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14393: (exit $ac_status); } && {
14394: test -z "$ac_c_werror_flag" ||
14395: test ! -s conftest.err
14396: } && test -s conftest.$ac_objext; then
1.37 millert 14397: ac_cv_type___signed_char=yes
1.9 millert 14398: else
14399: echo "$as_me: failed program was:" >&5
1.16 millert 14400: sed 's/^/| /' conftest.$ac_ext >&5
14401:
1.37 millert 14402: ac_cv_type___signed_char=no
1.25 millert 14403: fi
1.27 millert 14404:
14405: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 14406: fi
1.37 millert 14407: { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14408: echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14409: if test $ac_cv_type___signed_char = yes; then
14410: :
1.25 millert 14411: else
1.37 millert 14412: { echo "$as_me:$LINENO: checking for signed char" >&5
14413: echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14414: if test "${ac_cv_type_signed_char+set}" = set; then
1.9 millert 14415: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14416: else
1.25 millert 14417: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14418: /* confdefs.h. */
14419: _ACEOF
14420: cat confdefs.h >>conftest.$ac_ext
14421: cat >>conftest.$ac_ext <<_ACEOF
14422: /* end confdefs.h. */
1.37 millert 14423: $ac_includes_default
14424: typedef signed char ac__type_new_;
1.9 millert 14425: int
1.25 millert 14426: main ()
14427: {
1.27 millert 14428: if ((ac__type_new_ *) 0)
1.25 millert 14429: return 0;
1.27 millert 14430: if (sizeof (ac__type_new_))
1.25 millert 14431: return 0;
1.9 millert 14432: ;
14433: return 0;
14434: }
14435: _ACEOF
1.25 millert 14436: rm -f conftest.$ac_objext
1.27 millert 14437: if { (ac_try="$ac_compile"
14438: case "(($ac_try" in
14439: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440: *) ac_try_echo=$ac_try;;
14441: esac
14442: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14444: ac_status=$?
1.25 millert 14445: grep -v '^ *+' conftest.er1 >conftest.err
14446: rm -f conftest.er1
14447: cat conftest.err >&5
1.16 millert 14448: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14449: (exit $ac_status); } && {
14450: test -z "$ac_c_werror_flag" ||
14451: test ! -s conftest.err
14452: } && test -s conftest.$ac_objext; then
1.37 millert 14453: ac_cv_type_signed_char=yes
1.9 millert 14454: else
14455: echo "$as_me: failed program was:" >&5
1.16 millert 14456: sed 's/^/| /' conftest.$ac_ext >&5
14457:
1.37 millert 14458: ac_cv_type_signed_char=no
1.9 millert 14459: fi
1.27 millert 14460:
14461: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14462: fi
1.37 millert 14463: { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14464: echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14465: if test $ac_cv_type_signed_char = yes; then
14466: cat >>confdefs.h <<\_ACEOF
14467: #define __signed signed
14468: _ACEOF
1.25 millert 14469:
1.37 millert 14470: else
14471: cat >>confdefs.h <<\_ACEOF
14472: #define __signed
1.25 millert 14473: _ACEOF
14474:
1.37 millert 14475: fi
14476:
14477: fi
14478:
14479: { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14480: echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14481: if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14482: echo $ECHO_N "(cached) $ECHO_C" >&6
14483: else
14484: cat >conftest.$ac_ext <<_ACEOF
14485: /* confdefs.h. */
14486: _ACEOF
14487: cat confdefs.h >>conftest.$ac_ext
14488: cat >>conftest.$ac_ext <<_ACEOF
14489: /* end confdefs.h. */
14490: #include <sys/types.h>
14491: #include <signal.h>
14492:
14493: typedef sig_atomic_t ac__type_new_;
14494: int
14495: main ()
14496: {
14497: if ((ac__type_new_ *) 0)
14498: return 0;
14499: if (sizeof (ac__type_new_))
14500: return 0;
14501: ;
14502: return 0;
14503: }
14504: _ACEOF
14505: rm -f conftest.$ac_objext
14506: if { (ac_try="$ac_compile"
14507: case "(($ac_try" in
14508: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14509: *) ac_try_echo=$ac_try;;
14510: esac
14511: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14512: (eval "$ac_compile") 2>conftest.er1
14513: ac_status=$?
14514: grep -v '^ *+' conftest.er1 >conftest.err
14515: rm -f conftest.er1
14516: cat conftest.err >&5
14517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518: (exit $ac_status); } && {
14519: test -z "$ac_c_werror_flag" ||
14520: test ! -s conftest.err
14521: } && test -s conftest.$ac_objext; then
14522: ac_cv_type_sig_atomic_t=yes
14523: else
14524: echo "$as_me: failed program was:" >&5
14525: sed 's/^/| /' conftest.$ac_ext >&5
14526:
14527: ac_cv_type_sig_atomic_t=no
14528: fi
14529:
14530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14531: fi
14532: { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14533: echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14534: if test $ac_cv_type_sig_atomic_t = yes; then
14535: :
14536: else
14537: cat >>confdefs.h <<\_ACEOF
14538: #define sig_atomic_t int
14539: _ACEOF
14540:
14541: fi
14542:
14543: { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14544: echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14545: if test "${ac_cv_type_sigaction_t+set}" = set; then
14546: echo $ECHO_N "(cached) $ECHO_C" >&6
14547: else
14548: cat >conftest.$ac_ext <<_ACEOF
14549: /* confdefs.h. */
14550: _ACEOF
14551: cat confdefs.h >>conftest.$ac_ext
14552: cat >>conftest.$ac_ext <<_ACEOF
14553: /* end confdefs.h. */
14554: #include <sys/types.h>
14555: #include <signal.h>
14556:
14557: typedef sigaction_t ac__type_new_;
14558: int
14559: main ()
14560: {
14561: if ((ac__type_new_ *) 0)
14562: return 0;
14563: if (sizeof (ac__type_new_))
14564: return 0;
14565: ;
14566: return 0;
14567: }
14568: _ACEOF
14569: rm -f conftest.$ac_objext
14570: if { (ac_try="$ac_compile"
14571: case "(($ac_try" in
14572: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14573: *) ac_try_echo=$ac_try;;
14574: esac
14575: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576: (eval "$ac_compile") 2>conftest.er1
14577: ac_status=$?
14578: grep -v '^ *+' conftest.er1 >conftest.err
14579: rm -f conftest.er1
14580: cat conftest.err >&5
14581: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582: (exit $ac_status); } && {
14583: test -z "$ac_c_werror_flag" ||
14584: test ! -s conftest.err
14585: } && test -s conftest.$ac_objext; then
14586: ac_cv_type_sigaction_t=yes
14587: else
14588: echo "$as_me: failed program was:" >&5
14589: sed 's/^/| /' conftest.$ac_ext >&5
14590:
14591: ac_cv_type_sigaction_t=no
14592: fi
14593:
14594: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14595: fi
14596: { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14597: echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14598: if test $ac_cv_type_sigaction_t = yes; then
14599:
14600: cat >>confdefs.h <<_ACEOF
14601: #define HAVE_SIGACTION_T 1
14602: _ACEOF
14603:
14604: cat >>confdefs.h <<\_ACEOF
14605: #define HAVE_SIGACTION_T 1
14606: _ACEOF
1.25 millert 14607:
1.1 millert 14608: fi
14609:
1.27 millert 14610: { echo "$as_me:$LINENO: checking for struct timespec" >&5
14611: echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
1.25 millert 14612: if test "${ac_cv_type_struct_timespec+set}" = set; then
1.9 millert 14613: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14614: else
1.9 millert 14615: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14616: /* confdefs.h. */
14617: _ACEOF
14618: cat confdefs.h >>conftest.$ac_ext
14619: cat >>conftest.$ac_ext <<_ACEOF
14620: /* end confdefs.h. */
1.25 millert 14621: #include <sys/types.h>
14622: #if TIME_WITH_SYS_TIME
14623: # include <sys/time.h>
1.1 millert 14624: #endif
1.31 millert 14625: #include <time.h>
1.1 millert 14626:
1.27 millert 14627: typedef struct timespec ac__type_new_;
1.16 millert 14628: int
14629: main ()
14630: {
1.27 millert 14631: if ((ac__type_new_ *) 0)
1.25 millert 14632: return 0;
1.27 millert 14633: if (sizeof (ac__type_new_))
1.25 millert 14634: return 0;
1.9 millert 14635: ;
14636: return 0;
14637: }
14638: _ACEOF
1.25 millert 14639: rm -f conftest.$ac_objext
1.27 millert 14640: if { (ac_try="$ac_compile"
14641: case "(($ac_try" in
14642: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643: *) ac_try_echo=$ac_try;;
14644: esac
14645: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14646: (eval "$ac_compile") 2>conftest.er1
1.9 millert 14647: ac_status=$?
1.25 millert 14648: grep -v '^ *+' conftest.er1 >conftest.err
14649: rm -f conftest.er1
14650: cat conftest.err >&5
1.16 millert 14651: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14652: (exit $ac_status); } && {
14653: test -z "$ac_c_werror_flag" ||
14654: test ! -s conftest.err
14655: } && test -s conftest.$ac_objext; then
1.25 millert 14656: ac_cv_type_struct_timespec=yes
1.9 millert 14657: else
14658: echo "$as_me: failed program was:" >&5
1.16 millert 14659: sed 's/^/| /' conftest.$ac_ext >&5
14660:
1.27 millert 14661: ac_cv_type_struct_timespec=no
1.9 millert 14662: fi
1.27 millert 14663:
14664: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 14665: fi
1.27 millert 14666: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14667: echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
1.25 millert 14668: if test $ac_cv_type_struct_timespec = yes; then
14669: cat >>confdefs.h <<\_ACEOF
14670: #define HAVE_TIMESPEC 1
1.16 millert 14671: _ACEOF
1.1 millert 14672:
1.25 millert 14673: fi
14674:
1.31 millert 14675: { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14676: echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14677: if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14678: echo $ECHO_N "(cached) $ECHO_C" >&6
14679: else
14680: cat >conftest.$ac_ext <<_ACEOF
14681: /* confdefs.h. */
14682: _ACEOF
14683: cat confdefs.h >>conftest.$ac_ext
14684: cat >>conftest.$ac_ext <<_ACEOF
14685: /* end confdefs.h. */
14686: #include <sys/types.h>
14687: #include <netinet/in.h>
14688:
14689: typedef struct in6_addr ac__type_new_;
14690: int
14691: main ()
14692: {
14693: if ((ac__type_new_ *) 0)
14694: return 0;
14695: if (sizeof (ac__type_new_))
14696: return 0;
14697: ;
14698: return 0;
14699: }
14700: _ACEOF
14701: rm -f conftest.$ac_objext
14702: if { (ac_try="$ac_compile"
14703: case "(($ac_try" in
14704: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705: *) ac_try_echo=$ac_try;;
14706: esac
14707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708: (eval "$ac_compile") 2>conftest.er1
14709: ac_status=$?
14710: grep -v '^ *+' conftest.er1 >conftest.err
14711: rm -f conftest.er1
14712: cat conftest.err >&5
14713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
14714: (exit $ac_status); } && {
14715: test -z "$ac_c_werror_flag" ||
14716: test ! -s conftest.err
14717: } && test -s conftest.$ac_objext; then
14718: ac_cv_type_struct_in6_addr=yes
14719: else
14720: echo "$as_me: failed program was:" >&5
14721: sed 's/^/| /' conftest.$ac_ext >&5
14722:
14723: ac_cv_type_struct_in6_addr=no
14724: fi
14725:
14726: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727: fi
14728: { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14729: echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14730: if test $ac_cv_type_struct_in6_addr = yes; then
14731:
14732: cat >>confdefs.h <<_ACEOF
14733: #define HAVE_STRUCT_IN6_ADDR 1
14734: _ACEOF
14735:
14736: cat >>confdefs.h <<\_ACEOF
14737: #define HAVE_IN6_ADDR 1
14738: _ACEOF
14739:
14740: fi
14741:
1.27 millert 14742: { echo "$as_me:$LINENO: checking for size_t" >&5
14743: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
1.25 millert 14744: if test "${sudo_cv_type_size_t+set}" = set; then
14745: echo $ECHO_N "(cached) $ECHO_C" >&6
14746: else
14747: cat >conftest.$ac_ext <<_ACEOF
14748: /* confdefs.h. */
14749: _ACEOF
14750: cat confdefs.h >>conftest.$ac_ext
14751: cat >>conftest.$ac_ext <<_ACEOF
14752: /* end confdefs.h. */
14753: #include <sys/types.h>
14754: #include <stdio.h>
14755: #if STDC_HEADERS
14756: #include <stdlib.h>
14757: #endif
14758: #if HAVE_UNISTD_H
14759: #include <unistd.h>
14760: #endif
14761: _ACEOF
14762: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14763: $EGREP "size_t" >/dev/null 2>&1; then
14764: sudo_cv_type_size_t=yes
1.1 millert 14765: else
1.25 millert 14766: sudo_cv_type_size_t=no
14767: fi
14768: rm -f conftest*
14769:
14770: fi
1.27 millert 14771: { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14772: echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
1.25 millert 14773: if test $sudo_cv_type_size_t = no; then
14774:
14775: cat >>confdefs.h <<\_ACEOF
14776: #define size_t int
14777: _ACEOF
14778:
14779: fi
14780:
1.27 millert 14781: { echo "$as_me:$LINENO: checking for ssize_t" >&5
14782: echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
1.25 millert 14783: if test "${sudo_cv_type_ssize_t+set}" = set; then
1.9 millert 14784: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14785: else
1.25 millert 14786: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14787: /* confdefs.h. */
14788: _ACEOF
14789: cat confdefs.h >>conftest.$ac_ext
14790: cat >>conftest.$ac_ext <<_ACEOF
14791: /* end confdefs.h. */
1.25 millert 14792: #include <sys/types.h>
14793: #include <stdio.h>
14794: #if STDC_HEADERS
14795: #include <stdlib.h>
14796: #endif
14797: #if HAVE_UNISTD_H
14798: #include <unistd.h>
1.9 millert 14799: #endif
14800: _ACEOF
1.25 millert 14801: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14802: $EGREP "ssize_t" >/dev/null 2>&1; then
14803: sudo_cv_type_ssize_t=yes
1.9 millert 14804: else
1.25 millert 14805: sudo_cv_type_ssize_t=no
14806: fi
14807: rm -f conftest*
1.16 millert 14808:
1.9 millert 14809: fi
1.27 millert 14810: { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14811: echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
1.25 millert 14812: if test $sudo_cv_type_ssize_t = no; then
14813:
14814: cat >>confdefs.h <<\_ACEOF
14815: #define ssize_t int
14816: _ACEOF
14817:
1.9 millert 14818: fi
1.25 millert 14819:
1.27 millert 14820: { echo "$as_me:$LINENO: checking for dev_t" >&5
14821: echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
1.25 millert 14822: if test "${sudo_cv_type_dev_t+set}" = set; then
14823: echo $ECHO_N "(cached) $ECHO_C" >&6
14824: else
14825: cat >conftest.$ac_ext <<_ACEOF
14826: /* confdefs.h. */
14827: _ACEOF
14828: cat confdefs.h >>conftest.$ac_ext
14829: cat >>conftest.$ac_ext <<_ACEOF
14830: /* end confdefs.h. */
14831: #include <sys/types.h>
14832: #include <stdio.h>
14833: #if STDC_HEADERS
14834: #include <stdlib.h>
14835: #endif
14836: #if HAVE_UNISTD_H
14837: #include <unistd.h>
14838: #endif
1.16 millert 14839: _ACEOF
1.25 millert 14840: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14841: $EGREP "dev_t" >/dev/null 2>&1; then
14842: sudo_cv_type_dev_t=yes
14843: else
14844: sudo_cv_type_dev_t=no
1.1 millert 14845: fi
1.25 millert 14846: rm -f conftest*
1.1 millert 14847:
14848: fi
1.27 millert 14849: { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14850: echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
1.25 millert 14851: if test $sudo_cv_type_dev_t = no; then
1.1 millert 14852:
1.25 millert 14853: cat >>confdefs.h <<\_ACEOF
14854: #define dev_t int
14855: _ACEOF
1.1 millert 14856:
1.25 millert 14857: fi
1.1 millert 14858:
1.27 millert 14859: { echo "$as_me:$LINENO: checking for ino_t" >&5
14860: echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14861: if test "${sudo_cv_type_ino_t+set}" = set; then
1.9 millert 14862: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14863: else
1.25 millert 14864: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14865: /* confdefs.h. */
14866: _ACEOF
14867: cat confdefs.h >>conftest.$ac_ext
14868: cat >>conftest.$ac_ext <<_ACEOF
14869: /* end confdefs.h. */
1.25 millert 14870: #include <sys/types.h>
1.27 millert 14871: #include <stdio.h>
14872: #if STDC_HEADERS
14873: #include <stdlib.h>
14874: #endif
14875: #if HAVE_UNISTD_H
14876: #include <unistd.h>
14877: #endif
1.9 millert 14878: _ACEOF
1.27 millert 14879: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14880: $EGREP "ino_t" >/dev/null 2>&1; then
14881: sudo_cv_type_ino_t=yes
1.9 millert 14882: else
1.27 millert 14883: sudo_cv_type_ino_t=no
14884: fi
14885: rm -f conftest*
1.16 millert 14886:
1.25 millert 14887: fi
1.27 millert 14888: { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14889: echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14890: if test $sudo_cv_type_ino_t = no; then
1.25 millert 14891:
14892: cat >>confdefs.h <<\_ACEOF
1.27 millert 14893: #define ino_t unsigned int
1.16 millert 14894: _ACEOF
1.25 millert 14895:
1.1 millert 14896: fi
14897:
1.6 millert 14898:
1.27 millert 14899: { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14900: echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14901: if test "${sudo_cv_uid_t_len+set}" = set; then
1.9 millert 14902: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 14903: else
1.27 millert 14904: rm -f conftestdata
14905: if test "$cross_compiling" = yes; then
14906: { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14907: See \`config.log' for more details." >&5
14908: echo "$as_me: error: cannot run test program while cross compiling
14909: See \`config.log' for more details." >&2;}
14910: { (exit 1); exit 1; }; }
14911: else
1.9 millert 14912: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14913: /* confdefs.h. */
14914: _ACEOF
14915: cat confdefs.h >>conftest.$ac_ext
14916: cat >>conftest.$ac_ext <<_ACEOF
14917: /* end confdefs.h. */
1.27 millert 14918: #include <stdio.h>
14919: #include <pwd.h>
14920: #include <limits.h>
14921: #include <sys/types.h>
14922: #include <sys/param.h>
14923: main() {
14924: FILE *f;
14925: char b[1024];
14926: uid_t u = (uid_t) -1;
1.25 millert 14927:
1.27 millert 14928: if ((f = fopen("conftestdata", "w")) == NULL)
14929: exit(1);
1.25 millert 14930:
1.27 millert 14931: (void) sprintf(b, "%lu", (unsigned long) u);
14932: (void) fprintf(f, "%d\n", strlen(b));
14933: (void) fclose(f);
14934: exit(0);
1.9 millert 14935: }
14936: _ACEOF
1.27 millert 14937: rm -f conftest$ac_exeext
14938: if { (ac_try="$ac_link"
14939: case "(($ac_try" in
14940: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14941: *) ac_try_echo=$ac_try;;
14942: esac
14943: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14944: (eval "$ac_link") 2>&5
1.9 millert 14945: ac_status=$?
1.16 millert 14946: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 14947: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14948: { (case "(($ac_try" in
14949: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14950: *) ac_try_echo=$ac_try;;
14951: esac
14952: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14953: (eval "$ac_try") 2>&5
1.9 millert 14954: ac_status=$?
1.16 millert 14955: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 14956: (exit $ac_status); }; }; then
1.27 millert 14957: sudo_cv_uid_t_len=`cat conftestdata`
1.9 millert 14958: else
1.27 millert 14959: echo "$as_me: program exited with status $ac_status" >&5
14960: echo "$as_me: failed program was:" >&5
1.16 millert 14961: sed 's/^/| /' conftest.$ac_ext >&5
14962:
1.27 millert 14963: ( exit $ac_status )
14964: sudo_cv_uid_t_len=10
1.9 millert 14965: fi
1.27 millert 14966: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 14967: fi
1.27 millert 14968:
14969:
1.25 millert 14970:
14971: fi
14972:
1.27 millert 14973: rm -f conftestdata
14974: { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14975: echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14976:
14977: cat >>confdefs.h <<_ACEOF
14978: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14979: _ACEOF
14980:
1.25 millert 14981:
1.27 millert 14982: { echo "$as_me:$LINENO: checking for long long" >&5
14983: echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14984: if test "${ac_cv_type_long_long+set}" = set; then
1.9 millert 14985: echo $ECHO_N "(cached) $ECHO_C" >&6
14986: else
1.25 millert 14987: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 14988: /* confdefs.h. */
14989: _ACEOF
14990: cat confdefs.h >>conftest.$ac_ext
14991: cat >>conftest.$ac_ext <<_ACEOF
14992: /* end confdefs.h. */
1.27 millert 14993: $ac_includes_default
14994: typedef long long ac__type_new_;
1.9 millert 14995: int
14996: main ()
14997: {
1.27 millert 14998: if ((ac__type_new_ *) 0)
14999: return 0;
15000: if (sizeof (ac__type_new_))
15001: return 0;
1.9 millert 15002: ;
15003: return 0;
15004: }
15005: _ACEOF
1.27 millert 15006: rm -f conftest.$ac_objext
15007: if { (ac_try="$ac_compile"
15008: case "(($ac_try" in
15009: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010: *) ac_try_echo=$ac_try;;
15011: esac
15012: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013: (eval "$ac_compile") 2>conftest.er1
1.9 millert 15014: ac_status=$?
1.25 millert 15015: grep -v '^ *+' conftest.er1 >conftest.err
15016: rm -f conftest.er1
15017: cat conftest.err >&5
1.16 millert 15018: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15019: (exit $ac_status); } && {
15020: test -z "$ac_c_werror_flag" ||
15021: test ! -s conftest.err
15022: } && test -s conftest.$ac_objext; then
15023: ac_cv_type_long_long=yes
1.9 millert 15024: else
15025: echo "$as_me: failed program was:" >&5
1.16 millert 15026: sed 's/^/| /' conftest.$ac_ext >&5
15027:
1.27 millert 15028: ac_cv_type_long_long=no
1.9 millert 15029: fi
1.27 millert 15030:
15031: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 15032: fi
1.27 millert 15033: { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15034: echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15035: if test $ac_cv_type_long_long = yes; then
15036:
15037: cat >>confdefs.h <<_ACEOF
15038: #define HAVE_LONG_LONG 1
1.16 millert 15039: _ACEOF
1.9 millert 15040:
1.1 millert 15041:
1.27 millert 15042: cat >>confdefs.h <<\_ACEOF
15043: #define HAVE_LONG_LONG 1
15044: _ACEOF
15045:
15046: { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15047: echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15048: if test "${sudo_cv_type_long_is_quad+set}" = set; then
1.9 millert 15049: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15050: else
1.27 millert 15051: if test "$cross_compiling" = yes; then
15052: sudo_cv_type_long_is_quad=no
15053: else
1.9 millert 15054: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15055: /* confdefs.h. */
15056: _ACEOF
15057: cat confdefs.h >>conftest.$ac_ext
15058: cat >>conftest.$ac_ext <<_ACEOF
15059: /* end confdefs.h. */
1.25 millert 15060:
1.27 millert 15061: main() {
15062: if (sizeof(long long) == sizeof(long)) exit(0);
15063: else exit(1);
1.9 millert 15064: }
15065: _ACEOF
1.27 millert 15066: rm -f conftest$ac_exeext
15067: if { (ac_try="$ac_link"
15068: case "(($ac_try" in
15069: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070: *) ac_try_echo=$ac_try;;
15071: esac
15072: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073: (eval "$ac_link") 2>&5
1.9 millert 15074: ac_status=$?
1.16 millert 15075: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15076: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15077: { (case "(($ac_try" in
15078: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15079: *) ac_try_echo=$ac_try;;
15080: esac
15081: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15082: (eval "$ac_try") 2>&5
1.9 millert 15083: ac_status=$?
1.16 millert 15084: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 15085: (exit $ac_status); }; }; then
1.27 millert 15086: sudo_cv_type_long_is_quad=yes
1.9 millert 15087: else
1.27 millert 15088: echo "$as_me: program exited with status $ac_status" >&5
15089: echo "$as_me: failed program was:" >&5
1.16 millert 15090: sed 's/^/| /' conftest.$ac_ext >&5
15091:
1.27 millert 15092: ( exit $ac_status )
15093: sudo_cv_type_long_is_quad=no
15094: fi
15095: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 15096: fi
1.27 millert 15097:
15098:
15099: rm -f core core.* *.core
1.9 millert 15100: fi
1.27 millert 15101: { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15102: echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15103: if test $sudo_cv_type_long_is_quad = yes; then
15104:
15105: cat >>confdefs.h <<\_ACEOF
15106: #define LONG_IS_QUAD 1
1.16 millert 15107: _ACEOF
1.27 millert 15108:
1.25 millert 15109: fi
15110:
15111: fi
15112:
1.27 millert 15113: { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15114: echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15115: if test "${sudo_cv_sock_sa_len+set}" = set; then
1.9 millert 15116: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15117: else
1.27 millert 15118: if test "$cross_compiling" = yes; then
15119: sudo_cv_sock_sa_len=no
15120: else
1.25 millert 15121: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15122: /* confdefs.h. */
15123: _ACEOF
15124: cat confdefs.h >>conftest.$ac_ext
15125: cat >>conftest.$ac_ext <<_ACEOF
15126: /* end confdefs.h. */
1.27 millert 15127: #include <sys/types.h>
15128: #include <sys/socket.h>
15129: main() {
15130: struct sockaddr s;
15131: s.sa_len = 0;
15132: exit(0);
1.9 millert 15133: }
15134: _ACEOF
1.27 millert 15135: rm -f conftest$ac_exeext
15136: if { (ac_try="$ac_link"
15137: case "(($ac_try" in
15138: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15139: *) ac_try_echo=$ac_try;;
15140: esac
15141: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15142: (eval "$ac_link") 2>&5
1.9 millert 15143: ac_status=$?
1.16 millert 15144: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15145: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15146: { (case "(($ac_try" in
15147: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148: *) ac_try_echo=$ac_try;;
15149: esac
15150: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15151: (eval "$ac_try") 2>&5
1.9 millert 15152: ac_status=$?
1.16 millert 15153: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.9 millert 15154: (exit $ac_status); }; }; then
1.27 millert 15155: sudo_cv_sock_sa_len=yes
1.9 millert 15156: else
1.27 millert 15157: echo "$as_me: program exited with status $ac_status" >&5
15158: echo "$as_me: failed program was:" >&5
1.16 millert 15159: sed 's/^/| /' conftest.$ac_ext >&5
15160:
1.27 millert 15161: ( exit $ac_status )
15162: sudo_cv_sock_sa_len=no
1.9 millert 15163: fi
1.27 millert 15164: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
1.9 millert 15165: fi
1.1 millert 15166:
1.27 millert 15167:
15168: rm -f core core.* *.core
1.1 millert 15169: fi
1.27 millert 15170: { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15171: echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15172: if test $sudo_cv_sock_sa_len = yes; then
15173:
15174: cat >>confdefs.h <<\_ACEOF
15175: #define HAVE_SA_LEN 1
15176: _ACEOF
1.1 millert 15177:
15178: fi
15179:
1.27 millert 15180: case "$DEFS" in
15181: *"RETSIGTYPE"*) ;;
15182: *) { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15183: echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15184: if test "${ac_cv_type_signal+set}" = set; then
1.9 millert 15185: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15186: else
1.9 millert 15187: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 15188: /* confdefs.h. */
15189: _ACEOF
15190: cat confdefs.h >>conftest.$ac_ext
15191: cat >>conftest.$ac_ext <<_ACEOF
15192: /* end confdefs.h. */
1.27 millert 15193: #include <sys/types.h>
15194: #include <signal.h>
1.9 millert 15195:
15196: int
15197: main ()
15198: {
1.27 millert 15199: return *(signal (0, 0)) (0) == 1;
1.9 millert 15200: ;
15201: return 0;
1.1 millert 15202: }
1.9 millert 15203: _ACEOF
1.27 millert 15204: rm -f conftest.$ac_objext
15205: if { (ac_try="$ac_compile"
15206: case "(($ac_try" in
15207: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15208: *) ac_try_echo=$ac_try;;
15209: esac
15210: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15211: (eval "$ac_compile") 2>conftest.er1
1.9 millert 15212: ac_status=$?
1.25 millert 15213: grep -v '^ *+' conftest.er1 >conftest.err
15214: rm -f conftest.er1
15215: cat conftest.err >&5
1.16 millert 15216: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15217: (exit $ac_status); } && {
15218: test -z "$ac_c_werror_flag" ||
15219: test ! -s conftest.err
15220: } && test -s conftest.$ac_objext; then
15221: ac_cv_type_signal=int
1.1 millert 15222: else
1.9 millert 15223: echo "$as_me: failed program was:" >&5
1.16 millert 15224: sed 's/^/| /' conftest.$ac_ext >&5
15225:
1.27 millert 15226: ac_cv_type_signal=void
1.9 millert 15227: fi
1.27 millert 15228:
15229: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 15230: fi
1.27 millert 15231: { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15232: echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15233:
15234: cat >>confdefs.h <<_ACEOF
15235: #define RETSIGTYPE $ac_cv_type_signal
1.25 millert 15236: _ACEOF
15237:
1.27 millert 15238: ;;
15239: esac
1.32 millert 15240: { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15241: echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15242: if test "${ac_cv_type_getgroups+set}" = set; then
15243: echo $ECHO_N "(cached) $ECHO_C" >&6
15244: else
15245: if test "$cross_compiling" = yes; then
15246: ac_cv_type_getgroups=cross
15247: else
15248: cat >conftest.$ac_ext <<_ACEOF
15249: /* confdefs.h. */
15250: _ACEOF
15251: cat confdefs.h >>conftest.$ac_ext
15252: cat >>conftest.$ac_ext <<_ACEOF
15253: /* end confdefs.h. */
15254: /* Thanks to Mike Rendell for this test. */
15255: $ac_includes_default
15256: #define NGID 256
15257: #undef MAX
15258: #define MAX(x, y) ((x) > (y) ? (x) : (y))
15259:
15260: int
15261: main ()
15262: {
15263: gid_t gidset[NGID];
15264: int i, n;
15265: union { gid_t gval; long int lval; } val;
15266:
15267: val.lval = -1;
15268: for (i = 0; i < NGID; i++)
15269: gidset[i] = val.gval;
15270: n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15271: gidset);
15272: /* Exit non-zero if getgroups seems to require an array of ints. This
15273: happens when gid_t is short int but getgroups modifies an array
15274: of ints. */
15275: return n > 0 && gidset[n] != val.gval;
15276: }
15277: _ACEOF
15278: rm -f conftest$ac_exeext
15279: if { (ac_try="$ac_link"
15280: case "(($ac_try" in
15281: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282: *) ac_try_echo=$ac_try;;
15283: esac
15284: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285: (eval "$ac_link") 2>&5
15286: ac_status=$?
15287: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15289: { (case "(($ac_try" in
15290: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291: *) ac_try_echo=$ac_try;;
15292: esac
15293: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15294: (eval "$ac_try") 2>&5
15295: ac_status=$?
15296: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297: (exit $ac_status); }; }; then
15298: ac_cv_type_getgroups=gid_t
15299: else
15300: echo "$as_me: program exited with status $ac_status" >&5
15301: echo "$as_me: failed program was:" >&5
15302: sed 's/^/| /' conftest.$ac_ext >&5
15303:
15304: ( exit $ac_status )
15305: ac_cv_type_getgroups=int
15306: fi
15307: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15308: fi
15309:
15310:
15311: if test $ac_cv_type_getgroups = cross; then
15312: cat >conftest.$ac_ext <<_ACEOF
15313: /* confdefs.h. */
15314: _ACEOF
15315: cat confdefs.h >>conftest.$ac_ext
15316: cat >>conftest.$ac_ext <<_ACEOF
15317: /* end confdefs.h. */
15318: #include <unistd.h>
15319:
15320: _ACEOF
15321: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15322: $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15323: ac_cv_type_getgroups=gid_t
15324: else
15325: ac_cv_type_getgroups=int
15326: fi
15327: rm -f conftest*
15328:
15329: fi
15330: fi
15331: { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15332: echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15333:
15334: cat >>confdefs.h <<_ACEOF
15335: #define GETGROUPS_T $ac_cv_type_getgroups
15336: _ACEOF
15337:
15338:
15339: { echo "$as_me:$LINENO: checking for size_t" >&5
15340: echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15341: if test "${ac_cv_type_size_t+set}" = set; then
15342: echo $ECHO_N "(cached) $ECHO_C" >&6
15343: else
15344: cat >conftest.$ac_ext <<_ACEOF
15345: /* confdefs.h. */
15346: _ACEOF
15347: cat confdefs.h >>conftest.$ac_ext
15348: cat >>conftest.$ac_ext <<_ACEOF
15349: /* end confdefs.h. */
15350: $ac_includes_default
15351: typedef size_t ac__type_new_;
15352: int
15353: main ()
15354: {
15355: if ((ac__type_new_ *) 0)
15356: return 0;
15357: if (sizeof (ac__type_new_))
15358: return 0;
15359: ;
15360: return 0;
15361: }
15362: _ACEOF
15363: rm -f conftest.$ac_objext
15364: if { (ac_try="$ac_compile"
15365: case "(($ac_try" in
15366: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367: *) ac_try_echo=$ac_try;;
15368: esac
15369: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370: (eval "$ac_compile") 2>conftest.er1
15371: ac_status=$?
15372: grep -v '^ *+' conftest.er1 >conftest.err
15373: rm -f conftest.er1
15374: cat conftest.err >&5
15375: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376: (exit $ac_status); } && {
15377: test -z "$ac_c_werror_flag" ||
15378: test ! -s conftest.err
15379: } && test -s conftest.$ac_objext; then
15380: ac_cv_type_size_t=yes
15381: else
15382: echo "$as_me: failed program was:" >&5
15383: sed 's/^/| /' conftest.$ac_ext >&5
15384:
15385: ac_cv_type_size_t=no
15386: fi
15387:
15388: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15389: fi
15390: { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15391: echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15392: if test $ac_cv_type_size_t = yes; then
15393: :
15394: else
15395:
15396: cat >>confdefs.h <<_ACEOF
15397: #define size_t unsigned int
15398: _ACEOF
15399:
15400: fi
15401:
15402: { echo "$as_me:$LINENO: checking for getgroups" >&5
15403: echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15404: if test "${ac_cv_func_getgroups+set}" = set; then
15405: echo $ECHO_N "(cached) $ECHO_C" >&6
15406: else
15407: cat >conftest.$ac_ext <<_ACEOF
15408: /* confdefs.h. */
15409: _ACEOF
15410: cat confdefs.h >>conftest.$ac_ext
15411: cat >>conftest.$ac_ext <<_ACEOF
15412: /* end confdefs.h. */
15413: /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15414: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15415: #define getgroups innocuous_getgroups
15416:
15417: /* System header to define __stub macros and hopefully few prototypes,
15418: which can conflict with char getgroups (); below.
15419: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420: <limits.h> exists even on freestanding compilers. */
15421:
15422: #ifdef __STDC__
15423: # include <limits.h>
15424: #else
15425: # include <assert.h>
15426: #endif
15427:
15428: #undef getgroups
15429:
15430: /* Override any GCC internal prototype to avoid an error.
15431: Use char because int might match the return type of a GCC
15432: builtin and then its argument prototype would still apply. */
15433: #ifdef __cplusplus
15434: extern "C"
15435: #endif
15436: char getgroups ();
15437: /* The GNU C library defines this for functions which it implements
15438: to always fail with ENOSYS. Some functions are actually named
15439: something starting with __ and the normal name is an alias. */
15440: #if defined __stub_getgroups || defined __stub___getgroups
15441: choke me
15442: #endif
15443:
15444: int
15445: main ()
15446: {
15447: return getgroups ();
15448: ;
15449: return 0;
15450: }
15451: _ACEOF
15452: rm -f conftest.$ac_objext conftest$ac_exeext
15453: if { (ac_try="$ac_link"
15454: case "(($ac_try" in
15455: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456: *) ac_try_echo=$ac_try;;
15457: esac
15458: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15459: (eval "$ac_link") 2>conftest.er1
15460: ac_status=$?
15461: grep -v '^ *+' conftest.er1 >conftest.err
15462: rm -f conftest.er1
15463: cat conftest.err >&5
15464: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465: (exit $ac_status); } && {
15466: test -z "$ac_c_werror_flag" ||
15467: test ! -s conftest.err
15468: } && test -s conftest$ac_exeext &&
15469: $as_test_x conftest$ac_exeext; then
15470: ac_cv_func_getgroups=yes
15471: else
15472: echo "$as_me: failed program was:" >&5
15473: sed 's/^/| /' conftest.$ac_ext >&5
15474:
15475: ac_cv_func_getgroups=no
15476: fi
15477:
15478: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15479: conftest$ac_exeext conftest.$ac_ext
15480: fi
15481: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15482: echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15483:
15484:
15485: # If we don't yet have getgroups, see if it's in -lbsd.
15486: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15487: ac_save_LIBS=$LIBS
15488: if test $ac_cv_func_getgroups = no; then
15489: { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15490: echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15491: if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15492: echo $ECHO_N "(cached) $ECHO_C" >&6
15493: else
15494: ac_check_lib_save_LIBS=$LIBS
15495: LIBS="-lbsd $LIBS"
15496: cat >conftest.$ac_ext <<_ACEOF
15497: /* confdefs.h. */
15498: _ACEOF
15499: cat confdefs.h >>conftest.$ac_ext
15500: cat >>conftest.$ac_ext <<_ACEOF
15501: /* end confdefs.h. */
15502:
15503: /* Override any GCC internal prototype to avoid an error.
15504: Use char because int might match the return type of a GCC
15505: builtin and then its argument prototype would still apply. */
15506: #ifdef __cplusplus
15507: extern "C"
15508: #endif
15509: char getgroups ();
15510: int
15511: main ()
15512: {
15513: return getgroups ();
15514: ;
15515: return 0;
15516: }
15517: _ACEOF
15518: rm -f conftest.$ac_objext conftest$ac_exeext
15519: if { (ac_try="$ac_link"
15520: case "(($ac_try" in
15521: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522: *) ac_try_echo=$ac_try;;
15523: esac
15524: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525: (eval "$ac_link") 2>conftest.er1
15526: ac_status=$?
15527: grep -v '^ *+' conftest.er1 >conftest.err
15528: rm -f conftest.er1
15529: cat conftest.err >&5
15530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531: (exit $ac_status); } && {
15532: test -z "$ac_c_werror_flag" ||
15533: test ! -s conftest.err
15534: } && test -s conftest$ac_exeext &&
15535: $as_test_x conftest$ac_exeext; then
15536: ac_cv_lib_bsd_getgroups=yes
15537: else
15538: echo "$as_me: failed program was:" >&5
15539: sed 's/^/| /' conftest.$ac_ext >&5
15540:
15541: ac_cv_lib_bsd_getgroups=no
15542: fi
15543:
15544: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15545: conftest$ac_exeext conftest.$ac_ext
15546: LIBS=$ac_check_lib_save_LIBS
15547: fi
15548: { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15549: echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15550: if test $ac_cv_lib_bsd_getgroups = yes; then
15551: GETGROUPS_LIB=-lbsd
15552: fi
15553:
15554: fi
15555:
15556: # Run the program to test the functionality of the system-supplied
15557: # getgroups function only if there is such a function.
15558: if test $ac_cv_func_getgroups = yes; then
15559: { echo "$as_me:$LINENO: checking for working getgroups" >&5
15560: echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15561: if test "${ac_cv_func_getgroups_works+set}" = set; then
15562: echo $ECHO_N "(cached) $ECHO_C" >&6
15563: else
15564: if test "$cross_compiling" = yes; then
15565: ac_cv_func_getgroups_works=no
15566: else
15567: cat >conftest.$ac_ext <<_ACEOF
15568: /* confdefs.h. */
15569: _ACEOF
15570: cat confdefs.h >>conftest.$ac_ext
15571: cat >>conftest.$ac_ext <<_ACEOF
15572: /* end confdefs.h. */
15573: $ac_includes_default
15574: int
15575: main ()
15576: {
15577: /* On Ultrix 4.3, getgroups (0, 0) always fails. */
15578: return getgroups (0, 0) == -1;
15579: ;
15580: return 0;
15581: }
15582: _ACEOF
15583: rm -f conftest$ac_exeext
15584: if { (ac_try="$ac_link"
15585: case "(($ac_try" in
15586: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587: *) ac_try_echo=$ac_try;;
15588: esac
15589: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590: (eval "$ac_link") 2>&5
15591: ac_status=$?
15592: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15594: { (case "(($ac_try" in
15595: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15596: *) ac_try_echo=$ac_try;;
15597: esac
15598: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15599: (eval "$ac_try") 2>&5
15600: ac_status=$?
15601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
15602: (exit $ac_status); }; }; then
15603: ac_cv_func_getgroups_works=yes
15604: else
15605: echo "$as_me: program exited with status $ac_status" >&5
15606: echo "$as_me: failed program was:" >&5
15607: sed 's/^/| /' conftest.$ac_ext >&5
15608:
15609: ( exit $ac_status )
15610: ac_cv_func_getgroups_works=no
15611: fi
15612: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15613: fi
15614:
15615:
15616:
15617: fi
15618: { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15619: echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15620: if test $ac_cv_func_getgroups_works = yes; then
15621:
15622: cat >>confdefs.h <<\_ACEOF
15623: #define HAVE_GETGROUPS 1
15624: _ACEOF
15625:
15626: fi
15627: fi
15628: LIBS=$ac_save_LIBS
15629:
1.27 millert 15630:
15631:
15632:
15633:
15634:
15635:
15636:
15637:
15638:
15639:
15640:
15641:
15642:
15643:
15644:
1.36 millert 15645:
1.39 ! millert 15646:
1.27 millert 15647: for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15648: strftime setrlimit initgroups getgroups fstat gettimeofday \
1.39 ! millert 15649: setlocale getaddrinfo setsid setenv
1.25 millert 15650: do
15651: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 15652: { echo "$as_me:$LINENO: checking for $ac_func" >&5
15653: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15654: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 15655: echo $ECHO_N "(cached) $ECHO_C" >&6
15656: else
15657: cat >conftest.$ac_ext <<_ACEOF
15658: /* confdefs.h. */
15659: _ACEOF
15660: cat confdefs.h >>conftest.$ac_ext
15661: cat >>conftest.$ac_ext <<_ACEOF
15662: /* end confdefs.h. */
15663: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15664: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15665: #define $ac_func innocuous_$ac_func
15666:
15667: /* System header to define __stub macros and hopefully few prototypes,
15668: which can conflict with char $ac_func (); below.
15669: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15670: <limits.h> exists even on freestanding compilers. */
15671:
15672: #ifdef __STDC__
15673: # include <limits.h>
15674: #else
15675: # include <assert.h>
15676: #endif
15677:
15678: #undef $ac_func
15679:
1.27 millert 15680: /* Override any GCC internal prototype to avoid an error.
15681: Use char because int might match the return type of a GCC
15682: builtin and then its argument prototype would still apply. */
1.25 millert 15683: #ifdef __cplusplus
15684: extern "C"
15685: #endif
15686: char $ac_func ();
15687: /* The GNU C library defines this for functions which it implements
15688: to always fail with ENOSYS. Some functions are actually named
15689: something starting with __ and the normal name is an alias. */
1.27 millert 15690: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15691: choke me
15692: #endif
1.9 millert 15693:
15694: int
15695: main ()
15696: {
1.27 millert 15697: return $ac_func ();
1.9 millert 15698: ;
15699: return 0;
15700: }
15701: _ACEOF
1.25 millert 15702: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 15703: if { (ac_try="$ac_link"
15704: case "(($ac_try" in
15705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15706: *) ac_try_echo=$ac_try;;
15707: esac
15708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15709: (eval "$ac_link") 2>conftest.er1
1.9 millert 15710: ac_status=$?
1.25 millert 15711: grep -v '^ *+' conftest.er1 >conftest.err
15712: rm -f conftest.er1
15713: cat conftest.err >&5
1.16 millert 15714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15715: (exit $ac_status); } && {
15716: test -z "$ac_c_werror_flag" ||
15717: test ! -s conftest.err
15718: } && test -s conftest$ac_exeext &&
15719: $as_test_x conftest$ac_exeext; then
1.25 millert 15720: eval "$as_ac_var=yes"
1.9 millert 15721: else
15722: echo "$as_me: failed program was:" >&5
1.16 millert 15723: sed 's/^/| /' conftest.$ac_ext >&5
15724:
1.27 millert 15725: eval "$as_ac_var=no"
1.9 millert 15726: fi
1.27 millert 15727:
15728: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15729: conftest$ac_exeext conftest.$ac_ext
1.9 millert 15730: fi
1.27 millert 15731: ac_res=`eval echo '${'$as_ac_var'}'`
15732: { echo "$as_me:$LINENO: result: $ac_res" >&5
15733: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15734: if test `eval echo '${'$as_ac_var'}'` = yes; then
15735: cat >>confdefs.h <<_ACEOF
15736: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 15737: _ACEOF
1.1 millert 15738:
15739: fi
1.9 millert 15740: done
15741:
1.1 millert 15742:
1.39 ! millert 15743: for ac_func in unsetenv
1.25 millert 15744: do
15745: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 15746: { echo "$as_me:$LINENO: checking for $ac_func" >&5
15747: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15748: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 15749: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 15750: else
1.25 millert 15751: cat >conftest.$ac_ext <<_ACEOF
15752: /* confdefs.h. */
15753: _ACEOF
15754: cat confdefs.h >>conftest.$ac_ext
15755: cat >>conftest.$ac_ext <<_ACEOF
15756: /* end confdefs.h. */
15757: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15758: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15759: #define $ac_func innocuous_$ac_func
1.9 millert 15760:
1.25 millert 15761: /* System header to define __stub macros and hopefully few prototypes,
15762: which can conflict with char $ac_func (); below.
15763: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15764: <limits.h> exists even on freestanding compilers. */
1.9 millert 15765:
1.25 millert 15766: #ifdef __STDC__
15767: # include <limits.h>
15768: #else
15769: # include <assert.h>
15770: #endif
1.9 millert 15771:
1.25 millert 15772: #undef $ac_func
1.9 millert 15773:
1.27 millert 15774: /* Override any GCC internal prototype to avoid an error.
15775: Use char because int might match the return type of a GCC
15776: builtin and then its argument prototype would still apply. */
1.25 millert 15777: #ifdef __cplusplus
15778: extern "C"
15779: #endif
15780: char $ac_func ();
15781: /* The GNU C library defines this for functions which it implements
15782: to always fail with ENOSYS. Some functions are actually named
15783: something starting with __ and the normal name is an alias. */
1.27 millert 15784: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 15785: choke me
15786: #endif
1.9 millert 15787:
1.25 millert 15788: int
15789: main ()
15790: {
1.27 millert 15791: return $ac_func ();
1.25 millert 15792: ;
15793: return 0;
15794: }
15795: _ACEOF
15796: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 15797: if { (ac_try="$ac_link"
15798: case "(($ac_try" in
15799: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800: *) ac_try_echo=$ac_try;;
15801: esac
15802: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803: (eval "$ac_link") 2>conftest.er1
1.25 millert 15804: ac_status=$?
15805: grep -v '^ *+' conftest.er1 >conftest.err
15806: rm -f conftest.er1
15807: cat conftest.err >&5
15808: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 15809: (exit $ac_status); } && {
15810: test -z "$ac_c_werror_flag" ||
15811: test ! -s conftest.err
15812: } && test -s conftest$ac_exeext &&
15813: $as_test_x conftest$ac_exeext; then
1.25 millert 15814: eval "$as_ac_var=yes"
15815: else
15816: echo "$as_me: failed program was:" >&5
15817: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 15818:
1.27 millert 15819: eval "$as_ac_var=no"
1.1 millert 15820: fi
1.27 millert 15821:
15822: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 15823: conftest$ac_exeext conftest.$ac_ext
1.9 millert 15824: fi
1.27 millert 15825: ac_res=`eval echo '${'$as_ac_var'}'`
15826: { echo "$as_me:$LINENO: result: $ac_res" >&5
15827: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 15828: if test `eval echo '${'$as_ac_var'}'` = yes; then
15829: cat >>confdefs.h <<_ACEOF
15830: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15831: _ACEOF
1.39 ! millert 15832: { echo "$as_me:$LINENO: checking whether unsetenv returns void" >&5
! 15833: echo $ECHO_N "checking whether unsetenv returns void... $ECHO_C" >&6; }
! 15834: if test "${sudo_cv_func_unsetenv_void+set}" = set; then
! 15835: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15836: else
! 15837: if test "$cross_compiling" = yes; then
! 15838: sudo_cv_func_unsetenv_void=yes
! 15839: else
! 15840: cat >conftest.$ac_ext <<_ACEOF
! 15841: /* confdefs.h. */
! 15842: _ACEOF
! 15843: cat confdefs.h >>conftest.$ac_ext
! 15844: cat >>conftest.$ac_ext <<_ACEOF
! 15845: /* end confdefs.h. */
! 15846: $ac_includes_default
! 15847: int unsetenv();
! 15848:
! 15849: int
! 15850: main ()
! 15851: {
! 15852:
! 15853: return unsetenv("FOO") != 0;
! 15854:
! 15855: ;
! 15856: return 0;
! 15857: }
! 15858:
! 15859: _ACEOF
! 15860: rm -f conftest$ac_exeext
! 15861: if { (ac_try="$ac_link"
! 15862: case "(($ac_try" in
! 15863: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15864: *) ac_try_echo=$ac_try;;
! 15865: esac
! 15866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15867: (eval "$ac_link") 2>&5
! 15868: ac_status=$?
! 15869: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15870: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
! 15871: { (case "(($ac_try" in
! 15872: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15873: *) ac_try_echo=$ac_try;;
! 15874: esac
! 15875: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15876: (eval "$ac_try") 2>&5
! 15877: ac_status=$?
! 15878: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15879: (exit $ac_status); }; }; then
! 15880: sudo_cv_func_unsetenv_void=no
! 15881: else
! 15882: echo "$as_me: program exited with status $ac_status" >&5
! 15883: echo "$as_me: failed program was:" >&5
! 15884: sed 's/^/| /' conftest.$ac_ext >&5
! 15885:
! 15886: ( exit $ac_status )
! 15887: sudo_cv_func_unsetenv_void=yes
! 15888: fi
! 15889: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
! 15890: fi
! 15891:
! 15892:
! 15893: fi
! 15894: { echo "$as_me:$LINENO: result: $sudo_cv_func_unsetenv_void" >&5
! 15895: echo "${ECHO_T}$sudo_cv_func_unsetenv_void" >&6; }
! 15896: if test $sudo_cv_func_unsetenv_void = yes; then
! 15897:
! 15898: cat >>confdefs.h <<\_ACEOF
! 15899: #define UNSETENV_VOID 1
! 15900: _ACEOF
! 15901:
! 15902: fi
! 15903:
1.25 millert 15904: fi
15905: done
1.23 millert 15906:
1.39 ! millert 15907: { echo "$as_me:$LINENO: checking whether putenv has a const argument" >&5
! 15908: echo $ECHO_N "checking whether putenv has a const argument... $ECHO_C" >&6; }
! 15909: if test "${sudo_cv_func_putenv_const+set}" = set; then
! 15910: echo $ECHO_N "(cached) $ECHO_C" >&6
! 15911: else
! 15912: cat >conftest.$ac_ext <<_ACEOF
! 15913: /* confdefs.h. */
! 15914: _ACEOF
! 15915: cat confdefs.h >>conftest.$ac_ext
! 15916: cat >>conftest.$ac_ext <<_ACEOF
! 15917: /* end confdefs.h. */
! 15918: $ac_includes_default
! 15919: int putenv(const char *string) {return 0;}
! 15920: int
! 15921: main ()
! 15922: {
! 15923:
! 15924: ;
! 15925: return 0;
! 15926: }
! 15927: _ACEOF
! 15928: rm -f conftest.$ac_objext
! 15929: if { (ac_try="$ac_compile"
! 15930: case "(($ac_try" in
! 15931: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 15932: *) ac_try_echo=$ac_try;;
! 15933: esac
! 15934: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 15935: (eval "$ac_compile") 2>conftest.er1
! 15936: ac_status=$?
! 15937: grep -v '^ *+' conftest.er1 >conftest.err
! 15938: rm -f conftest.er1
! 15939: cat conftest.err >&5
! 15940: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 15941: (exit $ac_status); } && {
! 15942: test -z "$ac_c_werror_flag" ||
! 15943: test ! -s conftest.err
! 15944: } && test -s conftest.$ac_objext; then
! 15945: sudo_cv_func_putenv_const=yes
! 15946: else
! 15947: echo "$as_me: failed program was:" >&5
! 15948: sed 's/^/| /' conftest.$ac_ext >&5
! 15949:
! 15950: sudo_cv_func_putenv_const=no
! 15951: fi
! 15952:
! 15953: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
! 15954:
1.23 millert 15955: fi
1.39 ! millert 15956: { echo "$as_me:$LINENO: result: $sudo_cv_func_putenv_const" >&5
! 15957: echo "${ECHO_T}$sudo_cv_func_putenv_const" >&6; }
! 15958: if test $sudo_cv_func_putenv_const = yes; then
! 15959:
! 15960: cat >>confdefs.h <<\_ACEOF
! 15961: #define PUTENV_CONST 1
! 15962: _ACEOF
! 15963:
! 15964: fi
! 15965:
! 15966: if test -z "$SKIP_SETRESUID"; then
1.23 millert 15967:
1.39 ! millert 15968: for ac_func in setresuid
1.25 millert 15969: do
15970: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 15971: { echo "$as_me:$LINENO: checking for $ac_func" >&5
15972: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15973: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 15974: echo $ECHO_N "(cached) $ECHO_C" >&6
15975: else
15976: cat >conftest.$ac_ext <<_ACEOF
15977: /* confdefs.h. */
15978: _ACEOF
15979: cat confdefs.h >>conftest.$ac_ext
15980: cat >>conftest.$ac_ext <<_ACEOF
15981: /* end confdefs.h. */
1.25 millert 15982: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15983: For example, HP-UX 11i <limits.h> declares gettimeofday. */
15984: #define $ac_func innocuous_$ac_func
15985:
15986: /* System header to define __stub macros and hopefully few prototypes,
15987: which can conflict with char $ac_func (); below.
15988: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15989: <limits.h> exists even on freestanding compilers. */
15990:
15991: #ifdef __STDC__
15992: # include <limits.h>
15993: #else
15994: # include <assert.h>
15995: #endif
15996:
15997: #undef $ac_func
15998:
1.27 millert 15999: /* Override any GCC internal prototype to avoid an error.
16000: Use char because int might match the return type of a GCC
16001: builtin and then its argument prototype would still apply. */
1.25 millert 16002: #ifdef __cplusplus
16003: extern "C"
16004: #endif
16005: char $ac_func ();
16006: /* The GNU C library defines this for functions which it implements
16007: to always fail with ENOSYS. Some functions are actually named
16008: something starting with __ and the normal name is an alias. */
1.27 millert 16009: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16010: choke me
16011: #endif
1.23 millert 16012:
16013: int
16014: main ()
16015: {
1.27 millert 16016: return $ac_func ();
1.23 millert 16017: ;
16018: return 0;
16019: }
16020: _ACEOF
1.25 millert 16021: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16022: if { (ac_try="$ac_link"
16023: case "(($ac_try" in
16024: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16025: *) ac_try_echo=$ac_try;;
16026: esac
16027: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16028: (eval "$ac_link") 2>conftest.er1
1.23 millert 16029: ac_status=$?
1.25 millert 16030: grep -v '^ *+' conftest.er1 >conftest.err
16031: rm -f conftest.er1
16032: cat conftest.err >&5
1.23 millert 16033: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16034: (exit $ac_status); } && {
16035: test -z "$ac_c_werror_flag" ||
16036: test ! -s conftest.err
16037: } && test -s conftest$ac_exeext &&
16038: $as_test_x conftest$ac_exeext; then
1.25 millert 16039: eval "$as_ac_var=yes"
1.23 millert 16040: else
16041: echo "$as_me: failed program was:" >&5
16042: sed 's/^/| /' conftest.$ac_ext >&5
16043:
1.27 millert 16044: eval "$as_ac_var=no"
1.25 millert 16045: fi
1.27 millert 16046:
16047: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16048: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16049: fi
1.27 millert 16050: ac_res=`eval echo '${'$as_ac_var'}'`
16051: { echo "$as_me:$LINENO: result: $ac_res" >&5
16052: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16053: if test `eval echo '${'$as_ac_var'}'` = yes; then
16054: cat >>confdefs.h <<_ACEOF
16055: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16056: _ACEOF
1.39 ! millert 16057: SKIP_SETREUID=yes
1.23 millert 16058: fi
1.27 millert 16059: done
1.23 millert 16060:
16061: fi
1.39 ! millert 16062: if test -z "$SKIP_SETREUID"; then
1.25 millert 16063:
1.39 ! millert 16064: for ac_func in setreuid
1.25 millert 16065: do
16066: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16067: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16068: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16069: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 16070: echo $ECHO_N "(cached) $ECHO_C" >&6
16071: else
1.23 millert 16072: cat >conftest.$ac_ext <<_ACEOF
16073: /* confdefs.h. */
16074: _ACEOF
16075: cat confdefs.h >>conftest.$ac_ext
16076: cat >>conftest.$ac_ext <<_ACEOF
16077: /* end confdefs.h. */
1.25 millert 16078: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16079: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16080: #define $ac_func innocuous_$ac_func
16081:
16082: /* System header to define __stub macros and hopefully few prototypes,
16083: which can conflict with char $ac_func (); below.
16084: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16085: <limits.h> exists even on freestanding compilers. */
16086:
16087: #ifdef __STDC__
16088: # include <limits.h>
16089: #else
16090: # include <assert.h>
16091: #endif
16092:
16093: #undef $ac_func
1.23 millert 16094:
1.27 millert 16095: /* Override any GCC internal prototype to avoid an error.
16096: Use char because int might match the return type of a GCC
16097: builtin and then its argument prototype would still apply. */
1.25 millert 16098: #ifdef __cplusplus
16099: extern "C"
16100: #endif
16101: char $ac_func ();
16102: /* The GNU C library defines this for functions which it implements
16103: to always fail with ENOSYS. Some functions are actually named
16104: something starting with __ and the normal name is an alias. */
1.27 millert 16105: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16106: choke me
1.23 millert 16107: #endif
16108:
16109: int
16110: main ()
16111: {
1.27 millert 16112: return $ac_func ();
1.25 millert 16113: ;
16114: return 0;
1.23 millert 16115: }
16116: _ACEOF
1.25 millert 16117: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16118: if { (ac_try="$ac_link"
16119: case "(($ac_try" in
16120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16121: *) ac_try_echo=$ac_try;;
16122: esac
16123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16124: (eval "$ac_link") 2>conftest.er1
1.25 millert 16125: ac_status=$?
16126: grep -v '^ *+' conftest.er1 >conftest.err
16127: rm -f conftest.er1
16128: cat conftest.err >&5
16129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16130: (exit $ac_status); } && {
16131: test -z "$ac_c_werror_flag" ||
16132: test ! -s conftest.err
16133: } && test -s conftest$ac_exeext &&
16134: $as_test_x conftest$ac_exeext; then
1.25 millert 16135: eval "$as_ac_var=yes"
1.23 millert 16136: else
1.25 millert 16137: echo "$as_me: failed program was:" >&5
1.23 millert 16138: sed 's/^/| /' conftest.$ac_ext >&5
16139:
1.27 millert 16140: eval "$as_ac_var=no"
1.23 millert 16141: fi
1.27 millert 16142:
16143: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16144: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16145: fi
1.27 millert 16146: ac_res=`eval echo '${'$as_ac_var'}'`
16147: { echo "$as_me:$LINENO: result: $ac_res" >&5
16148: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16149: if test `eval echo '${'$as_ac_var'}'` = yes; then
16150: cat >>confdefs.h <<_ACEOF
16151: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 16152: _ACEOF
1.39 ! millert 16153: SKIP_SETEUID=yes
1.23 millert 16154: fi
1.25 millert 16155: done
1.23 millert 16156:
1.27 millert 16157: fi
1.39 ! millert 16158: if test -z "$SKIP_SETEUID"; then
1.23 millert 16159:
1.39 ! millert 16160: for ac_func in seteuid
1.25 millert 16161: do
16162: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16163: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16164: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16165: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 16166: echo $ECHO_N "(cached) $ECHO_C" >&6
16167: else
16168: cat >conftest.$ac_ext <<_ACEOF
16169: /* confdefs.h. */
16170: _ACEOF
16171: cat confdefs.h >>conftest.$ac_ext
16172: cat >>conftest.$ac_ext <<_ACEOF
16173: /* end confdefs.h. */
1.25 millert 16174: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16175: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16176: #define $ac_func innocuous_$ac_func
16177:
16178: /* System header to define __stub macros and hopefully few prototypes,
16179: which can conflict with char $ac_func (); below.
16180: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16181: <limits.h> exists even on freestanding compilers. */
16182:
16183: #ifdef __STDC__
16184: # include <limits.h>
16185: #else
16186: # include <assert.h>
16187: #endif
16188:
16189: #undef $ac_func
16190:
1.27 millert 16191: /* Override any GCC internal prototype to avoid an error.
16192: Use char because int might match the return type of a GCC
16193: builtin and then its argument prototype would still apply. */
1.25 millert 16194: #ifdef __cplusplus
16195: extern "C"
16196: #endif
16197: char $ac_func ();
16198: /* The GNU C library defines this for functions which it implements
16199: to always fail with ENOSYS. Some functions are actually named
16200: something starting with __ and the normal name is an alias. */
1.27 millert 16201: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16202: choke me
16203: #endif
1.23 millert 16204:
16205: int
16206: main ()
16207: {
1.27 millert 16208: return $ac_func ();
1.23 millert 16209: ;
16210: return 0;
16211: }
16212: _ACEOF
1.25 millert 16213: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16214: if { (ac_try="$ac_link"
16215: case "(($ac_try" in
16216: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217: *) ac_try_echo=$ac_try;;
16218: esac
16219: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220: (eval "$ac_link") 2>conftest.er1
1.23 millert 16221: ac_status=$?
1.25 millert 16222: grep -v '^ *+' conftest.er1 >conftest.err
16223: rm -f conftest.er1
16224: cat conftest.err >&5
1.23 millert 16225: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16226: (exit $ac_status); } && {
16227: test -z "$ac_c_werror_flag" ||
16228: test ! -s conftest.err
16229: } && test -s conftest$ac_exeext &&
16230: $as_test_x conftest$ac_exeext; then
1.25 millert 16231: eval "$as_ac_var=yes"
1.23 millert 16232: else
16233: echo "$as_me: failed program was:" >&5
16234: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 16235:
1.27 millert 16236: eval "$as_ac_var=no"
1.23 millert 16237: fi
1.27 millert 16238:
16239: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16240: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16241: fi
1.27 millert 16242: ac_res=`eval echo '${'$as_ac_var'}'`
16243: { echo "$as_me:$LINENO: result: $ac_res" >&5
16244: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16245: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 16246: cat >>confdefs.h <<_ACEOF
1.25 millert 16247: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 16248: _ACEOF
1.25 millert 16249:
1.39 ! millert 16250: fi
! 16251: done
! 16252:
! 16253: fi
! 16254: if test X"$with_interfaces" != X"no"; then
! 16255:
! 16256: for ac_func in getifaddrs
1.25 millert 16257: do
16258: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16259: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16260: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16261: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16262: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16263: else
1.25 millert 16264: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16265: /* confdefs.h. */
16266: _ACEOF
16267: cat confdefs.h >>conftest.$ac_ext
16268: cat >>conftest.$ac_ext <<_ACEOF
16269: /* end confdefs.h. */
1.25 millert 16270: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16271: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16272: #define $ac_func innocuous_$ac_func
16273:
16274: /* System header to define __stub macros and hopefully few prototypes,
16275: which can conflict with char $ac_func (); below.
16276: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16277: <limits.h> exists even on freestanding compilers. */
16278:
16279: #ifdef __STDC__
16280: # include <limits.h>
16281: #else
16282: # include <assert.h>
16283: #endif
16284:
16285: #undef $ac_func
1.9 millert 16286:
1.27 millert 16287: /* Override any GCC internal prototype to avoid an error.
16288: Use char because int might match the return type of a GCC
16289: builtin and then its argument prototype would still apply. */
1.23 millert 16290: #ifdef __cplusplus
16291: extern "C"
16292: #endif
1.25 millert 16293: char $ac_func ();
16294: /* The GNU C library defines this for functions which it implements
16295: to always fail with ENOSYS. Some functions are actually named
16296: something starting with __ and the normal name is an alias. */
1.27 millert 16297: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16298: choke me
16299: #endif
16300:
1.16 millert 16301: int
16302: main ()
16303: {
1.27 millert 16304: return $ac_func ();
1.16 millert 16305: ;
16306: return 0;
16307: }
1.9 millert 16308: _ACEOF
1.23 millert 16309: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16310: if { (ac_try="$ac_link"
16311: case "(($ac_try" in
16312: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16313: *) ac_try_echo=$ac_try;;
16314: esac
16315: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16316: (eval "$ac_link") 2>conftest.er1
1.16 millert 16317: ac_status=$?
1.25 millert 16318: grep -v '^ *+' conftest.er1 >conftest.err
16319: rm -f conftest.er1
16320: cat conftest.err >&5
1.16 millert 16321: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16322: (exit $ac_status); } && {
16323: test -z "$ac_c_werror_flag" ||
16324: test ! -s conftest.err
16325: } && test -s conftest$ac_exeext &&
16326: $as_test_x conftest$ac_exeext; then
1.25 millert 16327: eval "$as_ac_var=yes"
1.1 millert 16328: else
1.9 millert 16329: echo "$as_me: failed program was:" >&5
1.16 millert 16330: sed 's/^/| /' conftest.$ac_ext >&5
16331:
1.27 millert 16332: eval "$as_ac_var=no"
1.25 millert 16333: fi
1.27 millert 16334:
16335: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16336: conftest$ac_exeext conftest.$ac_ext
1.1 millert 16337: fi
1.27 millert 16338: ac_res=`eval echo '${'$as_ac_var'}'`
16339: { echo "$as_me:$LINENO: result: $ac_res" >&5
16340: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16341: if test `eval echo '${'$as_ac_var'}'` = yes; then
16342: cat >>confdefs.h <<_ACEOF
16343: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16344: _ACEOF
16345:
1.39 ! millert 16346: for ac_func in freeifaddrs
1.25 millert 16347: do
16348: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16349: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16350: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16351: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 16352: echo $ECHO_N "(cached) $ECHO_C" >&6
16353: else
16354: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16355: /* confdefs.h. */
16356: _ACEOF
16357: cat confdefs.h >>conftest.$ac_ext
16358: cat >>conftest.$ac_ext <<_ACEOF
16359: /* end confdefs.h. */
1.25 millert 16360: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16361: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16362: #define $ac_func innocuous_$ac_func
16363:
16364: /* System header to define __stub macros and hopefully few prototypes,
16365: which can conflict with char $ac_func (); below.
16366: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16367: <limits.h> exists even on freestanding compilers. */
16368:
16369: #ifdef __STDC__
16370: # include <limits.h>
16371: #else
16372: # include <assert.h>
16373: #endif
16374:
16375: #undef $ac_func
1.9 millert 16376:
1.27 millert 16377: /* Override any GCC internal prototype to avoid an error.
16378: Use char because int might match the return type of a GCC
16379: builtin and then its argument prototype would still apply. */
1.23 millert 16380: #ifdef __cplusplus
16381: extern "C"
16382: #endif
1.25 millert 16383: char $ac_func ();
16384: /* The GNU C library defines this for functions which it implements
16385: to always fail with ENOSYS. Some functions are actually named
16386: something starting with __ and the normal name is an alias. */
1.27 millert 16387: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16388: choke me
16389: #endif
16390:
1.23 millert 16391: int
16392: main ()
16393: {
1.27 millert 16394: return $ac_func ();
1.23 millert 16395: ;
16396: return 0;
16397: }
1.9 millert 16398: _ACEOF
1.23 millert 16399: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16400: if { (ac_try="$ac_link"
16401: case "(($ac_try" in
16402: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403: *) ac_try_echo=$ac_try;;
16404: esac
16405: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16406: (eval "$ac_link") 2>conftest.er1
1.23 millert 16407: ac_status=$?
1.25 millert 16408: grep -v '^ *+' conftest.er1 >conftest.err
16409: rm -f conftest.er1
16410: cat conftest.err >&5
1.23 millert 16411: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16412: (exit $ac_status); } && {
16413: test -z "$ac_c_werror_flag" ||
16414: test ! -s conftest.err
16415: } && test -s conftest$ac_exeext &&
16416: $as_test_x conftest$ac_exeext; then
1.25 millert 16417: eval "$as_ac_var=yes"
1.1 millert 16418: else
1.23 millert 16419: echo "$as_me: failed program was:" >&5
16420: sed 's/^/| /' conftest.$ac_ext >&5
16421:
1.27 millert 16422: eval "$as_ac_var=no"
1.25 millert 16423: fi
1.27 millert 16424:
16425: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16426: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16427: fi
1.27 millert 16428: ac_res=`eval echo '${'$as_ac_var'}'`
16429: { echo "$as_me:$LINENO: result: $ac_res" >&5
16430: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16431: if test `eval echo '${'$as_ac_var'}'` = yes; then
16432: cat >>confdefs.h <<_ACEOF
16433: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16434: _ACEOF
16435:
1.39 ! millert 16436: fi
! 16437: done
1.27 millert 16438:
1.23 millert 16439: fi
1.25 millert 16440: done
1.27 millert 16441:
1.1 millert 16442: fi
1.39 ! millert 16443: if test -z "$BROKEN_GETCWD"; then
1.1 millert 16444:
1.39 ! millert 16445: for ac_func in getcwd
1.25 millert 16446: do
16447: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16448: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16449: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16450: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 16451: echo $ECHO_N "(cached) $ECHO_C" >&6
16452: else
1.25 millert 16453: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16454: /* confdefs.h. */
16455: _ACEOF
16456: cat confdefs.h >>conftest.$ac_ext
16457: cat >>conftest.$ac_ext <<_ACEOF
16458: /* end confdefs.h. */
1.25 millert 16459: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16460: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16461: #define $ac_func innocuous_$ac_func
16462:
16463: /* System header to define __stub macros and hopefully few prototypes,
16464: which can conflict with char $ac_func (); below.
16465: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16466: <limits.h> exists even on freestanding compilers. */
16467:
16468: #ifdef __STDC__
16469: # include <limits.h>
16470: #else
16471: # include <assert.h>
16472: #endif
16473:
16474: #undef $ac_func
1.9 millert 16475:
1.27 millert 16476: /* Override any GCC internal prototype to avoid an error.
16477: Use char because int might match the return type of a GCC
16478: builtin and then its argument prototype would still apply. */
1.23 millert 16479: #ifdef __cplusplus
16480: extern "C"
16481: #endif
1.25 millert 16482: char $ac_func ();
16483: /* The GNU C library defines this for functions which it implements
16484: to always fail with ENOSYS. Some functions are actually named
16485: something starting with __ and the normal name is an alias. */
1.27 millert 16486: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16487: choke me
16488: #endif
16489:
1.23 millert 16490: int
16491: main ()
16492: {
1.27 millert 16493: return $ac_func ();
1.23 millert 16494: ;
16495: return 0;
16496: }
1.9 millert 16497: _ACEOF
1.23 millert 16498: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16499: if { (ac_try="$ac_link"
16500: case "(($ac_try" in
16501: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502: *) ac_try_echo=$ac_try;;
16503: esac
16504: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505: (eval "$ac_link") 2>conftest.er1
1.23 millert 16506: ac_status=$?
1.25 millert 16507: grep -v '^ *+' conftest.er1 >conftest.err
16508: rm -f conftest.er1
16509: cat conftest.err >&5
1.23 millert 16510: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16511: (exit $ac_status); } && {
16512: test -z "$ac_c_werror_flag" ||
16513: test ! -s conftest.err
16514: } && test -s conftest$ac_exeext &&
16515: $as_test_x conftest$ac_exeext; then
1.25 millert 16516: eval "$as_ac_var=yes"
1.1 millert 16517: else
1.23 millert 16518: echo "$as_me: failed program was:" >&5
16519: sed 's/^/| /' conftest.$ac_ext >&5
1.1 millert 16520:
1.27 millert 16521: eval "$as_ac_var=no"
1.25 millert 16522: fi
1.27 millert 16523:
16524: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16525: conftest$ac_exeext conftest.$ac_ext
1.1 millert 16526: fi
1.27 millert 16527: ac_res=`eval echo '${'$as_ac_var'}'`
16528: { echo "$as_me:$LINENO: result: $ac_res" >&5
16529: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16530: if test `eval echo '${'$as_ac_var'}'` = yes; then
16531: cat >>confdefs.h <<_ACEOF
16532: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16533: _ACEOF
1.39 ! millert 16534:
! 16535: else
! 16536: case " $LIBOBJS " in
! 16537: *" $ac_func.$ac_objext "* ) ;;
! 16538: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
! 16539: ;;
! 16540: esac
! 16541:
! 16542: fi
! 16543: done
! 16544:
! 16545:
! 16546: fi
! 16547:
! 16548: for ac_func in glob
! 16549: do
! 16550: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 16551: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 16552: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 16553: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 16554: echo $ECHO_N "(cached) $ECHO_C" >&6
! 16555: else
! 16556: cat >conftest.$ac_ext <<_ACEOF
! 16557: /* confdefs.h. */
! 16558: _ACEOF
! 16559: cat confdefs.h >>conftest.$ac_ext
! 16560: cat >>conftest.$ac_ext <<_ACEOF
! 16561: /* end confdefs.h. */
! 16562: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 16563: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 16564: #define $ac_func innocuous_$ac_func
! 16565:
! 16566: /* System header to define __stub macros and hopefully few prototypes,
! 16567: which can conflict with char $ac_func (); below.
! 16568: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 16569: <limits.h> exists even on freestanding compilers. */
! 16570:
! 16571: #ifdef __STDC__
! 16572: # include <limits.h>
! 16573: #else
! 16574: # include <assert.h>
! 16575: #endif
! 16576:
! 16577: #undef $ac_func
! 16578:
! 16579: /* Override any GCC internal prototype to avoid an error.
! 16580: Use char because int might match the return type of a GCC
! 16581: builtin and then its argument prototype would still apply. */
! 16582: #ifdef __cplusplus
! 16583: extern "C"
! 16584: #endif
! 16585: char $ac_func ();
! 16586: /* The GNU C library defines this for functions which it implements
! 16587: to always fail with ENOSYS. Some functions are actually named
! 16588: something starting with __ and the normal name is an alias. */
! 16589: #if defined __stub_$ac_func || defined __stub___$ac_func
! 16590: choke me
! 16591: #endif
! 16592:
! 16593: int
! 16594: main ()
! 16595: {
! 16596: return $ac_func ();
! 16597: ;
! 16598: return 0;
! 16599: }
! 16600: _ACEOF
! 16601: rm -f conftest.$ac_objext conftest$ac_exeext
! 16602: if { (ac_try="$ac_link"
! 16603: case "(($ac_try" in
! 16604: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 16605: *) ac_try_echo=$ac_try;;
! 16606: esac
! 16607: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 16608: (eval "$ac_link") 2>conftest.er1
! 16609: ac_status=$?
! 16610: grep -v '^ *+' conftest.er1 >conftest.err
! 16611: rm -f conftest.er1
! 16612: cat conftest.err >&5
! 16613: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 16614: (exit $ac_status); } && {
! 16615: test -z "$ac_c_werror_flag" ||
! 16616: test ! -s conftest.err
! 16617: } && test -s conftest$ac_exeext &&
! 16618: $as_test_x conftest$ac_exeext; then
! 16619: eval "$as_ac_var=yes"
! 16620: else
! 16621: echo "$as_me: failed program was:" >&5
! 16622: sed 's/^/| /' conftest.$ac_ext >&5
! 16623:
! 16624: eval "$as_ac_var=no"
! 16625: fi
! 16626:
! 16627: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 16628: conftest$ac_exeext conftest.$ac_ext
! 16629: fi
! 16630: ac_res=`eval echo '${'$as_ac_var'}'`
! 16631: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 16632: echo "${ECHO_T}$ac_res" >&6; }
! 16633: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 16634: cat >>confdefs.h <<_ACEOF
! 16635: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 16636: _ACEOF
! 16637: { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
! 16638: echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
! 16639: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16640: /* confdefs.h. */
16641: _ACEOF
16642: cat confdefs.h >>conftest.$ac_ext
16643: cat >>conftest.$ac_ext <<_ACEOF
16644: /* end confdefs.h. */
1.27 millert 16645: #include <glob.h>
1.9 millert 16646: int
16647: main ()
16648: {
1.27 millert 16649: int i = GLOB_BRACE | GLOB_TILDE; (void)i;
1.23 millert 16650: ;
16651: return 0;
1.9 millert 16652: }
16653: _ACEOF
1.27 millert 16654: rm -f conftest.$ac_objext
16655: if { (ac_try="$ac_compile"
16656: case "(($ac_try" in
16657: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658: *) ac_try_echo=$ac_try;;
16659: esac
16660: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661: (eval "$ac_compile") 2>conftest.er1
1.9 millert 16662: ac_status=$?
1.25 millert 16663: grep -v '^ *+' conftest.er1 >conftest.err
16664: rm -f conftest.er1
16665: cat conftest.err >&5
1.16 millert 16666: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16667: (exit $ac_status); } && {
16668: test -z "$ac_c_werror_flag" ||
16669: test ! -s conftest.err
16670: } && test -s conftest.$ac_objext; then
16671: cat >>confdefs.h <<\_ACEOF
16672: #define HAVE_EXTENDED_GLOB 1
16673: _ACEOF
1.16 millert 16674:
1.27 millert 16675: { echo "$as_me:$LINENO: result: yes" >&5
16676: echo "${ECHO_T}yes" >&6; }
1.23 millert 16677: else
16678: echo "$as_me: failed program was:" >&5
16679: sed 's/^/| /' conftest.$ac_ext >&5
16680:
1.27 millert 16681: case " $LIBOBJS " in
16682: *" glob.$ac_objext "* ) ;;
16683: *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16684: ;;
1.25 millert 16685: esac
16686:
1.27 millert 16687: { echo "$as_me:$LINENO: result: no" >&5
16688: echo "${ECHO_T}no" >&6; }
1.25 millert 16689: fi
16690:
1.27 millert 16691: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 16692: else
1.27 millert 16693: case " $LIBOBJS " in
16694: *" glob.$ac_objext "* ) ;;
16695: *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16696: ;;
1.23 millert 16697: esac
16698:
16699: fi
1.27 millert 16700: done
1.9 millert 16701:
1.23 millert 16702:
16703:
1.27 millert 16704: for ac_func in lockf flock
1.25 millert 16705: do
16706: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16707: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16708: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16709: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16710: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16711: else
1.25 millert 16712: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16713: /* confdefs.h. */
16714: _ACEOF
16715: cat confdefs.h >>conftest.$ac_ext
16716: cat >>conftest.$ac_ext <<_ACEOF
16717: /* end confdefs.h. */
1.25 millert 16718: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16719: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16720: #define $ac_func innocuous_$ac_func
16721:
16722: /* System header to define __stub macros and hopefully few prototypes,
16723: which can conflict with char $ac_func (); below.
16724: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16725: <limits.h> exists even on freestanding compilers. */
16726:
16727: #ifdef __STDC__
16728: # include <limits.h>
16729: #else
16730: # include <assert.h>
16731: #endif
16732:
16733: #undef $ac_func
16734:
1.27 millert 16735: /* Override any GCC internal prototype to avoid an error.
16736: Use char because int might match the return type of a GCC
16737: builtin and then its argument prototype would still apply. */
1.25 millert 16738: #ifdef __cplusplus
16739: extern "C"
16740: #endif
16741: char $ac_func ();
16742: /* The GNU C library defines this for functions which it implements
16743: to always fail with ENOSYS. Some functions are actually named
16744: something starting with __ and the normal name is an alias. */
1.27 millert 16745: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16746: choke me
16747: #endif
16748:
16749: int
16750: main ()
16751: {
1.27 millert 16752: return $ac_func ();
1.25 millert 16753: ;
16754: return 0;
16755: }
1.16 millert 16756: _ACEOF
1.25 millert 16757: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16758: if { (ac_try="$ac_link"
16759: case "(($ac_try" in
16760: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16761: *) ac_try_echo=$ac_try;;
16762: esac
16763: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16764: (eval "$ac_link") 2>conftest.er1
1.16 millert 16765: ac_status=$?
1.25 millert 16766: grep -v '^ *+' conftest.er1 >conftest.err
16767: rm -f conftest.er1
16768: cat conftest.err >&5
1.16 millert 16769: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16770: (exit $ac_status); } && {
16771: test -z "$ac_c_werror_flag" ||
16772: test ! -s conftest.err
16773: } && test -s conftest$ac_exeext &&
16774: $as_test_x conftest$ac_exeext; then
1.25 millert 16775: eval "$as_ac_var=yes"
1.16 millert 16776: else
16777: echo "$as_me: failed program was:" >&5
16778: sed 's/^/| /' conftest.$ac_ext >&5
16779:
1.27 millert 16780: eval "$as_ac_var=no"
1.25 millert 16781: fi
1.27 millert 16782:
16783: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16784: conftest$ac_exeext conftest.$ac_ext
1.16 millert 16785: fi
1.27 millert 16786: ac_res=`eval echo '${'$as_ac_var'}'`
16787: { echo "$as_me:$LINENO: result: $ac_res" >&5
16788: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16789: if test `eval echo '${'$as_ac_var'}'` = yes; then
16790: cat >>confdefs.h <<_ACEOF
16791: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792: _ACEOF
1.27 millert 16793: break
16794: fi
16795: done
16796:
1.25 millert 16797:
1.23 millert 16798:
1.27 millert 16799: for ac_func in waitpid wait3
1.25 millert 16800: do
16801: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16802: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16803: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16804: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 16805: echo $ECHO_N "(cached) $ECHO_C" >&6
16806: else
16807: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16808: /* confdefs.h. */
16809: _ACEOF
16810: cat confdefs.h >>conftest.$ac_ext
16811: cat >>conftest.$ac_ext <<_ACEOF
16812: /* end confdefs.h. */
1.25 millert 16813: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16814: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16815: #define $ac_func innocuous_$ac_func
16816:
16817: /* System header to define __stub macros and hopefully few prototypes,
16818: which can conflict with char $ac_func (); below.
16819: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16820: <limits.h> exists even on freestanding compilers. */
16821:
16822: #ifdef __STDC__
16823: # include <limits.h>
16824: #else
16825: # include <assert.h>
16826: #endif
16827:
16828: #undef $ac_func
16829:
1.27 millert 16830: /* Override any GCC internal prototype to avoid an error.
16831: Use char because int might match the return type of a GCC
16832: builtin and then its argument prototype would still apply. */
1.25 millert 16833: #ifdef __cplusplus
16834: extern "C"
16835: #endif
16836: char $ac_func ();
16837: /* The GNU C library defines this for functions which it implements
16838: to always fail with ENOSYS. Some functions are actually named
16839: something starting with __ and the normal name is an alias. */
1.27 millert 16840: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16841: choke me
16842: #endif
16843:
16844: int
16845: main ()
16846: {
1.27 millert 16847: return $ac_func ();
1.25 millert 16848: ;
16849: return 0;
16850: }
1.9 millert 16851: _ACEOF
1.25 millert 16852: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16853: if { (ac_try="$ac_link"
16854: case "(($ac_try" in
16855: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16856: *) ac_try_echo=$ac_try;;
16857: esac
16858: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16859: (eval "$ac_link") 2>conftest.er1
1.9 millert 16860: ac_status=$?
1.23 millert 16861: grep -v '^ *+' conftest.er1 >conftest.err
16862: rm -f conftest.er1
16863: cat conftest.err >&5
1.16 millert 16864: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16865: (exit $ac_status); } && {
16866: test -z "$ac_c_werror_flag" ||
16867: test ! -s conftest.err
16868: } && test -s conftest$ac_exeext &&
16869: $as_test_x conftest$ac_exeext; then
1.25 millert 16870: eval "$as_ac_var=yes"
1.23 millert 16871: else
16872: echo "$as_me: failed program was:" >&5
16873: sed 's/^/| /' conftest.$ac_ext >&5
16874:
1.27 millert 16875: eval "$as_ac_var=no"
1.23 millert 16876: fi
1.27 millert 16877:
16878: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16879: conftest$ac_exeext conftest.$ac_ext
1.9 millert 16880: fi
1.27 millert 16881: ac_res=`eval echo '${'$as_ac_var'}'`
16882: { echo "$as_me:$LINENO: result: $ac_res" >&5
16883: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16884: if test `eval echo '${'$as_ac_var'}'` = yes; then
1.23 millert 16885: cat >>confdefs.h <<_ACEOF
1.25 millert 16886: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 16887: _ACEOF
1.25 millert 16888: break
16889: fi
16890: done
1.23 millert 16891:
1.16 millert 16892:
1.27 millert 16893:
16894: for ac_func in innetgr _innetgr
1.25 millert 16895: do
16896: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 16897: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16898: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16899: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 16900: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 16901: else
1.23 millert 16902: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16903: /* confdefs.h. */
16904: _ACEOF
16905: cat confdefs.h >>conftest.$ac_ext
16906: cat >>conftest.$ac_ext <<_ACEOF
16907: /* end confdefs.h. */
1.25 millert 16908: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16909: For example, HP-UX 11i <limits.h> declares gettimeofday. */
16910: #define $ac_func innocuous_$ac_func
16911:
16912: /* System header to define __stub macros and hopefully few prototypes,
16913: which can conflict with char $ac_func (); below.
16914: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16915: <limits.h> exists even on freestanding compilers. */
16916:
16917: #ifdef __STDC__
16918: # include <limits.h>
16919: #else
16920: # include <assert.h>
16921: #endif
16922:
16923: #undef $ac_func
16924:
1.27 millert 16925: /* Override any GCC internal prototype to avoid an error.
16926: Use char because int might match the return type of a GCC
16927: builtin and then its argument prototype would still apply. */
1.25 millert 16928: #ifdef __cplusplus
16929: extern "C"
16930: #endif
16931: char $ac_func ();
16932: /* The GNU C library defines this for functions which it implements
16933: to always fail with ENOSYS. Some functions are actually named
16934: something starting with __ and the normal name is an alias. */
1.27 millert 16935: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 16936: choke me
16937: #endif
1.16 millert 16938:
16939: int
16940: main ()
16941: {
1.27 millert 16942: return $ac_func ();
1.16 millert 16943: ;
16944: return 0;
16945: }
16946: _ACEOF
16947: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 16948: if { (ac_try="$ac_link"
16949: case "(($ac_try" in
16950: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16951: *) ac_try_echo=$ac_try;;
16952: esac
16953: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16954: (eval "$ac_link") 2>conftest.er1
1.16 millert 16955: ac_status=$?
1.25 millert 16956: grep -v '^ *+' conftest.er1 >conftest.err
16957: rm -f conftest.er1
16958: cat conftest.err >&5
1.16 millert 16959: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 16960: (exit $ac_status); } && {
16961: test -z "$ac_c_werror_flag" ||
16962: test ! -s conftest.err
16963: } && test -s conftest$ac_exeext &&
16964: $as_test_x conftest$ac_exeext; then
1.25 millert 16965: eval "$as_ac_var=yes"
1.16 millert 16966: else
16967: echo "$as_me: failed program was:" >&5
16968: sed 's/^/| /' conftest.$ac_ext >&5
16969:
1.27 millert 16970: eval "$as_ac_var=no"
1.16 millert 16971: fi
1.27 millert 16972:
16973: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 16974: conftest$ac_exeext conftest.$ac_ext
1.23 millert 16975: fi
1.27 millert 16976: ac_res=`eval echo '${'$as_ac_var'}'`
16977: { echo "$as_me:$LINENO: result: $ac_res" >&5
16978: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 16979: if test `eval echo '${'$as_ac_var'}'` = yes; then
16980: cat >>confdefs.h <<_ACEOF
16981: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982: _ACEOF
1.9 millert 16983:
1.27 millert 16984: for ac_func in getdomainname
16985: do
16986: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16987: { echo "$as_me:$LINENO: checking for $ac_func" >&5
16988: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16989: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.16 millert 16990: echo $ECHO_N "(cached) $ECHO_C" >&6
16991: else
1.25 millert 16992: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 16993: /* confdefs.h. */
16994: _ACEOF
16995: cat confdefs.h >>conftest.$ac_ext
16996: cat >>conftest.$ac_ext <<_ACEOF
16997: /* end confdefs.h. */
1.27 millert 16998: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16999: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17000: #define $ac_func innocuous_$ac_func
1.16 millert 17001:
1.27 millert 17002: /* System header to define __stub macros and hopefully few prototypes,
17003: which can conflict with char $ac_func (); below.
17004: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17005: <limits.h> exists even on freestanding compilers. */
1.25 millert 17006:
1.27 millert 17007: #ifdef __STDC__
17008: # include <limits.h>
17009: #else
17010: # include <assert.h>
17011: #endif
1.25 millert 17012:
1.27 millert 17013: #undef $ac_func
1.25 millert 17014:
1.27 millert 17015: /* Override any GCC internal prototype to avoid an error.
17016: Use char because int might match the return type of a GCC
17017: builtin and then its argument prototype would still apply. */
17018: #ifdef __cplusplus
17019: extern "C"
17020: #endif
17021: char $ac_func ();
17022: /* The GNU C library defines this for functions which it implements
17023: to always fail with ENOSYS. Some functions are actually named
17024: something starting with __ and the normal name is an alias. */
17025: #if defined __stub_$ac_func || defined __stub___$ac_func
17026: choke me
17027: #endif
1.23 millert 17028:
1.25 millert 17029: int
17030: main ()
17031: {
1.27 millert 17032: return $ac_func ();
1.25 millert 17033: ;
17034: return 0;
17035: }
1.23 millert 17036: _ACEOF
1.25 millert 17037: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17038: if { (ac_try="$ac_link"
17039: case "(($ac_try" in
17040: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17041: *) ac_try_echo=$ac_try;;
17042: esac
17043: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17044: (eval "$ac_link") 2>conftest.er1
1.23 millert 17045: ac_status=$?
17046: grep -v '^ *+' conftest.er1 >conftest.err
17047: rm -f conftest.er1
17048: cat conftest.err >&5
17049: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17050: (exit $ac_status); } && {
17051: test -z "$ac_c_werror_flag" ||
17052: test ! -s conftest.err
17053: } && test -s conftest$ac_exeext &&
17054: $as_test_x conftest$ac_exeext; then
17055: eval "$as_ac_var=yes"
1.23 millert 17056: else
17057: echo "$as_me: failed program was:" >&5
17058: sed 's/^/| /' conftest.$ac_ext >&5
17059:
1.27 millert 17060: eval "$as_ac_var=no"
1.25 millert 17061: fi
1.27 millert 17062:
17063: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17064: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17065: fi
1.27 millert 17066: ac_res=`eval echo '${'$as_ac_var'}'`
17067: { echo "$as_me:$LINENO: result: $ac_res" >&5
17068: echo "${ECHO_T}$ac_res" >&6; }
17069: if test `eval echo '${'$as_ac_var'}'` = yes; then
17070: cat >>confdefs.h <<_ACEOF
17071: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.16 millert 17072: _ACEOF
1.1 millert 17073:
1.27 millert 17074: fi
17075: done
17076: break
17077: fi
17078: done
1.25 millert 17079:
17080:
1.37 millert 17081: for ac_func in utimes
1.1 millert 17082: do
1.25 millert 17083: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 17084: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17085: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17086: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 17087: echo $ECHO_N "(cached) $ECHO_C" >&6
1.16 millert 17088: else
1.25 millert 17089: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17090: /* confdefs.h. */
17091: _ACEOF
17092: cat confdefs.h >>conftest.$ac_ext
17093: cat >>conftest.$ac_ext <<_ACEOF
17094: /* end confdefs.h. */
1.25 millert 17095: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17096: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17097: #define $ac_func innocuous_$ac_func
17098:
17099: /* System header to define __stub macros and hopefully few prototypes,
17100: which can conflict with char $ac_func (); below.
17101: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17102: <limits.h> exists even on freestanding compilers. */
17103:
17104: #ifdef __STDC__
17105: # include <limits.h>
17106: #else
17107: # include <assert.h>
17108: #endif
17109:
17110: #undef $ac_func
17111:
1.27 millert 17112: /* Override any GCC internal prototype to avoid an error.
17113: Use char because int might match the return type of a GCC
17114: builtin and then its argument prototype would still apply. */
1.25 millert 17115: #ifdef __cplusplus
17116: extern "C"
17117: #endif
17118: char $ac_func ();
17119: /* The GNU C library defines this for functions which it implements
17120: to always fail with ENOSYS. Some functions are actually named
17121: something starting with __ and the normal name is an alias. */
1.27 millert 17122: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 17123: choke me
17124: #endif
17125:
17126: int
17127: main ()
17128: {
1.27 millert 17129: return $ac_func ();
1.25 millert 17130: ;
17131: return 0;
17132: }
1.16 millert 17133: _ACEOF
1.25 millert 17134: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17135: if { (ac_try="$ac_link"
17136: case "(($ac_try" in
17137: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138: *) ac_try_echo=$ac_try;;
17139: esac
17140: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141: (eval "$ac_link") 2>conftest.er1
1.16 millert 17142: ac_status=$?
1.25 millert 17143: grep -v '^ *+' conftest.er1 >conftest.err
17144: rm -f conftest.er1
17145: cat conftest.err >&5
1.16 millert 17146: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17147: (exit $ac_status); } && {
17148: test -z "$ac_c_werror_flag" ||
17149: test ! -s conftest.err
17150: } && test -s conftest$ac_exeext &&
17151: $as_test_x conftest$ac_exeext; then
1.25 millert 17152: eval "$as_ac_var=yes"
1.9 millert 17153: else
1.16 millert 17154: echo "$as_me: failed program was:" >&5
17155: sed 's/^/| /' conftest.$ac_ext >&5
17156:
1.27 millert 17157: eval "$as_ac_var=no"
1.25 millert 17158: fi
1.27 millert 17159:
17160: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17161: conftest$ac_exeext conftest.$ac_ext
17162: fi
1.27 millert 17163: ac_res=`eval echo '${'$as_ac_var'}'`
17164: { echo "$as_me:$LINENO: result: $ac_res" >&5
17165: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 17166: if test `eval echo '${'$as_ac_var'}'` = yes; then
17167: cat >>confdefs.h <<_ACEOF
17168: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17169: _ACEOF
17170:
1.37 millert 17171:
17172: for ac_func in futimes futimesat
17173: do
17174: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17175: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17176: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17177: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 17178: echo $ECHO_N "(cached) $ECHO_C" >&6
17179: else
1.37 millert 17180: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17181: /* confdefs.h. */
17182: _ACEOF
17183: cat confdefs.h >>conftest.$ac_ext
17184: cat >>conftest.$ac_ext <<_ACEOF
17185: /* end confdefs.h. */
1.37 millert 17186: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17187: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17188: #define $ac_func innocuous_$ac_func
17189:
17190: /* System header to define __stub macros and hopefully few prototypes,
17191: which can conflict with char $ac_func (); below.
17192: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17193: <limits.h> exists even on freestanding compilers. */
17194:
17195: #ifdef __STDC__
17196: # include <limits.h>
17197: #else
17198: # include <assert.h>
17199: #endif
17200:
17201: #undef $ac_func
1.25 millert 17202:
1.27 millert 17203: /* Override any GCC internal prototype to avoid an error.
17204: Use char because int might match the return type of a GCC
17205: builtin and then its argument prototype would still apply. */
1.25 millert 17206: #ifdef __cplusplus
17207: extern "C"
17208: #endif
1.37 millert 17209: char $ac_func ();
17210: /* The GNU C library defines this for functions which it implements
17211: to always fail with ENOSYS. Some functions are actually named
17212: something starting with __ and the normal name is an alias. */
17213: #if defined __stub_$ac_func || defined __stub___$ac_func
17214: choke me
17215: #endif
17216:
1.25 millert 17217: int
17218: main ()
17219: {
1.37 millert 17220: return $ac_func ();
1.25 millert 17221: ;
17222: return 0;
17223: }
1.9 millert 17224: _ACEOF
1.25 millert 17225: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17226: if { (ac_try="$ac_link"
17227: case "(($ac_try" in
17228: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229: *) ac_try_echo=$ac_try;;
17230: esac
17231: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17232: (eval "$ac_link") 2>conftest.er1
1.9 millert 17233: ac_status=$?
1.16 millert 17234: grep -v '^ *+' conftest.er1 >conftest.err
1.9 millert 17235: rm -f conftest.er1
17236: cat conftest.err >&5
1.16 millert 17237: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17238: (exit $ac_status); } && {
17239: test -z "$ac_c_werror_flag" ||
17240: test ! -s conftest.err
17241: } && test -s conftest$ac_exeext &&
17242: $as_test_x conftest$ac_exeext; then
1.37 millert 17243: eval "$as_ac_var=yes"
1.1 millert 17244: else
1.9 millert 17245: echo "$as_me: failed program was:" >&5
1.16 millert 17246: sed 's/^/| /' conftest.$ac_ext >&5
17247:
1.37 millert 17248: eval "$as_ac_var=no"
1.1 millert 17249: fi
1.27 millert 17250:
17251: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17252: conftest$ac_exeext conftest.$ac_ext
1.16 millert 17253: fi
1.37 millert 17254: ac_res=`eval echo '${'$as_ac_var'}'`
17255: { echo "$as_me:$LINENO: result: $ac_res" >&5
17256: echo "${ECHO_T}$ac_res" >&6; }
17257: if test `eval echo '${'$as_ac_var'}'` = yes; then
17258: cat >>confdefs.h <<_ACEOF
17259: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260: _ACEOF
17261: break
17262: fi
17263: done
17264:
17265: else
17266:
17267: for ac_func in futime
17268: do
17269: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18 millert 17273: echo $ECHO_N "(cached) $ECHO_C" >&6
17274: else
1.25 millert 17275: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 17276: /* confdefs.h. */
17277: _ACEOF
17278: cat confdefs.h >>conftest.$ac_ext
17279: cat >>conftest.$ac_ext <<_ACEOF
17280: /* end confdefs.h. */
1.37 millert 17281: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283: #define $ac_func innocuous_$ac_func
17284:
17285: /* System header to define __stub macros and hopefully few prototypes,
17286: which can conflict with char $ac_func (); below.
17287: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288: <limits.h> exists even on freestanding compilers. */
17289:
17290: #ifdef __STDC__
17291: # include <limits.h>
17292: #else
17293: # include <assert.h>
17294: #endif
17295:
17296: #undef $ac_func
17297:
17298: /* Override any GCC internal prototype to avoid an error.
17299: Use char because int might match the return type of a GCC
17300: builtin and then its argument prototype would still apply. */
17301: #ifdef __cplusplus
17302: extern "C"
17303: #endif
17304: char $ac_func ();
17305: /* The GNU C library defines this for functions which it implements
17306: to always fail with ENOSYS. Some functions are actually named
17307: something starting with __ and the normal name is an alias. */
17308: #if defined __stub_$ac_func || defined __stub___$ac_func
17309: choke me
17310: #endif
17311:
17312: int
17313: main ()
17314: {
17315: return $ac_func ();
17316: ;
17317: return 0;
17318: }
1.18 millert 17319: _ACEOF
1.37 millert 17320: rm -f conftest.$ac_objext conftest$ac_exeext
17321: if { (ac_try="$ac_link"
1.27 millert 17322: case "(($ac_try" in
17323: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324: *) ac_try_echo=$ac_try;;
17325: esac
17326: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 17327: (eval "$ac_link") 2>conftest.er1
1.18 millert 17328: ac_status=$?
1.25 millert 17329: grep -v '^ *+' conftest.er1 >conftest.err
17330: rm -f conftest.er1
17331: cat conftest.err >&5
1.18 millert 17332: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 17333: (exit $ac_status); } && {
17334: test -z "$ac_c_werror_flag" ||
1.27 millert 17335: test ! -s conftest.err
1.37 millert 17336: } && test -s conftest$ac_exeext &&
17337: $as_test_x conftest$ac_exeext; then
17338: eval "$as_ac_var=yes"
1.23 millert 17339: else
1.25 millert 17340: echo "$as_me: failed program was:" >&5
17341: sed 's/^/| /' conftest.$ac_ext >&5
17342:
1.37 millert 17343: eval "$as_ac_var=no"
1.23 millert 17344: fi
1.27 millert 17345:
1.37 millert 17346: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17348: fi
1.37 millert 17349: ac_res=`eval echo '${'$as_ac_var'}'`
17350: { echo "$as_me:$LINENO: result: $ac_res" >&5
17351: echo "${ECHO_T}$ac_res" >&6; }
17352: if test `eval echo '${'$as_ac_var'}'` = yes; then
17353: cat >>confdefs.h <<_ACEOF
17354: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 17355: _ACEOF
1.37 millert 17356:
17357: fi
17358: done
17359: case " $LIBOBJS " in
17360: *" utimes.$ac_objext "* ) ;;
17361: *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17362: ;;
17363: esac
17364:
17365: fi
17366: done
17367:
17368: { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17369: echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17370: if test "${sudo_cv_func_fnmatch+set}" = set; then
17371: echo $ECHO_N "(cached) $ECHO_C" >&6
17372: else
17373: rm -f conftestdata; > conftestdata
17374: if test "$cross_compiling" = yes; then
17375: sudo_cv_func_fnmatch=no
1.27 millert 17376: else
1.37 millert 17377: cat >conftest.$ac_ext <<_ACEOF
17378: /* confdefs.h. */
17379: _ACEOF
17380: cat confdefs.h >>conftest.$ac_ext
17381: cat >>conftest.$ac_ext <<_ACEOF
17382: /* end confdefs.h. */
17383: #include <fnmatch.h>
17384: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17385: _ACEOF
17386: rm -f conftest$ac_exeext
17387: if { (ac_try="$ac_link"
17388: case "(($ac_try" in
17389: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17390: *) ac_try_echo=$ac_try;;
17391: esac
17392: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17393: (eval "$ac_link") 2>&5
17394: ac_status=$?
17395: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396: (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17397: { (case "(($ac_try" in
17398: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399: *) ac_try_echo=$ac_try;;
1.27 millert 17400: esac
1.37 millert 17401: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402: (eval "$ac_try") 2>&5
17403: ac_status=$?
17404: echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405: (exit $ac_status); }; }; then
17406: sudo_cv_func_fnmatch=yes
17407: else
17408: echo "$as_me: program exited with status $ac_status" >&5
17409: echo "$as_me: failed program was:" >&5
17410: sed 's/^/| /' conftest.$ac_ext >&5
17411:
17412: ( exit $ac_status )
17413: sudo_cv_func_fnmatch=no
17414: fi
17415: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17416: fi
17417:
1.25 millert 17418:
1.37 millert 17419: rm -f core core.* *.core
1.23 millert 17420: fi
17421:
1.37 millert 17422: { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17423: echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17424: if test $sudo_cv_func_fnmatch = yes; then
17425: cat >>confdefs.h <<\_ACEOF
17426: #define HAVE_FNMATCH 1
17427: _ACEOF
1.23 millert 17428:
1.27 millert 17429: else
17430: case " $LIBOBJS " in
1.37 millert 17431: *" fnmatch.$ac_objext "* ) ;;
17432: *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
1.27 millert 17433: ;;
17434: esac
17435:
17436: fi
17437:
1.37 millert 17438: { echo "$as_me:$LINENO: checking for isblank" >&5
17439: echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17440: if test "${sudo_cv_func_isblank+set}" = set; then
1.23 millert 17441: echo $ECHO_N "(cached) $ECHO_C" >&6
17442: else
17443: cat >conftest.$ac_ext <<_ACEOF
17444: /* confdefs.h. */
17445: _ACEOF
17446: cat confdefs.h >>conftest.$ac_ext
17447: cat >>conftest.$ac_ext <<_ACEOF
17448: /* end confdefs.h. */
1.37 millert 17449: #include <ctype.h>
1.23 millert 17450: int
17451: main ()
17452: {
1.37 millert 17453: return (isblank('a'));
1.23 millert 17454: ;
17455: return 0;
17456: }
17457: _ACEOF
1.25 millert 17458: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17459: if { (ac_try="$ac_link"
17460: case "(($ac_try" in
17461: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17462: *) ac_try_echo=$ac_try;;
17463: esac
17464: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17465: (eval "$ac_link") 2>conftest.er1
1.23 millert 17466: ac_status=$?
1.25 millert 17467: grep -v '^ *+' conftest.er1 >conftest.err
17468: rm -f conftest.er1
17469: cat conftest.err >&5
1.23 millert 17470: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17471: (exit $ac_status); } && {
17472: test -z "$ac_c_werror_flag" ||
17473: test ! -s conftest.err
17474: } && test -s conftest$ac_exeext &&
17475: $as_test_x conftest$ac_exeext; then
1.37 millert 17476: sudo_cv_func_isblank=yes
1.23 millert 17477: else
17478: echo "$as_me: failed program was:" >&5
17479: sed 's/^/| /' conftest.$ac_ext >&5
17480:
1.37 millert 17481: sudo_cv_func_isblank=no
1.23 millert 17482: fi
1.27 millert 17483:
17484: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17485: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17486: fi
1.37 millert 17487: { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17488: echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17489:
17490: if test "$sudo_cv_func_isblank" = "yes"; then
17491:
17492: cat >>confdefs.h <<\_ACEOF
17493: #define HAVE_ISBLANK 1
1.25 millert 17494: _ACEOF
17495:
1.37 millert 17496: else
17497: case " $LIBOBJS " in
17498: *" isblank.$ac_objext "* ) ;;
17499: *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17500: ;;
17501: esac
17502:
17503: fi
17504:
17505:
17506:
1.23 millert 17507:
1.37 millert 17508:
17509:
17510:
17511: for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
1.25 millert 17512: do
17513: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 17514: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17515: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17516: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18 millert 17517: echo $ECHO_N "(cached) $ECHO_C" >&6
17518: else
1.23 millert 17519: cat >conftest.$ac_ext <<_ACEOF
17520: /* confdefs.h. */
17521: _ACEOF
17522: cat confdefs.h >>conftest.$ac_ext
17523: cat >>conftest.$ac_ext <<_ACEOF
17524: /* end confdefs.h. */
1.25 millert 17525: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17526: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17527: #define $ac_func innocuous_$ac_func
17528:
17529: /* System header to define __stub macros and hopefully few prototypes,
17530: which can conflict with char $ac_func (); below.
17531: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532: <limits.h> exists even on freestanding compilers. */
17533:
17534: #ifdef __STDC__
17535: # include <limits.h>
17536: #else
17537: # include <assert.h>
17538: #endif
17539:
17540: #undef $ac_func
17541:
1.27 millert 17542: /* Override any GCC internal prototype to avoid an error.
17543: Use char because int might match the return type of a GCC
17544: builtin and then its argument prototype would still apply. */
1.25 millert 17545: #ifdef __cplusplus
17546: extern "C"
17547: #endif
17548: char $ac_func ();
17549: /* The GNU C library defines this for functions which it implements
17550: to always fail with ENOSYS. Some functions are actually named
17551: something starting with __ and the normal name is an alias. */
1.27 millert 17552: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 17553: choke me
17554: #endif
1.23 millert 17555:
1.25 millert 17556: int
17557: main ()
17558: {
1.27 millert 17559: return $ac_func ();
1.25 millert 17560: ;
17561: return 0;
17562: }
1.23 millert 17563: _ACEOF
1.25 millert 17564: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17565: if { (ac_try="$ac_link"
17566: case "(($ac_try" in
17567: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568: *) ac_try_echo=$ac_try;;
17569: esac
17570: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571: (eval "$ac_link") 2>conftest.er1
1.25 millert 17572: ac_status=$?
17573: grep -v '^ *+' conftest.er1 >conftest.err
17574: rm -f conftest.er1
17575: cat conftest.err >&5
17576: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17577: (exit $ac_status); } && {
17578: test -z "$ac_c_werror_flag" ||
17579: test ! -s conftest.err
17580: } && test -s conftest$ac_exeext &&
17581: $as_test_x conftest$ac_exeext; then
1.25 millert 17582: eval "$as_ac_var=yes"
1.23 millert 17583: else
1.25 millert 17584: echo "$as_me: failed program was:" >&5
17585: sed 's/^/| /' conftest.$ac_ext >&5
17586:
1.27 millert 17587: eval "$as_ac_var=no"
1.25 millert 17588: fi
1.27 millert 17589:
17590: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17591: conftest$ac_exeext conftest.$ac_ext
17592: fi
1.27 millert 17593: ac_res=`eval echo '${'$as_ac_var'}'`
17594: { echo "$as_me:$LINENO: result: $ac_res" >&5
17595: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 17596: if test `eval echo '${'$as_ac_var'}'` = yes; then
17597: cat >>confdefs.h <<_ACEOF
17598: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17599: _ACEOF
1.37 millert 17600:
17601: else
17602: case " $LIBOBJS " in
17603: *" $ac_func.$ac_objext "* ) ;;
17604: *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17605: ;;
17606: esac
17607:
1.23 millert 17608: fi
1.25 millert 17609: done
17610:
1.23 millert 17611:
1.37 millert 17612:
17613: for ac_func in closefrom
1.25 millert 17614: do
17615: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 17616: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17617: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17618: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.23 millert 17619: echo $ECHO_N "(cached) $ECHO_C" >&6
17620: else
17621: cat >conftest.$ac_ext <<_ACEOF
17622: /* confdefs.h. */
1.18 millert 17623: _ACEOF
1.23 millert 17624: cat confdefs.h >>conftest.$ac_ext
17625: cat >>conftest.$ac_ext <<_ACEOF
17626: /* end confdefs.h. */
1.25 millert 17627: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17628: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17629: #define $ac_func innocuous_$ac_func
17630:
17631: /* System header to define __stub macros and hopefully few prototypes,
17632: which can conflict with char $ac_func (); below.
17633: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17634: <limits.h> exists even on freestanding compilers. */
17635:
17636: #ifdef __STDC__
17637: # include <limits.h>
17638: #else
17639: # include <assert.h>
17640: #endif
17641:
17642: #undef $ac_func
17643:
1.27 millert 17644: /* Override any GCC internal prototype to avoid an error.
17645: Use char because int might match the return type of a GCC
17646: builtin and then its argument prototype would still apply. */
1.25 millert 17647: #ifdef __cplusplus
17648: extern "C"
17649: #endif
17650: char $ac_func ();
17651: /* The GNU C library defines this for functions which it implements
17652: to always fail with ENOSYS. Some functions are actually named
17653: something starting with __ and the normal name is an alias. */
1.27 millert 17654: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 17655: choke me
17656: #endif
1.18 millert 17657:
1.23 millert 17658: int
17659: main ()
17660: {
1.27 millert 17661: return $ac_func ();
1.25 millert 17662: ;
17663: return 0;
17664: }
1.9 millert 17665: _ACEOF
1.27 millert 17666: rm -f conftest.$ac_objext conftest$ac_exeext
17667: if { (ac_try="$ac_link"
17668: case "(($ac_try" in
17669: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670: *) ac_try_echo=$ac_try;;
17671: esac
17672: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673: (eval "$ac_link") 2>conftest.er1
1.25 millert 17674: ac_status=$?
17675: grep -v '^ *+' conftest.er1 >conftest.err
17676: rm -f conftest.er1
17677: cat conftest.err >&5
17678: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17679: (exit $ac_status); } && {
17680: test -z "$ac_c_werror_flag" ||
17681: test ! -s conftest.err
17682: } && test -s conftest$ac_exeext &&
17683: $as_test_x conftest$ac_exeext; then
17684: eval "$as_ac_var=yes"
1.1 millert 17685: else
1.25 millert 17686: echo "$as_me: failed program was:" >&5
17687: sed 's/^/| /' conftest.$ac_ext >&5
17688:
1.27 millert 17689: eval "$as_ac_var=no"
1.23 millert 17690: fi
1.27 millert 17691:
17692: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17693: conftest$ac_exeext conftest.$ac_ext
1.9 millert 17694: fi
1.27 millert 17695: ac_res=`eval echo '${'$as_ac_var'}'`
17696: { echo "$as_me:$LINENO: result: $ac_res" >&5
17697: echo "${ECHO_T}$ac_res" >&6; }
17698: if test `eval echo '${'$as_ac_var'}'` = yes; then
17699: cat >>confdefs.h <<_ACEOF
17700: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.23 millert 17701: _ACEOF
1.16 millert 17702:
1.37 millert 17703: else
17704: case " $LIBOBJS " in
17705: *" closefrom.$ac_objext "* ) ;;
17706: *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
1.27 millert 17707: ;;
17708: esac
1.9 millert 17709:
1.37 millert 17710: { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17711: echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17712: if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
1.27 millert 17713: echo $ECHO_N "(cached) $ECHO_C" >&6
17714: else
17715: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17716: /* confdefs.h. */
17717: _ACEOF
17718: cat confdefs.h >>conftest.$ac_ext
17719: cat >>conftest.$ac_ext <<_ACEOF
17720: /* end confdefs.h. */
1.37 millert 17721: #include <limits.h>
17722: #include <fcntl.h>
17723:
17724: int
17725: main ()
17726: {
17727: #ifndef F_CLOSEM
17728: (void) F_CLOSEM;
17729: #endif
17730:
17731: ;
17732: return 0;
17733: }
1.16 millert 17734: _ACEOF
1.37 millert 17735: rm -f conftest.$ac_objext
17736: if { (ac_try="$ac_compile"
1.27 millert 17737: case "(($ac_try" in
17738: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739: *) ac_try_echo=$ac_try;;
17740: esac
17741: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 17742: (eval "$ac_compile") 2>conftest.er1
1.25 millert 17743: ac_status=$?
1.37 millert 17744: grep -v '^ *+' conftest.er1 >conftest.err
17745: rm -f conftest.er1
17746: cat conftest.err >&5
1.25 millert 17747: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 17748: (exit $ac_status); } && {
17749: test -z "$ac_c_werror_flag" ||
17750: test ! -s conftest.err
17751: } && test -s conftest.$ac_objext; then
17752: ac_cv_have_decl_F_CLOSEM=yes
1.1 millert 17753: else
1.37 millert 17754: echo "$as_me: failed program was:" >&5
1.16 millert 17755: sed 's/^/| /' conftest.$ac_ext >&5
17756:
1.37 millert 17757: ac_cv_have_decl_F_CLOSEM=no
1.27 millert 17758: fi
17759:
1.37 millert 17760: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 17761: fi
1.37 millert 17762: { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17763: echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17764: if test $ac_cv_have_decl_F_CLOSEM = yes; then
1.25 millert 17765: cat >>confdefs.h <<\_ACEOF
1.37 millert 17766: #define HAVE_FCNTL_CLOSEM 1
1.25 millert 17767: _ACEOF
17768:
1.27 millert 17769: fi
1.16 millert 17770:
1.27 millert 17771:
1.25 millert 17772: fi
1.37 millert 17773: done
1.27 millert 17774:
17775:
1.37 millert 17776: for ac_func in mkstemp
1.27 millert 17777: do
17778: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17779: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17780: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17781: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.25 millert 17782: echo $ECHO_N "(cached) $ECHO_C" >&6
1.7 millert 17783: else
1.9 millert 17784: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17785: /* confdefs.h. */
17786: _ACEOF
17787: cat confdefs.h >>conftest.$ac_ext
17788: cat >>conftest.$ac_ext <<_ACEOF
1.25 millert 17789: /* end confdefs.h. */
1.27 millert 17790: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
1.25 millert 17791: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 millert 17792: #define $ac_func innocuous_$ac_func
1.25 millert 17793:
17794: /* System header to define __stub macros and hopefully few prototypes,
1.27 millert 17795: which can conflict with char $ac_func (); below.
1.25 millert 17796: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17797: <limits.h> exists even on freestanding compilers. */
17798:
17799: #ifdef __STDC__
17800: # include <limits.h>
17801: #else
17802: # include <assert.h>
17803: #endif
17804:
1.27 millert 17805: #undef $ac_func
1.25 millert 17806:
1.27 millert 17807: /* Override any GCC internal prototype to avoid an error.
17808: Use char because int might match the return type of a GCC
17809: builtin and then its argument prototype would still apply. */
1.25 millert 17810: #ifdef __cplusplus
17811: extern "C"
17812: #endif
1.27 millert 17813: char $ac_func ();
1.25 millert 17814: /* The GNU C library defines this for functions which it implements
17815: to always fail with ENOSYS. Some functions are actually named
17816: something starting with __ and the normal name is an alias. */
1.27 millert 17817: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 17818: choke me
17819: #endif
17820:
17821: int
17822: main ()
17823: {
1.27 millert 17824: return $ac_func ();
1.25 millert 17825: ;
17826: return 0;
17827: }
17828: _ACEOF
17829: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17830: if { (ac_try="$ac_link"
17831: case "(($ac_try" in
17832: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17833: *) ac_try_echo=$ac_try;;
17834: esac
17835: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836: (eval "$ac_link") 2>conftest.er1
1.25 millert 17837: ac_status=$?
17838: grep -v '^ *+' conftest.er1 >conftest.err
17839: rm -f conftest.er1
17840: cat conftest.err >&5
17841: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17842: (exit $ac_status); } && {
17843: test -z "$ac_c_werror_flag" ||
17844: test ! -s conftest.err
17845: } && test -s conftest$ac_exeext &&
17846: $as_test_x conftest$ac_exeext; then
17847: eval "$as_ac_var=yes"
1.23 millert 17848: else
1.25 millert 17849: echo "$as_me: failed program was:" >&5
1.23 millert 17850: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 17851:
1.27 millert 17852: eval "$as_ac_var=no"
1.23 millert 17853: fi
1.27 millert 17854:
17855: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17856: conftest$ac_exeext conftest.$ac_ext
1.23 millert 17857: fi
1.27 millert 17858: ac_res=`eval echo '${'$as_ac_var'}'`
17859: { echo "$as_me:$LINENO: result: $ac_res" >&5
17860: echo "${ECHO_T}$ac_res" >&6; }
17861: if test `eval echo '${'$as_ac_var'}'` = yes; then
17862: cat >>confdefs.h <<_ACEOF
17863: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17864: _ACEOF
17865:
1.23 millert 17866: else
1.37 millert 17867: SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
1.27 millert 17868:
17869:
1.37 millert 17870: for ac_func in random lrand48
1.27 millert 17871: do
17872: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17873: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17874: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17875: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 17876: echo $ECHO_N "(cached) $ECHO_C" >&6
17877: else
1.27 millert 17878: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17879: /* confdefs.h. */
17880: _ACEOF
17881: cat confdefs.h >>conftest.$ac_ext
17882: cat >>conftest.$ac_ext <<_ACEOF
17883: /* end confdefs.h. */
1.27 millert 17884: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17885: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17886: #define $ac_func innocuous_$ac_func
17887:
17888: /* System header to define __stub macros and hopefully few prototypes,
17889: which can conflict with char $ac_func (); below.
17890: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17891: <limits.h> exists even on freestanding compilers. */
17892:
17893: #ifdef __STDC__
17894: # include <limits.h>
17895: #else
17896: # include <assert.h>
17897: #endif
1.25 millert 17898:
1.27 millert 17899: #undef $ac_func
17900:
17901: /* Override any GCC internal prototype to avoid an error.
17902: Use char because int might match the return type of a GCC
17903: builtin and then its argument prototype would still apply. */
1.25 millert 17904: #ifdef __cplusplus
17905: extern "C"
17906: #endif
1.27 millert 17907: char $ac_func ();
17908: /* The GNU C library defines this for functions which it implements
17909: to always fail with ENOSYS. Some functions are actually named
17910: something starting with __ and the normal name is an alias. */
17911: #if defined __stub_$ac_func || defined __stub___$ac_func
17912: choke me
17913: #endif
17914:
1.25 millert 17915: int
17916: main ()
17917: {
1.27 millert 17918: return $ac_func ();
1.25 millert 17919: ;
17920: return 0;
1.9 millert 17921: }
17922: _ACEOF
1.25 millert 17923: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 17924: if { (ac_try="$ac_link"
17925: case "(($ac_try" in
17926: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927: *) ac_try_echo=$ac_try;;
17928: esac
17929: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17930: (eval "$ac_link") 2>conftest.er1
1.25 millert 17931: ac_status=$?
17932: grep -v '^ *+' conftest.er1 >conftest.err
17933: rm -f conftest.er1
17934: cat conftest.err >&5
17935: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 17936: (exit $ac_status); } && {
17937: test -z "$ac_c_werror_flag" ||
17938: test ! -s conftest.err
17939: } && test -s conftest$ac_exeext &&
17940: $as_test_x conftest$ac_exeext; then
17941: eval "$as_ac_var=yes"
1.7 millert 17942: else
1.25 millert 17943: echo "$as_me: failed program was:" >&5
1.16 millert 17944: sed 's/^/| /' conftest.$ac_ext >&5
17945:
1.27 millert 17946: eval "$as_ac_var=no"
1.23 millert 17947: fi
1.27 millert 17948:
17949: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 17950: conftest$ac_exeext conftest.$ac_ext
1.27 millert 17951: fi
17952: ac_res=`eval echo '${'$as_ac_var'}'`
17953: { echo "$as_me:$LINENO: result: $ac_res" >&5
17954: echo "${ECHO_T}$ac_res" >&6; }
17955: if test `eval echo '${'$as_ac_var'}'` = yes; then
17956: cat >>confdefs.h <<_ACEOF
17957: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17958: _ACEOF
1.37 millert 17959: break
17960: fi
17961: done
1.27 millert 17962:
17963:
17964: fi
1.37 millert 17965: done
1.27 millert 17966:
17967:
17968:
17969:
17970:
1.37 millert 17971: for ac_func in snprintf vsnprintf asprintf vasprintf
1.27 millert 17972: do
17973: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17974: { echo "$as_me:$LINENO: checking for $ac_func" >&5
17975: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17976: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 17977: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 17978: else
1.27 millert 17979: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 17980: /* confdefs.h. */
17981: _ACEOF
17982: cat confdefs.h >>conftest.$ac_ext
17983: cat >>conftest.$ac_ext <<_ACEOF
17984: /* end confdefs.h. */
1.27 millert 17985: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17986: For example, HP-UX 11i <limits.h> declares gettimeofday. */
17987: #define $ac_func innocuous_$ac_func
1.25 millert 17988:
1.27 millert 17989: /* System header to define __stub macros and hopefully few prototypes,
17990: which can conflict with char $ac_func (); below.
17991: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17992: <limits.h> exists even on freestanding compilers. */
17993:
17994: #ifdef __STDC__
17995: # include <limits.h>
17996: #else
17997: # include <assert.h>
17998: #endif
17999:
18000: #undef $ac_func
18001:
18002: /* Override any GCC internal prototype to avoid an error.
18003: Use char because int might match the return type of a GCC
18004: builtin and then its argument prototype would still apply. */
1.23 millert 18005: #ifdef __cplusplus
18006: extern "C"
18007: #endif
1.27 millert 18008: char $ac_func ();
18009: /* The GNU C library defines this for functions which it implements
18010: to always fail with ENOSYS. Some functions are actually named
18011: something starting with __ and the normal name is an alias. */
18012: #if defined __stub_$ac_func || defined __stub___$ac_func
18013: choke me
18014: #endif
18015:
1.23 millert 18016: int
18017: main ()
18018: {
1.27 millert 18019: return $ac_func ();
1.23 millert 18020: ;
18021: return 0;
18022: }
1.9 millert 18023: _ACEOF
1.23 millert 18024: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18025: if { (ac_try="$ac_link"
18026: case "(($ac_try" in
18027: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18028: *) ac_try_echo=$ac_try;;
18029: esac
18030: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18031: (eval "$ac_link") 2>conftest.er1
1.23 millert 18032: ac_status=$?
1.25 millert 18033: grep -v '^ *+' conftest.er1 >conftest.err
18034: rm -f conftest.er1
18035: cat conftest.err >&5
1.23 millert 18036: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18037: (exit $ac_status); } && {
18038: test -z "$ac_c_werror_flag" ||
18039: test ! -s conftest.err
18040: } && test -s conftest$ac_exeext &&
18041: $as_test_x conftest$ac_exeext; then
18042: eval "$as_ac_var=yes"
1.1 millert 18043: else
1.23 millert 18044: echo "$as_me: failed program was:" >&5
18045: sed 's/^/| /' conftest.$ac_ext >&5
18046:
1.27 millert 18047: eval "$as_ac_var=no"
1.25 millert 18048: fi
1.27 millert 18049:
18050: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18051: conftest$ac_exeext conftest.$ac_ext
1.1 millert 18052: fi
1.27 millert 18053: ac_res=`eval echo '${'$as_ac_var'}'`
18054: { echo "$as_me:$LINENO: result: $ac_res" >&5
18055: echo "${ECHO_T}$ac_res" >&6; }
18056: if test `eval echo '${'$as_ac_var'}'` = yes; then
18057: cat >>confdefs.h <<_ACEOF
18058: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18059: _ACEOF
1.25 millert 18060:
1.27 millert 18061: else
1.37 millert 18062: NEED_SNPRINTF=1
18063: fi
18064: done
1.1 millert 18065:
1.37 millert 18066: if test X"$ac_cv_type_struct_timespec" != X"no"; then
18067: { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
18068: echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
18069: if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
1.9 millert 18070: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18071: else
1.9 millert 18072: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18073: /* confdefs.h. */
18074: _ACEOF
18075: cat confdefs.h >>conftest.$ac_ext
18076: cat >>conftest.$ac_ext <<_ACEOF
18077: /* end confdefs.h. */
1.37 millert 18078: $ac_includes_default
1.9 millert 18079: int
18080: main ()
18081: {
1.37 millert 18082: static struct stat ac_aggr;
18083: if (ac_aggr.st_mtim)
18084: return 0;
1.9 millert 18085: ;
18086: return 0;
18087: }
18088: _ACEOF
1.37 millert 18089: rm -f conftest.$ac_objext
18090: if { (ac_try="$ac_compile"
1.27 millert 18091: case "(($ac_try" in
18092: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093: *) ac_try_echo=$ac_try;;
18094: esac
18095: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 18096: (eval "$ac_compile") 2>conftest.er1
1.9 millert 18097: ac_status=$?
1.25 millert 18098: grep -v '^ *+' conftest.er1 >conftest.err
18099: rm -f conftest.er1
18100: cat conftest.err >&5
1.16 millert 18101: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18102: (exit $ac_status); } && {
18103: test -z "$ac_c_werror_flag" ||
18104: test ! -s conftest.err
1.37 millert 18105: } && test -s conftest.$ac_objext; then
18106: ac_cv_member_struct_stat_st_mtim=yes
1.23 millert 18107: else
18108: echo "$as_me: failed program was:" >&5
18109: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 18110:
1.37 millert 18111: cat >conftest.$ac_ext <<_ACEOF
18112: /* confdefs.h. */
18113: _ACEOF
18114: cat confdefs.h >>conftest.$ac_ext
18115: cat >>conftest.$ac_ext <<_ACEOF
18116: /* end confdefs.h. */
1.27 millert 18117: $ac_includes_default
1.23 millert 18118: int
18119: main ()
18120: {
1.27 millert 18121: static struct stat ac_aggr;
18122: if (sizeof ac_aggr.st_mtim)
18123: return 0;
1.23 millert 18124: ;
18125: return 0;
18126: }
1.9 millert 18127: _ACEOF
1.27 millert 18128: rm -f conftest.$ac_objext
18129: if { (ac_try="$ac_compile"
18130: case "(($ac_try" in
18131: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132: *) ac_try_echo=$ac_try;;
18133: esac
18134: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135: (eval "$ac_compile") 2>conftest.er1
1.9 millert 18136: ac_status=$?
1.25 millert 18137: grep -v '^ *+' conftest.er1 >conftest.err
18138: rm -f conftest.er1
18139: cat conftest.err >&5
1.16 millert 18140: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18141: (exit $ac_status); } && {
18142: test -z "$ac_c_werror_flag" ||
18143: test ! -s conftest.err
18144: } && test -s conftest.$ac_objext; then
18145: ac_cv_member_struct_stat_st_mtim=yes
1.1 millert 18146: else
1.23 millert 18147: echo "$as_me: failed program was:" >&5
1.16 millert 18148: sed 's/^/| /' conftest.$ac_ext >&5
18149:
1.27 millert 18150: ac_cv_member_struct_stat_st_mtim=no
1.25 millert 18151: fi
18152:
1.27 millert 18153: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 18154: fi
18155:
1.27 millert 18156: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.9 millert 18157: fi
1.27 millert 18158: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
18159: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
18160: if test $ac_cv_member_struct_stat_st_mtim = yes; then
18161: cat >>confdefs.h <<\_ACEOF
18162: #define HAVE_ST_MTIM 1
18163: _ACEOF
1.25 millert 18164:
1.34 millert 18165: { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
18166: echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
18167: if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
18168: echo $ECHO_N "(cached) $ECHO_C" >&6
18169: else
18170: cat >conftest.$ac_ext <<_ACEOF
18171: /* confdefs.h. */
18172: _ACEOF
18173: cat confdefs.h >>conftest.$ac_ext
18174: cat >>conftest.$ac_ext <<_ACEOF
18175: /* end confdefs.h. */
18176: $ac_includes_default
18177: int
18178: main ()
18179: {
18180: static struct stat ac_aggr;
18181: if (ac_aggr.st_mtim.st__tim)
18182: return 0;
18183: ;
18184: return 0;
18185: }
18186: _ACEOF
18187: rm -f conftest.$ac_objext
18188: if { (ac_try="$ac_compile"
18189: case "(($ac_try" in
18190: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191: *) ac_try_echo=$ac_try;;
18192: esac
18193: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18194: (eval "$ac_compile") 2>conftest.er1
18195: ac_status=$?
18196: grep -v '^ *+' conftest.er1 >conftest.err
18197: rm -f conftest.er1
18198: cat conftest.err >&5
18199: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18200: (exit $ac_status); } && {
18201: test -z "$ac_c_werror_flag" ||
18202: test ! -s conftest.err
18203: } && test -s conftest.$ac_objext; then
18204: ac_cv_member_struct_stat_st_mtim_st__tim=yes
18205: else
18206: echo "$as_me: failed program was:" >&5
18207: sed 's/^/| /' conftest.$ac_ext >&5
18208:
18209: cat >conftest.$ac_ext <<_ACEOF
18210: /* confdefs.h. */
18211: _ACEOF
18212: cat confdefs.h >>conftest.$ac_ext
18213: cat >>conftest.$ac_ext <<_ACEOF
18214: /* end confdefs.h. */
18215: $ac_includes_default
18216: int
18217: main ()
18218: {
18219: static struct stat ac_aggr;
18220: if (sizeof ac_aggr.st_mtim.st__tim)
18221: return 0;
18222: ;
18223: return 0;
18224: }
18225: _ACEOF
18226: rm -f conftest.$ac_objext
18227: if { (ac_try="$ac_compile"
18228: case "(($ac_try" in
18229: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230: *) ac_try_echo=$ac_try;;
18231: esac
18232: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233: (eval "$ac_compile") 2>conftest.er1
18234: ac_status=$?
18235: grep -v '^ *+' conftest.er1 >conftest.err
18236: rm -f conftest.er1
18237: cat conftest.err >&5
18238: echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239: (exit $ac_status); } && {
18240: test -z "$ac_c_werror_flag" ||
18241: test ! -s conftest.err
18242: } && test -s conftest.$ac_objext; then
18243: ac_cv_member_struct_stat_st_mtim_st__tim=yes
18244: else
18245: echo "$as_me: failed program was:" >&5
18246: sed 's/^/| /' conftest.$ac_ext >&5
18247:
18248: ac_cv_member_struct_stat_st_mtim_st__tim=no
18249: fi
18250:
18251: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18252: fi
18253:
18254: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18255: fi
18256: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18257: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18258: if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18259: cat >>confdefs.h <<\_ACEOF
18260: #define HAVE_ST__TIM 1
18261: _ACEOF
18262:
18263: fi
18264:
1.27 millert 18265: else
18266: { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18267: echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18268: if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
1.9 millert 18269: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18270: else
1.9 millert 18271: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18272: /* confdefs.h. */
18273: _ACEOF
18274: cat confdefs.h >>conftest.$ac_ext
18275: cat >>conftest.$ac_ext <<_ACEOF
18276: /* end confdefs.h. */
1.27 millert 18277: $ac_includes_default
1.23 millert 18278: int
18279: main ()
18280: {
1.27 millert 18281: static struct stat ac_aggr;
18282: if (ac_aggr.st_mtimespec)
18283: return 0;
1.23 millert 18284: ;
18285: return 0;
1.1 millert 18286: }
1.9 millert 18287: _ACEOF
1.27 millert 18288: rm -f conftest.$ac_objext
18289: if { (ac_try="$ac_compile"
18290: case "(($ac_try" in
18291: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18292: *) ac_try_echo=$ac_try;;
18293: esac
18294: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18295: (eval "$ac_compile") 2>conftest.er1
1.9 millert 18296: ac_status=$?
1.25 millert 18297: grep -v '^ *+' conftest.er1 >conftest.err
18298: rm -f conftest.er1
18299: cat conftest.err >&5
1.16 millert 18300: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18301: (exit $ac_status); } && {
18302: test -z "$ac_c_werror_flag" ||
18303: test ! -s conftest.err
18304: } && test -s conftest.$ac_objext; then
18305: ac_cv_member_struct_stat_st_mtimespec=yes
1.1 millert 18306: else
1.23 millert 18307: echo "$as_me: failed program was:" >&5
1.16 millert 18308: sed 's/^/| /' conftest.$ac_ext >&5
18309:
1.27 millert 18310: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18311: /* confdefs.h. */
18312: _ACEOF
18313: cat confdefs.h >>conftest.$ac_ext
18314: cat >>conftest.$ac_ext <<_ACEOF
18315: /* end confdefs.h. */
1.27 millert 18316: $ac_includes_default
1.9 millert 18317: int
18318: main ()
18319: {
1.27 millert 18320: static struct stat ac_aggr;
18321: if (sizeof ac_aggr.st_mtimespec)
18322: return 0;
1.9 millert 18323: ;
18324: return 0;
18325: }
18326: _ACEOF
1.27 millert 18327: rm -f conftest.$ac_objext
18328: if { (ac_try="$ac_compile"
18329: case "(($ac_try" in
18330: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18331: *) ac_try_echo=$ac_try;;
18332: esac
18333: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18334: (eval "$ac_compile") 2>conftest.er1
1.9 millert 18335: ac_status=$?
1.25 millert 18336: grep -v '^ *+' conftest.er1 >conftest.err
18337: rm -f conftest.er1
18338: cat conftest.err >&5
1.16 millert 18339: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18340: (exit $ac_status); } && {
18341: test -z "$ac_c_werror_flag" ||
18342: test ! -s conftest.err
18343: } && test -s conftest.$ac_objext; then
18344: ac_cv_member_struct_stat_st_mtimespec=yes
1.16 millert 18345: else
18346: echo "$as_me: failed program was:" >&5
18347: sed 's/^/| /' conftest.$ac_ext >&5
18348:
1.27 millert 18349: ac_cv_member_struct_stat_st_mtimespec=no
18350: fi
18351:
18352: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18353: fi
18354:
18355: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18356: fi
18357: { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18358: echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18359: if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18360: cat >>confdefs.h <<\_ACEOF
18361: #define HAVE_ST_MTIMESPEC 1
18362: _ACEOF
18363:
1.16 millert 18364: fi
1.27 millert 18365:
1.16 millert 18366: fi
1.27 millert 18367:
18368: { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18369: echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18370: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18371: /* confdefs.h. */
18372: _ACEOF
18373: cat confdefs.h >>conftest.$ac_ext
18374: cat >>conftest.$ac_ext <<_ACEOF
18375: /* end confdefs.h. */
1.27 millert 18376: #include <sys/types.h>
18377: #include <sys/time.h>
1.16 millert 18378: int
18379: main ()
18380: {
1.27 millert 18381: struct timespec ts1, ts2;
18382: ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18383: #ifndef timespecsub
18384: #error missing timespecsub
18385: #endif
18386: timespecsub(&ts1, &ts2);
1.16 millert 18387: ;
18388: return 0;
18389: }
18390: _ACEOF
1.27 millert 18391: rm -f conftest.$ac_objext
18392: if { (ac_try="$ac_compile"
18393: case "(($ac_try" in
18394: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18395: *) ac_try_echo=$ac_try;;
18396: esac
18397: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18398: (eval "$ac_compile") 2>conftest.er1
1.16 millert 18399: ac_status=$?
1.25 millert 18400: grep -v '^ *+' conftest.er1 >conftest.err
18401: rm -f conftest.er1
18402: cat conftest.err >&5
1.16 millert 18403: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18404: (exit $ac_status); } && {
18405: test -z "$ac_c_werror_flag" ||
18406: test ! -s conftest.err
18407: } && test -s conftest.$ac_objext; then
18408: cat >>confdefs.h <<\_ACEOF
18409: #define HAVE_TIMESPECSUB2 1
18410: _ACEOF
18411:
18412: { echo "$as_me:$LINENO: result: yes" >&5
18413: echo "${ECHO_T}yes" >&6; }
1.1 millert 18414: else
1.9 millert 18415: echo "$as_me: failed program was:" >&5
1.16 millert 18416: sed 's/^/| /' conftest.$ac_ext >&5
18417:
1.27 millert 18418: { echo "$as_me:$LINENO: result: no" >&5
18419: echo "${ECHO_T}no" >&6; }
1.1 millert 18420: fi
1.27 millert 18421:
18422: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 millert 18423: fi
1.25 millert 18424: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18425: /* confdefs.h. */
18426: _ACEOF
18427: cat confdefs.h >>conftest.$ac_ext
18428: cat >>conftest.$ac_ext <<_ACEOF
18429: /* end confdefs.h. */
1.27 millert 18430: #include <sys/types.h>
18431: #include <$ac_header_dirent>
1.16 millert 18432: int
18433: main ()
18434: {
1.36 millert 18435: DIR *d; (void)dirfd(d);
1.9 millert 18436: ;
18437: return 0;
18438: }
18439: _ACEOF
18440: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18441: if { (ac_try="$ac_link"
18442: case "(($ac_try" in
18443: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444: *) ac_try_echo=$ac_try;;
18445: esac
18446: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447: (eval "$ac_link") 2>conftest.er1
1.9 millert 18448: ac_status=$?
1.25 millert 18449: grep -v '^ *+' conftest.er1 >conftest.err
18450: rm -f conftest.er1
18451: cat conftest.err >&5
1.16 millert 18452: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18453: (exit $ac_status); } && {
18454: test -z "$ac_c_werror_flag" ||
18455: test ! -s conftest.err
18456: } && test -s conftest$ac_exeext &&
18457: $as_test_x conftest$ac_exeext; then
18458: cat >>confdefs.h <<\_ACEOF
18459: #define HAVE_DIRFD 1
18460: _ACEOF
18461:
1.9 millert 18462: else
18463: echo "$as_me: failed program was:" >&5
1.16 millert 18464: sed 's/^/| /' conftest.$ac_ext >&5
18465:
1.27 millert 18466: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18467: /* confdefs.h. */
18468: _ACEOF
18469: cat confdefs.h >>conftest.$ac_ext
18470: cat >>conftest.$ac_ext <<_ACEOF
18471: /* end confdefs.h. */
1.27 millert 18472: #include <sys/types.h>
18473: #include <$ac_header_dirent>
1.16 millert 18474: int
18475: main ()
18476: {
1.27 millert 18477: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
1.9 millert 18478: ;
18479: return 0;
18480: }
18481: _ACEOF
18482: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18483: if { (ac_try="$ac_link"
18484: case "(($ac_try" in
18485: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486: *) ac_try_echo=$ac_try;;
18487: esac
18488: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489: (eval "$ac_link") 2>conftest.er1
1.9 millert 18490: ac_status=$?
1.25 millert 18491: grep -v '^ *+' conftest.er1 >conftest.err
18492: rm -f conftest.er1
18493: cat conftest.err >&5
1.16 millert 18494: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18495: (exit $ac_status); } && {
18496: test -z "$ac_c_werror_flag" ||
18497: test ! -s conftest.err
18498: } && test -s conftest$ac_exeext &&
18499: $as_test_x conftest$ac_exeext; then
18500: cat >>confdefs.h <<\_ACEOF
18501: #define HAVE_DD_FD 1
18502: _ACEOF
18503:
1.9 millert 18504: else
18505: echo "$as_me: failed program was:" >&5
1.16 millert 18506: sed 's/^/| /' conftest.$ac_ext >&5
18507:
1.25 millert 18508:
1.9 millert 18509: fi
1.25 millert 18510:
1.27 millert 18511: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18512: conftest$ac_exeext conftest.$ac_ext
1.1 millert 18513: fi
18514:
1.27 millert 18515: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18516: conftest$ac_exeext conftest.$ac_ext
18517: if test -n "$NEED_SNPRINTF"; then
18518: case " $LIBOBJS " in
18519: *" snprintf.$ac_objext "* ) ;;
18520: *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18521: ;;
18522: esac
1.1 millert 18523:
1.25 millert 18524: fi
1.27 millert 18525: { echo "$as_me:$LINENO: checking for socket" >&5
18526: echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18527: if test "${ac_cv_func_socket+set}" = set; then
1.9 millert 18528: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18529: else
1.9 millert 18530: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18531: /* confdefs.h. */
18532: _ACEOF
18533: cat confdefs.h >>conftest.$ac_ext
18534: cat >>conftest.$ac_ext <<_ACEOF
18535: /* end confdefs.h. */
1.27 millert 18536: /* Define socket to an innocuous variant, in case <limits.h> declares socket.
1.25 millert 18537: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 millert 18538: #define socket innocuous_socket
1.25 millert 18539:
1.1 millert 18540: /* System header to define __stub macros and hopefully few prototypes,
1.27 millert 18541: which can conflict with char socket (); below.
1.16 millert 18542: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18543: <limits.h> exists even on freestanding compilers. */
1.25 millert 18544:
1.16 millert 18545: #ifdef __STDC__
18546: # include <limits.h>
18547: #else
18548: # include <assert.h>
18549: #endif
1.25 millert 18550:
1.27 millert 18551: #undef socket
1.25 millert 18552:
1.27 millert 18553: /* Override any GCC internal prototype to avoid an error.
18554: Use char because int might match the return type of a GCC
18555: builtin and then its argument prototype would still apply. */
1.9 millert 18556: #ifdef __cplusplus
18557: extern "C"
18558: #endif
1.27 millert 18559: char socket ();
1.1 millert 18560: /* The GNU C library defines this for functions which it implements
18561: to always fail with ENOSYS. Some functions are actually named
18562: something starting with __ and the normal name is an alias. */
1.27 millert 18563: #if defined __stub_socket || defined __stub___socket
1.1 millert 18564: choke me
18565: #endif
18566:
1.16 millert 18567: int
18568: main ()
18569: {
1.27 millert 18570: return socket ();
1.9 millert 18571: ;
18572: return 0;
18573: }
18574: _ACEOF
18575: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18576: if { (ac_try="$ac_link"
18577: case "(($ac_try" in
18578: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579: *) ac_try_echo=$ac_try;;
18580: esac
18581: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582: (eval "$ac_link") 2>conftest.er1
1.13 millert 18583: ac_status=$?
1.25 millert 18584: grep -v '^ *+' conftest.er1 >conftest.err
18585: rm -f conftest.er1
18586: cat conftest.err >&5
1.16 millert 18587: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18588: (exit $ac_status); } && {
18589: test -z "$ac_c_werror_flag" ||
18590: test ! -s conftest.err
18591: } && test -s conftest$ac_exeext &&
18592: $as_test_x conftest$ac_exeext; then
18593: ac_cv_func_socket=yes
1.13 millert 18594: else
18595: echo "$as_me: failed program was:" >&5
1.16 millert 18596: sed 's/^/| /' conftest.$ac_ext >&5
18597:
1.27 millert 18598: ac_cv_func_socket=no
1.13 millert 18599: fi
1.27 millert 18600:
18601: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18602: conftest$ac_exeext conftest.$ac_ext
1.13 millert 18603: fi
1.27 millert 18604: { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18605: echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18606: if test $ac_cv_func_socket = yes; then
1.25 millert 18607: :
18608: else
1.27 millert 18609: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18610: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18611: if test "${ac_cv_lib_socket_socket+set}" = set; then
1.13 millert 18612: echo $ECHO_N "(cached) $ECHO_C" >&6
18613: else
1.25 millert 18614: ac_check_lib_save_LIBS=$LIBS
18615: LIBS="-lsocket $LIBS"
18616: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18617: /* confdefs.h. */
18618: _ACEOF
18619: cat confdefs.h >>conftest.$ac_ext
18620: cat >>conftest.$ac_ext <<_ACEOF
18621: /* end confdefs.h. */
1.25 millert 18622:
1.27 millert 18623: /* Override any GCC internal prototype to avoid an error.
18624: Use char because int might match the return type of a GCC
18625: builtin and then its argument prototype would still apply. */
1.13 millert 18626: #ifdef __cplusplus
18627: extern "C"
18628: #endif
1.27 millert 18629: char socket ();
1.16 millert 18630: int
18631: main ()
18632: {
1.27 millert 18633: return socket ();
1.13 millert 18634: ;
18635: return 0;
18636: }
18637: _ACEOF
18638: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18639: if { (ac_try="$ac_link"
18640: case "(($ac_try" in
18641: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642: *) ac_try_echo=$ac_try;;
18643: esac
18644: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645: (eval "$ac_link") 2>conftest.er1
1.9 millert 18646: ac_status=$?
1.25 millert 18647: grep -v '^ *+' conftest.er1 >conftest.err
18648: rm -f conftest.er1
18649: cat conftest.err >&5
1.16 millert 18650: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18651: (exit $ac_status); } && {
18652: test -z "$ac_c_werror_flag" ||
18653: test ! -s conftest.err
18654: } && test -s conftest$ac_exeext &&
18655: $as_test_x conftest$ac_exeext; then
18656: ac_cv_lib_socket_socket=yes
1.9 millert 18657: else
18658: echo "$as_me: failed program was:" >&5
1.16 millert 18659: sed 's/^/| /' conftest.$ac_ext >&5
18660:
1.27 millert 18661: ac_cv_lib_socket_socket=no
1.9 millert 18662: fi
1.27 millert 18663:
18664: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18665: conftest$ac_exeext conftest.$ac_ext
18666: LIBS=$ac_check_lib_save_LIBS
1.9 millert 18667: fi
1.27 millert 18668: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18669: echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18670: if test $ac_cv_lib_socket_socket = yes; then
1.25 millert 18671: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18672: else
1.27 millert 18673: { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18674: echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18675: if test "${ac_cv_lib_inet_socket+set}" = set; then
1.9 millert 18676: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18677: else
1.25 millert 18678: ac_check_lib_save_LIBS=$LIBS
1.27 millert 18679: LIBS="-linet $LIBS"
1.25 millert 18680: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18681: /* confdefs.h. */
18682: _ACEOF
18683: cat confdefs.h >>conftest.$ac_ext
18684: cat >>conftest.$ac_ext <<_ACEOF
18685: /* end confdefs.h. */
1.25 millert 18686:
1.27 millert 18687: /* Override any GCC internal prototype to avoid an error.
18688: Use char because int might match the return type of a GCC
18689: builtin and then its argument prototype would still apply. */
1.9 millert 18690: #ifdef __cplusplus
18691: extern "C"
1.1 millert 18692: #endif
1.27 millert 18693: char socket ();
1.16 millert 18694: int
18695: main ()
18696: {
1.27 millert 18697: return socket ();
1.9 millert 18698: ;
18699: return 0;
18700: }
18701: _ACEOF
18702: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18703: if { (ac_try="$ac_link"
18704: case "(($ac_try" in
18705: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706: *) ac_try_echo=$ac_try;;
18707: esac
18708: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709: (eval "$ac_link") 2>conftest.er1
1.9 millert 18710: ac_status=$?
1.25 millert 18711: grep -v '^ *+' conftest.er1 >conftest.err
18712: rm -f conftest.er1
18713: cat conftest.err >&5
1.16 millert 18714: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18715: (exit $ac_status); } && {
18716: test -z "$ac_c_werror_flag" ||
18717: test ! -s conftest.err
18718: } && test -s conftest$ac_exeext &&
18719: $as_test_x conftest$ac_exeext; then
18720: ac_cv_lib_inet_socket=yes
1.23 millert 18721: else
18722: echo "$as_me: failed program was:" >&5
18723: sed 's/^/| /' conftest.$ac_ext >&5
18724:
1.27 millert 18725: ac_cv_lib_inet_socket=no
1.23 millert 18726: fi
1.27 millert 18727:
18728: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18729: conftest$ac_exeext conftest.$ac_ext
18730: LIBS=$ac_check_lib_save_LIBS
1.23 millert 18731: fi
1.27 millert 18732: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18733: echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18734: if test $ac_cv_lib_inet_socket = yes; then
18735: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
1.23 millert 18736: else
1.27 millert 18737: { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18738: echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18739: { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18740: echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18741: if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
1.23 millert 18742: echo $ECHO_N "(cached) $ECHO_C" >&6
18743: else
18744: ac_check_lib_save_LIBS=$LIBS
1.27 millert 18745: LIBS="-lsocket -lnsl $LIBS"
1.23 millert 18746: cat >conftest.$ac_ext <<_ACEOF
18747: /* confdefs.h. */
18748: _ACEOF
18749: cat confdefs.h >>conftest.$ac_ext
18750: cat >>conftest.$ac_ext <<_ACEOF
18751: /* end confdefs.h. */
18752:
1.27 millert 18753: /* Override any GCC internal prototype to avoid an error.
18754: Use char because int might match the return type of a GCC
18755: builtin and then its argument prototype would still apply. */
1.23 millert 18756: #ifdef __cplusplus
18757: extern "C"
18758: #endif
1.27 millert 18759: char socket ();
1.23 millert 18760: int
18761: main ()
18762: {
1.27 millert 18763: return socket ();
1.23 millert 18764: ;
18765: return 0;
18766: }
18767: _ACEOF
18768: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18769: if { (ac_try="$ac_link"
18770: case "(($ac_try" in
18771: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772: *) ac_try_echo=$ac_try;;
18773: esac
18774: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775: (eval "$ac_link") 2>conftest.er1
1.23 millert 18776: ac_status=$?
1.25 millert 18777: grep -v '^ *+' conftest.er1 >conftest.err
18778: rm -f conftest.er1
18779: cat conftest.err >&5
1.23 millert 18780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18781: (exit $ac_status); } && {
18782: test -z "$ac_c_werror_flag" ||
18783: test ! -s conftest.err
18784: } && test -s conftest$ac_exeext &&
18785: $as_test_x conftest$ac_exeext; then
18786: ac_cv_lib_socket_socket_lnsl=yes
1.23 millert 18787: else
18788: echo "$as_me: failed program was:" >&5
18789: sed 's/^/| /' conftest.$ac_ext >&5
18790:
1.27 millert 18791: ac_cv_lib_socket_socket_lnsl=no
1.23 millert 18792: fi
1.27 millert 18793:
18794: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18795: conftest$ac_exeext conftest.$ac_ext
1.23 millert 18796: LIBS=$ac_check_lib_save_LIBS
18797: fi
1.27 millert 18798: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18799: echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18800: if test $ac_cv_lib_socket_socket_lnsl = yes; then
18801: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23 millert 18802: fi
1.16 millert 18803:
1.23 millert 18804: fi
18805:
18806: fi
1.1 millert 18807:
18808: fi
18809:
1.27 millert 18810: { echo "$as_me:$LINENO: checking for inet_addr" >&5
18811: echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18812: if test "${ac_cv_func_inet_addr+set}" = set; then
1.9 millert 18813: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18814: else
1.9 millert 18815: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18816: /* confdefs.h. */
18817: _ACEOF
18818: cat confdefs.h >>conftest.$ac_ext
18819: cat >>conftest.$ac_ext <<_ACEOF
18820: /* end confdefs.h. */
1.27 millert 18821: /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18822: For example, HP-UX 11i <limits.h> declares gettimeofday. */
18823: #define inet_addr innocuous_inet_addr
18824:
18825: /* System header to define __stub macros and hopefully few prototypes,
18826: which can conflict with char inet_addr (); below.
18827: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18828: <limits.h> exists even on freestanding compilers. */
18829:
18830: #ifdef __STDC__
18831: # include <limits.h>
18832: #else
18833: # include <assert.h>
18834: #endif
18835:
18836: #undef inet_addr
18837:
18838: /* Override any GCC internal prototype to avoid an error.
18839: Use char because int might match the return type of a GCC
18840: builtin and then its argument prototype would still apply. */
18841: #ifdef __cplusplus
18842: extern "C"
18843: #endif
18844: char inet_addr ();
18845: /* The GNU C library defines this for functions which it implements
18846: to always fail with ENOSYS. Some functions are actually named
18847: something starting with __ and the normal name is an alias. */
18848: #if defined __stub_inet_addr || defined __stub___inet_addr
18849: choke me
18850: #endif
18851:
1.16 millert 18852: int
18853: main ()
18854: {
1.27 millert 18855: return inet_addr ();
1.9 millert 18856: ;
18857: return 0;
18858: }
18859: _ACEOF
18860: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18861: if { (ac_try="$ac_link"
18862: case "(($ac_try" in
18863: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18864: *) ac_try_echo=$ac_try;;
18865: esac
18866: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18867: (eval "$ac_link") 2>conftest.er1
1.9 millert 18868: ac_status=$?
1.25 millert 18869: grep -v '^ *+' conftest.er1 >conftest.err
18870: rm -f conftest.er1
18871: cat conftest.err >&5
1.16 millert 18872: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18873: (exit $ac_status); } && {
18874: test -z "$ac_c_werror_flag" ||
18875: test ! -s conftest.err
18876: } && test -s conftest$ac_exeext &&
18877: $as_test_x conftest$ac_exeext; then
18878: ac_cv_func_inet_addr=yes
1.9 millert 18879: else
18880: echo "$as_me: failed program was:" >&5
1.16 millert 18881: sed 's/^/| /' conftest.$ac_ext >&5
18882:
1.27 millert 18883: ac_cv_func_inet_addr=no
1.9 millert 18884: fi
1.27 millert 18885:
18886: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18887: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18888: fi
1.27 millert 18889: { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18890: echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18891: if test $ac_cv_func_inet_addr = yes; then
18892: :
18893: else
18894: { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18895: echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18896: if test "${ac_cv_func___inet_addr+set}" = set; then
1.9 millert 18897: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 18898: else
1.9 millert 18899: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 18900: /* confdefs.h. */
18901: _ACEOF
18902: cat confdefs.h >>conftest.$ac_ext
18903: cat >>conftest.$ac_ext <<_ACEOF
18904: /* end confdefs.h. */
1.27 millert 18905: /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18906: For example, HP-UX 11i <limits.h> declares gettimeofday. */
18907: #define __inet_addr innocuous___inet_addr
18908:
18909: /* System header to define __stub macros and hopefully few prototypes,
18910: which can conflict with char __inet_addr (); below.
18911: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18912: <limits.h> exists even on freestanding compilers. */
18913:
18914: #ifdef __STDC__
18915: # include <limits.h>
1.16 millert 18916: #else
1.27 millert 18917: # include <assert.h>
18918: #endif
18919:
18920: #undef __inet_addr
18921:
18922: /* Override any GCC internal prototype to avoid an error.
18923: Use char because int might match the return type of a GCC
18924: builtin and then its argument prototype would still apply. */
18925: #ifdef __cplusplus
18926: extern "C"
18927: #endif
18928: char __inet_addr ();
18929: /* The GNU C library defines this for functions which it implements
18930: to always fail with ENOSYS. Some functions are actually named
18931: something starting with __ and the normal name is an alias. */
18932: #if defined __stub___inet_addr || defined __stub_____inet_addr
18933: choke me
1.1 millert 18934: #endif
18935:
1.16 millert 18936: int
18937: main ()
18938: {
1.27 millert 18939: return __inet_addr ();
1.9 millert 18940: ;
18941: return 0;
18942: }
18943: _ACEOF
18944: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 18945: if { (ac_try="$ac_link"
18946: case "(($ac_try" in
18947: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948: *) ac_try_echo=$ac_try;;
18949: esac
18950: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951: (eval "$ac_link") 2>conftest.er1
1.9 millert 18952: ac_status=$?
1.25 millert 18953: grep -v '^ *+' conftest.er1 >conftest.err
18954: rm -f conftest.er1
18955: cat conftest.err >&5
1.16 millert 18956: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 18957: (exit $ac_status); } && {
18958: test -z "$ac_c_werror_flag" ||
18959: test ! -s conftest.err
18960: } && test -s conftest$ac_exeext &&
18961: $as_test_x conftest$ac_exeext; then
18962: ac_cv_func___inet_addr=yes
1.9 millert 18963: else
18964: echo "$as_me: failed program was:" >&5
1.16 millert 18965: sed 's/^/| /' conftest.$ac_ext >&5
18966:
1.27 millert 18967: ac_cv_func___inet_addr=no
1.9 millert 18968: fi
1.27 millert 18969:
18970: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 18971: conftest$ac_exeext conftest.$ac_ext
1.9 millert 18972: fi
1.27 millert 18973: { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18974: echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18975: if test $ac_cv_func___inet_addr = yes; then
18976: :
1.25 millert 18977: else
1.27 millert 18978: { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18979: echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18980: if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
1.25 millert 18981: echo $ECHO_N "(cached) $ECHO_C" >&6
18982: else
1.27 millert 18983: ac_check_lib_save_LIBS=$LIBS
18984: LIBS="-lnsl $LIBS"
18985: cat >conftest.$ac_ext <<_ACEOF
1.25 millert 18986: /* confdefs.h. */
18987: _ACEOF
18988: cat confdefs.h >>conftest.$ac_ext
18989: cat >>conftest.$ac_ext <<_ACEOF
18990: /* end confdefs.h. */
1.27 millert 18991:
18992: /* Override any GCC internal prototype to avoid an error.
18993: Use char because int might match the return type of a GCC
18994: builtin and then its argument prototype would still apply. */
18995: #ifdef __cplusplus
18996: extern "C"
1.25 millert 18997: #endif
1.27 millert 18998: char inet_addr ();
18999: int
19000: main ()
19001: {
19002: return inet_addr ();
19003: ;
19004: return 0;
19005: }
1.16 millert 19006: _ACEOF
1.27 millert 19007: rm -f conftest.$ac_objext conftest$ac_exeext
19008: if { (ac_try="$ac_link"
19009: case "(($ac_try" in
19010: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19011: *) ac_try_echo=$ac_try;;
19012: esac
19013: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19014: (eval "$ac_link") 2>conftest.er1
19015: ac_status=$?
19016: grep -v '^ *+' conftest.er1 >conftest.err
19017: rm -f conftest.er1
19018: cat conftest.err >&5
19019: echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020: (exit $ac_status); } && {
19021: test -z "$ac_c_werror_flag" ||
19022: test ! -s conftest.err
19023: } && test -s conftest$ac_exeext &&
19024: $as_test_x conftest$ac_exeext; then
19025: ac_cv_lib_nsl_inet_addr=yes
1.25 millert 19026: else
1.27 millert 19027: echo "$as_me: failed program was:" >&5
19028: sed 's/^/| /' conftest.$ac_ext >&5
19029:
19030: ac_cv_lib_nsl_inet_addr=no
1.1 millert 19031: fi
19032:
1.27 millert 19033: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19034: conftest$ac_exeext conftest.$ac_ext
19035: LIBS=$ac_check_lib_save_LIBS
1.25 millert 19036: fi
1.27 millert 19037: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
19038: echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
19039: if test $ac_cv_lib_nsl_inet_addr = yes; then
19040: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19041: else
19042: { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
19043: echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
19044: if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
1.9 millert 19045: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19046: else
1.27 millert 19047: ac_check_lib_save_LIBS=$LIBS
19048: LIBS="-linet $LIBS"
19049: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19050: /* confdefs.h. */
19051: _ACEOF
19052: cat confdefs.h >>conftest.$ac_ext
19053: cat >>conftest.$ac_ext <<_ACEOF
19054: /* end confdefs.h. */
1.25 millert 19055:
1.27 millert 19056: /* Override any GCC internal prototype to avoid an error.
19057: Use char because int might match the return type of a GCC
19058: builtin and then its argument prototype would still apply. */
1.9 millert 19059: #ifdef __cplusplus
19060: extern "C"
19061: #endif
1.27 millert 19062: char inet_addr ();
1.16 millert 19063: int
19064: main ()
19065: {
1.27 millert 19066: return inet_addr ();
1.9 millert 19067: ;
19068: return 0;
19069: }
19070: _ACEOF
19071: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19072: if { (ac_try="$ac_link"
19073: case "(($ac_try" in
19074: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075: *) ac_try_echo=$ac_try;;
19076: esac
19077: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19078: (eval "$ac_link") 2>conftest.er1
1.9 millert 19079: ac_status=$?
1.25 millert 19080: grep -v '^ *+' conftest.er1 >conftest.err
19081: rm -f conftest.er1
19082: cat conftest.err >&5
1.16 millert 19083: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19084: (exit $ac_status); } && {
19085: test -z "$ac_c_werror_flag" ||
19086: test ! -s conftest.err
19087: } && test -s conftest$ac_exeext &&
19088: $as_test_x conftest$ac_exeext; then
19089: ac_cv_lib_inet_inet_addr=yes
1.9 millert 19090: else
19091: echo "$as_me: failed program was:" >&5
1.16 millert 19092: sed 's/^/| /' conftest.$ac_ext >&5
19093:
1.27 millert 19094: ac_cv_lib_inet_inet_addr=no
1.9 millert 19095: fi
1.27 millert 19096:
19097: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19098: conftest$ac_exeext conftest.$ac_ext
1.27 millert 19099: LIBS=$ac_check_lib_save_LIBS
1.9 millert 19100: fi
1.27 millert 19101: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
19102: echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
19103: if test $ac_cv_lib_inet_inet_addr = yes; then
19104: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19105: else
19106: { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
19107: echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
19108: { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
19109: echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
19110: if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
1.23 millert 19111: echo $ECHO_N "(cached) $ECHO_C" >&6
19112: else
1.27 millert 19113: ac_check_lib_save_LIBS=$LIBS
19114: LIBS="-lsocket -lnsl $LIBS"
19115: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 19116: /* confdefs.h. */
19117: _ACEOF
19118: cat confdefs.h >>conftest.$ac_ext
19119: cat >>conftest.$ac_ext <<_ACEOF
19120: /* end confdefs.h. */
19121:
1.27 millert 19122: /* Override any GCC internal prototype to avoid an error.
19123: Use char because int might match the return type of a GCC
19124: builtin and then its argument prototype would still apply. */
19125: #ifdef __cplusplus
19126: extern "C"
19127: #endif
19128: char inet_addr ();
1.25 millert 19129: int
19130: main ()
19131: {
1.27 millert 19132: return inet_addr ();
19133: ;
19134: return 0;
1.25 millert 19135: }
1.23 millert 19136: _ACEOF
1.27 millert 19137: rm -f conftest.$ac_objext conftest$ac_exeext
19138: if { (ac_try="$ac_link"
19139: case "(($ac_try" in
19140: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19141: *) ac_try_echo=$ac_try;;
19142: esac
19143: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19144: (eval "$ac_link") 2>conftest.er1
1.23 millert 19145: ac_status=$?
1.27 millert 19146: grep -v '^ *+' conftest.er1 >conftest.err
19147: rm -f conftest.er1
19148: cat conftest.err >&5
1.23 millert 19149: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19150: (exit $ac_status); } && {
19151: test -z "$ac_c_werror_flag" ||
19152: test ! -s conftest.err
19153: } && test -s conftest$ac_exeext &&
19154: $as_test_x conftest$ac_exeext; then
19155: ac_cv_lib_socket_inet_addr_lnsl=yes
1.23 millert 19156: else
1.27 millert 19157: echo "$as_me: failed program was:" >&5
1.23 millert 19158: sed 's/^/| /' conftest.$ac_ext >&5
19159:
1.27 millert 19160: ac_cv_lib_socket_inet_addr_lnsl=no
1.23 millert 19161: fi
1.27 millert 19162:
19163: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19164: conftest$ac_exeext conftest.$ac_ext
19165: LIBS=$ac_check_lib_save_LIBS
1.23 millert 19166: fi
1.27 millert 19167: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
19168: echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
19169: if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
19170: NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
1.23 millert 19171: fi
1.25 millert 19172:
1.27 millert 19173: fi
1.16 millert 19174:
1.27 millert 19175: fi
1.25 millert 19176:
1.23 millert 19177: fi
1.16 millert 19178:
1.9 millert 19179: fi
1.23 millert 19180:
1.27 millert 19181: { echo "$as_me:$LINENO: checking for syslog" >&5
19182: echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
19183: if test "${ac_cv_func_syslog+set}" = set; then
1.9 millert 19184: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19185: else
1.9 millert 19186: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19187: /* confdefs.h. */
19188: _ACEOF
19189: cat confdefs.h >>conftest.$ac_ext
19190: cat >>conftest.$ac_ext <<_ACEOF
19191: /* end confdefs.h. */
1.27 millert 19192: /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
1.25 millert 19193: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1.27 millert 19194: #define syslog innocuous_syslog
1.25 millert 19195:
1.16 millert 19196: /* System header to define __stub macros and hopefully few prototypes,
1.27 millert 19197: which can conflict with char syslog (); below.
1.16 millert 19198: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19199: <limits.h> exists even on freestanding compilers. */
1.25 millert 19200:
1.16 millert 19201: #ifdef __STDC__
19202: # include <limits.h>
19203: #else
19204: # include <assert.h>
19205: #endif
1.25 millert 19206:
1.27 millert 19207: #undef syslog
1.25 millert 19208:
1.27 millert 19209: /* Override any GCC internal prototype to avoid an error.
19210: Use char because int might match the return type of a GCC
19211: builtin and then its argument prototype would still apply. */
1.9 millert 19212: #ifdef __cplusplus
19213: extern "C"
19214: #endif
1.27 millert 19215: char syslog ();
1.1 millert 19216: /* The GNU C library defines this for functions which it implements
19217: to always fail with ENOSYS. Some functions are actually named
19218: something starting with __ and the normal name is an alias. */
1.27 millert 19219: #if defined __stub_syslog || defined __stub___syslog
1.1 millert 19220: choke me
19221: #endif
19222:
1.16 millert 19223: int
19224: main ()
19225: {
1.27 millert 19226: return syslog ();
1.9 millert 19227: ;
19228: return 0;
19229: }
19230: _ACEOF
19231: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19232: if { (ac_try="$ac_link"
19233: case "(($ac_try" in
19234: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235: *) ac_try_echo=$ac_try;;
19236: esac
19237: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238: (eval "$ac_link") 2>conftest.er1
1.9 millert 19239: ac_status=$?
1.25 millert 19240: grep -v '^ *+' conftest.er1 >conftest.err
19241: rm -f conftest.er1
19242: cat conftest.err >&5
1.16 millert 19243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19244: (exit $ac_status); } && {
19245: test -z "$ac_c_werror_flag" ||
19246: test ! -s conftest.err
19247: } && test -s conftest$ac_exeext &&
19248: $as_test_x conftest$ac_exeext; then
19249: ac_cv_func_syslog=yes
1.9 millert 19250: else
19251: echo "$as_me: failed program was:" >&5
1.16 millert 19252: sed 's/^/| /' conftest.$ac_ext >&5
19253:
1.27 millert 19254: ac_cv_func_syslog=no
1.9 millert 19255: fi
1.27 millert 19256:
19257: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19258: conftest$ac_exeext conftest.$ac_ext
1.9 millert 19259: fi
1.27 millert 19260: { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19261: echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19262: if test $ac_cv_func_syslog = yes; then
19263: :
1.23 millert 19264: else
1.27 millert 19265: { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19266: echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19267: if test "${ac_cv_lib_socket_syslog+set}" = set; then
1.9 millert 19268: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19269: else
1.27 millert 19270: ac_check_lib_save_LIBS=$LIBS
19271: LIBS="-lsocket $LIBS"
19272: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19273: /* confdefs.h. */
19274: _ACEOF
19275: cat confdefs.h >>conftest.$ac_ext
19276: cat >>conftest.$ac_ext <<_ACEOF
19277: /* end confdefs.h. */
1.25 millert 19278:
1.27 millert 19279: /* Override any GCC internal prototype to avoid an error.
19280: Use char because int might match the return type of a GCC
19281: builtin and then its argument prototype would still apply. */
19282: #ifdef __cplusplus
19283: extern "C"
19284: #endif
19285: char syslog ();
1.25 millert 19286: int
19287: main ()
1.16 millert 19288: {
1.27 millert 19289: return syslog ();
1.25 millert 19290: ;
19291: return 0;
1.9 millert 19292: }
19293: _ACEOF
1.25 millert 19294: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19295: if { (ac_try="$ac_link"
19296: case "(($ac_try" in
19297: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19298: *) ac_try_echo=$ac_try;;
19299: esac
19300: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19301: (eval "$ac_link") 2>conftest.er1
1.25 millert 19302: ac_status=$?
19303: grep -v '^ *+' conftest.er1 >conftest.err
19304: rm -f conftest.er1
19305: cat conftest.err >&5
19306: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19307: (exit $ac_status); } && {
19308: test -z "$ac_c_werror_flag" ||
19309: test ! -s conftest.err
19310: } && test -s conftest$ac_exeext &&
19311: $as_test_x conftest$ac_exeext; then
19312: ac_cv_lib_socket_syslog=yes
1.25 millert 19313: else
19314: echo "$as_me: failed program was:" >&5
19315: sed 's/^/| /' conftest.$ac_ext >&5
19316:
1.27 millert 19317: ac_cv_lib_socket_syslog=no
1.25 millert 19318: fi
1.27 millert 19319:
19320: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19321: conftest$ac_exeext conftest.$ac_ext
1.27 millert 19322: LIBS=$ac_check_lib_save_LIBS
1.25 millert 19323: fi
1.27 millert 19324: { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19325: echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19326: if test $ac_cv_lib_socket_syslog = yes; then
19327: NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19328: else
19329: { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19330: echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19331: if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19332: echo $ECHO_N "(cached) $ECHO_C" >&6
19333: else
19334: ac_check_lib_save_LIBS=$LIBS
19335: LIBS="-lnsl $LIBS"
19336: cat >conftest.$ac_ext <<_ACEOF
19337: /* confdefs.h. */
19338: _ACEOF
19339: cat confdefs.h >>conftest.$ac_ext
19340: cat >>conftest.$ac_ext <<_ACEOF
19341: /* end confdefs.h. */
1.25 millert 19342:
1.27 millert 19343: /* Override any GCC internal prototype to avoid an error.
19344: Use char because int might match the return type of a GCC
19345: builtin and then its argument prototype would still apply. */
19346: #ifdef __cplusplus
19347: extern "C"
19348: #endif
19349: char syslog ();
19350: int
19351: main ()
19352: {
19353: return syslog ();
19354: ;
19355: return 0;
19356: }
1.25 millert 19357: _ACEOF
1.27 millert 19358: rm -f conftest.$ac_objext conftest$ac_exeext
19359: if { (ac_try="$ac_link"
19360: case "(($ac_try" in
19361: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362: *) ac_try_echo=$ac_try;;
1.25 millert 19363: esac
1.27 millert 19364: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365: (eval "$ac_link") 2>conftest.er1
1.9 millert 19366: ac_status=$?
1.25 millert 19367: grep -v '^ *+' conftest.er1 >conftest.err
19368: rm -f conftest.er1
19369: cat conftest.err >&5
1.16 millert 19370: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19371: (exit $ac_status); } && {
19372: test -z "$ac_c_werror_flag" ||
19373: test ! -s conftest.err
19374: } && test -s conftest$ac_exeext &&
19375: $as_test_x conftest$ac_exeext; then
19376: ac_cv_lib_nsl_syslog=yes
1.9 millert 19377: else
19378: echo "$as_me: failed program was:" >&5
1.16 millert 19379: sed 's/^/| /' conftest.$ac_ext >&5
19380:
1.27 millert 19381: ac_cv_lib_nsl_syslog=no
19382: fi
1.25 millert 19383:
1.27 millert 19384: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19385: conftest$ac_exeext conftest.$ac_ext
19386: LIBS=$ac_check_lib_save_LIBS
19387: fi
19388: { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19389: echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19390: if test $ac_cv_lib_nsl_syslog = yes; then
19391: NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19392: else
19393: { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19394: echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19395: if test "${ac_cv_lib_inet_syslog+set}" = set; then
1.9 millert 19396: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19397: else
1.27 millert 19398: ac_check_lib_save_LIBS=$LIBS
19399: LIBS="-linet $LIBS"
1.25 millert 19400: cat >conftest.$ac_ext <<_ACEOF
1.23 millert 19401: /* confdefs.h. */
19402: _ACEOF
19403: cat confdefs.h >>conftest.$ac_ext
19404: cat >>conftest.$ac_ext <<_ACEOF
19405: /* end confdefs.h. */
1.27 millert 19406:
19407: /* Override any GCC internal prototype to avoid an error.
19408: Use char because int might match the return type of a GCC
19409: builtin and then its argument prototype would still apply. */
19410: #ifdef __cplusplus
19411: extern "C"
19412: #endif
19413: char syslog ();
19414: int
19415: main ()
19416: {
19417: return syslog ();
19418: ;
19419: return 0;
19420: }
1.23 millert 19421: _ACEOF
1.27 millert 19422: rm -f conftest.$ac_objext conftest$ac_exeext
19423: if { (ac_try="$ac_link"
19424: case "(($ac_try" in
19425: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426: *) ac_try_echo=$ac_try;;
19427: esac
19428: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429: (eval "$ac_link") 2>conftest.er1
1.23 millert 19430: ac_status=$?
1.25 millert 19431: grep -v '^ *+' conftest.er1 >conftest.err
19432: rm -f conftest.er1
19433: cat conftest.err >&5
1.23 millert 19434: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19435: (exit $ac_status); } && {
19436: test -z "$ac_c_werror_flag" ||
19437: test ! -s conftest.err
19438: } && test -s conftest$ac_exeext &&
19439: $as_test_x conftest$ac_exeext; then
19440: ac_cv_lib_inet_syslog=yes
1.1 millert 19441: else
1.23 millert 19442: echo "$as_me: failed program was:" >&5
19443: sed 's/^/| /' conftest.$ac_ext >&5
19444:
1.27 millert 19445: ac_cv_lib_inet_syslog=no
19446: fi
19447:
19448: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19449: conftest$ac_exeext conftest.$ac_ext
19450: LIBS=$ac_check_lib_save_LIBS
19451: fi
19452: { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19453: echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19454: if test $ac_cv_lib_inet_syslog = yes; then
19455: NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19456: fi
19457:
19458: fi
19459:
19460: fi
19461:
1.25 millert 19462: fi
19463:
1.37 millert 19464:
19465: for ac_func in getprogname
19466: do
19467: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19468: { echo "$as_me:$LINENO: checking for $ac_func" >&5
19469: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19470: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.27 millert 19471: echo $ECHO_N "(cached) $ECHO_C" >&6
19472: else
19473: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19474: /* confdefs.h. */
19475: _ACEOF
19476: cat confdefs.h >>conftest.$ac_ext
19477: cat >>conftest.$ac_ext <<_ACEOF
19478: /* end confdefs.h. */
1.37 millert 19479: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19480: For example, HP-UX 11i <limits.h> declares gettimeofday. */
19481: #define $ac_func innocuous_$ac_func
19482:
19483: /* System header to define __stub macros and hopefully few prototypes,
19484: which can conflict with char $ac_func (); below.
19485: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19486: <limits.h> exists even on freestanding compilers. */
19487:
19488: #ifdef __STDC__
19489: # include <limits.h>
19490: #else
19491: # include <assert.h>
19492: #endif
19493:
19494: #undef $ac_func
19495:
19496: /* Override any GCC internal prototype to avoid an error.
19497: Use char because int might match the return type of a GCC
19498: builtin and then its argument prototype would still apply. */
19499: #ifdef __cplusplus
19500: extern "C"
19501: #endif
19502: char $ac_func ();
19503: /* The GNU C library defines this for functions which it implements
19504: to always fail with ENOSYS. Some functions are actually named
19505: something starting with __ and the normal name is an alias. */
19506: #if defined __stub_$ac_func || defined __stub___$ac_func
19507: choke me
19508: #endif
19509:
1.27 millert 19510: int
19511: main ()
19512: {
1.37 millert 19513: return $ac_func ();
1.27 millert 19514: ;
19515: return 0;
19516: }
1.9 millert 19517: _ACEOF
1.27 millert 19518: rm -f conftest.$ac_objext conftest$ac_exeext
19519: if { (ac_try="$ac_link"
19520: case "(($ac_try" in
19521: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19522: *) ac_try_echo=$ac_try;;
19523: esac
19524: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19525: (eval "$ac_link") 2>conftest.er1
1.9 millert 19526: ac_status=$?
1.25 millert 19527: grep -v '^ *+' conftest.er1 >conftest.err
19528: rm -f conftest.er1
19529: cat conftest.err >&5
1.16 millert 19530: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19531: (exit $ac_status); } && {
19532: test -z "$ac_c_werror_flag" ||
19533: test ! -s conftest.err
19534: } && test -s conftest$ac_exeext &&
19535: $as_test_x conftest$ac_exeext; then
1.37 millert 19536: eval "$as_ac_var=yes"
1.1 millert 19537: else
1.23 millert 19538: echo "$as_me: failed program was:" >&5
1.16 millert 19539: sed 's/^/| /' conftest.$ac_ext >&5
19540:
1.37 millert 19541: eval "$as_ac_var=no"
1.25 millert 19542: fi
19543:
1.27 millert 19544: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19545: conftest$ac_exeext conftest.$ac_ext
1.1 millert 19546: fi
1.37 millert 19547: ac_res=`eval echo '${'$as_ac_var'}'`
19548: { echo "$as_me:$LINENO: result: $ac_res" >&5
19549: echo "${ECHO_T}$ac_res" >&6; }
19550: if test `eval echo '${'$as_ac_var'}'` = yes; then
19551: cat >>confdefs.h <<_ACEOF
19552: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27 millert 19553: _ACEOF
1.25 millert 19554:
1.37 millert 19555: else
1.1 millert 19556:
1.37 millert 19557: { echo "$as_me:$LINENO: checking for __progname" >&5
19558: echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19559: if test "${sudo_cv___progname+set}" = set; then
1.9 millert 19560: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19561: else
1.37 millert 19562:
19563: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19564: /* confdefs.h. */
19565: _ACEOF
19566: cat confdefs.h >>conftest.$ac_ext
19567: cat >>conftest.$ac_ext <<_ACEOF
19568: /* end confdefs.h. */
1.25 millert 19569:
1.23 millert 19570: int
19571: main ()
19572: {
1.37 millert 19573: extern char *__progname; (void)puts(__progname);
1.23 millert 19574: ;
19575: return 0;
19576: }
1.9 millert 19577: _ACEOF
1.25 millert 19578: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19579: if { (ac_try="$ac_link"
19580: case "(($ac_try" in
19581: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19582: *) ac_try_echo=$ac_try;;
19583: esac
19584: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19585: (eval "$ac_link") 2>conftest.er1
1.9 millert 19586: ac_status=$?
1.25 millert 19587: grep -v '^ *+' conftest.er1 >conftest.err
19588: rm -f conftest.er1
19589: cat conftest.err >&5
1.16 millert 19590: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19591: (exit $ac_status); } && {
19592: test -z "$ac_c_werror_flag" ||
19593: test ! -s conftest.err
19594: } && test -s conftest$ac_exeext &&
19595: $as_test_x conftest$ac_exeext; then
1.37 millert 19596: sudo_cv___progname=yes
1.1 millert 19597: else
1.23 millert 19598: echo "$as_me: failed program was:" >&5
1.16 millert 19599: sed 's/^/| /' conftest.$ac_ext >&5
1.25 millert 19600:
1.37 millert 19601: sudo_cv___progname=no
1.25 millert 19602: fi
1.27 millert 19603:
19604: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19605: conftest$ac_exeext conftest.$ac_ext
19606: fi
1.27 millert 19607:
1.37 millert 19608: if test "$sudo_cv___progname" = "yes"; then
19609: cat >>confdefs.h <<\_ACEOF
19610: #define HAVE___PROGNAME 1
1.27 millert 19611: _ACEOF
19612:
1.37 millert 19613: else
19614: case " $LIBOBJS " in
19615: *" getprogname.$ac_objext "* ) ;;
19616: *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19617: ;;
19618: esac
1.27 millert 19619:
1.37 millert 19620: fi
19621: { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19622: echo "${ECHO_T}$sudo_cv___progname" >&6; }
1.27 millert 19623:
1.37 millert 19624: fi
19625: done
1.27 millert 19626:
19627:
1.39 ! millert 19628: netsvc_conf='/etc/netsvc.conf'
! 19629: nsswitch_conf='/etc/nsswitch.conf'
! 19630: if test ${with_netsvc-"no"} != "no"; then
! 19631: cat >>confdefs.h <<EOF
! 19632: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
! 19633: EOF
! 19634:
! 19635: netsvc_conf=${with_netsvc-/etc/netsvc.conf}
! 19636: elif test ${with_nsswitch-"yes"} != "no"; then
! 19637: cat >>confdefs.h <<EOF
! 19638: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
! 19639: EOF
! 19640:
! 19641: nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
! 19642: fi
! 19643:
1.27 millert 19644:
1.37 millert 19645: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19646: for auth in $AUTH_EXCL_DEF; do
19647: case $auth in
19648: AIX_AUTH) with_aixauth=maybe;;
19649: BSD_AUTH) with_bsdauth=maybe;;
19650: PAM) with_pam=maybe;;
19651: SIA) CHECKSIA=true;;
19652: esac
19653: done
1.27 millert 19654: fi
1.25 millert 19655:
1.37 millert 19656: if test ${with_pam-"no"} != "no"; then
19657: { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19658: echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19659: if test "${ac_cv_lib_dl_main+set}" = set; then
1.25 millert 19660: echo $ECHO_N "(cached) $ECHO_C" >&6
19661: else
1.37 millert 19662: ac_check_lib_save_LIBS=$LIBS
19663: LIBS="-ldl $LIBS"
19664: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 19665: /* confdefs.h. */
19666: _ACEOF
19667: cat confdefs.h >>conftest.$ac_ext
19668: cat >>conftest.$ac_ext <<_ACEOF
19669: /* end confdefs.h. */
1.25 millert 19670:
1.27 millert 19671:
1.9 millert 19672: int
19673: main ()
19674: {
1.37 millert 19675: return main ();
1.9 millert 19676: ;
19677: return 0;
19678: }
19679: _ACEOF
1.25 millert 19680: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19681: if { (ac_try="$ac_link"
19682: case "(($ac_try" in
19683: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19684: *) ac_try_echo=$ac_try;;
19685: esac
19686: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19687: (eval "$ac_link") 2>conftest.er1
1.9 millert 19688: ac_status=$?
1.25 millert 19689: grep -v '^ *+' conftest.er1 >conftest.err
19690: rm -f conftest.er1
19691: cat conftest.err >&5
1.16 millert 19692: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19693: (exit $ac_status); } && {
19694: test -z "$ac_c_werror_flag" ||
19695: test ! -s conftest.err
19696: } && test -s conftest$ac_exeext &&
19697: $as_test_x conftest$ac_exeext; then
1.37 millert 19698: ac_cv_lib_dl_main=yes
1.9 millert 19699: else
19700: echo "$as_me: failed program was:" >&5
1.16 millert 19701: sed 's/^/| /' conftest.$ac_ext >&5
19702:
1.37 millert 19703: ac_cv_lib_dl_main=no
1.23 millert 19704: fi
1.27 millert 19705:
19706: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 19707: conftest$ac_exeext conftest.$ac_ext
1.37 millert 19708: LIBS=$ac_check_lib_save_LIBS
19709: fi
19710: { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19711: echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19712: if test $ac_cv_lib_dl_main = yes; then
19713: SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19714: else
19715: SUDO_LIBS="${SUDO_LIBS} -lpam"
1.9 millert 19716: fi
1.27 millert 19717:
1.37 millert 19718: ac_cv_lib_dl=ac_cv_lib_dl_main
1.27 millert 19719:
1.1 millert 19720:
1.16 millert 19721:
1.37 millert 19722: for ac_header in security/pam_appl.h pam/pam_appl.h
19723: do
19724: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19725: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726: { echo "$as_me:$LINENO: checking for $ac_header" >&5
19727: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19728: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27 millert 19729: echo $ECHO_N "(cached) $ECHO_C" >&6
1.37 millert 19730: fi
19731: ac_res=`eval echo '${'$as_ac_Header'}'`
19732: { echo "$as_me:$LINENO: result: $ac_res" >&5
19733: echo "${ECHO_T}$ac_res" >&6; }
1.27 millert 19734: else
1.37 millert 19735: # Is the header compilable?
19736: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19737: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19738: cat >conftest.$ac_ext <<_ACEOF
1.24 millert 19739: /* confdefs.h. */
19740: _ACEOF
19741: cat confdefs.h >>conftest.$ac_ext
19742: cat >>conftest.$ac_ext <<_ACEOF
19743: /* end confdefs.h. */
1.27 millert 19744: $ac_includes_default
1.37 millert 19745: #include <$ac_header>
1.24 millert 19746: _ACEOF
1.37 millert 19747: rm -f conftest.$ac_objext
19748: if { (ac_try="$ac_compile"
1.27 millert 19749: case "(($ac_try" in
19750: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751: *) ac_try_echo=$ac_try;;
19752: esac
19753: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 19754: (eval "$ac_compile") 2>conftest.er1
1.24 millert 19755: ac_status=$?
1.37 millert 19756: grep -v '^ *+' conftest.er1 >conftest.err
19757: rm -f conftest.er1
19758: cat conftest.err >&5
1.24 millert 19759: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 19760: (exit $ac_status); } && {
19761: test -z "$ac_c_werror_flag" ||
19762: test ! -s conftest.err
19763: } && test -s conftest.$ac_objext; then
19764: ac_header_compiler=yes
1.27 millert 19765: else
1.37 millert 19766: echo "$as_me: failed program was:" >&5
1.27 millert 19767: sed 's/^/| /' conftest.$ac_ext >&5
19768:
1.37 millert 19769: ac_header_compiler=no
1.27 millert 19770: fi
19771:
1.37 millert 19772: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19773: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19774: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.27 millert 19775:
1.37 millert 19776: # Is the header present?
19777: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19778: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19779: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19780: /* confdefs.h. */
19781: _ACEOF
19782: cat confdefs.h >>conftest.$ac_ext
19783: cat >>conftest.$ac_ext <<_ACEOF
19784: /* end confdefs.h. */
1.37 millert 19785: #include <$ac_header>
1.9 millert 19786: _ACEOF
1.37 millert 19787: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27 millert 19788: case "(($ac_try" in
19789: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790: *) ac_try_echo=$ac_try;;
19791: esac
19792: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 19793: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 19794: ac_status=$?
1.25 millert 19795: grep -v '^ *+' conftest.er1 >conftest.err
19796: rm -f conftest.er1
19797: cat conftest.err >&5
1.16 millert 19798: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 19799: (exit $ac_status); } >/dev/null && {
19800: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27 millert 19801: test ! -s conftest.err
1.37 millert 19802: }; then
19803: ac_header_preproc=yes
1.25 millert 19804: else
19805: echo "$as_me: failed program was:" >&5
19806: sed 's/^/| /' conftest.$ac_ext >&5
19807:
1.37 millert 19808: ac_header_preproc=no
1.25 millert 19809: fi
1.27 millert 19810:
1.37 millert 19811: rm -f conftest.err conftest.$ac_ext
19812: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.23 millert 19814:
1.37 millert 19815: # So? What about this header?
19816: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19817: yes:no: )
19818: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19819: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19821: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19822: ac_header_preproc=yes
19823: ;;
19824: no:yes:* )
19825: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19826: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19827: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19828: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19829: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19830: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19831: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19832: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19833: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19834: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19835: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19836: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19837:
19838: ;;
19839: esac
19840: { echo "$as_me:$LINENO: checking for $ac_header" >&5
19841: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19842: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19843: echo $ECHO_N "(cached) $ECHO_C" >&6
1.9 millert 19844: else
1.37 millert 19845: eval "$as_ac_Header=\$ac_header_preproc"
19846: fi
19847: ac_res=`eval echo '${'$as_ac_Header'}'`
19848: { echo "$as_me:$LINENO: result: $ac_res" >&5
19849: echo "${ECHO_T}$ac_res" >&6; }
19850:
19851: fi
19852: if test `eval echo '${'$as_ac_Header'}'` = yes; then
19853: cat >>confdefs.h <<_ACEOF
19854: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19855: _ACEOF
19856: with_pam=yes; break
19857: fi
19858:
19859: done
1.16 millert 19860:
1.37 millert 19861: if test "$with_pam" = "yes"; then
19862: cat >>confdefs.h <<\_ACEOF
19863: #define HAVE_PAM 1
19864: _ACEOF
19865:
19866: AUTH_OBJS="$AUTH_OBJS pam.o";
19867: AUTH_EXCL=PAM
19868: { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19869: echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19870: # Check whether --enable-pam_session was given.
19871: if test "${enable_pam_session+set}" = set; then
19872: enableval=$enable_pam_session; case "$enableval" in
19873: yes) { echo "$as_me:$LINENO: result: yes" >&5
19874: echo "${ECHO_T}yes" >&6; }
19875: ;;
19876: no) { echo "$as_me:$LINENO: result: no" >&5
19877: echo "${ECHO_T}no" >&6; }
19878:
19879: cat >>confdefs.h <<\_ACEOF
19880: #define NO_PAM_SESSION
19881: _ACEOF
19882:
19883: ;;
19884: *) { echo "$as_me:$LINENO: result: no" >&5
19885: echo "${ECHO_T}no" >&6; }
19886: { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19887: echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19888: ;;
19889: esac
1.25 millert 19890: else
1.37 millert 19891: { echo "$as_me:$LINENO: result: yes" >&5
19892: echo "${ECHO_T}yes" >&6; }
19893: fi
1.27 millert 19894:
1.37 millert 19895: case $host in
19896: *-*-linux*|*-*-solaris*)
19897: # dgettext() may be defined to dgettext_libintl in the
19898: # header file, so first check that it links w/ additional
19899: # libs, then try with -lintl
19900: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19901: /* confdefs.h. */
19902: _ACEOF
19903: cat confdefs.h >>conftest.$ac_ext
19904: cat >>conftest.$ac_ext <<_ACEOF
19905: /* end confdefs.h. */
1.37 millert 19906: #include <libintl.h>
1.16 millert 19907: int
19908: main ()
19909: {
1.37 millert 19910: (void)dgettext((char *)0, (char *)0);
1.9 millert 19911: ;
19912: return 0;
19913: }
19914: _ACEOF
19915: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19916: if { (ac_try="$ac_link"
19917: case "(($ac_try" in
19918: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19919: *) ac_try_echo=$ac_try;;
19920: esac
19921: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19922: (eval "$ac_link") 2>conftest.er1
1.9 millert 19923: ac_status=$?
1.25 millert 19924: grep -v '^ *+' conftest.er1 >conftest.err
19925: rm -f conftest.er1
19926: cat conftest.err >&5
1.16 millert 19927: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19928: (exit $ac_status); } && {
19929: test -z "$ac_c_werror_flag" ||
19930: test ! -s conftest.err
19931: } && test -s conftest$ac_exeext &&
19932: $as_test_x conftest$ac_exeext; then
1.37 millert 19933: cat >>confdefs.h <<\_ACEOF
19934: #define HAVE_DGETTEXT 1
19935: _ACEOF
19936:
1.9 millert 19937: else
19938: echo "$as_me: failed program was:" >&5
1.16 millert 19939: sed 's/^/| /' conftest.$ac_ext >&5
19940:
1.37 millert 19941: { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19942: echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19943: if test "${ac_cv_lib_intl_dgettext+set}" = set; then
1.9 millert 19944: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 19945: else
1.25 millert 19946: ac_check_lib_save_LIBS=$LIBS
1.37 millert 19947: LIBS="-lintl $LIBS"
1.25 millert 19948: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 19949: /* confdefs.h. */
19950: _ACEOF
19951: cat confdefs.h >>conftest.$ac_ext
19952: cat >>conftest.$ac_ext <<_ACEOF
19953: /* end confdefs.h. */
1.25 millert 19954:
1.37 millert 19955: /* Override any GCC internal prototype to avoid an error.
19956: Use char because int might match the return type of a GCC
19957: builtin and then its argument prototype would still apply. */
19958: #ifdef __cplusplus
19959: extern "C"
19960: #endif
19961: char dgettext ();
1.16 millert 19962: int
19963: main ()
19964: {
1.37 millert 19965: return dgettext ();
1.9 millert 19966: ;
19967: return 0;
19968: }
19969: _ACEOF
19970: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 19971: if { (ac_try="$ac_link"
19972: case "(($ac_try" in
19973: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974: *) ac_try_echo=$ac_try;;
19975: esac
19976: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977: (eval "$ac_link") 2>conftest.er1
1.9 millert 19978: ac_status=$?
1.25 millert 19979: grep -v '^ *+' conftest.er1 >conftest.err
19980: rm -f conftest.er1
19981: cat conftest.err >&5
1.16 millert 19982: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 19983: (exit $ac_status); } && {
19984: test -z "$ac_c_werror_flag" ||
19985: test ! -s conftest.err
19986: } && test -s conftest$ac_exeext &&
19987: $as_test_x conftest$ac_exeext; then
1.37 millert 19988: ac_cv_lib_intl_dgettext=yes
1.25 millert 19989: else
19990: echo "$as_me: failed program was:" >&5
19991: sed 's/^/| /' conftest.$ac_ext >&5
19992:
1.37 millert 19993: ac_cv_lib_intl_dgettext=no
1.9 millert 19994: fi
1.27 millert 19995:
19996: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19997: conftest$ac_exeext conftest.$ac_ext
19998: LIBS=$ac_check_lib_save_LIBS
1.9 millert 19999: fi
1.37 millert 20000: { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20001: echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20002: if test $ac_cv_lib_intl_dgettext = yes; then
20003: LIBS="${LIBS} -lintl"
20004: cat >>confdefs.h <<\_ACEOF
20005: #define HAVE_DGETTEXT 1
20006: _ACEOF
20007:
20008: fi
20009:
1.25 millert 20010: fi
20011:
1.37 millert 20012: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20013: conftest$ac_exeext conftest.$ac_ext
20014: ;;
20015: esac
20016: fi
20017: fi
1.27 millert 20018:
1.37 millert 20019: if test ${with_aixauth-'no'} != "no"; then
20020: if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
20021: { echo "$as_me:$LINENO: using AIX general authentication" >&5
20022: echo "$as_me: using AIX general authentication" >&6;}
20023: cat >>confdefs.h <<\_ACEOF
20024: #define HAVE_AIXAUTH 1
20025: _ACEOF
1.25 millert 20026:
1.37 millert 20027: AUTH_OBJS="$AUTH_OBJS aix_auth.o";
20028: SUDO_LIBS="${SUDO_LIBS} -ls"
20029: AUTH_EXCL=AIX_AUTH
20030: fi
20031: fi
1.25 millert 20032:
1.37 millert 20033: if test ${with_bsdauth-'no'} != "no"; then
20034: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20035: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20036: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20037: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27 millert 20038: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 20039: fi
1.37 millert 20040: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20041: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.1 millert 20042: else
1.27 millert 20043: # Is the header compilable?
1.37 millert 20044: { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
20045: echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
1.27 millert 20046: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20047: /* confdefs.h. */
20048: _ACEOF
20049: cat confdefs.h >>conftest.$ac_ext
20050: cat >>conftest.$ac_ext <<_ACEOF
20051: /* end confdefs.h. */
1.27 millert 20052: $ac_includes_default
1.37 millert 20053: #include <bsd_auth.h>
1.9 millert 20054: _ACEOF
1.25 millert 20055: rm -f conftest.$ac_objext
1.27 millert 20056: if { (ac_try="$ac_compile"
20057: case "(($ac_try" in
20058: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20059: *) ac_try_echo=$ac_try;;
20060: esac
20061: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20062: (eval "$ac_compile") 2>conftest.er1
1.9 millert 20063: ac_status=$?
1.25 millert 20064: grep -v '^ *+' conftest.er1 >conftest.err
20065: rm -f conftest.er1
20066: cat conftest.err >&5
1.16 millert 20067: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20068: (exit $ac_status); } && {
20069: test -z "$ac_c_werror_flag" ||
20070: test ! -s conftest.err
20071: } && test -s conftest.$ac_objext; then
20072: ac_header_compiler=yes
1.9 millert 20073: else
20074: echo "$as_me: failed program was:" >&5
1.16 millert 20075: sed 's/^/| /' conftest.$ac_ext >&5
20076:
1.27 millert 20077: ac_header_compiler=no
20078: fi
1.25 millert 20079:
1.27 millert 20080: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20081: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20082: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 20083:
1.27 millert 20084: # Is the header present?
1.37 millert 20085: { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20086: echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
1.27 millert 20087: cat >conftest.$ac_ext <<_ACEOF
20088: /* confdefs.h. */
1.25 millert 20089: _ACEOF
1.27 millert 20090: cat confdefs.h >>conftest.$ac_ext
20091: cat >>conftest.$ac_ext <<_ACEOF
20092: /* end confdefs.h. */
1.37 millert 20093: #include <bsd_auth.h>
1.25 millert 20094: _ACEOF
1.27 millert 20095: if { (ac_try="$ac_cpp conftest.$ac_ext"
20096: case "(($ac_try" in
20097: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098: *) ac_try_echo=$ac_try;;
20099: esac
20100: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 20102: ac_status=$?
20103: grep -v '^ *+' conftest.er1 >conftest.err
20104: rm -f conftest.er1
20105: cat conftest.err >&5
20106: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20107: (exit $ac_status); } >/dev/null && {
20108: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20109: test ! -s conftest.err
20110: }; then
20111: ac_header_preproc=yes
1.1 millert 20112: else
1.25 millert 20113: echo "$as_me: failed program was:" >&5
20114: sed 's/^/| /' conftest.$ac_ext >&5
20115:
1.27 millert 20116: ac_header_preproc=no
20117: fi
20118:
20119: rm -f conftest.err conftest.$ac_ext
20120: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20121: echo "${ECHO_T}$ac_header_preproc" >&6; }
20122:
20123: # So? What about this header?
20124: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20125: yes:no: )
1.37 millert 20126: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20127: echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20128: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20129: echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
1.27 millert 20130: ac_header_preproc=yes
20131: ;;
20132: no:yes:* )
1.37 millert 20133: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20134: echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20135: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&5
20136: echo "$as_me: WARNING: bsd_auth.h: check for missing prerequisite headers?" >&2;}
20137: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20138: echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20139: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&5
20140: echo "$as_me: WARNING: bsd_auth.h: section \"Present But Cannot Be Compiled\"" >&2;}
20141: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20142: echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20143: { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20144: echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
1.27 millert 20145:
20146: ;;
20147: esac
1.37 millert 20148: { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20149: echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20150: if test "${ac_cv_header_bsd_auth_h+set}" = set; then
1.27 millert 20151: echo $ECHO_N "(cached) $ECHO_C" >&6
20152: else
1.37 millert 20153: ac_cv_header_bsd_auth_h=$ac_header_preproc
1.27 millert 20154: fi
1.37 millert 20155: { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20156: echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
1.25 millert 20157:
20158: fi
1.37 millert 20159: if test $ac_cv_header_bsd_auth_h = yes; then
20160: cat >>confdefs.h <<\_ACEOF
20161: #define HAVE_BSD_AUTH_H 1
1.27 millert 20162: _ACEOF
1.37 millert 20163:
20164: AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20165: BSDAUTH_USAGE='[-a auth_type] '
20166: AUTH_EXCL=BSD_AUTH; BAMAN=""
20167: else
20168: { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20169: echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20170: { (exit 1); exit 1; }; }
1.27 millert 20171: fi
20172:
20173:
1.37 millert 20174: fi
1.25 millert 20175:
1.37 millert 20176: if test ${CHECKSIA-'false'} = "true"; then
1.30 millert 20177:
1.37 millert 20178: for ac_func in sia_ses_init
20179: do
20180: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20181: { echo "$as_me:$LINENO: checking for $ac_func" >&5
20182: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20183: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20184: echo $ECHO_N "(cached) $ECHO_C" >&6
1.30 millert 20185: else
1.37 millert 20186: cat >conftest.$ac_ext <<_ACEOF
1.32 millert 20187: /* confdefs.h. */
20188: _ACEOF
20189: cat confdefs.h >>conftest.$ac_ext
20190: cat >>conftest.$ac_ext <<_ACEOF
20191: /* end confdefs.h. */
1.37 millert 20192: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20193: For example, HP-UX 11i <limits.h> declares gettimeofday. */
20194: #define $ac_func innocuous_$ac_func
20195:
20196: /* System header to define __stub macros and hopefully few prototypes,
20197: which can conflict with char $ac_func (); below.
20198: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20199: <limits.h> exists even on freestanding compilers. */
20200:
20201: #ifdef __STDC__
20202: # include <limits.h>
20203: #else
20204: # include <assert.h>
20205: #endif
20206:
20207: #undef $ac_func
20208:
20209: /* Override any GCC internal prototype to avoid an error.
20210: Use char because int might match the return type of a GCC
20211: builtin and then its argument prototype would still apply. */
20212: #ifdef __cplusplus
20213: extern "C"
20214: #endif
20215: char $ac_func ();
20216: /* The GNU C library defines this for functions which it implements
20217: to always fail with ENOSYS. Some functions are actually named
20218: something starting with __ and the normal name is an alias. */
20219: #if defined __stub_$ac_func || defined __stub___$ac_func
20220: choke me
20221: #endif
20222:
1.32 millert 20223: int
20224: main ()
20225: {
1.37 millert 20226: return $ac_func ();
1.32 millert 20227: ;
20228: return 0;
20229: }
20230: _ACEOF
20231: rm -f conftest.$ac_objext conftest$ac_exeext
20232: if { (ac_try="$ac_link"
20233: case "(($ac_try" in
20234: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20235: *) ac_try_echo=$ac_try;;
20236: esac
20237: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20238: (eval "$ac_link") 2>conftest.er1
20239: ac_status=$?
20240: grep -v '^ *+' conftest.er1 >conftest.err
20241: rm -f conftest.er1
20242: cat conftest.err >&5
20243: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244: (exit $ac_status); } && {
20245: test -z "$ac_c_werror_flag" ||
20246: test ! -s conftest.err
20247: } && test -s conftest$ac_exeext &&
20248: $as_test_x conftest$ac_exeext; then
1.37 millert 20249: eval "$as_ac_var=yes"
1.32 millert 20250: else
20251: echo "$as_me: failed program was:" >&5
20252: sed 's/^/| /' conftest.$ac_ext >&5
20253:
1.37 millert 20254: eval "$as_ac_var=no"
20255: fi
20256:
20257: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20258: conftest$ac_exeext conftest.$ac_ext
20259: fi
20260: ac_res=`eval echo '${'$as_ac_var'}'`
20261: { echo "$as_me:$LINENO: result: $ac_res" >&5
20262: echo "${ECHO_T}$ac_res" >&6; }
20263: if test `eval echo '${'$as_ac_var'}'` = yes; then
20264: cat >>confdefs.h <<_ACEOF
20265: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20266: _ACEOF
20267: found=true
20268: else
20269: found=false
20270: fi
20271: done
20272:
20273: if test "$found" = "true"; then
20274: AUTH_EXCL=SIA
20275: AUTH_OBJS="$AUTH_OBJS sia.o"
20276: fi
20277: fi
20278:
20279: if test ${with_fwtk-'no'} != "no"; then
20280: if test "$with_fwtk" != "yes"; then
20281:
20282: if test X"$with_rpath" = X"yes"; then
20283: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20284: else
20285: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20286: fi
20287: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20288: blibpath_add="${blibpath_add}:${with_fwtk}"
20289: fi
20290:
20291: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20292: with_fwtk=yes
20293: fi
20294: SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20295: AUTH_OBJS="$AUTH_OBJS fwtk.o"
20296: fi
20297:
20298: if test ${with_SecurID-'no'} != "no"; then
20299: if test "$with_SecurID" != "yes"; then
20300: :
20301: elif test -d /usr/ace/examples; then
20302: with_SecurID=/usr/ace/examples
20303: else
20304: with_SecurID=/usr/ace
20305: fi
20306: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20307: _LDFLAGS="${LDFLAGS}"
20308:
20309: if test X"$with_rpath" = X"yes"; then
20310: LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20311: else
20312: LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20313: fi
20314: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20315: blibpath_add="${blibpath_add}:${with_SecurID}"
20316: fi
20317:
20318: #
20319: # Determine whether to use the new or old SecurID API
20320: #
20321: { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20322: echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20323: if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
1.32 millert 20324: echo $ECHO_N "(cached) $ECHO_C" >&6
20325: else
20326: ac_check_lib_save_LIBS=$LIBS
1.37 millert 20327: LIBS="-laceclnt
20328: -lpthread
20329:
20330: $LIBS"
1.32 millert 20331: cat >conftest.$ac_ext <<_ACEOF
20332: /* confdefs.h. */
20333: _ACEOF
20334: cat confdefs.h >>conftest.$ac_ext
20335: cat >>conftest.$ac_ext <<_ACEOF
20336: /* end confdefs.h. */
20337:
20338: /* Override any GCC internal prototype to avoid an error.
20339: Use char because int might match the return type of a GCC
20340: builtin and then its argument prototype would still apply. */
20341: #ifdef __cplusplus
20342: extern "C"
20343: #endif
1.37 millert 20344: char SD_Init ();
1.32 millert 20345: int
20346: main ()
20347: {
1.37 millert 20348: return SD_Init ();
1.32 millert 20349: ;
20350: return 0;
20351: }
20352: _ACEOF
20353: rm -f conftest.$ac_objext conftest$ac_exeext
20354: if { (ac_try="$ac_link"
20355: case "(($ac_try" in
20356: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20357: *) ac_try_echo=$ac_try;;
20358: esac
20359: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20360: (eval "$ac_link") 2>conftest.er1
20361: ac_status=$?
20362: grep -v '^ *+' conftest.er1 >conftest.err
20363: rm -f conftest.er1
20364: cat conftest.err >&5
20365: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366: (exit $ac_status); } && {
20367: test -z "$ac_c_werror_flag" ||
20368: test ! -s conftest.err
20369: } && test -s conftest$ac_exeext &&
20370: $as_test_x conftest$ac_exeext; then
1.37 millert 20371: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
1.32 millert 20372: else
20373: echo "$as_me: failed program was:" >&5
20374: sed 's/^/| /' conftest.$ac_ext >&5
20375:
1.37 millert 20376: ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
1.32 millert 20377: fi
20378:
20379: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20380: conftest$ac_exeext conftest.$ac_ext
20381: LIBS=$ac_check_lib_save_LIBS
20382: fi
1.37 millert 20383: { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20384: echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20385: if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20386:
20387: AUTH_OBJS="$AUTH_OBJS securid5.o";
20388: SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20389:
20390:
20391:
20392: if test X"$with_rpath" = X"yes"; then
20393: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20394: else
20395: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20396: fi
20397: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20398: blibpath_add="${blibpath_add}:${with_SecurID}"
20399: fi
20400:
20401:
20402: else
20403:
20404: AUTH_OBJS="$AUTH_OBJS securid.o";
20405: SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
1.32 millert 20406:
20407: fi
20408:
1.37 millert 20409: LDFLAGS="${_LDFLAGS}"
1.32 millert 20410: fi
20411:
1.37 millert 20412:
20413: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20414: for auth in $AUTH_DEF; do
20415: case $auth in
20416: passwd) : ${with_passwd='maybe'};;
1.32 millert 20417: esac
1.37 millert 20418: done
1.27 millert 20419: fi
20420:
1.37 millert 20421: if test ${with_kerb4-'no'} != "no"; then
20422: cat >>confdefs.h <<\_ACEOF
20423: #define HAVE_KERB4 1
1.27 millert 20424: _ACEOF
1.25 millert 20425:
1.37 millert 20426: O_LDFLAGS="$LDFLAGS"
20427: if test "$with_kerb4" = "yes"; then
20428: found=no
20429: O_CPPFLAGS="$CPPFLAGS"
20430: for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20431: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20432: cat >conftest.$ac_ext <<_ACEOF
20433: #include <krb.h>
20434: _ACEOF
20435: if { (ac_try="$ac_cpp conftest.$ac_ext"
20436: case "(($ac_try" in
20437: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438: *) ac_try_echo=$ac_try;;
20439: esac
20440: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20442: ac_status=$?
20443: grep -v '^ *+' conftest.er1 >conftest.err
20444: rm -f conftest.er1
20445: cat conftest.err >&5
20446: echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447: (exit $ac_status); } >/dev/null && {
20448: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20449: test ! -s conftest.err
20450: }; then
20451: found=yes; break
20452: else
20453: echo "$as_me: failed program was:" >&5
20454: sed 's/^/| /' conftest.$ac_ext >&5
20455:
20456:
20457: fi
20458:
20459: rm -f conftest.err conftest.$ac_ext
20460: done
20461: test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20462: else
20463:
20464: if test X"$with_rpath" = X"yes"; then
20465: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20466: else
20467: LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20468: fi
20469: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20470: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20471: fi
20472:
20473:
20474: if test X"$with_rpath" = X"yes"; then
20475: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20476: else
20477: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20478: fi
20479: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20480: blibpath_add="${blibpath_add}:${with_kerb4}/lib"
1.25 millert 20481: fi
20482:
1.37 millert 20483: CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20484: if test "${ac_cv_header_krb_h+set}" = set; then
20485: { echo "$as_me:$LINENO: checking for krb.h" >&5
20486: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20487: if test "${ac_cv_header_krb_h+set}" = set; then
1.27 millert 20488: echo $ECHO_N "(cached) $ECHO_C" >&6
20489: fi
1.37 millert 20490: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20491: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.27 millert 20492: else
20493: # Is the header compilable?
1.37 millert 20494: { echo "$as_me:$LINENO: checking krb.h usability" >&5
20495: echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
1.27 millert 20496: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20497: /* confdefs.h. */
20498: _ACEOF
20499: cat confdefs.h >>conftest.$ac_ext
20500: cat >>conftest.$ac_ext <<_ACEOF
20501: /* end confdefs.h. */
1.27 millert 20502: $ac_includes_default
1.37 millert 20503: #include <krb.h>
1.9 millert 20504: _ACEOF
1.25 millert 20505: rm -f conftest.$ac_objext
1.27 millert 20506: if { (ac_try="$ac_compile"
20507: case "(($ac_try" in
20508: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509: *) ac_try_echo=$ac_try;;
20510: esac
20511: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512: (eval "$ac_compile") 2>conftest.er1
1.9 millert 20513: ac_status=$?
1.25 millert 20514: grep -v '^ *+' conftest.er1 >conftest.err
20515: rm -f conftest.er1
20516: cat conftest.err >&5
1.16 millert 20517: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20518: (exit $ac_status); } && {
20519: test -z "$ac_c_werror_flag" ||
20520: test ! -s conftest.err
20521: } && test -s conftest.$ac_objext; then
20522: ac_header_compiler=yes
20523: else
20524: echo "$as_me: failed program was:" >&5
20525: sed 's/^/| /' conftest.$ac_ext >&5
20526:
20527: ac_header_compiler=no
20528: fi
1.16 millert 20529:
1.27 millert 20530: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20531: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20532: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.25 millert 20533:
1.27 millert 20534: # Is the header present?
1.37 millert 20535: { echo "$as_me:$LINENO: checking krb.h presence" >&5
20536: echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
1.9 millert 20537: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20538: /* confdefs.h. */
20539: _ACEOF
20540: cat confdefs.h >>conftest.$ac_ext
20541: cat >>conftest.$ac_ext <<_ACEOF
20542: /* end confdefs.h. */
1.37 millert 20543: #include <krb.h>
1.9 millert 20544: _ACEOF
1.27 millert 20545: if { (ac_try="$ac_cpp conftest.$ac_ext"
20546: case "(($ac_try" in
20547: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20548: *) ac_try_echo=$ac_try;;
20549: esac
20550: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20551: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 20552: ac_status=$?
1.25 millert 20553: grep -v '^ *+' conftest.er1 >conftest.err
20554: rm -f conftest.er1
20555: cat conftest.err >&5
1.16 millert 20556: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20557: (exit $ac_status); } >/dev/null && {
20558: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20559: test ! -s conftest.err
20560: }; then
20561: ac_header_preproc=yes
1.9 millert 20562: else
20563: echo "$as_me: failed program was:" >&5
1.16 millert 20564: sed 's/^/| /' conftest.$ac_ext >&5
20565:
1.27 millert 20566: ac_header_preproc=no
1.25 millert 20567: fi
20568:
1.27 millert 20569: rm -f conftest.err conftest.$ac_ext
20570: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20571: echo "${ECHO_T}$ac_header_preproc" >&6; }
20572:
20573: # So? What about this header?
20574: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20575: yes:no: )
1.37 millert 20576: { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20577: echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20578: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20579: echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
1.27 millert 20580: ac_header_preproc=yes
20581: ;;
20582: no:yes:* )
1.37 millert 20583: { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20584: echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20585: { echo "$as_me:$LINENO: WARNING: krb.h: check for missing prerequisite headers?" >&5
20586: echo "$as_me: WARNING: krb.h: check for missing prerequisite headers?" >&2;}
20587: { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20588: echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20589: { echo "$as_me:$LINENO: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&5
20590: echo "$as_me: WARNING: krb.h: section \"Present But Cannot Be Compiled\"" >&2;}
20591: { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20592: echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20593: { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20594: echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
1.25 millert 20595:
1.27 millert 20596: ;;
20597: esac
1.37 millert 20598: { echo "$as_me:$LINENO: checking for krb.h" >&5
20599: echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20600: if test "${ac_cv_header_krb_h+set}" = set; then
1.27 millert 20601: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 20602: else
1.37 millert 20603: ac_cv_header_krb_h=$ac_header_preproc
1.27 millert 20604: fi
1.37 millert 20605: { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20606: echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
1.25 millert 20607:
1.1 millert 20608: fi
1.37 millert 20609: if test $ac_cv_header_krb_h = yes; then
20610: found=yes
1.25 millert 20611: else
1.37 millert 20612: found=no
1.1 millert 20613: fi
20614:
20615:
1.37 millert 20616: fi
20617: if test X"$found" = X"no"; then
20618: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
20619: echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
20620: fi
1.27 millert 20621:
1.37 millert 20622: { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20623: echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20624: if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
1.9 millert 20625: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20626: else
1.37 millert 20627: ac_check_lib_save_LIBS=$LIBS
20628: LIBS="-ldes $LIBS"
20629: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20630: /* confdefs.h. */
20631: _ACEOF
20632: cat confdefs.h >>conftest.$ac_ext
20633: cat >>conftest.$ac_ext <<_ACEOF
20634: /* end confdefs.h. */
1.25 millert 20635:
1.27 millert 20636: /* Override any GCC internal prototype to avoid an error.
20637: Use char because int might match the return type of a GCC
20638: builtin and then its argument prototype would still apply. */
1.9 millert 20639: #ifdef __cplusplus
20640: extern "C"
20641: #endif
1.37 millert 20642: char des_cbc_encrypt ();
1.16 millert 20643: int
20644: main ()
20645: {
1.37 millert 20646: return des_cbc_encrypt ();
1.9 millert 20647: ;
20648: return 0;
20649: }
20650: _ACEOF
20651: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 20652: if { (ac_try="$ac_link"
20653: case "(($ac_try" in
20654: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20655: *) ac_try_echo=$ac_try;;
20656: esac
20657: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20658: (eval "$ac_link") 2>conftest.er1
1.9 millert 20659: ac_status=$?
1.25 millert 20660: grep -v '^ *+' conftest.er1 >conftest.err
20661: rm -f conftest.er1
20662: cat conftest.err >&5
1.16 millert 20663: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20664: (exit $ac_status); } && {
20665: test -z "$ac_c_werror_flag" ||
20666: test ! -s conftest.err
20667: } && test -s conftest$ac_exeext &&
20668: $as_test_x conftest$ac_exeext; then
1.37 millert 20669: ac_cv_lib_des_des_cbc_encrypt=yes
1.9 millert 20670: else
20671: echo "$as_me: failed program was:" >&5
1.16 millert 20672: sed 's/^/| /' conftest.$ac_ext >&5
20673:
1.37 millert 20674: ac_cv_lib_des_des_cbc_encrypt=no
1.25 millert 20675: fi
1.27 millert 20676:
20677: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20678: conftest$ac_exeext conftest.$ac_ext
1.37 millert 20679: LIBS=$ac_check_lib_save_LIBS
1.25 millert 20680: fi
1.37 millert 20681: { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20682: echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20683: if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20684: K4LIBS="-ldes"
1.27 millert 20685: else
1.25 millert 20686:
1.37 millert 20687: { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20688: echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20689: if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
1.9 millert 20690: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20691: else
1.9 millert 20692: ac_check_lib_save_LIBS=$LIBS
1.37 millert 20693: LIBS="-ldes425 $LIBS"
1.9 millert 20694: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20695: /* confdefs.h. */
20696: _ACEOF
20697: cat confdefs.h >>conftest.$ac_ext
20698: cat >>conftest.$ac_ext <<_ACEOF
20699: /* end confdefs.h. */
1.9 millert 20700:
1.27 millert 20701: /* Override any GCC internal prototype to avoid an error.
20702: Use char because int might match the return type of a GCC
20703: builtin and then its argument prototype would still apply. */
20704: #ifdef __cplusplus
20705: extern "C"
20706: #endif
1.37 millert 20707: char des_cbc_encrypt ();
1.9 millert 20708: int
20709: main ()
20710: {
1.37 millert 20711: return des_cbc_encrypt ();
1.9 millert 20712: ;
20713: return 0;
20714: }
20715: _ACEOF
20716: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 20717: if { (ac_try="$ac_link"
20718: case "(($ac_try" in
20719: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720: *) ac_try_echo=$ac_try;;
20721: esac
20722: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723: (eval "$ac_link") 2>conftest.er1
1.9 millert 20724: ac_status=$?
1.25 millert 20725: grep -v '^ *+' conftest.er1 >conftest.err
20726: rm -f conftest.er1
20727: cat conftest.err >&5
1.16 millert 20728: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20729: (exit $ac_status); } && {
20730: test -z "$ac_c_werror_flag" ||
20731: test ! -s conftest.err
20732: } && test -s conftest$ac_exeext &&
20733: $as_test_x conftest$ac_exeext; then
1.37 millert 20734: ac_cv_lib_des425_des_cbc_encrypt=yes
1.9 millert 20735: else
20736: echo "$as_me: failed program was:" >&5
1.16 millert 20737: sed 's/^/| /' conftest.$ac_ext >&5
20738:
1.37 millert 20739: ac_cv_lib_des425_des_cbc_encrypt=no
1.9 millert 20740: fi
1.27 millert 20741:
20742: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20743: conftest$ac_exeext conftest.$ac_ext
1.9 millert 20744: LIBS=$ac_check_lib_save_LIBS
20745: fi
1.37 millert 20746: { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20747: echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20748: if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20749: K4LIBS="-ldes425"
1.27 millert 20750: else
1.37 millert 20751: K4LIBS=""
1.27 millert 20752: fi
20753:
20754:
20755: fi
20756:
1.37 millert 20757: { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20758: echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20759: cat >conftest.$ac_ext <<_ACEOF
20760: /* confdefs.h. */
1.27 millert 20761: _ACEOF
1.37 millert 20762: cat confdefs.h >>conftest.$ac_ext
20763: cat >>conftest.$ac_ext <<_ACEOF
20764: /* end confdefs.h. */
1.27 millert 20765: #include <krb.h>
1.37 millert 20766: int
20767: main ()
20768: {
20769: const char *tmp = krb4_version;
20770: ;
20771: return 0;
20772: }
1.27 millert 20773: _ACEOF
1.37 millert 20774: rm -f conftest.$ac_objext
20775: if { (ac_try="$ac_compile"
1.27 millert 20776: case "(($ac_try" in
20777: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778: *) ac_try_echo=$ac_try;;
20779: esac
20780: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 20781: (eval "$ac_compile") 2>conftest.er1
1.27 millert 20782: ac_status=$?
20783: grep -v '^ *+' conftest.er1 >conftest.err
20784: rm -f conftest.er1
20785: cat conftest.err >&5
20786: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 20787: (exit $ac_status); } && {
20788: test -z "$ac_c_werror_flag" ||
1.27 millert 20789: test ! -s conftest.err
1.37 millert 20790: } && test -s conftest.$ac_objext; then
1.27 millert 20791:
1.37 millert 20792: { echo "$as_me:$LINENO: result: yes" >&5
20793: echo "${ECHO_T}yes" >&6; }
20794: K4LIBS="${K4LIBS} -lcom_err"
20795: { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20796: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20797: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9 millert 20798: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20799: else
1.37 millert 20800: ac_check_lib_save_LIBS=$LIBS
20801: LIBS="-lroken $LIBS"
1.9 millert 20802: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20803: /* confdefs.h. */
20804: _ACEOF
20805: cat confdefs.h >>conftest.$ac_ext
20806: cat >>conftest.$ac_ext <<_ACEOF
20807: /* end confdefs.h. */
1.37 millert 20808:
20809:
20810: int
20811: main ()
20812: {
20813: return main ();
20814: ;
20815: return 0;
20816: }
1.9 millert 20817: _ACEOF
1.37 millert 20818: rm -f conftest.$ac_objext conftest$ac_exeext
20819: if { (ac_try="$ac_link"
1.27 millert 20820: case "(($ac_try" in
20821: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20822: *) ac_try_echo=$ac_try;;
20823: esac
20824: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 20825: (eval "$ac_link") 2>conftest.er1
1.9 millert 20826: ac_status=$?
1.25 millert 20827: grep -v '^ *+' conftest.er1 >conftest.err
20828: rm -f conftest.er1
20829: cat conftest.err >&5
1.16 millert 20830: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20831: (exit $ac_status); } && {
20832: test -z "$ac_c_werror_flag" ||
20833: test ! -s conftest.err
1.37 millert 20834: } && test -s conftest$ac_exeext &&
20835: $as_test_x conftest$ac_exeext; then
20836: ac_cv_lib_roken_main=yes
20837: else
20838: echo "$as_me: failed program was:" >&5
20839: sed 's/^/| /' conftest.$ac_ext >&5
20840:
20841: ac_cv_lib_roken_main=no
20842: fi
20843:
20844: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20845: conftest$ac_exeext conftest.$ac_ext
20846: LIBS=$ac_check_lib_save_LIBS
20847: fi
20848: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20849: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20850: if test $ac_cv_lib_roken_main = yes; then
20851: K4LIBS="${K4LIBS} -lroken"
20852: fi
20853:
20854:
1.9 millert 20855: else
20856: echo "$as_me: failed program was:" >&5
1.16 millert 20857: sed 's/^/| /' conftest.$ac_ext >&5
20858:
1.37 millert 20859:
20860: { echo "$as_me:$LINENO: result: no" >&5
20861: echo "${ECHO_T}no" >&6; }
20862:
20863:
1.9 millert 20864: fi
1.27 millert 20865:
20866: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.37 millert 20867: as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20868: { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20869: echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20870: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20871: echo $ECHO_N "(cached) $ECHO_C" >&6
20872: else
20873: ac_check_lib_save_LIBS=$LIBS
20874: LIBS="-lkrb $K4LIBS $LIBS"
1.9 millert 20875: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20876: /* confdefs.h. */
20877: _ACEOF
20878: cat confdefs.h >>conftest.$ac_ext
20879: cat >>conftest.$ac_ext <<_ACEOF
20880: /* end confdefs.h. */
1.37 millert 20881:
20882:
20883: int
20884: main ()
20885: {
20886: return main ();
20887: ;
20888: return 0;
20889: }
1.9 millert 20890: _ACEOF
1.37 millert 20891: rm -f conftest.$ac_objext conftest$ac_exeext
20892: if { (ac_try="$ac_link"
1.27 millert 20893: case "(($ac_try" in
20894: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20895: *) ac_try_echo=$ac_try;;
20896: esac
20897: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 20898: (eval "$ac_link") 2>conftest.er1
1.9 millert 20899: ac_status=$?
1.25 millert 20900: grep -v '^ *+' conftest.er1 >conftest.err
20901: rm -f conftest.er1
20902: cat conftest.err >&5
1.16 millert 20903: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 20904: (exit $ac_status); } && {
20905: test -z "$ac_c_werror_flag" ||
1.27 millert 20906: test ! -s conftest.err
1.37 millert 20907: } && test -s conftest$ac_exeext &&
20908: $as_test_x conftest$ac_exeext; then
20909: eval "$as_ac_Lib=yes"
1.9 millert 20910: else
20911: echo "$as_me: failed program was:" >&5
1.25 millert 20912: sed 's/^/| /' conftest.$ac_ext >&5
20913:
1.37 millert 20914: eval "$as_ac_Lib=no"
1.25 millert 20915: fi
1.27 millert 20916:
1.37 millert 20917: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20918: conftest$ac_exeext conftest.$ac_ext
20919: LIBS=$ac_check_lib_save_LIBS
1.27 millert 20920: fi
1.37 millert 20921: ac_res=`eval echo '${'$as_ac_Lib'}'`
20922: { echo "$as_me:$LINENO: result: $ac_res" >&5
20923: echo "${ECHO_T}$ac_res" >&6; }
20924: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20925: K4LIBS="-lkrb $K4LIBS"
1.25 millert 20926: else
1.1 millert 20927:
1.37 millert 20928: as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20929: { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20930: echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20931: if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 20932: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 20933: else
1.27 millert 20934: ac_check_lib_save_LIBS=$LIBS
1.37 millert 20935: LIBS="-lkrb4 $K4LIBS $LIBS"
1.27 millert 20936: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 20937: /* confdefs.h. */
20938: _ACEOF
20939: cat confdefs.h >>conftest.$ac_ext
20940: cat >>conftest.$ac_ext <<_ACEOF
20941: /* end confdefs.h. */
1.25 millert 20942:
1.37 millert 20943:
1.16 millert 20944: int
20945: main ()
20946: {
1.37 millert 20947: return main ();
1.9 millert 20948: ;
20949: return 0;
20950: }
20951: _ACEOF
20952: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 20953: if { (ac_try="$ac_link"
20954: case "(($ac_try" in
20955: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956: *) ac_try_echo=$ac_try;;
20957: esac
20958: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959: (eval "$ac_link") 2>conftest.er1
1.9 millert 20960: ac_status=$?
1.25 millert 20961: grep -v '^ *+' conftest.er1 >conftest.err
20962: rm -f conftest.er1
20963: cat conftest.err >&5
1.16 millert 20964: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 20965: (exit $ac_status); } && {
20966: test -z "$ac_c_werror_flag" ||
20967: test ! -s conftest.err
20968: } && test -s conftest$ac_exeext &&
20969: $as_test_x conftest$ac_exeext; then
1.37 millert 20970: eval "$as_ac_Lib=yes"
1.9 millert 20971: else
20972: echo "$as_me: failed program was:" >&5
1.16 millert 20973: sed 's/^/| /' conftest.$ac_ext >&5
20974:
1.37 millert 20975: eval "$as_ac_Lib=no"
1.25 millert 20976: fi
1.27 millert 20977:
20978: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 20979: conftest$ac_exeext conftest.$ac_ext
1.27 millert 20980: LIBS=$ac_check_lib_save_LIBS
1.9 millert 20981: fi
1.37 millert 20982: ac_res=`eval echo '${'$as_ac_Lib'}'`
20983: { echo "$as_me:$LINENO: result: $ac_res" >&5
20984: echo "${ECHO_T}$ac_res" >&6; }
20985: if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20986: K4LIBS="-lkrb4 $K4LIBS"
1.27 millert 20987: else
1.37 millert 20988: K4LIBS="-lkrb $K4LIBS"
20989: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
20990: echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
1.25 millert 20991:
1.37 millert 20992: fi
20993:
20994:
20995: fi
20996:
20997: LDFLAGS="$O_LDFLAGS"
20998: SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20999: AUTH_OBJS="$AUTH_OBJS kerb4.o"
21000: fi
21001:
21002: if test ${with_kerb5-'no'} != "no"; then
21003: # Extract the first word of "krb5-config", so it can be a program name with args.
21004: set dummy krb5-config; ac_word=$2
21005: { echo "$as_me:$LINENO: checking for $ac_word" >&5
21006: echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21007: if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
1.9 millert 21008: echo $ECHO_N "(cached) $ECHO_C" >&6
1.6 millert 21009: else
1.37 millert 21010: if test -n "$KRB5CONFIG"; then
21011: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
21012: else
21013: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21014: for as_dir in $PATH
21015: do
21016: IFS=$as_save_IFS
21017: test -z "$as_dir" && as_dir=.
21018: for ac_exec_ext in '' $ac_executable_extensions; do
21019: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21020: ac_cv_prog_KRB5CONFIG="yes"
21021: echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21022: break 2
21023: fi
21024: done
21025: done
21026: IFS=$as_save_IFS
21027:
21028: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
21029: fi
21030: fi
21031: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
21032: if test -n "$KRB5CONFIG"; then
21033: { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
21034: echo "${ECHO_T}$KRB5CONFIG" >&6; }
21035: else
21036: { echo "$as_me:$LINENO: result: no" >&5
21037: echo "${ECHO_T}no" >&6; }
21038: fi
21039:
21040:
21041: if test -n "$KRB5CONFIG"; then
21042: cat >>confdefs.h <<\_ACEOF
21043: #define HAVE_KERB5 1
21044: _ACEOF
21045:
21046: AUTH_OBJS="$AUTH_OBJS kerb5.o"
21047: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
21048: SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
21049: { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21050: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21051: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21052: /* confdefs.h. */
21053: _ACEOF
21054: cat confdefs.h >>conftest.$ac_ext
21055: cat >>conftest.$ac_ext <<_ACEOF
21056: /* end confdefs.h. */
1.37 millert 21057: #include <krb5.h>
1.16 millert 21058: int
21059: main ()
21060: {
1.37 millert 21061: const char *tmp = heimdal_version;
1.9 millert 21062: ;
21063: return 0;
21064: }
21065: _ACEOF
1.37 millert 21066: rm -f conftest.$ac_objext
21067: if { (ac_try="$ac_compile"
1.27 millert 21068: case "(($ac_try" in
21069: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21070: *) ac_try_echo=$ac_try;;
21071: esac
21072: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 21073: (eval "$ac_compile") 2>conftest.er1
1.9 millert 21074: ac_status=$?
1.25 millert 21075: grep -v '^ *+' conftest.er1 >conftest.err
21076: rm -f conftest.er1
21077: cat conftest.err >&5
1.16 millert 21078: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21079: (exit $ac_status); } && {
21080: test -z "$ac_c_werror_flag" ||
21081: test ! -s conftest.err
1.37 millert 21082: } && test -s conftest.$ac_objext; then
21083:
21084: { echo "$as_me:$LINENO: result: yes" >&5
21085: echo "${ECHO_T}yes" >&6; }
21086: cat >>confdefs.h <<\_ACEOF
21087: #define HAVE_HEIMDAL 1
21088: _ACEOF
21089:
21090:
1.9 millert 21091: else
21092: echo "$as_me: failed program was:" >&5
1.16 millert 21093: sed 's/^/| /' conftest.$ac_ext >&5
21094:
1.37 millert 21095:
21096: { echo "$as_me:$LINENO: result: no" >&5
21097: echo "${ECHO_T}no" >&6; }
21098:
21099:
1.25 millert 21100: fi
1.27 millert 21101:
1.37 millert 21102: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103: fi
1.25 millert 21104: fi
1.37 millert 21105: if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21106: cat >>confdefs.h <<\_ACEOF
21107: #define HAVE_KERB5 1
21108: _ACEOF
21109:
21110: if test "$with_kerb5" = "yes"; then
21111: found=no
21112: O_CPPFLAGS="$CPPFLAGS"
21113: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21114: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21115: cat >conftest.$ac_ext <<_ACEOF
21116: #include <krb5.h>
21117: _ACEOF
21118: if { (ac_try="$ac_cpp conftest.$ac_ext"
21119: case "(($ac_try" in
21120: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121: *) ac_try_echo=$ac_try;;
21122: esac
21123: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21125: ac_status=$?
21126: grep -v '^ *+' conftest.er1 >conftest.err
21127: rm -f conftest.er1
21128: cat conftest.err >&5
21129: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21130: (exit $ac_status); } >/dev/null && {
21131: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21132: test ! -s conftest.err
21133: }; then
21134: found=yes; break
1.27 millert 21135: else
1.37 millert 21136: echo "$as_me: failed program was:" >&5
21137: sed 's/^/| /' conftest.$ac_ext >&5
21138:
21139:
1.9 millert 21140: fi
1.25 millert 21141:
1.37 millert 21142: rm -f conftest.err conftest.$ac_ext
21143: done
21144: if test X"$found" = X"no"; then
21145: CPPFLAGS="$O_CPPFLAGS"
21146: { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
21147: echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
21148: fi
21149: else
21150:
21151: if test X"$with_rpath" = X"yes"; then
21152: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21153: else
21154: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21155: fi
21156: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21157: blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21158: fi
1.27 millert 21159:
1.37 millert 21160: CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21161: fi
1.25 millert 21162:
1.37 millert 21163: { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21164: echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
1.27 millert 21165: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21166: /* confdefs.h. */
21167: _ACEOF
21168: cat confdefs.h >>conftest.$ac_ext
21169: cat >>conftest.$ac_ext <<_ACEOF
21170: /* end confdefs.h. */
1.37 millert 21171: #include <krb5.h>
1.9 millert 21172: int
21173: main ()
21174: {
1.37 millert 21175: const char *tmp = heimdal_version;
1.9 millert 21176: ;
21177: return 0;
21178: }
21179: _ACEOF
1.27 millert 21180: rm -f conftest.$ac_objext
21181: if { (ac_try="$ac_compile"
21182: case "(($ac_try" in
21183: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21184: *) ac_try_echo=$ac_try;;
21185: esac
21186: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21187: (eval "$ac_compile") 2>conftest.er1
1.9 millert 21188: ac_status=$?
1.25 millert 21189: grep -v '^ *+' conftest.er1 >conftest.err
21190: rm -f conftest.er1
21191: cat conftest.err >&5
1.16 millert 21192: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21193: (exit $ac_status); } && {
21194: test -z "$ac_c_werror_flag" ||
21195: test ! -s conftest.err
21196: } && test -s conftest.$ac_objext; then
1.16 millert 21197:
1.27 millert 21198: { echo "$as_me:$LINENO: result: yes" >&5
21199: echo "${ECHO_T}yes" >&6; }
1.37 millert 21200: cat >>confdefs.h <<\_ACEOF
21201: #define HAVE_HEIMDAL 1
21202: _ACEOF
21203:
21204: # XXX - need to check whether -lcrypo is needed!
21205: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
1.27 millert 21206: { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21207: echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21208: if test "${ac_cv_lib_roken_main+set}" = set; then
1.9 millert 21209: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21210: else
1.9 millert 21211: ac_check_lib_save_LIBS=$LIBS
1.27 millert 21212: LIBS="-lroken $LIBS"
1.9 millert 21213: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21214: /* confdefs.h. */
21215: _ACEOF
21216: cat confdefs.h >>conftest.$ac_ext
21217: cat >>conftest.$ac_ext <<_ACEOF
21218: /* end confdefs.h. */
1.9 millert 21219:
1.27 millert 21220:
1.9 millert 21221: int
21222: main ()
21223: {
1.27 millert 21224: return main ();
1.9 millert 21225: ;
21226: return 0;
21227: }
21228: _ACEOF
21229: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 21230: if { (ac_try="$ac_link"
21231: case "(($ac_try" in
21232: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233: *) ac_try_echo=$ac_try;;
21234: esac
21235: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236: (eval "$ac_link") 2>conftest.er1
1.9 millert 21237: ac_status=$?
1.25 millert 21238: grep -v '^ *+' conftest.er1 >conftest.err
21239: rm -f conftest.er1
21240: cat conftest.err >&5
1.16 millert 21241: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21242: (exit $ac_status); } && {
21243: test -z "$ac_c_werror_flag" ||
21244: test ! -s conftest.err
21245: } && test -s conftest$ac_exeext &&
21246: $as_test_x conftest$ac_exeext; then
21247: ac_cv_lib_roken_main=yes
1.9 millert 21248: else
21249: echo "$as_me: failed program was:" >&5
1.16 millert 21250: sed 's/^/| /' conftest.$ac_ext >&5
21251:
1.27 millert 21252: ac_cv_lib_roken_main=no
1.9 millert 21253: fi
1.27 millert 21254:
21255: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 21256: conftest$ac_exeext conftest.$ac_ext
1.9 millert 21257: LIBS=$ac_check_lib_save_LIBS
21258: fi
1.27 millert 21259: { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21260: echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21261: if test $ac_cv_lib_roken_main = yes; then
1.37 millert 21262: SUDO_LIBS="${SUDO_LIBS} -lroken"
1.1 millert 21263: fi
21264:
1.27 millert 21265:
21266: else
21267: echo "$as_me: failed program was:" >&5
21268: sed 's/^/| /' conftest.$ac_ext >&5
21269:
21270:
21271: { echo "$as_me:$LINENO: result: no" >&5
21272: echo "${ECHO_T}no" >&6; }
1.37 millert 21273: SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21274: { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21275: echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21276: if test "${ac_cv_lib_krb5support_main+set}" = set; then
1.9 millert 21277: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21278: else
1.27 millert 21279: ac_check_lib_save_LIBS=$LIBS
1.37 millert 21280: LIBS="-lkrb5support $LIBS"
1.27 millert 21281: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21282: /* confdefs.h. */
21283: _ACEOF
21284: cat confdefs.h >>conftest.$ac_ext
21285: cat >>conftest.$ac_ext <<_ACEOF
21286: /* end confdefs.h. */
1.25 millert 21287:
1.1 millert 21288:
1.16 millert 21289: int
21290: main ()
21291: {
1.27 millert 21292: return main ();
1.9 millert 21293: ;
21294: return 0;
21295: }
21296: _ACEOF
21297: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 21298: if { (ac_try="$ac_link"
21299: case "(($ac_try" in
21300: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301: *) ac_try_echo=$ac_try;;
21302: esac
21303: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304: (eval "$ac_link") 2>conftest.er1
1.9 millert 21305: ac_status=$?
1.25 millert 21306: grep -v '^ *+' conftest.er1 >conftest.err
21307: rm -f conftest.er1
21308: cat conftest.err >&5
1.16 millert 21309: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21310: (exit $ac_status); } && {
21311: test -z "$ac_c_werror_flag" ||
21312: test ! -s conftest.err
21313: } && test -s conftest$ac_exeext &&
21314: $as_test_x conftest$ac_exeext; then
1.37 millert 21315: ac_cv_lib_krb5support_main=yes
1.9 millert 21316: else
21317: echo "$as_me: failed program was:" >&5
1.16 millert 21318: sed 's/^/| /' conftest.$ac_ext >&5
21319:
1.37 millert 21320: ac_cv_lib_krb5support_main=no
1.9 millert 21321: fi
1.27 millert 21322:
21323: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 21324: conftest$ac_exeext conftest.$ac_ext
1.27 millert 21325: LIBS=$ac_check_lib_save_LIBS
1.9 millert 21326: fi
1.37 millert 21327: { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21328: echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21329: if test $ac_cv_lib_krb5support_main = yes; then
21330: SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21331: fi
21332:
21333:
21334: fi
21335:
21336: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21337: AUTH_OBJS="$AUTH_OBJS kerb5.o"
21338: _LIBS="$LIBS"
21339: LIBS="${LIBS} ${SUDO_LIBS}"
21340:
21341:
21342:
21343: for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
21344: do
21345: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21346: { echo "$as_me:$LINENO: checking for $ac_func" >&5
21347: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21348: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.9 millert 21349: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21350: else
1.37 millert 21351: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21352: /* confdefs.h. */
21353: _ACEOF
21354: cat confdefs.h >>conftest.$ac_ext
21355: cat >>conftest.$ac_ext <<_ACEOF
21356: /* end confdefs.h. */
1.37 millert 21357: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21358: For example, HP-UX 11i <limits.h> declares gettimeofday. */
21359: #define $ac_func innocuous_$ac_func
21360:
21361: /* System header to define __stub macros and hopefully few prototypes,
21362: which can conflict with char $ac_func (); below.
21363: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21364: <limits.h> exists even on freestanding compilers. */
21365:
21366: #ifdef __STDC__
21367: # include <limits.h>
21368: #else
21369: # include <assert.h>
21370: #endif
1.9 millert 21371:
1.37 millert 21372: #undef $ac_func
21373:
21374: /* Override any GCC internal prototype to avoid an error.
21375: Use char because int might match the return type of a GCC
21376: builtin and then its argument prototype would still apply. */
21377: #ifdef __cplusplus
21378: extern "C"
21379: #endif
21380: char $ac_func ();
21381: /* The GNU C library defines this for functions which it implements
21382: to always fail with ENOSYS. Some functions are actually named
21383: something starting with __ and the normal name is an alias. */
21384: #if defined __stub_$ac_func || defined __stub___$ac_func
21385: choke me
21386: #endif
1.27 millert 21387:
1.9 millert 21388: int
21389: main ()
21390: {
1.37 millert 21391: return $ac_func ();
1.9 millert 21392: ;
21393: return 0;
21394: }
21395: _ACEOF
21396: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 21397: if { (ac_try="$ac_link"
21398: case "(($ac_try" in
21399: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400: *) ac_try_echo=$ac_try;;
21401: esac
21402: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403: (eval "$ac_link") 2>conftest.er1
1.9 millert 21404: ac_status=$?
1.25 millert 21405: grep -v '^ *+' conftest.er1 >conftest.err
21406: rm -f conftest.er1
21407: cat conftest.err >&5
1.16 millert 21408: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21409: (exit $ac_status); } && {
21410: test -z "$ac_c_werror_flag" ||
21411: test ! -s conftest.err
21412: } && test -s conftest$ac_exeext &&
21413: $as_test_x conftest$ac_exeext; then
1.37 millert 21414: eval "$as_ac_var=yes"
1.9 millert 21415: else
21416: echo "$as_me: failed program was:" >&5
1.16 millert 21417: sed 's/^/| /' conftest.$ac_ext >&5
21418:
1.37 millert 21419: eval "$as_ac_var=no"
1.9 millert 21420: fi
1.27 millert 21421:
21422: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 21423: conftest$ac_exeext conftest.$ac_ext
1.9 millert 21424: fi
1.37 millert 21425: ac_res=`eval echo '${'$as_ac_var'}'`
1.27 millert 21426: { echo "$as_me:$LINENO: result: $ac_res" >&5
21427: echo "${ECHO_T}$ac_res" >&6; }
1.37 millert 21428: if test `eval echo '${'$as_ac_var'}'` = yes; then
21429: cat >>confdefs.h <<_ACEOF
21430: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21431: _ACEOF
1.27 millert 21432:
21433: fi
1.37 millert 21434: done
1.27 millert 21435:
1.37 millert 21436: { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
21437: echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
21438: if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
1.9 millert 21439: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21440: else
1.27 millert 21441:
1.37 millert 21442: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 21443: /* confdefs.h. */
21444: _ACEOF
21445: cat confdefs.h >>conftest.$ac_ext
21446: cat >>conftest.$ac_ext <<_ACEOF
21447: /* end confdefs.h. */
1.27 millert 21448: #include <krb5.h>
1.9 millert 21449: int
21450: main ()
21451: {
1.37 millert 21452:
21453: krb5_context context = NULL;
21454: krb5_get_init_creds_opt *opts = NULL;
21455: krb5_get_init_creds_opt_free(context, opts);
21456:
1.9 millert 21457: ;
21458: return 0;
21459: }
21460: _ACEOF
1.27 millert 21461: rm -f conftest.$ac_objext
21462: if { (ac_try="$ac_compile"
21463: case "(($ac_try" in
21464: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465: *) ac_try_echo=$ac_try;;
21466: esac
21467: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21468: (eval "$ac_compile") 2>conftest.er1
1.9 millert 21469: ac_status=$?
1.25 millert 21470: grep -v '^ *+' conftest.er1 >conftest.err
21471: rm -f conftest.er1
21472: cat conftest.err >&5
1.16 millert 21473: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21474: (exit $ac_status); } && {
21475: test -z "$ac_c_werror_flag" ||
21476: test ! -s conftest.err
21477: } && test -s conftest.$ac_objext; then
1.37 millert 21478: sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
1.27 millert 21479: else
21480: echo "$as_me: failed program was:" >&5
21481: sed 's/^/| /' conftest.$ac_ext >&5
21482:
1.37 millert 21483: sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21484:
21485: fi
1.27 millert 21486:
1.37 millert 21487: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.27 millert 21488:
21489:
21490: fi
1.37 millert 21491: { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21492: echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21493: if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21494: cat >>confdefs.h <<\_ACEOF
21495: #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21496: _ACEOF
1.27 millert 21497:
21498: fi
1.37 millert 21499: LIBS="$_LIBS"
1.27 millert 21500: fi
21501:
1.37 millert 21502: if test ${with_AFS-'no'} = "yes"; then
21503:
21504: # looks like the "standard" place for AFS libs is /usr/afsws/lib
21505: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21506: for i in $AFSLIBDIRS; do
21507: if test -d ${i}; then
21508:
21509: if test X"$with_rpath" = X"yes"; then
21510: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21511: else
21512: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21513: fi
21514: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21515: blibpath_add="${blibpath_add}:$i"
21516: fi
21517:
21518: FOUND_AFSLIBDIR=true
21519: fi
21520: done
21521: if test -z "$FOUND_AFSLIBDIR"; then
21522: { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
21523: echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
21524: fi
21525:
21526: # Order is important here. Note that we build AFS_LIBS from right to left
21527: # since AFS_LIBS may be initialized with BSD compat libs that must go last
21528: AFS_LIBS="-laudit ${AFS_LIBS}"
21529: for i in $AFSLIBDIRS; do
21530: if test -f ${i}/util.a; then
21531: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21532: FOUND_UTIL_A=true
21533: break;
21534: fi
21535: done
21536: if test -z "$FOUND_UTIL_A"; then
21537: AFS_LIBS="-lutil ${AFS_LIBS}"
21538: fi
21539: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21540:
21541: # AFS includes may live in /usr/include on some machines...
21542: for i in /usr/afsws/include; do
21543: if test -d ${i}; then
21544: CPPFLAGS="${CPPFLAGS} -I${i}"
21545: FOUND_AFSINCDIR=true
21546: fi
21547: done
21548:
21549: if test -z "$FOUND_AFSLIBDIR"; then
21550: { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
21551: echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
21552: fi
1.16 millert 21553:
1.37 millert 21554: AUTH_OBJS="$AUTH_OBJS afs.o"
21555: fi
1.27 millert 21556:
1.37 millert 21557: if test ${with_DCE-'no'} = "yes"; then
21558: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21559: SUDO_LIBS="${SUDO_LIBS} -ldce"
21560: AUTH_OBJS="$AUTH_OBJS dce.o"
1.9 millert 21561: fi
1.27 millert 21562:
1.37 millert 21563: if test ${with_skey-'no'} = "yes"; then
21564: O_LDFLAGS="$LDFLAGS"
21565: if test "$with_skey" != "yes"; then
21566: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21567:
21568: if test X"$with_rpath" = X"yes"; then
21569: LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27 millert 21570: else
1.37 millert 21571: LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21572: fi
21573: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21574: blibpath_add="${blibpath_add}:${with_skey}/lib"
21575: fi
21576:
1.27 millert 21577:
21578: if test X"$with_rpath" = X"yes"; then
1.37 millert 21579: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
1.27 millert 21580: else
1.37 millert 21581: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
1.27 millert 21582: fi
21583: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37 millert 21584: blibpath_add="${blibpath_add}:${with_skey}/lib"
1.27 millert 21585: fi
21586:
1.37 millert 21587: cat >conftest.$ac_ext <<_ACEOF
21588: #include <skey.h>
1.27 millert 21589: _ACEOF
1.37 millert 21590: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27 millert 21591: case "(($ac_try" in
21592: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21593: *) ac_try_echo=$ac_try;;
21594: esac
21595: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 21596: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27 millert 21597: ac_status=$?
21598: grep -v '^ *+' conftest.er1 >conftest.err
21599: rm -f conftest.er1
21600: cat conftest.err >&5
21601: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 21602: (exit $ac_status); } >/dev/null && {
21603: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27 millert 21604: test ! -s conftest.err
1.37 millert 21605: }; then
21606: found=yes
1.1 millert 21607: else
1.37 millert 21608: echo "$as_me: failed program was:" >&5
21609: sed 's/^/| /' conftest.$ac_ext >&5
1.9 millert 21610:
1.37 millert 21611: found=no
21612: fi
1.27 millert 21613:
1.37 millert 21614: rm -f conftest.err conftest.$ac_ext
21615: else
21616: found=no
21617: O_CPPFLAGS="$CPPFLAGS"
21618: for dir in "" "/usr/local" "/usr/contrib"; do
21619: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21620: cat >conftest.$ac_ext <<_ACEOF
21621: #include <skey.h>
1.25 millert 21622: _ACEOF
1.37 millert 21623: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27 millert 21624: case "(($ac_try" in
21625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626: *) ac_try_echo=$ac_try;;
21627: esac
21628: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 21629: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.25 millert 21630: ac_status=$?
21631: grep -v '^ *+' conftest.er1 >conftest.err
21632: rm -f conftest.er1
21633: cat conftest.err >&5
21634: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 21635: (exit $ac_status); } >/dev/null && {
21636: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27 millert 21637: test ! -s conftest.err
1.37 millert 21638: }; then
21639: found=yes; break
1.25 millert 21640: else
21641: echo "$as_me: failed program was:" >&5
21642: sed 's/^/| /' conftest.$ac_ext >&5
21643:
1.37 millert 21644:
1.25 millert 21645: fi
1.27 millert 21646:
1.37 millert 21647: rm -f conftest.err conftest.$ac_ext
21648: done
21649: if test "$found" = "no" -o -z "$dir"; then
21650: CPPFLAGS="$O_CPPFLAGS"
21651: else
1.25 millert 21652:
1.37 millert 21653: if test X"$with_rpath" = X"yes"; then
21654: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21655: else
21656: LDFLAGS="${LDFLAGS} -L${dir}/lib"
21657: fi
21658: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21659: blibpath_add="${blibpath_add}:${dir}/lib"
21660: fi
1.25 millert 21661:
1.27 millert 21662:
1.37 millert 21663: if test X"$with_rpath" = X"yes"; then
21664: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21665: else
21666: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21667: fi
21668: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21669: blibpath_add="${blibpath_add}:${dir}/lib"
21670: fi
1.27 millert 21671:
1.37 millert 21672: fi
21673: fi
21674: if test "$found" = "no"; then
21675: { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
21676: echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
21677: fi
21678: { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21679: echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21680: if test "${ac_cv_lib_skey_main+set}" = set; then
1.33 millert 21681: echo $ECHO_N "(cached) $ECHO_C" >&6
21682: else
21683: ac_check_lib_save_LIBS=$LIBS
1.37 millert 21684: LIBS="-lskey $LIBS"
1.33 millert 21685: cat >conftest.$ac_ext <<_ACEOF
21686: /* confdefs.h. */
21687: _ACEOF
21688: cat confdefs.h >>conftest.$ac_ext
21689: cat >>conftest.$ac_ext <<_ACEOF
21690: /* end confdefs.h. */
21691:
21692:
21693: int
21694: main ()
21695: {
21696: return main ();
21697: ;
21698: return 0;
21699: }
21700: _ACEOF
21701: rm -f conftest.$ac_objext conftest$ac_exeext
21702: if { (ac_try="$ac_link"
21703: case "(($ac_try" in
21704: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705: *) ac_try_echo=$ac_try;;
21706: esac
21707: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21708: (eval "$ac_link") 2>conftest.er1
21709: ac_status=$?
21710: grep -v '^ *+' conftest.er1 >conftest.err
21711: rm -f conftest.er1
21712: cat conftest.err >&5
21713: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714: (exit $ac_status); } && {
21715: test -z "$ac_c_werror_flag" ||
21716: test ! -s conftest.err
21717: } && test -s conftest$ac_exeext &&
21718: $as_test_x conftest$ac_exeext; then
1.37 millert 21719: ac_cv_lib_skey_main=yes
1.33 millert 21720: else
21721: echo "$as_me: failed program was:" >&5
21722: sed 's/^/| /' conftest.$ac_ext >&5
21723:
1.37 millert 21724: ac_cv_lib_skey_main=no
1.33 millert 21725: fi
21726:
21727: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21728: conftest$ac_exeext conftest.$ac_ext
21729: LIBS=$ac_check_lib_save_LIBS
21730: fi
1.37 millert 21731: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21732: echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21733: if test $ac_cv_lib_skey_main = yes; then
21734: found=yes
21735: else
21736: { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
21737: echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
1.33 millert 21738: fi
1.25 millert 21739:
1.37 millert 21740: { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21741: echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21742: if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
1.25 millert 21743: echo $ECHO_N "(cached) $ECHO_C" >&6
21744: else
1.37 millert 21745: ac_check_lib_save_LIBS=$LIBS
21746: LIBS="-lskey $LIBS"
21747: cat >conftest.$ac_ext <<_ACEOF
1.25 millert 21748: /* confdefs.h. */
21749: _ACEOF
21750: cat confdefs.h >>conftest.$ac_ext
21751: cat >>conftest.$ac_ext <<_ACEOF
21752: /* end confdefs.h. */
21753:
1.27 millert 21754: /* Override any GCC internal prototype to avoid an error.
21755: Use char because int might match the return type of a GCC
21756: builtin and then its argument prototype would still apply. */
1.25 millert 21757: #ifdef __cplusplus
21758: extern "C"
21759: #endif
1.37 millert 21760: char skeyaccess ();
1.9 millert 21761: int
21762: main ()
21763: {
1.37 millert 21764: return skeyaccess ();
1.9 millert 21765: ;
21766: return 0;
21767: }
21768: _ACEOF
21769: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 21770: if { (ac_try="$ac_link"
21771: case "(($ac_try" in
21772: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21773: *) ac_try_echo=$ac_try;;
21774: esac
21775: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21776: (eval "$ac_link") 2>conftest.er1
1.9 millert 21777: ac_status=$?
1.25 millert 21778: grep -v '^ *+' conftest.er1 >conftest.err
21779: rm -f conftest.er1
21780: cat conftest.err >&5
1.16 millert 21781: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21782: (exit $ac_status); } && {
21783: test -z "$ac_c_werror_flag" ||
21784: test ! -s conftest.err
21785: } && test -s conftest$ac_exeext &&
21786: $as_test_x conftest$ac_exeext; then
1.37 millert 21787: ac_cv_lib_skey_skeyaccess=yes
1.9 millert 21788: else
21789: echo "$as_me: failed program was:" >&5
1.16 millert 21790: sed 's/^/| /' conftest.$ac_ext >&5
21791:
1.37 millert 21792: ac_cv_lib_skey_skeyaccess=no
1.1 millert 21793: fi
21794:
1.37 millert 21795: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21796: conftest$ac_exeext conftest.$ac_ext
21797: LIBS=$ac_check_lib_save_LIBS
21798: fi
21799: { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21800: echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21801: if test $ac_cv_lib_skey_skeyaccess = yes; then
21802: cat >>confdefs.h <<\_ACEOF
21803: #define HAVE_SKEYACCESS 1
21804: _ACEOF
1.27 millert 21805:
1.1 millert 21806: fi
21807:
1.37 millert 21808: LDFLAGS="$O_LDFLAGS"
21809: SUDO_LIBS="${SUDO_LIBS} -lskey"
21810: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
1.1 millert 21811: fi
21812:
1.37 millert 21813: if test ${with_opie-'no'} = "yes"; then
1.25 millert 21814: O_LDFLAGS="$LDFLAGS"
1.37 millert 21815: if test "$with_opie" != "yes"; then
21816: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
1.25 millert 21817:
21818: if test X"$with_rpath" = X"yes"; then
1.37 millert 21819: LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25 millert 21820: else
1.37 millert 21821: LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
1.25 millert 21822: fi
21823: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
1.37 millert 21824: blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25 millert 21825: fi
21826:
21827:
21828: if test X"$with_rpath" = X"yes"; then
1.37 millert 21829: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
1.25 millert 21830: else
1.37 millert 21831: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
1.25 millert 21832: fi
21833: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
1.37 millert 21834: blibpath_add="${blibpath_add}:${with_opie}/lib"
1.25 millert 21835: fi
21836:
21837: cat >conftest.$ac_ext <<_ACEOF
1.37 millert 21838: #include <opie.h>
1.16 millert 21839: _ACEOF
1.27 millert 21840: if { (ac_try="$ac_cpp conftest.$ac_ext"
21841: case "(($ac_try" in
21842: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843: *) ac_try_echo=$ac_try;;
21844: esac
21845: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 21847: ac_status=$?
1.25 millert 21848: grep -v '^ *+' conftest.er1 >conftest.err
21849: rm -f conftest.er1
21850: cat conftest.err >&5
1.16 millert 21851: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21852: (exit $ac_status); } >/dev/null && {
21853: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21854: test ! -s conftest.err
21855: }; then
1.25 millert 21856: found=yes
21857: else
21858: echo "$as_me: failed program was:" >&5
21859: sed 's/^/| /' conftest.$ac_ext >&5
21860:
21861: found=no
21862: fi
1.27 millert 21863:
1.25 millert 21864: rm -f conftest.err conftest.$ac_ext
21865: else
21866: found=no
21867: O_CPPFLAGS="$CPPFLAGS"
21868: for dir in "" "/usr/local" "/usr/contrib"; do
21869: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21870: cat >conftest.$ac_ext <<_ACEOF
1.37 millert 21871: #include <opie.h>
1.25 millert 21872: _ACEOF
1.27 millert 21873: if { (ac_try="$ac_cpp conftest.$ac_ext"
21874: case "(($ac_try" in
21875: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876: *) ac_try_echo=$ac_try;;
21877: esac
21878: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.9 millert 21880: ac_status=$?
1.25 millert 21881: grep -v '^ *+' conftest.er1 >conftest.err
21882: rm -f conftest.er1
21883: cat conftest.err >&5
1.16 millert 21884: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 21885: (exit $ac_status); } >/dev/null && {
21886: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21887: test ! -s conftest.err
21888: }; then
1.25 millert 21889: found=yes; break
1.9 millert 21890: else
21891: echo "$as_me: failed program was:" >&5
1.16 millert 21892: sed 's/^/| /' conftest.$ac_ext >&5
21893:
1.25 millert 21894:
1.9 millert 21895: fi
1.27 millert 21896:
1.25 millert 21897: rm -f conftest.err conftest.$ac_ext
21898: done
21899: if test "$found" = "no" -o -z "$dir"; then
21900: CPPFLAGS="$O_CPPFLAGS"
21901: else
21902:
21903: if test X"$with_rpath" = X"yes"; then
21904: LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21905: else
21906: LDFLAGS="${LDFLAGS} -L${dir}/lib"
21907: fi
21908: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21909: blibpath_add="${blibpath_add}:${dir}/lib"
21910: fi
1.1 millert 21911:
21912:
1.25 millert 21913: if test X"$with_rpath" = X"yes"; then
21914: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21915: else
21916: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21917: fi
21918: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21919: blibpath_add="${blibpath_add}:${dir}/lib"
21920: fi
1.1 millert 21921:
1.25 millert 21922: fi
21923: fi
21924: if test "$found" = "no"; then
1.37 millert 21925: { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
21926: echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
1.25 millert 21927: fi
1.37 millert 21928: { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21929: echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21930: if test "${ac_cv_lib_opie_main+set}" = set; then
1.9 millert 21931: echo $ECHO_N "(cached) $ECHO_C" >&6
1.1 millert 21932: else
1.25 millert 21933: ac_check_lib_save_LIBS=$LIBS
1.37 millert 21934: LIBS="-lopie $LIBS"
21935: cat >conftest.$ac_ext <<_ACEOF
21936: /* confdefs.h. */
21937: _ACEOF
21938: cat confdefs.h >>conftest.$ac_ext
21939: cat >>conftest.$ac_ext <<_ACEOF
21940: /* end confdefs.h. */
21941:
21942:
21943: int
21944: main ()
21945: {
21946: return main ();
21947: ;
21948: return 0;
21949: }
21950: _ACEOF
21951: rm -f conftest.$ac_objext conftest$ac_exeext
21952: if { (ac_try="$ac_link"
21953: case "(($ac_try" in
21954: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955: *) ac_try_echo=$ac_try;;
21956: esac
21957: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958: (eval "$ac_link") 2>conftest.er1
21959: ac_status=$?
21960: grep -v '^ *+' conftest.er1 >conftest.err
21961: rm -f conftest.er1
21962: cat conftest.err >&5
21963: echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964: (exit $ac_status); } && {
21965: test -z "$ac_c_werror_flag" ||
21966: test ! -s conftest.err
21967: } && test -s conftest$ac_exeext &&
21968: $as_test_x conftest$ac_exeext; then
21969: ac_cv_lib_opie_main=yes
21970: else
21971: echo "$as_me: failed program was:" >&5
21972: sed 's/^/| /' conftest.$ac_ext >&5
21973:
21974: ac_cv_lib_opie_main=no
21975: fi
21976:
21977: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21978: conftest$ac_exeext conftest.$ac_ext
21979: LIBS=$ac_check_lib_save_LIBS
21980: fi
21981: { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21982: echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21983: if test $ac_cv_lib_opie_main = yes; then
21984: found=yes
21985: else
21986: { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
21987: echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
21988: fi
21989:
21990: LDFLAGS="$O_LDFLAGS"
21991: SUDO_LIBS="${SUDO_LIBS} -lopie"
21992: AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21993: fi
21994:
21995: if test ${with_passwd-'no'} != "no"; then
21996: if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21997: { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21998: echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21999: if test "${ac_cv_search_crypt+set}" = set; then
22000: echo $ECHO_N "(cached) $ECHO_C" >&6
22001: else
22002: ac_func_search_save_LIBS=$LIBS
1.25 millert 22003: cat >conftest.$ac_ext <<_ACEOF
1.16 millert 22004: /* confdefs.h. */
1.37 millert 22005: _ACEOF
22006: cat confdefs.h >>conftest.$ac_ext
22007: cat >>conftest.$ac_ext <<_ACEOF
22008: /* end confdefs.h. */
22009:
22010: /* Override any GCC internal prototype to avoid an error.
22011: Use char because int might match the return type of a GCC
22012: builtin and then its argument prototype would still apply. */
22013: #ifdef __cplusplus
22014: extern "C"
22015: #endif
22016: char crypt ();
22017: int
22018: main ()
22019: {
22020: return crypt ();
22021: ;
22022: return 0;
22023: }
22024: _ACEOF
22025: for ac_lib in '' crypt crypt_d ufc; do
22026: if test -z "$ac_lib"; then
22027: ac_res="none required"
22028: else
22029: ac_res=-l$ac_lib
22030: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22031: fi
22032: rm -f conftest.$ac_objext conftest$ac_exeext
22033: if { (ac_try="$ac_link"
22034: case "(($ac_try" in
22035: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036: *) ac_try_echo=$ac_try;;
22037: esac
22038: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039: (eval "$ac_link") 2>conftest.er1
22040: ac_status=$?
22041: grep -v '^ *+' conftest.er1 >conftest.err
22042: rm -f conftest.er1
22043: cat conftest.err >&5
22044: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045: (exit $ac_status); } && {
22046: test -z "$ac_c_werror_flag" ||
22047: test ! -s conftest.err
22048: } && test -s conftest$ac_exeext &&
22049: $as_test_x conftest$ac_exeext; then
22050: ac_cv_search_crypt=$ac_res
22051: else
22052: echo "$as_me: failed program was:" >&5
22053: sed 's/^/| /' conftest.$ac_ext >&5
22054:
22055:
22056: fi
22057:
22058: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059: conftest$ac_exeext
22060: if test "${ac_cv_search_crypt+set}" = set; then
22061: break
22062: fi
22063: done
22064: if test "${ac_cv_search_crypt+set}" = set; then
22065: :
22066: else
22067: ac_cv_search_crypt=no
22068: fi
22069: rm conftest.$ac_ext
22070: LIBS=$ac_func_search_save_LIBS
22071: fi
22072: { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
22073: echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
22074: ac_res=$ac_cv_search_crypt
22075: if test "$ac_res" != no; then
22076: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22077: test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22078: fi
22079:
22080: fi
22081:
22082: if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
22083: _LIBS="$LIBS"
22084: LIBS="$LIBS $shadow_libs"
22085: found=no
22086:
22087: for ac_func in $shadow_funcs
22088: do
22089: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22090: { echo "$as_me:$LINENO: checking for $ac_func" >&5
22091: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22092: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22093: echo $ECHO_N "(cached) $ECHO_C" >&6
22094: else
22095: cat >conftest.$ac_ext <<_ACEOF
22096: /* confdefs.h. */
22097: _ACEOF
22098: cat confdefs.h >>conftest.$ac_ext
22099: cat >>conftest.$ac_ext <<_ACEOF
22100: /* end confdefs.h. */
22101: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22102: For example, HP-UX 11i <limits.h> declares gettimeofday. */
22103: #define $ac_func innocuous_$ac_func
22104:
22105: /* System header to define __stub macros and hopefully few prototypes,
22106: which can conflict with char $ac_func (); below.
22107: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22108: <limits.h> exists even on freestanding compilers. */
22109:
22110: #ifdef __STDC__
22111: # include <limits.h>
22112: #else
22113: # include <assert.h>
22114: #endif
22115:
22116: #undef $ac_func
22117:
22118: /* Override any GCC internal prototype to avoid an error.
22119: Use char because int might match the return type of a GCC
22120: builtin and then its argument prototype would still apply. */
22121: #ifdef __cplusplus
22122: extern "C"
22123: #endif
22124: char $ac_func ();
22125: /* The GNU C library defines this for functions which it implements
22126: to always fail with ENOSYS. Some functions are actually named
22127: something starting with __ and the normal name is an alias. */
22128: #if defined __stub_$ac_func || defined __stub___$ac_func
22129: choke me
22130: #endif
1.1 millert 22131:
1.9 millert 22132: int
22133: main ()
22134: {
1.37 millert 22135: return $ac_func ();
1.9 millert 22136: ;
22137: return 0;
22138: }
22139: _ACEOF
22140: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 22141: if { (ac_try="$ac_link"
22142: case "(($ac_try" in
22143: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144: *) ac_try_echo=$ac_try;;
22145: esac
22146: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22147: (eval "$ac_link") 2>conftest.er1
1.9 millert 22148: ac_status=$?
1.25 millert 22149: grep -v '^ *+' conftest.er1 >conftest.err
22150: rm -f conftest.er1
22151: cat conftest.err >&5
1.16 millert 22152: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 22153: (exit $ac_status); } && {
22154: test -z "$ac_c_werror_flag" ||
22155: test ! -s conftest.err
22156: } && test -s conftest$ac_exeext &&
22157: $as_test_x conftest$ac_exeext; then
1.37 millert 22158: eval "$as_ac_var=yes"
1.1 millert 22159: else
1.9 millert 22160: echo "$as_me: failed program was:" >&5
1.16 millert 22161: sed 's/^/| /' conftest.$ac_ext >&5
22162:
1.37 millert 22163: eval "$as_ac_var=no"
1.18 millert 22164: fi
22165:
1.27 millert 22166: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22167: conftest$ac_exeext conftest.$ac_ext
22168: fi
1.37 millert 22169: ac_res=`eval echo '${'$as_ac_var'}'`
22170: { echo "$as_me:$LINENO: result: $ac_res" >&5
22171: echo "${ECHO_T}$ac_res" >&6; }
22172: if test `eval echo '${'$as_ac_var'}'` = yes; then
22173: cat >>confdefs.h <<_ACEOF
22174: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22175: _ACEOF
22176: found=yes
1.27 millert 22177: fi
1.37 millert 22178: done
22179:
22180: if test "$found" = "yes"; then
22181: SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22182: elif test -n "$shadow_libs_optional"; then
22183: LIBS="$LIBS $shadow_libs_optional"
1.18 millert 22184:
1.37 millert 22185: for ac_func in $shadow_funcs
22186: do
22187: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22188: { echo "$as_me:$LINENO: checking for $ac_func" >&5
22189: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22190: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.18 millert 22191: echo $ECHO_N "(cached) $ECHO_C" >&6
22192: else
1.37 millert 22193: cat >conftest.$ac_ext <<_ACEOF
1.18 millert 22194: /* confdefs.h. */
22195: _ACEOF
22196: cat confdefs.h >>conftest.$ac_ext
22197: cat >>conftest.$ac_ext <<_ACEOF
22198: /* end confdefs.h. */
1.37 millert 22199: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22200: For example, HP-UX 11i <limits.h> declares gettimeofday. */
22201: #define $ac_func innocuous_$ac_func
22202:
22203: /* System header to define __stub macros and hopefully few prototypes,
22204: which can conflict with char $ac_func (); below.
22205: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22206: <limits.h> exists even on freestanding compilers. */
22207:
22208: #ifdef __STDC__
22209: # include <limits.h>
22210: #else
22211: # include <assert.h>
22212: #endif
22213:
22214: #undef $ac_func
1.18 millert 22215:
1.27 millert 22216: /* Override any GCC internal prototype to avoid an error.
22217: Use char because int might match the return type of a GCC
22218: builtin and then its argument prototype would still apply. */
1.25 millert 22219: #ifdef __cplusplus
22220: extern "C"
22221: #endif
1.37 millert 22222: char $ac_func ();
22223: /* The GNU C library defines this for functions which it implements
22224: to always fail with ENOSYS. Some functions are actually named
22225: something starting with __ and the normal name is an alias. */
22226: #if defined __stub_$ac_func || defined __stub___$ac_func
22227: choke me
22228: #endif
22229:
1.18 millert 22230: int
22231: main ()
22232: {
1.37 millert 22233: return $ac_func ();
1.18 millert 22234: ;
22235: return 0;
22236: }
22237: _ACEOF
22238: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 22239: if { (ac_try="$ac_link"
22240: case "(($ac_try" in
22241: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242: *) ac_try_echo=$ac_try;;
22243: esac
22244: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245: (eval "$ac_link") 2>conftest.er1
1.18 millert 22246: ac_status=$?
1.25 millert 22247: grep -v '^ *+' conftest.er1 >conftest.err
22248: rm -f conftest.er1
22249: cat conftest.err >&5
1.18 millert 22250: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 22251: (exit $ac_status); } && {
22252: test -z "$ac_c_werror_flag" ||
22253: test ! -s conftest.err
22254: } && test -s conftest$ac_exeext &&
22255: $as_test_x conftest$ac_exeext; then
1.37 millert 22256: eval "$as_ac_var=yes"
1.18 millert 22257: else
22258: echo "$as_me: failed program was:" >&5
22259: sed 's/^/| /' conftest.$ac_ext >&5
22260:
1.37 millert 22261: eval "$as_ac_var=no"
1.25 millert 22262: fi
1.27 millert 22263:
22264: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 22265: conftest$ac_exeext conftest.$ac_ext
1.18 millert 22266: fi
1.37 millert 22267: ac_res=`eval echo '${'$as_ac_var'}'`
22268: { echo "$as_me:$LINENO: result: $ac_res" >&5
22269: echo "${ECHO_T}$ac_res" >&6; }
22270: if test `eval echo '${'$as_ac_var'}'` = yes; then
22271: cat >>confdefs.h <<_ACEOF
22272: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
1.27 millert 22273: _ACEOF
1.37 millert 22274: found=yes
1.27 millert 22275: fi
1.37 millert 22276: done
1.25 millert 22277:
1.37 millert 22278: if test "$found" = "yes"; then
22279: SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22280: fi
22281: fi
22282: if test "$found" = "yes"; then
22283: case "$shadow_funcs" in
22284: *getprpwnam*) SECUREWARE=1;;
22285: esac
22286: test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
1.27 millert 22287: else
1.37 millert 22288: LIBS="$_LIBS"
1.27 millert 22289: fi
1.37 millert 22290: CHECKSHADOW=false
1.27 millert 22291: fi
1.37 millert 22292: if test "$CHECKSHADOW" = "true"; then
22293: { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22294: echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22295: if test "${ac_cv_search_getspnam+set}" = set; then
1.27 millert 22296: echo $ECHO_N "(cached) $ECHO_C" >&6
22297: else
1.37 millert 22298: ac_func_search_save_LIBS=$LIBS
1.27 millert 22299: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22300: /* confdefs.h. */
22301: _ACEOF
22302: cat confdefs.h >>conftest.$ac_ext
22303: cat >>conftest.$ac_ext <<_ACEOF
22304: /* end confdefs.h. */
1.27 millert 22305:
1.37 millert 22306: /* Override any GCC internal prototype to avoid an error.
22307: Use char because int might match the return type of a GCC
22308: builtin and then its argument prototype would still apply. */
22309: #ifdef __cplusplus
22310: extern "C"
22311: #endif
22312: char getspnam ();
1.17 millert 22313: int
22314: main ()
22315: {
1.37 millert 22316: return getspnam ();
1.17 millert 22317: ;
22318: return 0;
22319: }
22320: _ACEOF
1.37 millert 22321: for ac_lib in '' gen; do
22322: if test -z "$ac_lib"; then
22323: ac_res="none required"
22324: else
22325: ac_res=-l$ac_lib
22326: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22327: fi
22328: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 22329: if { (ac_try="$ac_link"
22330: case "(($ac_try" in
22331: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332: *) ac_try_echo=$ac_try;;
22333: esac
22334: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335: (eval "$ac_link") 2>conftest.er1
1.17 millert 22336: ac_status=$?
1.25 millert 22337: grep -v '^ *+' conftest.er1 >conftest.err
22338: rm -f conftest.er1
22339: cat conftest.err >&5
1.17 millert 22340: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 22341: (exit $ac_status); } && {
22342: test -z "$ac_c_werror_flag" ||
22343: test ! -s conftest.err
22344: } && test -s conftest$ac_exeext &&
22345: $as_test_x conftest$ac_exeext; then
1.37 millert 22346: ac_cv_search_getspnam=$ac_res
1.17 millert 22347: else
22348: echo "$as_me: failed program was:" >&5
22349: sed 's/^/| /' conftest.$ac_ext >&5
22350:
1.37 millert 22351:
1.17 millert 22352: fi
1.27 millert 22353:
22354: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37 millert 22355: conftest$ac_exeext
22356: if test "${ac_cv_search_getspnam+set}" = set; then
22357: break
1.27 millert 22358: fi
1.37 millert 22359: done
22360: if test "${ac_cv_search_getspnam+set}" = set; then
22361: :
1.27 millert 22362: else
1.37 millert 22363: ac_cv_search_getspnam=no
22364: fi
22365: rm conftest.$ac_ext
22366: LIBS=$ac_func_search_save_LIBS
1.27 millert 22367: fi
1.37 millert 22368: { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22369: echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22370: ac_res=$ac_cv_search_getspnam
22371: if test "$ac_res" != no; then
22372: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22373: cat >>confdefs.h <<\_ACEOF
22374: #define HAVE_GETSPNAM 1
22375: _ACEOF
22376: CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.27 millert 22377: fi
22378:
1.37 millert 22379: fi
22380: if test "$CHECKSHADOW" = "true"; then
22381: { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22382: echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22383: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27 millert 22384: echo $ECHO_N "(cached) $ECHO_C" >&6
22385: else
22386: ac_func_search_save_LIBS=$LIBS
22387: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22388: /* confdefs.h. */
22389: _ACEOF
22390: cat confdefs.h >>conftest.$ac_ext
22391: cat >>conftest.$ac_ext <<_ACEOF
22392: /* end confdefs.h. */
1.27 millert 22393:
22394: /* Override any GCC internal prototype to avoid an error.
22395: Use char because int might match the return type of a GCC
22396: builtin and then its argument prototype would still apply. */
22397: #ifdef __cplusplus
22398: extern "C"
22399: #endif
1.37 millert 22400: char getprpwnam ();
1.17 millert 22401: int
22402: main ()
22403: {
1.37 millert 22404: return getprpwnam ();
1.17 millert 22405: ;
22406: return 0;
22407: }
22408: _ACEOF
1.37 millert 22409: for ac_lib in '' sec security prot; do
1.27 millert 22410: if test -z "$ac_lib"; then
22411: ac_res="none required"
22412: else
22413: ac_res=-l$ac_lib
22414: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22415: fi
22416: rm -f conftest.$ac_objext conftest$ac_exeext
22417: if { (ac_try="$ac_link"
22418: case "(($ac_try" in
22419: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22420: *) ac_try_echo=$ac_try;;
22421: esac
22422: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22423: (eval "$ac_link") 2>conftest.er1
1.17 millert 22424: ac_status=$?
1.25 millert 22425: grep -v '^ *+' conftest.er1 >conftest.err
22426: rm -f conftest.er1
22427: cat conftest.err >&5
1.17 millert 22428: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 22429: (exit $ac_status); } && {
22430: test -z "$ac_c_werror_flag" ||
22431: test ! -s conftest.err
22432: } && test -s conftest$ac_exeext &&
22433: $as_test_x conftest$ac_exeext; then
1.37 millert 22434: ac_cv_search_getprpwnam=$ac_res
1.17 millert 22435: else
22436: echo "$as_me: failed program was:" >&5
22437: sed 's/^/| /' conftest.$ac_ext >&5
22438:
1.25 millert 22439:
1.27 millert 22440: fi
1.25 millert 22441:
1.27 millert 22442: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22443: conftest$ac_exeext
1.37 millert 22444: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27 millert 22445: break
22446: fi
22447: done
1.37 millert 22448: if test "${ac_cv_search_getprpwnam+set}" = set; then
1.27 millert 22449: :
22450: else
1.37 millert 22451: ac_cv_search_getprpwnam=no
1.27 millert 22452: fi
22453: rm conftest.$ac_ext
22454: LIBS=$ac_func_search_save_LIBS
22455: fi
1.37 millert 22456: { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22457: echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22458: ac_res=$ac_cv_search_getprpwnam
1.27 millert 22459: if test "$ac_res" != no; then
22460: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37 millert 22461: cat >>confdefs.h <<\_ACEOF
22462: #define HAVE_GETPRPWNAM 1
22463: _ACEOF
22464: CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
1.17 millert 22465: fi
1.25 millert 22466:
1.27 millert 22467: fi
1.37 millert 22468: if test -n "$SECUREWARE"; then
22469:
1.25 millert 22470:
1.17 millert 22471:
1.37 millert 22472: for ac_func in bigcrypt set_auth_parameters initprivs
1.25 millert 22473: do
22474: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
1.27 millert 22475: { echo "$as_me:$LINENO: checking for $ac_func" >&5
22476: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22477: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
1.17 millert 22478: echo $ECHO_N "(cached) $ECHO_C" >&6
22479: else
1.25 millert 22480: cat >conftest.$ac_ext <<_ACEOF
1.17 millert 22481: /* confdefs.h. */
22482: _ACEOF
22483: cat confdefs.h >>conftest.$ac_ext
22484: cat >>conftest.$ac_ext <<_ACEOF
22485: /* end confdefs.h. */
1.25 millert 22486: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22487: For example, HP-UX 11i <limits.h> declares gettimeofday. */
22488: #define $ac_func innocuous_$ac_func
22489:
22490: /* System header to define __stub macros and hopefully few prototypes,
22491: which can conflict with char $ac_func (); below.
22492: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22493: <limits.h> exists even on freestanding compilers. */
22494:
22495: #ifdef __STDC__
22496: # include <limits.h>
22497: #else
22498: # include <assert.h>
22499: #endif
1.17 millert 22500:
1.25 millert 22501: #undef $ac_func
22502:
1.27 millert 22503: /* Override any GCC internal prototype to avoid an error.
22504: Use char because int might match the return type of a GCC
22505: builtin and then its argument prototype would still apply. */
1.25 millert 22506: #ifdef __cplusplus
22507: extern "C"
22508: #endif
22509: char $ac_func ();
22510: /* The GNU C library defines this for functions which it implements
22511: to always fail with ENOSYS. Some functions are actually named
22512: something starting with __ and the normal name is an alias. */
1.27 millert 22513: #if defined __stub_$ac_func || defined __stub___$ac_func
1.25 millert 22514: choke me
22515: #endif
1.17 millert 22516:
22517: int
22518: main ()
22519: {
1.27 millert 22520: return $ac_func ();
1.17 millert 22521: ;
22522: return 0;
22523: }
22524: _ACEOF
22525: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 22526: if { (ac_try="$ac_link"
22527: case "(($ac_try" in
22528: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529: *) ac_try_echo=$ac_try;;
22530: esac
22531: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22532: (eval "$ac_link") 2>conftest.er1
1.17 millert 22533: ac_status=$?
1.25 millert 22534: grep -v '^ *+' conftest.er1 >conftest.err
22535: rm -f conftest.er1
22536: cat conftest.err >&5
1.17 millert 22537: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.27 millert 22538: (exit $ac_status); } && {
22539: test -z "$ac_c_werror_flag" ||
22540: test ! -s conftest.err
22541: } && test -s conftest$ac_exeext &&
22542: $as_test_x conftest$ac_exeext; then
1.25 millert 22543: eval "$as_ac_var=yes"
1.17 millert 22544: else
22545: echo "$as_me: failed program was:" >&5
22546: sed 's/^/| /' conftest.$ac_ext >&5
22547:
1.27 millert 22548: eval "$as_ac_var=no"
1.17 millert 22549: fi
1.27 millert 22550:
22551: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.25 millert 22552: conftest$ac_exeext conftest.$ac_ext
1.17 millert 22553: fi
1.27 millert 22554: ac_res=`eval echo '${'$as_ac_var'}'`
22555: { echo "$as_me:$LINENO: result: $ac_res" >&5
22556: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 22557: if test `eval echo '${'$as_ac_var'}'` = yes; then
22558: cat >>confdefs.h <<_ACEOF
22559: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22560: _ACEOF
1.37 millert 22561:
1.17 millert 22562: fi
1.27 millert 22563: done
1.17 millert 22564:
1.37 millert 22565: AUTH_OBJS="$AUTH_OBJS secureware.o"
22566: fi
22567: fi
22568:
22569: if test ${with_ldap-'no'} != "no"; then
22570: _LDFLAGS="$LDFLAGS"
22571: if test "$with_ldap" != "yes"; then
22572:
22573: if test X"$with_rpath" = X"yes"; then
22574: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22575: else
22576: SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22577: fi
22578: if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22579: blibpath_add="${blibpath_add}:${with_ldap}/lib"
22580: fi
22581:
22582:
22583: if test X"$with_rpath" = X"yes"; then
22584: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22585: else
22586: LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22587: fi
22588: if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22589: blibpath_add="${blibpath_add}:${with_ldap}/lib"
22590: fi
22591:
22592: CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22593: with_ldap=yes
22594: LDAP=""
22595: fi
22596: SUDO_OBJS="${SUDO_OBJS} ldap.o"
1.17 millert 22597:
1.37 millert 22598: { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22599: echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22600: LDAP_LIBS=""
22601: _LIBS="$LIBS"
22602: found=no
22603: for l in -lldap -llber '-lssl -lcrypto'; do
22604: LIBS="${LIBS} $l"
22605: LDAP_LIBS="${LDAP_LIBS} $l"
22606: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 22607: /* confdefs.h. */
22608: _ACEOF
22609: cat confdefs.h >>conftest.$ac_ext
22610: cat >>conftest.$ac_ext <<_ACEOF
22611: /* end confdefs.h. */
1.37 millert 22612: #include <sys/types.h>
22613: #include <lber.h>
22614: #include <ldap.h>
1.27 millert 22615: int
22616: main ()
22617: {
1.37 millert 22618: (void)ldap_init(0, 0)
1.27 millert 22619: ;
22620: return 0;
22621: }
1.17 millert 22622: _ACEOF
1.27 millert 22623: rm -f conftest.$ac_objext conftest$ac_exeext
22624: if { (ac_try="$ac_link"
22625: case "(($ac_try" in
22626: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22627: *) ac_try_echo=$ac_try;;
22628: esac
22629: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22630: (eval "$ac_link") 2>conftest.er1
22631: ac_status=$?
22632: grep -v '^ *+' conftest.er1 >conftest.err
22633: rm -f conftest.er1
22634: cat conftest.err >&5
22635: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636: (exit $ac_status); } && {
22637: test -z "$ac_c_werror_flag" ||
22638: test ! -s conftest.err
22639: } && test -s conftest$ac_exeext &&
22640: $as_test_x conftest$ac_exeext; then
1.37 millert 22641: found=yes; break
1.27 millert 22642: else
22643: echo "$as_me: failed program was:" >&5
22644: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 22645:
1.37 millert 22646:
1.27 millert 22647: fi
1.25 millert 22648:
1.27 millert 22649: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22650: conftest$ac_exeext conftest.$ac_ext
1.37 millert 22651: done
22652: if test "$found" = "no"; then
22653: LIBS="${_LIBS} -lldap"
22654: LDAP_LIBS="-lldap"
22655: { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22656: echo "${ECHO_T}not found, using -lldap" >&6; }
22657: else
22658: { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22659: echo "${ECHO_T}$LDAP_LIBS" >&6; }
1.27 millert 22660: fi
1.37 millert 22661: OLIBS="$LIBS"
22662: { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22663: echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22664: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27 millert 22665: echo $ECHO_N "(cached) $ECHO_C" >&6
1.25 millert 22666: else
1.27 millert 22667: ac_func_search_save_LIBS=$LIBS
22668: cat >conftest.$ac_ext <<_ACEOF
22669: /* confdefs.h. */
22670: _ACEOF
22671: cat confdefs.h >>conftest.$ac_ext
22672: cat >>conftest.$ac_ext <<_ACEOF
22673: /* end confdefs.h. */
1.25 millert 22674:
1.27 millert 22675: /* Override any GCC internal prototype to avoid an error.
22676: Use char because int might match the return type of a GCC
22677: builtin and then its argument prototype would still apply. */
22678: #ifdef __cplusplus
22679: extern "C"
22680: #endif
1.37 millert 22681: char ber_set_option ();
1.27 millert 22682: int
22683: main ()
22684: {
1.37 millert 22685: return ber_set_option ();
1.27 millert 22686: ;
22687: return 0;
22688: }
22689: _ACEOF
1.37 millert 22690: for ac_lib in '' lber; do
1.27 millert 22691: if test -z "$ac_lib"; then
22692: ac_res="none required"
1.25 millert 22693: else
1.27 millert 22694: ac_res=-l$ac_lib
22695: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
1.25 millert 22696: fi
1.27 millert 22697: rm -f conftest.$ac_objext conftest$ac_exeext
22698: if { (ac_try="$ac_link"
22699: case "(($ac_try" in
22700: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701: *) ac_try_echo=$ac_try;;
22702: esac
22703: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704: (eval "$ac_link") 2>conftest.er1
22705: ac_status=$?
22706: grep -v '^ *+' conftest.er1 >conftest.err
22707: rm -f conftest.er1
22708: cat conftest.err >&5
22709: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710: (exit $ac_status); } && {
22711: test -z "$ac_c_werror_flag" ||
22712: test ! -s conftest.err
22713: } && test -s conftest$ac_exeext &&
22714: $as_test_x conftest$ac_exeext; then
1.37 millert 22715: ac_cv_search_ber_set_option=$ac_res
1.27 millert 22716: else
22717: echo "$as_me: failed program was:" >&5
22718: sed 's/^/| /' conftest.$ac_ext >&5
22719:
1.25 millert 22720:
1.17 millert 22721: fi
22722:
1.27 millert 22723: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22724: conftest$ac_exeext
1.37 millert 22725: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27 millert 22726: break
22727: fi
22728: done
1.37 millert 22729: if test "${ac_cv_search_ber_set_option+set}" = set; then
1.27 millert 22730: :
1.25 millert 22731: else
1.37 millert 22732: ac_cv_search_ber_set_option=no
1.27 millert 22733: fi
22734: rm conftest.$ac_ext
22735: LIBS=$ac_func_search_save_LIBS
1.25 millert 22736: fi
1.37 millert 22737: { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22738: echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22739: ac_res=$ac_cv_search_ber_set_option
1.27 millert 22740: if test "$ac_res" != no; then
22741: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
1.37 millert 22742: found=yes
22743: else
22744: found=no
1.17 millert 22745: fi
22746:
1.37 millert 22747: if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22748: LDAP_LIBS="$LDAP_LIBS -llber"
1.27 millert 22749: fi
1.37 millert 22750: { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22751: echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22752: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 22753: /* confdefs.h. */
22754: _ACEOF
22755: cat confdefs.h >>conftest.$ac_ext
22756: cat >>conftest.$ac_ext <<_ACEOF
22757: /* end confdefs.h. */
1.37 millert 22758: #include <sys/types.h>
22759: #include <ldap.h>
1.27 millert 22760: int
22761: main ()
22762: {
1.37 millert 22763: (void)ldap_init(0, 0)
1.27 millert 22764: ;
22765: return 0;
1.23 millert 22766: }
1.27 millert 22767: _ACEOF
1.37 millert 22768: rm -f conftest.$ac_objext conftest$ac_exeext
1.27 millert 22769: if { (ac_try="$ac_link"
22770: case "(($ac_try" in
22771: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772: *) ac_try_echo=$ac_try;;
22773: esac
22774: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775: (eval "$ac_link") 2>conftest.er1
22776: ac_status=$?
22777: grep -v '^ *+' conftest.er1 >conftest.err
22778: rm -f conftest.er1
22779: cat conftest.err >&5
22780: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781: (exit $ac_status); } && {
22782: test -z "$ac_c_werror_flag" ||
22783: test ! -s conftest.err
22784: } && test -s conftest$ac_exeext &&
22785: $as_test_x conftest$ac_exeext; then
1.37 millert 22786: { echo "$as_me:$LINENO: result: no" >&5
22787: echo "${ECHO_T}no" >&6; }
1.27 millert 22788: else
22789: echo "$as_me: failed program was:" >&5
22790: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 22791:
22792:
1.37 millert 22793: { echo "$as_me:$LINENO: result: yes" >&5
22794: echo "${ECHO_T}yes" >&6; }
22795: cat >>confdefs.h <<\_ACEOF
22796: #define HAVE_LBER_H 1
22797: _ACEOF
22798:
1.27 millert 22799: fi
1.23 millert 22800:
1.27 millert 22801: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
1.37 millert 22802: conftest$ac_exeext conftest.$ac_ext
22803:
22804:
22805:
1.39 ! millert 22806: for ac_header in sasl/sasl.h sasl.h
1.37 millert 22807: do
22808: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22809: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22810: { echo "$as_me:$LINENO: checking for $ac_header" >&5
22811: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22812: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22813: echo $ECHO_N "(cached) $ECHO_C" >&6
22814: fi
22815: ac_res=`eval echo '${'$as_ac_Header'}'`
22816: { echo "$as_me:$LINENO: result: $ac_res" >&5
22817: echo "${ECHO_T}$ac_res" >&6; }
22818: else
22819: # Is the header compilable?
22820: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22821: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22822: cat >conftest.$ac_ext <<_ACEOF
22823: /* confdefs.h. */
22824: _ACEOF
22825: cat confdefs.h >>conftest.$ac_ext
22826: cat >>conftest.$ac_ext <<_ACEOF
22827: /* end confdefs.h. */
22828: $ac_includes_default
22829: #include <$ac_header>
22830: _ACEOF
22831: rm -f conftest.$ac_objext
22832: if { (ac_try="$ac_compile"
22833: case "(($ac_try" in
22834: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835: *) ac_try_echo=$ac_try;;
22836: esac
22837: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22838: (eval "$ac_compile") 2>conftest.er1
22839: ac_status=$?
22840: grep -v '^ *+' conftest.er1 >conftest.err
22841: rm -f conftest.er1
22842: cat conftest.err >&5
22843: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844: (exit $ac_status); } && {
22845: test -z "$ac_c_werror_flag" ||
22846: test ! -s conftest.err
22847: } && test -s conftest.$ac_objext; then
22848: ac_header_compiler=yes
22849: else
22850: echo "$as_me: failed program was:" >&5
22851: sed 's/^/| /' conftest.$ac_ext >&5
22852:
22853: ac_header_compiler=no
22854: fi
22855:
22856: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22858: echo "${ECHO_T}$ac_header_compiler" >&6; }
22859:
22860: # Is the header present?
22861: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22862: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22863: cat >conftest.$ac_ext <<_ACEOF
22864: /* confdefs.h. */
22865: _ACEOF
22866: cat confdefs.h >>conftest.$ac_ext
22867: cat >>conftest.$ac_ext <<_ACEOF
22868: /* end confdefs.h. */
22869: #include <$ac_header>
22870: _ACEOF
22871: if { (ac_try="$ac_cpp conftest.$ac_ext"
22872: case "(($ac_try" in
22873: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22874: *) ac_try_echo=$ac_try;;
22875: esac
22876: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22877: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22878: ac_status=$?
22879: grep -v '^ *+' conftest.er1 >conftest.err
22880: rm -f conftest.er1
22881: cat conftest.err >&5
22882: echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883: (exit $ac_status); } >/dev/null && {
22884: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22885: test ! -s conftest.err
22886: }; then
22887: ac_header_preproc=yes
22888: else
22889: echo "$as_me: failed program was:" >&5
22890: sed 's/^/| /' conftest.$ac_ext >&5
22891:
22892: ac_header_preproc=no
22893: fi
22894:
22895: rm -f conftest.err conftest.$ac_ext
22896: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22897: echo "${ECHO_T}$ac_header_preproc" >&6; }
22898:
22899: # So? What about this header?
22900: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22901: yes:no: )
22902: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22903: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22904: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22905: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22906: ac_header_preproc=yes
22907: ;;
22908: no:yes:* )
22909: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22910: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22911: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22912: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22913: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22914: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22915: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22916: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22917: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22918: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22919: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22920: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22921:
22922: ;;
22923: esac
22924: { echo "$as_me:$LINENO: checking for $ac_header" >&5
22925: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22926: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22927: echo $ECHO_N "(cached) $ECHO_C" >&6
22928: else
22929: eval "$as_ac_Header=\$ac_header_preproc"
22930: fi
22931: ac_res=`eval echo '${'$as_ac_Header'}'`
22932: { echo "$as_me:$LINENO: result: $ac_res" >&5
22933: echo "${ECHO_T}$ac_res" >&6; }
22934:
22935: fi
22936: if test `eval echo '${'$as_ac_Header'}'` = yes; then
22937: cat >>confdefs.h <<_ACEOF
22938: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22939: _ACEOF
22940:
1.39 ! millert 22941: for ac_func in ldap_sasl_interactive_bind_s
! 22942: do
! 22943: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 22944: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 22945: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 22946: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 22947: echo $ECHO_N "(cached) $ECHO_C" >&6
! 22948: else
! 22949: cat >conftest.$ac_ext <<_ACEOF
! 22950: /* confdefs.h. */
! 22951: _ACEOF
! 22952: cat confdefs.h >>conftest.$ac_ext
! 22953: cat >>conftest.$ac_ext <<_ACEOF
! 22954: /* end confdefs.h. */
! 22955: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 22956: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 22957: #define $ac_func innocuous_$ac_func
! 22958:
! 22959: /* System header to define __stub macros and hopefully few prototypes,
! 22960: which can conflict with char $ac_func (); below.
! 22961: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 22962: <limits.h> exists even on freestanding compilers. */
! 22963:
! 22964: #ifdef __STDC__
! 22965: # include <limits.h>
! 22966: #else
! 22967: # include <assert.h>
! 22968: #endif
! 22969:
! 22970: #undef $ac_func
! 22971:
! 22972: /* Override any GCC internal prototype to avoid an error.
! 22973: Use char because int might match the return type of a GCC
! 22974: builtin and then its argument prototype would still apply. */
! 22975: #ifdef __cplusplus
! 22976: extern "C"
! 22977: #endif
! 22978: char $ac_func ();
! 22979: /* The GNU C library defines this for functions which it implements
! 22980: to always fail with ENOSYS. Some functions are actually named
! 22981: something starting with __ and the normal name is an alias. */
! 22982: #if defined __stub_$ac_func || defined __stub___$ac_func
! 22983: choke me
! 22984: #endif
! 22985:
! 22986: int
! 22987: main ()
! 22988: {
! 22989: return $ac_func ();
! 22990: ;
! 22991: return 0;
! 22992: }
! 22993: _ACEOF
! 22994: rm -f conftest.$ac_objext conftest$ac_exeext
! 22995: if { (ac_try="$ac_link"
! 22996: case "(($ac_try" in
! 22997: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 22998: *) ac_try_echo=$ac_try;;
! 22999: esac
! 23000: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23001: (eval "$ac_link") 2>conftest.er1
! 23002: ac_status=$?
! 23003: grep -v '^ *+' conftest.er1 >conftest.err
! 23004: rm -f conftest.er1
! 23005: cat conftest.err >&5
! 23006: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23007: (exit $ac_status); } && {
! 23008: test -z "$ac_c_werror_flag" ||
! 23009: test ! -s conftest.err
! 23010: } && test -s conftest$ac_exeext &&
! 23011: $as_test_x conftest$ac_exeext; then
! 23012: eval "$as_ac_var=yes"
! 23013: else
! 23014: echo "$as_me: failed program was:" >&5
! 23015: sed 's/^/| /' conftest.$ac_ext >&5
! 23016:
! 23017: eval "$as_ac_var=no"
! 23018: fi
! 23019:
! 23020: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 23021: conftest$ac_exeext conftest.$ac_ext
! 23022: fi
! 23023: ac_res=`eval echo '${'$as_ac_var'}'`
! 23024: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 23025: echo "${ECHO_T}$ac_res" >&6; }
! 23026: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 23027: cat >>confdefs.h <<_ACEOF
! 23028: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 23029: _ACEOF
! 23030:
! 23031: fi
! 23032: done
! 23033: , break
1.37 millert 23034: fi
23035:
23036: done
23037:
23038:
23039:
23040: for ac_header in ldap_ssl.h mps/ldap_ssl.h
23041: do
23042: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23043: { echo "$as_me:$LINENO: checking for $ac_header" >&5
23044: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23045: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23046: echo $ECHO_N "(cached) $ECHO_C" >&6
23047: else
23048: cat >conftest.$ac_ext <<_ACEOF
23049: /* confdefs.h. */
23050: _ACEOF
23051: cat confdefs.h >>conftest.$ac_ext
23052: cat >>conftest.$ac_ext <<_ACEOF
23053: /* end confdefs.h. */
23054: #include <ldap.h>
23055:
23056: #include <$ac_header>
23057: _ACEOF
23058: rm -f conftest.$ac_objext
23059: if { (ac_try="$ac_compile"
23060: case "(($ac_try" in
23061: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062: *) ac_try_echo=$ac_try;;
23063: esac
23064: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23065: (eval "$ac_compile") 2>conftest.er1
23066: ac_status=$?
23067: grep -v '^ *+' conftest.er1 >conftest.err
23068: rm -f conftest.er1
23069: cat conftest.err >&5
23070: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23071: (exit $ac_status); } && {
23072: test -z "$ac_c_werror_flag" ||
23073: test ! -s conftest.err
23074: } && test -s conftest.$ac_objext; then
23075: eval "$as_ac_Header=yes"
1.27 millert 23076: else
23077: echo "$as_me: failed program was:" >&5
23078: sed 's/^/| /' conftest.$ac_ext >&5
1.23 millert 23079:
1.37 millert 23080: eval "$as_ac_Header=no"
1.17 millert 23081: fi
1.23 millert 23082:
1.37 millert 23083: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.25 millert 23084: fi
1.37 millert 23085: ac_res=`eval echo '${'$as_ac_Header'}'`
1.27 millert 23086: { echo "$as_me:$LINENO: result: $ac_res" >&5
23087: echo "${ECHO_T}$ac_res" >&6; }
1.37 millert 23088: if test `eval echo '${'$as_ac_Header'}'` = yes; then
1.27 millert 23089: cat >>confdefs.h <<_ACEOF
1.37 millert 23090: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
1.27 millert 23091: _ACEOF
1.37 millert 23092: break
23093: fi
1.17 millert 23094:
1.27 millert 23095: done
1.17 millert 23096:
23097:
1.39 ! millert 23098:
! 23099:
! 23100:
! 23101:
! 23102:
! 23103:
! 23104:
! 23105:
! 23106:
! 23107:
! 23108: for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_client_init ldap_start_tls_s_np
! 23109: do
! 23110: as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 23111: { echo "$as_me:$LINENO: checking for $ac_func" >&5
! 23112: echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
! 23113: if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
! 23114: echo $ECHO_N "(cached) $ECHO_C" >&6
! 23115: else
! 23116: cat >conftest.$ac_ext <<_ACEOF
! 23117: /* confdefs.h. */
! 23118: _ACEOF
! 23119: cat confdefs.h >>conftest.$ac_ext
! 23120: cat >>conftest.$ac_ext <<_ACEOF
! 23121: /* end confdefs.h. */
! 23122: /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
! 23123: For example, HP-UX 11i <limits.h> declares gettimeofday. */
! 23124: #define $ac_func innocuous_$ac_func
! 23125:
! 23126: /* System header to define __stub macros and hopefully few prototypes,
! 23127: which can conflict with char $ac_func (); below.
! 23128: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
! 23129: <limits.h> exists even on freestanding compilers. */
! 23130:
! 23131: #ifdef __STDC__
! 23132: # include <limits.h>
! 23133: #else
! 23134: # include <assert.h>
! 23135: #endif
! 23136:
! 23137: #undef $ac_func
! 23138:
! 23139: /* Override any GCC internal prototype to avoid an error.
! 23140: Use char because int might match the return type of a GCC
! 23141: builtin and then its argument prototype would still apply. */
! 23142: #ifdef __cplusplus
! 23143: extern "C"
! 23144: #endif
! 23145: char $ac_func ();
! 23146: /* The GNU C library defines this for functions which it implements
! 23147: to always fail with ENOSYS. Some functions are actually named
! 23148: something starting with __ and the normal name is an alias. */
! 23149: #if defined __stub_$ac_func || defined __stub___$ac_func
! 23150: choke me
! 23151: #endif
! 23152:
! 23153: int
! 23154: main ()
! 23155: {
! 23156: return $ac_func ();
! 23157: ;
! 23158: return 0;
! 23159: }
! 23160: _ACEOF
! 23161: rm -f conftest.$ac_objext conftest$ac_exeext
! 23162: if { (ac_try="$ac_link"
! 23163: case "(($ac_try" in
! 23164: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
! 23165: *) ac_try_echo=$ac_try;;
! 23166: esac
! 23167: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
! 23168: (eval "$ac_link") 2>conftest.er1
! 23169: ac_status=$?
! 23170: grep -v '^ *+' conftest.er1 >conftest.err
! 23171: rm -f conftest.er1
! 23172: cat conftest.err >&5
! 23173: echo "$as_me:$LINENO: \$? = $ac_status" >&5
! 23174: (exit $ac_status); } && {
! 23175: test -z "$ac_c_werror_flag" ||
! 23176: test ! -s conftest.err
! 23177: } && test -s conftest$ac_exeext &&
! 23178: $as_test_x conftest$ac_exeext; then
! 23179: eval "$as_ac_var=yes"
! 23180: else
! 23181: echo "$as_me: failed program was:" >&5
! 23182: sed 's/^/| /' conftest.$ac_ext >&5
! 23183:
! 23184: eval "$as_ac_var=no"
! 23185: fi
! 23186:
! 23187: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
! 23188: conftest$ac_exeext conftest.$ac_ext
! 23189: fi
! 23190: ac_res=`eval echo '${'$as_ac_var'}'`
! 23191: { echo "$as_me:$LINENO: result: $ac_res" >&5
! 23192: echo "${ECHO_T}$ac_res" >&6; }
! 23193: if test `eval echo '${'$as_ac_var'}'` = yes; then
! 23194: cat >>confdefs.h <<_ACEOF
! 23195: #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 23196: _ACEOF
! 23197:
! 23198: fi
! 23199: done
! 23200:
! 23201:
1.37 millert 23202: if test X"$check_gss_krb5_ccache_name" = X"yes"; then
23203: { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
23204: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
23205: if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
23206: echo $ECHO_N "(cached) $ECHO_C" >&6
23207: else
23208: ac_check_lib_save_LIBS=$LIBS
23209: LIBS="-lgssapi $LIBS"
23210: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 23211: /* confdefs.h. */
1.25 millert 23212: _ACEOF
1.27 millert 23213: cat confdefs.h >>conftest.$ac_ext
23214: cat >>conftest.$ac_ext <<_ACEOF
23215: /* end confdefs.h. */
1.37 millert 23216:
23217: /* Override any GCC internal prototype to avoid an error.
23218: Use char because int might match the return type of a GCC
23219: builtin and then its argument prototype would still apply. */
23220: #ifdef __cplusplus
23221: extern "C"
23222: #endif
23223: char gss_krb5_ccache_name ();
1.27 millert 23224: int
23225: main ()
23226: {
1.37 millert 23227: return gss_krb5_ccache_name ();
1.27 millert 23228: ;
23229: return 0;
23230: }
1.25 millert 23231: _ACEOF
1.27 millert 23232: rm -f conftest.$ac_objext conftest$ac_exeext
23233: if { (ac_try="$ac_link"
23234: case "(($ac_try" in
23235: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236: *) ac_try_echo=$ac_try;;
23237: esac
23238: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239: (eval "$ac_link") 2>conftest.er1
23240: ac_status=$?
23241: grep -v '^ *+' conftest.er1 >conftest.err
23242: rm -f conftest.er1
23243: cat conftest.err >&5
23244: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245: (exit $ac_status); } && {
23246: test -z "$ac_c_werror_flag" ||
23247: test ! -s conftest.err
23248: } && test -s conftest$ac_exeext &&
23249: $as_test_x conftest$ac_exeext; then
1.37 millert 23250: ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
1.27 millert 23251: else
23252: echo "$as_me: failed program was:" >&5
23253: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 23254:
1.37 millert 23255: ac_cv_lib_gssapi_gss_krb5_ccache_name=no
1.17 millert 23256: fi
23257:
1.27 millert 23258: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23259: conftest$ac_exeext conftest.$ac_ext
1.37 millert 23260: LIBS=$ac_check_lib_save_LIBS
23261: fi
23262: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
23263: echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
23264: if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
23265: cat >>confdefs.h <<\_ACEOF
23266: #define HAVE_GSS_KRB5_CCACHE_NAME 1
23267: _ACEOF
23268:
23269: LDAP_LIBS="${LDAP_LIBS} -lgssapi"
23270: else
23271: { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
23272: echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
23273: if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
1.35 millert 23274: echo $ECHO_N "(cached) $ECHO_C" >&6
23275: else
1.37 millert 23276: ac_check_lib_save_LIBS=$LIBS
23277: LIBS="-lgssapi_krb5 $LIBS"
1.35 millert 23278: cat >conftest.$ac_ext <<_ACEOF
23279: /* confdefs.h. */
23280: _ACEOF
23281: cat confdefs.h >>conftest.$ac_ext
23282: cat >>conftest.$ac_ext <<_ACEOF
23283: /* end confdefs.h. */
23284:
23285: /* Override any GCC internal prototype to avoid an error.
23286: Use char because int might match the return type of a GCC
23287: builtin and then its argument prototype would still apply. */
23288: #ifdef __cplusplus
23289: extern "C"
23290: #endif
1.37 millert 23291: char gss_krb5_ccache_name ();
1.35 millert 23292: int
23293: main ()
23294: {
1.37 millert 23295: return gss_krb5_ccache_name ();
1.35 millert 23296: ;
23297: return 0;
23298: }
23299: _ACEOF
1.37 millert 23300: rm -f conftest.$ac_objext conftest$ac_exeext
1.35 millert 23301: if { (ac_try="$ac_link"
23302: case "(($ac_try" in
23303: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23304: *) ac_try_echo=$ac_try;;
23305: esac
23306: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23307: (eval "$ac_link") 2>conftest.er1
23308: ac_status=$?
23309: grep -v '^ *+' conftest.er1 >conftest.err
23310: rm -f conftest.er1
23311: cat conftest.err >&5
23312: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313: (exit $ac_status); } && {
23314: test -z "$ac_c_werror_flag" ||
23315: test ! -s conftest.err
23316: } && test -s conftest$ac_exeext &&
23317: $as_test_x conftest$ac_exeext; then
1.37 millert 23318: ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
1.35 millert 23319: else
23320: echo "$as_me: failed program was:" >&5
23321: sed 's/^/| /' conftest.$ac_ext >&5
23322:
1.37 millert 23323: ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
23324: fi
23325:
23326: rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23327: conftest$ac_exeext conftest.$ac_ext
23328: LIBS=$ac_check_lib_save_LIBS
23329: fi
23330: { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
23331: echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
23332: if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
23333: cat >>confdefs.h <<\_ACEOF
23334: #define HAVE_GSS_KRB5_CCACHE_NAME 1
23335: _ACEOF
1.35 millert 23336:
1.37 millert 23337: LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
1.35 millert 23338: fi
23339:
1.37 millert 23340:
1.35 millert 23341: fi
1.37 millert 23342:
23343:
23344: # gssapi headers may be separate or part of Kerberos V
23345: found=no
23346: O_CPPFLAGS="$CPPFLAGS"
23347: for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
23348: test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
23349: cat >conftest.$ac_ext <<_ACEOF
23350: #include <gssapi/gssapi.h>
23351: _ACEOF
23352: if { (ac_try="$ac_cpp conftest.$ac_ext"
23353: case "(($ac_try" in
23354: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355: *) ac_try_echo=$ac_try;;
23356: esac
23357: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23359: ac_status=$?
23360: grep -v '^ *+' conftest.er1 >conftest.err
23361: rm -f conftest.er1
23362: cat conftest.err >&5
23363: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364: (exit $ac_status); } >/dev/null && {
23365: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23366: test ! -s conftest.err
23367: }; then
23368: found="gssapi/gssapi.h"; break
23369: else
23370: echo "$as_me: failed program was:" >&5
23371: sed 's/^/| /' conftest.$ac_ext >&5
23372:
23373: cat >conftest.$ac_ext <<_ACEOF
23374: #include <gssapi.h>
23375: _ACEOF
23376: if { (ac_try="$ac_cpp conftest.$ac_ext"
23377: case "(($ac_try" in
23378: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379: *) ac_try_echo=$ac_try;;
23380: esac
23381: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23383: ac_status=$?
23384: grep -v '^ *+' conftest.er1 >conftest.err
23385: rm -f conftest.er1
23386: cat conftest.err >&5
23387: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388: (exit $ac_status); } >/dev/null && {
23389: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23390: test ! -s conftest.err
23391: }; then
23392: found="gssapi.h"; break
1.35 millert 23393: else
1.37 millert 23394: echo "$as_me: failed program was:" >&5
23395: sed 's/^/| /' conftest.$ac_ext >&5
23396:
23397:
23398: fi
23399:
23400: rm -f conftest.err conftest.$ac_ext
1.35 millert 23401: fi
1.37 millert 23402:
23403: rm -f conftest.err conftest.$ac_ext
23404: done
23405: if test X"$found" != X"no"; then
23406:
23407: for ac_header in $found
23408: do
23409: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23410: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23411: { echo "$as_me:$LINENO: checking for $ac_header" >&5
23412: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23413: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23414: echo $ECHO_N "(cached) $ECHO_C" >&6
1.35 millert 23415: fi
1.37 millert 23416: ac_res=`eval echo '${'$as_ac_Header'}'`
23417: { echo "$as_me:$LINENO: result: $ac_res" >&5
23418: echo "${ECHO_T}$ac_res" >&6; }
23419: else
23420: # Is the header compilable?
23421: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23422: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23423: cat >conftest.$ac_ext <<_ACEOF
23424: /* confdefs.h. */
23425: _ACEOF
23426: cat confdefs.h >>conftest.$ac_ext
23427: cat >>conftest.$ac_ext <<_ACEOF
23428: /* end confdefs.h. */
23429: $ac_includes_default
23430: #include <$ac_header>
23431: _ACEOF
23432: rm -f conftest.$ac_objext
23433: if { (ac_try="$ac_compile"
23434: case "(($ac_try" in
23435: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436: *) ac_try_echo=$ac_try;;
23437: esac
23438: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439: (eval "$ac_compile") 2>conftest.er1
23440: ac_status=$?
23441: grep -v '^ *+' conftest.er1 >conftest.err
23442: rm -f conftest.er1
23443: cat conftest.err >&5
23444: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445: (exit $ac_status); } && {
23446: test -z "$ac_c_werror_flag" ||
23447: test ! -s conftest.err
23448: } && test -s conftest.$ac_objext; then
23449: ac_header_compiler=yes
1.35 millert 23450: else
1.37 millert 23451: echo "$as_me: failed program was:" >&5
23452: sed 's/^/| /' conftest.$ac_ext >&5
23453:
23454: ac_header_compiler=no
1.35 millert 23455: fi
23456:
1.37 millert 23457: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23458: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23459: echo "${ECHO_T}$ac_header_compiler" >&6; }
23460:
23461: # Is the header present?
23462: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23463: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23464: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 23465: /* confdefs.h. */
1.17 millert 23466: _ACEOF
1.27 millert 23467: cat confdefs.h >>conftest.$ac_ext
23468: cat >>conftest.$ac_ext <<_ACEOF
23469: /* end confdefs.h. */
1.37 millert 23470: #include <$ac_header>
1.25 millert 23471: _ACEOF
1.37 millert 23472: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.27 millert 23473: case "(($ac_try" in
23474: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475: *) ac_try_echo=$ac_try;;
23476: esac
23477: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 23478: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.27 millert 23479: ac_status=$?
23480: grep -v '^ *+' conftest.er1 >conftest.err
23481: rm -f conftest.er1
23482: cat conftest.err >&5
23483: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 23484: (exit $ac_status); } >/dev/null && {
23485: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.27 millert 23486: test ! -s conftest.err
1.37 millert 23487: }; then
23488: ac_header_preproc=yes
1.27 millert 23489: else
23490: echo "$as_me: failed program was:" >&5
23491: sed 's/^/| /' conftest.$ac_ext >&5
1.17 millert 23492:
1.37 millert 23493: ac_header_preproc=no
23494: fi
23495:
23496: rm -f conftest.err conftest.$ac_ext
23497: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23498: echo "${ECHO_T}$ac_header_preproc" >&6; }
1.1 millert 23499:
1.37 millert 23500: # So? What about this header?
23501: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23502: yes:no: )
23503: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23504: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23505: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23506: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23507: ac_header_preproc=yes
23508: ;;
23509: no:yes:* )
23510: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23511: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23512: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23513: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23514: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23515: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23516: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23517: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23518: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23519: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23520: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23521: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
1.1 millert 23522:
1.37 millert 23523: ;;
23524: esac
23525: { echo "$as_me:$LINENO: checking for $ac_header" >&5
23526: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23527: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23528: echo $ECHO_N "(cached) $ECHO_C" >&6
23529: else
23530: eval "$as_ac_Header=\$ac_header_preproc"
1.25 millert 23531: fi
1.37 millert 23532: ac_res=`eval echo '${'$as_ac_Header'}'`
23533: { echo "$as_me:$LINENO: result: $ac_res" >&5
23534: echo "${ECHO_T}$ac_res" >&6; }
1.25 millert 23535:
1.37 millert 23536: fi
23537: if test `eval echo '${'$as_ac_Header'}'` = yes; then
23538: cat >>confdefs.h <<_ACEOF
23539: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23540: _ACEOF
1.1 millert 23541:
1.37 millert 23542: fi
1.1 millert 23543:
1.37 millert 23544: done
1.33 millert 23545:
1.37 millert 23546: if test X"$found" = X"gssapi/gssapi.h"; then
1.35 millert 23547:
1.37 millert 23548: for ac_header in gssapi/gssapi_krb5.h
1.27 millert 23549: do
1.37 millert 23550: as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23551: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23552: { echo "$as_me:$LINENO: checking for $ac_header" >&5
23553: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23554: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
1.27 millert 23555: echo $ECHO_N "(cached) $ECHO_C" >&6
1.37 millert 23556: fi
23557: ac_res=`eval echo '${'$as_ac_Header'}'`
23558: { echo "$as_me:$LINENO: result: $ac_res" >&5
23559: echo "${ECHO_T}$ac_res" >&6; }
1.27 millert 23560: else
1.37 millert 23561: # Is the header compilable?
23562: { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23563: echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23564: cat >conftest.$ac_ext <<_ACEOF
1.27 millert 23565: /* confdefs.h. */
1.16 millert 23566: _ACEOF
1.27 millert 23567: cat confdefs.h >>conftest.$ac_ext
23568: cat >>conftest.$ac_ext <<_ACEOF
23569: /* end confdefs.h. */
1.37 millert 23570: $ac_includes_default
23571: #include <$ac_header>
1.27 millert 23572: _ACEOF
1.37 millert 23573: rm -f conftest.$ac_objext
23574: if { (ac_try="$ac_compile"
1.27 millert 23575: case "(($ac_try" in
23576: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23577: *) ac_try_echo=$ac_try;;
23578: esac
23579: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 23580: (eval "$ac_compile") 2>conftest.er1
1.27 millert 23581: ac_status=$?
23582: grep -v '^ *+' conftest.er1 >conftest.err
23583: rm -f conftest.er1
23584: cat conftest.err >&5
23585: echo "$as_me:$LINENO: \$? = $ac_status" >&5
23586: (exit $ac_status); } && {
23587: test -z "$ac_c_werror_flag" ||
23588: test ! -s conftest.err
1.37 millert 23589: } && test -s conftest.$ac_objext; then
23590: ac_header_compiler=yes
1.27 millert 23591: else
23592: echo "$as_me: failed program was:" >&5
23593: sed 's/^/| /' conftest.$ac_ext >&5
1.16 millert 23594:
1.37 millert 23595: ac_header_compiler=no
1.27 millert 23596: fi
1.17 millert 23597:
1.37 millert 23598: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23599: { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23600: echo "${ECHO_T}$ac_header_compiler" >&6; }
1.17 millert 23601:
1.37 millert 23602: # Is the header present?
23603: { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23604: echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23605: cat >conftest.$ac_ext <<_ACEOF
1.35 millert 23606: /* confdefs.h. */
23607: _ACEOF
23608: cat confdefs.h >>conftest.$ac_ext
23609: cat >>conftest.$ac_ext <<_ACEOF
23610: /* end confdefs.h. */
23611: #include <$ac_header>
23612: _ACEOF
1.37 millert 23613: if { (ac_try="$ac_cpp conftest.$ac_ext"
1.35 millert 23614: case "(($ac_try" in
23615: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616: *) ac_try_echo=$ac_try;;
23617: esac
23618: eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1.37 millert 23619: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
1.35 millert 23620: ac_status=$?
23621: grep -v '^ *+' conftest.er1 >conftest.err
23622: rm -f conftest.er1
23623: cat conftest.err >&5
23624: echo "$as_me:$LINENO: \$? = $ac_status" >&5
1.37 millert 23625: (exit $ac_status); } >/dev/null && {
23626: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1.35 millert 23627: test ! -s conftest.err
1.37 millert 23628: }; then
23629: ac_header_preproc=yes
1.35 millert 23630: else
23631: echo "$as_me: failed program was:" >&5
23632: sed 's/^/| /' conftest.$ac_ext >&5
23633:
1.37 millert 23634: ac_header_preproc=no
1.35 millert 23635: fi
23636:
1.37 millert 23637: rm -f conftest.err conftest.$ac_ext
23638: { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23639: echo "${ECHO_T}$ac_header_preproc" >&6; }
23640:
23641: # So? What about this header?
23642: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23643: yes:no: )
23644: { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23645: echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23646: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23647: echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23648: ac_header_preproc=yes
23649: ;;
23650: no:yes:* )
23651: { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23652: echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23653: { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23654: echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23655: { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23656: echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23657: { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23658: echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23659: { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23660: echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23661: { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23662: echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23663:
23664: ;;
23665: esac
23666: { echo "$as_me:$LINENO: checking for $ac_header" >&5
23667: echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23668: if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23669: echo $ECHO_N "(cached) $ECHO_C" >&6
23670: else
23671: eval "$as_ac_Header=\$ac_header_preproc"
1.35 millert 23672: fi
23673: ac_res=`eval echo '${'$as_ac_Header'}'`
23674: { echo "$as_me:$LINENO: result: $ac_res" >&5
23675: echo "${ECHO_T}$ac_res" >&6; }
1.37 millert 23676:
23677: fi
1.35 millert 23678: if test `eval echo '${'$as_ac_Header'}'` = yes; then
23679: cat >>confdefs.h <<_ACEOF
23680: #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23681: _ACEOF
1.37 millert 23682:
1.35 millert 23683: fi
23684:
1.27 millert 23685: done
1.17 millert 23686:
1.37 millert 23687: fi
23688: else
23689: CPPFLAGS="$O_CPPFLAGS"
23690: { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
23691: echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
23692: fi
23693: fi
1.17 millert 23694:
1.36 millert 23695: SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
1.27 millert 23696: LIBS="$_LIBS"
23697: LDFLAGS="$_LDFLAGS"
23698: fi
1.17 millert 23699:
1.27 millert 23700: if test -n "$blibpath"; then
23701: if test -n "$blibpath_add"; then
23702: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23703: elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23704: SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
1.17 millert 23705: fi
1.27 millert 23706: fi
23707:
23708: { echo "$as_me:$LINENO: checking for log file location" >&5
23709: echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23710: if test -n "$with_logpath"; then
23711: { echo "$as_me:$LINENO: result: $with_logpath" >&5
23712: echo "${ECHO_T}$with_logpath" >&6; }
23713: cat >>confdefs.h <<EOF
23714: #define _PATH_SUDO_LOGFILE "$with_logpath"
23715: EOF
1.17 millert 23716:
1.27 millert 23717: elif test -d "/var/log"; then
23718: { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23719: echo "${ECHO_T}/var/log/sudo.log" >&6; }
23720: cat >>confdefs.h <<\EOF
23721: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23722: EOF
1.17 millert 23723:
1.27 millert 23724: elif test -d "/var/adm"; then
23725: { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23726: echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23727: cat >>confdefs.h <<\EOF
23728: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23729: EOF
1.17 millert 23730:
1.27 millert 23731: elif test -d "/usr/adm"; then
23732: { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23733: echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23734: cat >>confdefs.h <<\EOF
23735: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23736: EOF
1.23 millert 23737:
23738: else
1.27 millert 23739: { echo "$as_me:$LINENO: result: unknown" >&5
23740: echo "${ECHO_T}unknown" >&6; }
1.23 millert 23741: fi
23742:
1.27 millert 23743: { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23744: echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23745: if test -n "$with_timedir"; then
23746: { echo "$as_me:$LINENO: result: $with_timedir" >&5
23747: echo "${ECHO_T}$with_timedir" >&6; }
23748: cat >>confdefs.h <<EOF
23749: #define _PATH_SUDO_TIMEDIR "$with_timedir"
23750: EOF
1.23 millert 23751:
1.27 millert 23752: timedir="$with_timedir"
23753: elif test -d "/var/run"; then
23754: { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23755: echo "${ECHO_T}/var/run/sudo" >&6; }
23756: cat >>confdefs.h <<\EOF
23757: #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23758: EOF
1.23 millert 23759:
1.27 millert 23760: timedir="/var/run/sudo"
23761: elif test -d "/var/adm"; then
23762: { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23763: echo "${ECHO_T}/var/adm/sudo" >&6; }
23764: cat >>confdefs.h <<\EOF
23765: #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23766: EOF
1.23 millert 23767:
1.27 millert 23768: timedir="/var/adm/sudo"
23769: else
23770: { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23771: echo "${ECHO_T}/usr/adm/sudo" >&6; }
23772: cat >>confdefs.h <<\EOF
23773: #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23774: EOF
1.23 millert 23775:
1.27 millert 23776: timedir="/usr/adm/sudo"
23777: fi
1.23 millert 23778:
23779:
1.27 millert 23780: case "$with_passwd" in
23781: yes|maybe)
23782: AUTH_OBJS="$AUTH_OBJS passwd.o"
23783: ;;
23784: *)
23785: cat >>confdefs.h <<\_ACEOF
23786: #define WITHOUT_PASSWD 1
1.23 millert 23787: _ACEOF
1.25 millert 23788:
1.27 millert 23789: if test -z "$AUTH_OBJS"; then
23790: { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23791: echo "$as_me: error: no authentication methods defined." >&2;}
23792: { (exit 1); exit 1; }; }
23793: fi
23794: ;;
23795: esac
23796: AUTH_OBJS=${AUTH_OBJS# }
23797: _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23798: { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23799: echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
1.25 millert 23800:
1.27 millert 23801: if test -n "$LIBS"; then
23802: L="$LIBS"
23803: LIBS=
23804: for l in ${L}; do
23805: dupe=0
23806: for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23807: test $l = $sl && dupe=1
23808: done
23809: test $dupe = 0 && LIBS="${LIBS} $l"
23810: done
23811: fi
1.23 millert 23812:
1.27 millert 23813: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
1.23 millert 23814:
1.36 millert 23815: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
1.27 millert 23816: oexec_prefix="$exec_prefix"
23817: if test "$exec_prefix" = '$(prefix)'; then
23818: if test "$prefix" = "NONE"; then
23819: exec_prefix="$ac_default_prefix"
23820: else
23821: exec_prefix="$prefix"
23822: fi
23823: fi
1.36 millert 23824: if test X"$with_noexec" != X"no"; then
23825: PROGS="${PROGS} sudo_noexec.la"
23826: INSTALL_NOEXEC="install-noexec"
23827:
23828: eval noexec_file="$with_noexec"
1.23 millert 23829:
1.27 millert 23830: cat >>confdefs.h <<_ACEOF
23831: #define _PATH_SUDO_NOEXEC "$noexec_file"
1.16 millert 23832: _ACEOF
1.23 millert 23833:
1.36 millert 23834: fi
23835: if test X"$with_selinux" != X"no"; then
23836: eval sesh_file="$libexecdir/sesh"
23837:
23838: cat >>confdefs.h <<_ACEOF
23839: #define _PATH_SUDO_SESH "$sesh_file"
23840: _ACEOF
23841:
23842: fi
1.27 millert 23843: exec_prefix="$oexec_prefix"
23844: fi
23845:
1.37 millert 23846: ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
1.27 millert 23847:
23848: cat >confcache <<\_ACEOF
23849: # This file is a shell script that caches the results of configure
23850: # tests run on this system so they can be shared between configure
23851: # scripts and configure runs, see configure's option --config-cache.
23852: # It is not useful on other systems. If it contains results you don't
23853: # want to keep, you may remove or edit it.
23854: #
23855: # config.status only pays attention to the cache file if you give it
23856: # the --recheck option to rerun configure.
1.25 millert 23857: #
1.27 millert 23858: # `ac_cv_env_foo' variables (set or unset) will be overridden when
23859: # loading this file, other *unset* `ac_cv_foo' will be assigned the
23860: # following values.
1.16 millert 23861:
1.23 millert 23862: _ACEOF
1.17 millert 23863:
1.27 millert 23864: # The following way of writing the cache mishandles newlines in values,
23865: # but we know of no workaround that is simple, portable, and efficient.
23866: # So, we kill variables containing newlines.
23867: # Ultrix sh set writes to stderr and can't be redirected directly,
23868: # and sets the high bit in the cache file unless we assign to the vars.
23869: (
23870: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23871: eval ac_val=\$$ac_var
23872: case $ac_val in #(
23873: *${as_nl}*)
23874: case $ac_var in #(
23875: *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23876: echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23877: esac
23878: case $ac_var in #(
23879: _ | IFS | as_nl) ;; #(
23880: *) $as_unset $ac_var ;;
23881: esac ;;
23882: esac
23883: done
1.1 millert 23884:
1.27 millert 23885: (set) 2>&1 |
23886: case $as_nl`(ac_space=' '; set) 2>&1` in #(
23887: *${as_nl}ac_space=\ *)
23888: # `set' does not quote correctly, so add quotes (double-quote
23889: # substitution turns \\\\ into \\, and sed turns \\ into \).
23890: sed -n \
23891: "s/'/'\\\\''/g;
23892: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23893: ;; #(
23894: *)
23895: # `set' quotes correctly as required by POSIX, so do not add quotes.
23896: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23897: ;;
23898: esac |
23899: sort
23900: ) |
23901: sed '
23902: /^ac_cv_env_/b end
23903: t clear
23904: :clear
23905: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23906: t end
23907: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23908: :end' >>confcache
23909: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23910: if test -w "$cache_file"; then
23911: test "x$cache_file" != "x/dev/null" &&
23912: { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23913: echo "$as_me: updating cache $cache_file" >&6;}
23914: cat confcache >$cache_file
1.25 millert 23915: else
1.27 millert 23916: { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23917: echo "$as_me: not updating unwritable cache $cache_file" >&6;}
1.25 millert 23918: fi
1.27 millert 23919: fi
23920: rm -f confcache
1.1 millert 23921:
1.27 millert 23922: test "x$prefix" = xNONE && prefix=$ac_default_prefix
23923: # Let make expand exec_prefix.
23924: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1.1 millert 23925:
1.27 millert 23926: DEFS=-DHAVE_CONFIG_H
1.1 millert 23927:
1.27 millert 23928: ac_libobjs=
23929: ac_ltlibobjs=
23930: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23931: # 1. Remove the extension, and $U if already installed.
23932: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23933: ac_i=`echo "$ac_i" | sed "$ac_script"`
23934: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23935: # will be set to the directory where LIBOBJS objects are built.
23936: ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23937: ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23938: done
23939: LIBOBJS=$ac_libobjs
1.1 millert 23940:
1.27 millert 23941: LTLIBOBJS=$ac_ltlibobjs
1.1 millert 23942:
23943:
23944:
1.27 millert 23945: : ${CONFIG_STATUS=./config.status}
23946: ac_clean_files_save=$ac_clean_files
23947: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23948: { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23949: echo "$as_me: creating $CONFIG_STATUS" >&6;}
23950: cat >$CONFIG_STATUS <<_ACEOF
23951: #! $SHELL
23952: # Generated by $as_me.
23953: # Run this file to recreate the current configuration.
23954: # Compiler output produced by configure, useful for debugging
23955: # configure, is in config.log if it exists.
1.1 millert 23956:
1.27 millert 23957: debug=false
23958: ac_cs_recheck=false
23959: ac_cs_silent=false
23960: SHELL=\${CONFIG_SHELL-$SHELL}
23961: _ACEOF
1.23 millert 23962:
1.27 millert 23963: cat >>$CONFIG_STATUS <<\_ACEOF
23964: ## --------------------- ##
23965: ## M4sh Initialization. ##
23966: ## --------------------- ##
1.23 millert 23967:
1.27 millert 23968: # Be more Bourne compatible
23969: DUALCASE=1; export DUALCASE # for MKS sh
23970: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23971: emulate sh
23972: NULLCMD=:
23973: # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23974: # is contrary to our usage. Disable this feature.
23975: alias -g '${1+"$@"}'='"$@"'
23976: setopt NO_GLOB_SUBST
23977: else
23978: case `(set -o) 2>/dev/null` in
23979: *posix*) set -o posix ;;
23980: esac
1.25 millert 23981:
1.27 millert 23982: fi
1.25 millert 23983:
1.9 millert 23984:
23985:
1.1 millert 23986:
1.27 millert 23987: # PATH needs CR
23988: # Avoid depending upon Character Ranges.
23989: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23990: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23991: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23992: as_cr_digits='0123456789'
23993: as_cr_alnum=$as_cr_Letters$as_cr_digits
1.1 millert 23994:
1.27 millert 23995: # The user is always right.
23996: if test "${PATH_SEPARATOR+set}" != set; then
23997: echo "#! /bin/sh" >conf$$.sh
23998: echo "exit 0" >>conf$$.sh
23999: chmod +x conf$$.sh
24000: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24001: PATH_SEPARATOR=';'
24002: else
24003: PATH_SEPARATOR=:
24004: fi
24005: rm -f conf$$.sh
24006: fi
1.1 millert 24007:
1.27 millert 24008: # Support unset when possible.
24009: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24010: as_unset=unset
24011: else
24012: as_unset=false
24013: fi
1.1 millert 24014:
1.16 millert 24015:
1.27 millert 24016: # IFS
24017: # We need space, tab and new line, in precisely that order. Quoting is
24018: # there to prevent editors from complaining about space-tab.
24019: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24020: # splitting by setting IFS to empty value.)
24021: as_nl='
24022: '
24023: IFS=" "" $as_nl"
1.16 millert 24024:
1.27 millert 24025: # Find who we are. Look in the path if we contain no directory separator.
24026: case $0 in
24027: *[\\/]* ) as_myself=$0 ;;
24028: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24029: for as_dir in $PATH
24030: do
24031: IFS=$as_save_IFS
24032: test -z "$as_dir" && as_dir=.
24033: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24034: done
24035: IFS=$as_save_IFS
1.16 millert 24036:
1.27 millert 24037: ;;
24038: esac
24039: # We did not find ourselves, most probably we were run as `sh COMMAND'
24040: # in which case we are not to be found in the path.
24041: if test "x$as_myself" = x; then
24042: as_myself=$0
24043: fi
24044: if test ! -f "$as_myself"; then
24045: echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24046: { (exit 1); exit 1; }
24047: fi
1.16 millert 24048:
1.27 millert 24049: # Work around bugs in pre-3.0 UWIN ksh.
24050: for as_var in ENV MAIL MAILPATH
24051: do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24052: done
24053: PS1='$ '
24054: PS2='> '
24055: PS4='+ '
1.9 millert 24056:
1.27 millert 24057: # NLS nuisances.
24058: for as_var in \
24059: LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24060: LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24061: LC_TELEPHONE LC_TIME
24062: do
24063: if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24064: eval $as_var=C; export $as_var
24065: else
24066: ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24067: fi
24068: done
1.9 millert 24069:
1.27 millert 24070: # Required to use basename.
24071: if expr a : '\(a\)' >/dev/null 2>&1 &&
24072: test "X`expr 00001 : '.*\(...\)'`" = X001; then
24073: as_expr=expr
24074: else
24075: as_expr=false
24076: fi
1.16 millert 24077:
1.27 millert 24078: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24079: as_basename=basename
24080: else
24081: as_basename=false
24082: fi
1.9 millert 24083:
1.16 millert 24084:
1.27 millert 24085: # Name of the executable.
24086: as_me=`$as_basename -- "$0" ||
24087: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24088: X"$0" : 'X\(//\)$' \| \
24089: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24090: echo X/"$0" |
24091: sed '/^.*\/\([^/][^/]*\)\/*$/{
24092: s//\1/
24093: q
24094: }
24095: /^X\/\(\/\/\)$/{
24096: s//\1/
24097: q
24098: }
24099: /^X\/\(\/\).*/{
24100: s//\1/
24101: q
24102: }
24103: s/.*/./; q'`
1.16 millert 24104:
1.27 millert 24105: # CDPATH.
24106: $as_unset CDPATH
1.16 millert 24107:
24108:
24109:
1.27 millert 24110: as_lineno_1=$LINENO
24111: as_lineno_2=$LINENO
24112: test "x$as_lineno_1" != "x$as_lineno_2" &&
24113: test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
1.16 millert 24114:
1.27 millert 24115: # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24116: # uniformly replaced by the line number. The first 'sed' inserts a
24117: # line-number line after each line using $LINENO; the second 'sed'
24118: # does the real work. The second script uses 'N' to pair each
24119: # line-number line with the line containing $LINENO, and appends
24120: # trailing '-' during substitution so that $LINENO is not a special
24121: # case at line end.
24122: # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24123: # scripts with optimization help from Paolo Bonzini. Blame Lee
24124: # E. McMahon (1931-1989) for sed's syntax. :-)
24125: sed -n '
24126: p
24127: /[$]LINENO/=
24128: ' <$as_myself |
24129: sed '
24130: s/[$]LINENO.*/&-/
24131: t lineno
24132: b
24133: :lineno
24134: N
24135: :loop
24136: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24137: t loop
24138: s/-\n.*//
24139: ' >$as_me.lineno &&
24140: chmod +x "$as_me.lineno" ||
24141: { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24142: { (exit 1); exit 1; }; }
1.16 millert 24143:
1.27 millert 24144: # Don't try to exec as it changes $[0], causing all sort of problems
24145: # (the dirname of $[0] is not the place where we might find the
24146: # original and so on. Autoconf is especially sensitive to this).
24147: . "./$as_me.lineno"
24148: # Exit status is that of the last command.
24149: exit
24150: }
1.16 millert 24151:
24152:
1.27 millert 24153: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24154: as_dirname=dirname
24155: else
24156: as_dirname=false
24157: fi
1.16 millert 24158:
1.27 millert 24159: ECHO_C= ECHO_N= ECHO_T=
24160: case `echo -n x` in
24161: -n*)
24162: case `echo 'x\c'` in
24163: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24164: *) ECHO_C='\c';;
24165: esac;;
24166: *)
24167: ECHO_N='-n';;
24168: esac
1.16 millert 24169:
1.27 millert 24170: if expr a : '\(a\)' >/dev/null 2>&1 &&
24171: test "X`expr 00001 : '.*\(...\)'`" = X001; then
24172: as_expr=expr
24173: else
24174: as_expr=false
24175: fi
1.16 millert 24176:
1.27 millert 24177: rm -f conf$$ conf$$.exe conf$$.file
24178: if test -d conf$$.dir; then
24179: rm -f conf$$.dir/conf$$.file
24180: else
24181: rm -f conf$$.dir
24182: mkdir conf$$.dir
24183: fi
24184: echo >conf$$.file
24185: if ln -s conf$$.file conf$$ 2>/dev/null; then
24186: as_ln_s='ln -s'
24187: # ... but there are two gotchas:
24188: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24189: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24190: # In both cases, we have to default to `cp -p'.
24191: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24192: as_ln_s='cp -p'
24193: elif ln conf$$.file conf$$ 2>/dev/null; then
24194: as_ln_s=ln
24195: else
24196: as_ln_s='cp -p'
24197: fi
24198: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24199: rmdir conf$$.dir 2>/dev/null
1.16 millert 24200:
1.27 millert 24201: if mkdir -p . 2>/dev/null; then
24202: as_mkdir_p=:
24203: else
24204: test -d ./-p && rmdir ./-p
24205: as_mkdir_p=false
24206: fi
1.16 millert 24207:
1.27 millert 24208: if test -x / >/dev/null 2>&1; then
24209: as_test_x='test -x'
24210: else
24211: if ls -dL / >/dev/null 2>&1; then
24212: as_ls_L_option=L
24213: else
24214: as_ls_L_option=
24215: fi
24216: as_test_x='
24217: eval sh -c '\''
24218: if test -d "$1"; then
24219: test -d "$1/.";
24220: else
24221: case $1 in
24222: -*)set "./$1";;
24223: esac;
24224: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24225: ???[sx]*):;;*)false;;esac;fi
24226: '\'' sh
24227: '
24228: fi
24229: as_executable_p=$as_test_x
1.16 millert 24230:
1.27 millert 24231: # Sed expression to map a string onto a valid CPP name.
24232: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 24233:
1.27 millert 24234: # Sed expression to map a string onto a valid variable name.
24235: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
1.16 millert 24236:
1.9 millert 24237:
1.27 millert 24238: exec 6>&1
1.9 millert 24239:
1.27 millert 24240: # Save the log message, to keep $[0] and so on meaningful, and to
24241: # report actual input values of CONFIG_FILES etc. instead of their
24242: # values after options handling.
24243: ac_log="
1.37 millert 24244: This file was extended by sudo $as_me 1.7, which was
1.27 millert 24245: generated by GNU Autoconf 2.61. Invocation command line was
1.9 millert 24246:
1.27 millert 24247: CONFIG_FILES = $CONFIG_FILES
24248: CONFIG_HEADERS = $CONFIG_HEADERS
24249: CONFIG_LINKS = $CONFIG_LINKS
24250: CONFIG_COMMANDS = $CONFIG_COMMANDS
24251: $ $0 $@
1.16 millert 24252:
1.27 millert 24253: on `(hostname || uname -n) 2>/dev/null | sed 1q`
24254: "
1.9 millert 24255:
1.27 millert 24256: _ACEOF
1.16 millert 24257:
1.27 millert 24258: cat >>$CONFIG_STATUS <<_ACEOF
24259: # Files that config.status was made for.
24260: config_files="$ac_config_files"
24261: config_headers="$ac_config_headers"
1.9 millert 24262:
1.27 millert 24263: _ACEOF
1.9 millert 24264:
1.27 millert 24265: cat >>$CONFIG_STATUS <<\_ACEOF
24266: ac_cs_usage="\
24267: \`$as_me' instantiates files from templates according to the
24268: current configuration.
1.9 millert 24269:
1.27 millert 24270: Usage: $0 [OPTIONS] [FILE]...
1.9 millert 24271:
1.27 millert 24272: -h, --help print this help, then exit
24273: -V, --version print version number and configuration settings, then exit
24274: -q, --quiet do not print progress messages
24275: -d, --debug don't remove temporary files
24276: --recheck update $as_me by reconfiguring in the same conditions
24277: --file=FILE[:TEMPLATE]
24278: instantiate the configuration file FILE
24279: --header=FILE[:TEMPLATE]
24280: instantiate the configuration header FILE
1.9 millert 24281:
1.27 millert 24282: Configuration files:
24283: $config_files
1.16 millert 24284:
1.27 millert 24285: Configuration headers:
24286: $config_headers
1.16 millert 24287:
1.27 millert 24288: Report bugs to <bug-autoconf@gnu.org>."
1.16 millert 24289:
1.27 millert 24290: _ACEOF
24291: cat >>$CONFIG_STATUS <<_ACEOF
24292: ac_cs_version="\\
1.37 millert 24293: sudo config.status 1.7
1.27 millert 24294: configured by $0, generated by GNU Autoconf 2.61,
24295: with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
1.9 millert 24296:
1.27 millert 24297: Copyright (C) 2006 Free Software Foundation, Inc.
24298: This config.status script is free software; the Free Software Foundation
24299: gives unlimited permission to copy, distribute and modify it."
1.9 millert 24300:
1.27 millert 24301: ac_pwd='$ac_pwd'
24302: srcdir='$srcdir'
24303: _ACEOF
1.9 millert 24304:
1.27 millert 24305: cat >>$CONFIG_STATUS <<\_ACEOF
24306: # If no file are specified by the user, then we need to provide default
24307: # value. By we need to know if files were specified by the user.
24308: ac_need_defaults=:
24309: while test $# != 0
24310: do
24311: case $1 in
24312: --*=*)
24313: ac_option=`expr "X$1" : 'X\([^=]*\)='`
24314: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24315: ac_shift=:
24316: ;;
24317: *)
24318: ac_option=$1
24319: ac_optarg=$2
24320: ac_shift=shift
24321: ;;
24322: esac
1.9 millert 24323:
1.27 millert 24324: case $ac_option in
24325: # Handling of the options.
24326: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24327: ac_cs_recheck=: ;;
24328: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24329: echo "$ac_cs_version"; exit ;;
24330: --debug | --debu | --deb | --de | --d | -d )
24331: debug=: ;;
24332: --file | --fil | --fi | --f )
24333: $ac_shift
24334: CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24335: ac_need_defaults=false;;
24336: --header | --heade | --head | --hea )
24337: $ac_shift
24338: CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24339: ac_need_defaults=false;;
24340: --he | --h)
24341: # Conflict between --help and --header
24342: { echo "$as_me: error: ambiguous option: $1
24343: Try \`$0 --help' for more information." >&2
24344: { (exit 1); exit 1; }; };;
24345: --help | --hel | -h )
24346: echo "$ac_cs_usage"; exit ;;
24347: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24348: | -silent | --silent | --silen | --sile | --sil | --si | --s)
24349: ac_cs_silent=: ;;
1.9 millert 24350:
1.27 millert 24351: # This is an error.
24352: -*) { echo "$as_me: error: unrecognized option: $1
24353: Try \`$0 --help' for more information." >&2
24354: { (exit 1); exit 1; }; } ;;
1.9 millert 24355:
1.27 millert 24356: *) ac_config_targets="$ac_config_targets $1"
24357: ac_need_defaults=false ;;
1.9 millert 24358:
1.27 millert 24359: esac
24360: shift
24361: done
1.9 millert 24362:
1.27 millert 24363: ac_configure_extra_args=
1.9 millert 24364:
1.27 millert 24365: if $ac_cs_silent; then
24366: exec 6>/dev/null
24367: ac_configure_extra_args="$ac_configure_extra_args --silent"
24368: fi
1.9 millert 24369:
1.27 millert 24370: _ACEOF
24371: cat >>$CONFIG_STATUS <<_ACEOF
24372: if \$ac_cs_recheck; then
24373: echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24374: CONFIG_SHELL=$SHELL
24375: export CONFIG_SHELL
24376: exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24377: fi
1.9 millert 24378:
1.27 millert 24379: _ACEOF
24380: cat >>$CONFIG_STATUS <<\_ACEOF
24381: exec 5>>config.log
24382: {
24383: echo
24384: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24385: ## Running $as_me. ##
24386: _ASBOX
24387: echo "$ac_log"
24388: } >&5
1.9 millert 24389:
1.27 millert 24390: _ACEOF
24391: cat >>$CONFIG_STATUS <<_ACEOF
24392: _ACEOF
1.9 millert 24393:
1.27 millert 24394: cat >>$CONFIG_STATUS <<\_ACEOF
1.9 millert 24395:
1.27 millert 24396: # Handling of arguments.
24397: for ac_config_target in $ac_config_targets
24398: do
24399: case $ac_config_target in
24400: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24401: "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24402: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24403: "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24404: "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24405: "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
1.37 millert 24406: "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24407: "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
1.9 millert 24408:
1.27 millert 24409: *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24410: echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24411: { (exit 1); exit 1; }; };;
24412: esac
24413: done
1.9 millert 24414:
24415:
1.27 millert 24416: # If the user did not use the arguments to specify the items to instantiate,
24417: # then the envvar interface is used. Set only those that are not.
24418: # We use the long form for the default assignment because of an extremely
24419: # bizarre bug on SunOS 4.1.3.
24420: if $ac_need_defaults; then
24421: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24422: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24423: fi
1.9 millert 24424:
1.27 millert 24425: # Have a temporary directory for convenience. Make it in the build tree
24426: # simply because there is no reason against having it here, and in addition,
24427: # creating and moving files from /tmp can sometimes cause problems.
24428: # Hook for its removal unless debugging.
24429: # Note that there is a small window in which the directory will not be cleaned:
24430: # after its creation but before its name has been assigned to `$tmp'.
24431: $debug ||
24432: {
24433: tmp=
24434: trap 'exit_status=$?
24435: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24436: ' 0
24437: trap '{ (exit 1); exit 1; }' 1 2 13 15
24438: }
24439: # Create a (secure) tmp directory for tmp files.
1.9 millert 24440:
1.27 millert 24441: {
24442: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24443: test -n "$tmp" && test -d "$tmp"
24444: } ||
24445: {
24446: tmp=./conf$$-$RANDOM
24447: (umask 077 && mkdir "$tmp")
24448: } ||
24449: {
24450: echo "$me: cannot create a temporary directory in ." >&2
24451: { (exit 1); exit 1; }
24452: }
1.9 millert 24453:
1.27 millert 24454: #
24455: # Set up the sed scripts for CONFIG_FILES section.
24456: #
1.16 millert 24457:
1.27 millert 24458: # No need to generate the scripts if there are no CONFIG_FILES.
24459: # This happens for instance when ./config.status config.h
24460: if test -n "$CONFIG_FILES"; then
1.16 millert 24461:
1.27 millert 24462: _ACEOF
1.16 millert 24463:
24464:
1.1 millert 24465:
1.27 millert 24466: ac_delim='%!_!# '
24467: for ac_last_try in false false false false false :; do
24468: cat >conf$$subs.sed <<_ACEOF
24469: SHELL!$SHELL$ac_delim
24470: PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24471: PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24472: PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24473: PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24474: PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24475: PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24476: exec_prefix!$exec_prefix$ac_delim
24477: prefix!$prefix$ac_delim
24478: program_transform_name!$program_transform_name$ac_delim
24479: bindir!$bindir$ac_delim
24480: sbindir!$sbindir$ac_delim
24481: libexecdir!$libexecdir$ac_delim
24482: datarootdir!$datarootdir$ac_delim
24483: datadir!$datadir$ac_delim
24484: sysconfdir!$sysconfdir$ac_delim
24485: sharedstatedir!$sharedstatedir$ac_delim
24486: localstatedir!$localstatedir$ac_delim
24487: includedir!$includedir$ac_delim
24488: oldincludedir!$oldincludedir$ac_delim
24489: docdir!$docdir$ac_delim
24490: infodir!$infodir$ac_delim
24491: htmldir!$htmldir$ac_delim
24492: dvidir!$dvidir$ac_delim
24493: pdfdir!$pdfdir$ac_delim
24494: psdir!$psdir$ac_delim
24495: libdir!$libdir$ac_delim
24496: localedir!$localedir$ac_delim
24497: mandir!$mandir$ac_delim
24498: DEFS!$DEFS$ac_delim
24499: ECHO_C!$ECHO_C$ac_delim
24500: ECHO_N!$ECHO_N$ac_delim
24501: ECHO_T!$ECHO_T$ac_delim
24502: LIBS!$LIBS$ac_delim
24503: build_alias!$build_alias$ac_delim
24504: host_alias!$host_alias$ac_delim
24505: target_alias!$target_alias$ac_delim
1.39 ! millert 24506: HAVE_BSM_AUDIT!$HAVE_BSM_AUDIT$ac_delim
1.27 millert 24507: LIBTOOL!$LIBTOOL$ac_delim
24508: CFLAGS!$CFLAGS$ac_delim
24509: PROGS!$PROGS$ac_delim
24510: CPPFLAGS!$CPPFLAGS$ac_delim
24511: LDFLAGS!$LDFLAGS$ac_delim
24512: SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24513: SUDO_OBJS!$SUDO_OBJS$ac_delim
24514: SUDO_LIBS!$SUDO_LIBS$ac_delim
24515: NET_LIBS!$NET_LIBS$ac_delim
24516: AFS_LIBS!$AFS_LIBS$ac_delim
1.32 millert 24517: GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
1.27 millert 24518: OSDEFS!$OSDEFS$ac_delim
24519: AUTH_OBJS!$AUTH_OBJS$ac_delim
24520: MANTYPE!$MANTYPE$ac_delim
24521: MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24522: SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24523: SUDOERS_UID!$SUDOERS_UID$ac_delim
24524: SUDOERS_GID!$SUDOERS_GID$ac_delim
24525: DEV!$DEV$ac_delim
1.36 millert 24526: SELINUX!$SELINUX$ac_delim
24527: BAMAN!$BAMAN$ac_delim
24528: LCMAN!$LCMAN$ac_delim
24529: SEMAN!$SEMAN$ac_delim
1.37 millert 24530: devdir!$devdir$ac_delim
1.27 millert 24531: mansectsu!$mansectsu$ac_delim
24532: mansectform!$mansectform$ac_delim
24533: mansrcdir!$mansrcdir$ac_delim
1.36 millert 24534: NOEXECFILE!$NOEXECFILE$ac_delim
1.27 millert 24535: NOEXECDIR!$NOEXECDIR$ac_delim
24536: noexec_file!$noexec_file$ac_delim
24537: INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24538: DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
1.37 millert 24539: BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24540: SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24541: LDAP!$LDAP$ac_delim
24542: LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
1.27 millert 24543: timedir!$timedir$ac_delim
24544: timeout!$timeout$ac_delim
24545: password_timeout!$password_timeout$ac_delim
24546: sudo_umask!$sudo_umask$ac_delim
24547: passprompt!$passprompt$ac_delim
24548: long_otp_prompt!$long_otp_prompt$ac_delim
24549: lecture!$lecture$ac_delim
24550: logfac!$logfac$ac_delim
24551: goodpri!$goodpri$ac_delim
24552: badpri!$badpri$ac_delim
24553: loglen!$loglen$ac_delim
24554: ignore_dot!$ignore_dot$ac_delim
24555: mail_no_user!$mail_no_user$ac_delim
24556: mail_no_host!$mail_no_host$ac_delim
24557: mail_no_perms!$mail_no_perms$ac_delim
24558: mailto!$mailto$ac_delim
24559: mailsub!$mailsub$ac_delim
24560: badpass_message!$badpass_message$ac_delim
24561: fqdn!$fqdn$ac_delim
24562: runas_default!$runas_default$ac_delim
24563: env_editor!$env_editor$ac_delim
24564: passwd_tries!$passwd_tries$ac_delim
24565: tty_tickets!$tty_tickets$ac_delim
24566: _ACEOF
1.9 millert 24567:
1.27 millert 24568: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24569: break
24570: elif $ac_last_try; then
24571: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24572: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24573: { (exit 1); exit 1; }; }
24574: else
24575: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24576: fi
24577: done
1.9 millert 24578:
1.27 millert 24579: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24580: if test -n "$ac_eof"; then
24581: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24582: ac_eof=`expr $ac_eof + 1`
24583: fi
1.16 millert 24584:
1.27 millert 24585: cat >>$CONFIG_STATUS <<_ACEOF
24586: cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24587: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24588: _ACEOF
24589: sed '
24590: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24591: s/^/s,@/; s/!/@,|#_!!_#|/
24592: :n
24593: t n
24594: s/'"$ac_delim"'$/,g/; t
24595: s/$/\\/; p
24596: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24597: ' >>$CONFIG_STATUS <conf$$subs.sed
24598: rm -f conf$$subs.sed
24599: cat >>$CONFIG_STATUS <<_ACEOF
24600: CEOF$ac_eof
24601: _ACEOF
1.1 millert 24602:
24603:
1.27 millert 24604: ac_delim='%!_!# '
24605: for ac_last_try in false false false false false :; do
24606: cat >conf$$subs.sed <<_ACEOF
1.39 ! millert 24607: insults!$insults$ac_delim
1.37 millert 24608: root_sudo!$root_sudo$ac_delim
24609: path_info!$path_info$ac_delim
24610: ldap_conf!$ldap_conf$ac_delim
24611: ldap_secret!$ldap_secret$ac_delim
24612: nsswitch_conf!$nsswitch_conf$ac_delim
1.39 ! millert 24613: netsvc_conf!$netsvc_conf$ac_delim
1.37 millert 24614: EGREPPROG!$EGREPPROG$ac_delim
24615: CC!$CC$ac_delim
24616: ac_ct_CC!$ac_ct_CC$ac_delim
1.36 millert 24617: EXEEXT!$EXEEXT$ac_delim
24618: OBJEXT!$OBJEXT$ac_delim
24619: CPP!$CPP$ac_delim
24620: build!$build$ac_delim
24621: build_cpu!$build_cpu$ac_delim
1.32 millert 24622: build_vendor!$build_vendor$ac_delim
1.27 millert 24623: build_os!$build_os$ac_delim
24624: host!$host$ac_delim
24625: host_cpu!$host_cpu$ac_delim
24626: host_vendor!$host_vendor$ac_delim
24627: host_os!$host_os$ac_delim
24628: SED!$SED$ac_delim
24629: GREP!$GREP$ac_delim
24630: EGREP!$EGREP$ac_delim
24631: LN_S!$LN_S$ac_delim
24632: ECHO!$ECHO$ac_delim
24633: AR!$AR$ac_delim
24634: RANLIB!$RANLIB$ac_delim
24635: STRIP!$STRIP$ac_delim
1.36 millert 24636: DSYMUTIL!$DSYMUTIL$ac_delim
24637: NMEDIT!$NMEDIT$ac_delim
1.27 millert 24638: UNAMEPROG!$UNAMEPROG$ac_delim
24639: TRPROG!$TRPROG$ac_delim
24640: NROFFPROG!$NROFFPROG$ac_delim
24641: YACC!$YACC$ac_delim
24642: YFLAGS!$YFLAGS$ac_delim
24643: LIBOBJS!$LIBOBJS$ac_delim
24644: KRB5CONFIG!$KRB5CONFIG$ac_delim
24645: LTLIBOBJS!$LTLIBOBJS$ac_delim
24646: _ACEOF
1.9 millert 24647:
1.39 ! millert 24648: if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 39; then
1.27 millert 24649: break
24650: elif $ac_last_try; then
24651: { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24652: echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24653: { (exit 1); exit 1; }; }
24654: else
24655: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24656: fi
24657: done
1.1 millert 24658:
1.27 millert 24659: ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24660: if test -n "$ac_eof"; then
24661: ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24662: ac_eof=`expr $ac_eof + 1`
24663: fi
1.9 millert 24664:
1.27 millert 24665: cat >>$CONFIG_STATUS <<_ACEOF
24666: cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24667: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24668: _ACEOF
24669: sed '
24670: s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24671: s/^/s,@/; s/!/@,|#_!!_#|/
24672: :n
24673: t n
24674: s/'"$ac_delim"'$/,g/; t
24675: s/$/\\/; p
24676: N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24677: ' >>$CONFIG_STATUS <conf$$subs.sed
24678: rm -f conf$$subs.sed
24679: cat >>$CONFIG_STATUS <<_ACEOF
24680: :end
24681: s/|#_!!_#|//g
24682: CEOF$ac_eof
24683: _ACEOF
1.1 millert 24684:
24685:
1.27 millert 24686: # VPATH may cause trouble with some makes, so we remove $(srcdir),
24687: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24688: # trailing colons and then remove the whole line if VPATH becomes empty
24689: # (actually we leave an empty line to preserve line numbers).
24690: if test "x$srcdir" = x.; then
24691: ac_vpsub='/^[ ]*VPATH[ ]*=/{
24692: s/:*\$(srcdir):*/:/
24693: s/:*\${srcdir}:*/:/
24694: s/:*@srcdir@:*/:/
24695: s/^\([^=]*=[ ]*\):*/\1/
24696: s/:*$//
24697: s/^[^=]*=[ ]*$//
24698: }'
24699: fi
1.1 millert 24700:
1.27 millert 24701: cat >>$CONFIG_STATUS <<\_ACEOF
24702: fi # test -n "$CONFIG_FILES"
1.16 millert 24703:
24704:
1.27 millert 24705: for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
24706: do
24707: case $ac_tag in
24708: :[FHLC]) ac_mode=$ac_tag; continue;;
24709: esac
24710: case $ac_mode$ac_tag in
24711: :[FHL]*:*);;
24712: :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24713: echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24714: { (exit 1); exit 1; }; };;
24715: :[FH]-) ac_tag=-:-;;
24716: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24717: esac
24718: ac_save_IFS=$IFS
24719: IFS=:
24720: set x $ac_tag
24721: IFS=$ac_save_IFS
24722: shift
24723: ac_file=$1
24724: shift
1.16 millert 24725:
1.27 millert 24726: case $ac_mode in
24727: :L) ac_source=$1;;
24728: :[FH])
24729: ac_file_inputs=
24730: for ac_f
24731: do
24732: case $ac_f in
24733: -) ac_f="$tmp/stdin";;
24734: *) # Look for the file first in the build tree, then in the source tree
24735: # (if the path is not absolute). The absolute path cannot be DOS-style,
24736: # because $ac_f cannot contain `:'.
24737: test -f "$ac_f" ||
24738: case $ac_f in
24739: [\\/$]*) false;;
24740: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24741: esac ||
24742: { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24743: echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24744: { (exit 1); exit 1; }; };;
24745: esac
24746: ac_file_inputs="$ac_file_inputs $ac_f"
24747: done
1.1 millert 24748:
1.27 millert 24749: # Let's still pretend it is `configure' which instantiates (i.e., don't
24750: # use $as_me), people would be surprised to read:
24751: # /* config.h. Generated by config.status. */
24752: configure_input="Generated from "`IFS=:
24753: echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24754: if test x"$ac_file" != x-; then
24755: configure_input="$ac_file. $configure_input"
24756: { echo "$as_me:$LINENO: creating $ac_file" >&5
24757: echo "$as_me: creating $ac_file" >&6;}
24758: fi
1.1 millert 24759:
1.27 millert 24760: case $ac_tag in
24761: *:-:* | *:-) cat >"$tmp/stdin";;
24762: esac
24763: ;;
24764: esac
1.1 millert 24765:
1.27 millert 24766: ac_dir=`$as_dirname -- "$ac_file" ||
24767: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24768: X"$ac_file" : 'X\(//\)[^/]' \| \
24769: X"$ac_file" : 'X\(//\)$' \| \
24770: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24771: echo X"$ac_file" |
24772: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24773: s//\1/
24774: q
24775: }
24776: /^X\(\/\/\)[^/].*/{
24777: s//\1/
24778: q
24779: }
24780: /^X\(\/\/\)$/{
24781: s//\1/
24782: q
24783: }
24784: /^X\(\/\).*/{
24785: s//\1/
24786: q
24787: }
24788: s/.*/./; q'`
24789: { as_dir="$ac_dir"
24790: case $as_dir in #(
24791: -*) as_dir=./$as_dir;;
24792: esac
24793: test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24794: as_dirs=
24795: while :; do
24796: case $as_dir in #(
24797: *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24798: *) as_qdir=$as_dir;;
24799: esac
24800: as_dirs="'$as_qdir' $as_dirs"
24801: as_dir=`$as_dirname -- "$as_dir" ||
24802: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24803: X"$as_dir" : 'X\(//\)[^/]' \| \
24804: X"$as_dir" : 'X\(//\)$' \| \
24805: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24806: echo X"$as_dir" |
24807: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24808: s//\1/
24809: q
24810: }
24811: /^X\(\/\/\)[^/].*/{
24812: s//\1/
24813: q
24814: }
24815: /^X\(\/\/\)$/{
24816: s//\1/
24817: q
24818: }
24819: /^X\(\/\).*/{
24820: s//\1/
24821: q
24822: }
24823: s/.*/./; q'`
24824: test -d "$as_dir" && break
24825: done
24826: test -z "$as_dirs" || eval "mkdir $as_dirs"
24827: } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24828: echo "$as_me: error: cannot create directory $as_dir" >&2;}
24829: { (exit 1); exit 1; }; }; }
24830: ac_builddir=.
1.9 millert 24831:
1.27 millert 24832: case "$ac_dir" in
24833: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24834: *)
24835: ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24836: # A ".." for each directory in $ac_dir_suffix.
24837: ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24838: case $ac_top_builddir_sub in
24839: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24840: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24841: esac ;;
24842: esac
24843: ac_abs_top_builddir=$ac_pwd
24844: ac_abs_builddir=$ac_pwd$ac_dir_suffix
24845: # for backward compatibility:
24846: ac_top_builddir=$ac_top_build_prefix
1.1 millert 24847:
1.27 millert 24848: case $srcdir in
24849: .) # We are building in place.
24850: ac_srcdir=.
24851: ac_top_srcdir=$ac_top_builddir_sub
24852: ac_abs_top_srcdir=$ac_pwd ;;
24853: [\\/]* | ?:[\\/]* ) # Absolute name.
24854: ac_srcdir=$srcdir$ac_dir_suffix;
24855: ac_top_srcdir=$srcdir
24856: ac_abs_top_srcdir=$srcdir ;;
24857: *) # Relative name.
24858: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24859: ac_top_srcdir=$ac_top_build_prefix$srcdir
24860: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24861: esac
24862: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1.1 millert 24863:
24864:
1.27 millert 24865: case $ac_mode in
24866: :F)
24867: #
24868: # CONFIG_FILE
24869: #
1.1 millert 24870:
1.27 millert 24871: _ACEOF
1.1 millert 24872:
1.27 millert 24873: cat >>$CONFIG_STATUS <<\_ACEOF
24874: # If the template does not know about datarootdir, expand it.
24875: # FIXME: This hack should be removed a few years after 2.60.
24876: ac_datarootdir_hack=; ac_datarootdir_seen=
24877:
24878: case `sed -n '/datarootdir/ {
24879: p
24880: q
24881: }
24882: /@datadir@/p
24883: /@docdir@/p
24884: /@infodir@/p
24885: /@localedir@/p
24886: /@mandir@/p
24887: ' $ac_file_inputs` in
24888: *datarootdir*) ac_datarootdir_seen=yes;;
24889: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24890: { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24891: echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24892: _ACEOF
24893: cat >>$CONFIG_STATUS <<_ACEOF
24894: ac_datarootdir_hack='
24895: s&@datadir@&$datadir&g
24896: s&@docdir@&$docdir&g
24897: s&@infodir@&$infodir&g
24898: s&@localedir@&$localedir&g
24899: s&@mandir@&$mandir&g
24900: s&\\\${datarootdir}&$datarootdir&g' ;;
24901: esac
24902: _ACEOF
1.1 millert 24903:
1.27 millert 24904: # Neutralize VPATH when `$srcdir' = `.'.
24905: # Shell code in configure.ac might set extrasub.
24906: # FIXME: do we really want to maintain this feature?
24907: cat >>$CONFIG_STATUS <<_ACEOF
24908: sed "$ac_vpsub
24909: $extrasub
24910: _ACEOF
24911: cat >>$CONFIG_STATUS <<\_ACEOF
24912: :t
24913: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24914: s&@configure_input@&$configure_input&;t t
24915: s&@top_builddir@&$ac_top_builddir_sub&;t t
24916: s&@srcdir@&$ac_srcdir&;t t
24917: s&@abs_srcdir@&$ac_abs_srcdir&;t t
24918: s&@top_srcdir@&$ac_top_srcdir&;t t
24919: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24920: s&@builddir@&$ac_builddir&;t t
24921: s&@abs_builddir@&$ac_abs_builddir&;t t
24922: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24923: $ac_datarootdir_hack
24924: " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24925:
24926: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24927: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24928: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24929: { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24930: which seems to be undefined. Please make sure it is defined." >&5
24931: echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24932: which seems to be undefined. Please make sure it is defined." >&2;}
1.1 millert 24933:
1.27 millert 24934: rm -f "$tmp/stdin"
24935: case $ac_file in
24936: -) cat "$tmp/out"; rm -f "$tmp/out";;
24937: *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
1.25 millert 24938: esac
1.27 millert 24939: ;;
24940: :H)
24941: #
24942: # CONFIG_HEADER
24943: #
24944: _ACEOF
24945:
24946: # Transform confdefs.h into a sed script `conftest.defines', that
24947: # substitutes the proper values into config.h.in to produce config.h.
24948: rm -f conftest.defines conftest.tail
24949: # First, append a space to every undef/define line, to ease matching.
24950: echo 's/$/ /' >conftest.defines
24951: # Then, protect against being on the right side of a sed subst, or in
24952: # an unquoted here document, in config.status. If some macros were
24953: # called several times there might be several #defines for the same
24954: # symbol, which is useless. But do not sort them, since the last
24955: # AC_DEFINE must be honored.
24956: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24957: # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24958: # NAME is the cpp macro being defined, VALUE is the value it is being given.
24959: # PARAMS is the parameter list in the macro definition--in most cases, it's
24960: # just an empty string.
24961: ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24962: ac_dB='\\)[ (].*,\\1define\\2'
24963: ac_dC=' '
24964: ac_dD=' ,'
1.1 millert 24965:
1.27 millert 24966: uniq confdefs.h |
24967: sed -n '
24968: t rset
24969: :rset
24970: s/^[ ]*#[ ]*define[ ][ ]*//
24971: t ok
24972: d
24973: :ok
24974: s/[\\&,]/\\&/g
24975: s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24976: s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24977: ' >>conftest.defines
1.1 millert 24978:
1.27 millert 24979: # Remove the space that was appended to ease matching.
24980: # Then replace #undef with comments. This is necessary, for
24981: # example, in the case of _POSIX_SOURCE, which is predefined and required
24982: # on some systems where configure will not decide to define it.
24983: # (The regexp can be short, since the line contains either #define or #undef.)
24984: echo 's/ $//
24985: s,^[ #]*u.*,/* & */,' >>conftest.defines
24986:
24987: # Break up conftest.defines:
24988: ac_max_sed_lines=50
24989:
24990: # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24991: # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24992: # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24993: # et cetera.
24994: ac_in='$ac_file_inputs'
24995: ac_out='"$tmp/out1"'
24996: ac_nxt='"$tmp/out2"'
1.1 millert 24997:
1.27 millert 24998: while :
24999: do
25000: # Write a here document:
25001: cat >>$CONFIG_STATUS <<_ACEOF
25002: # First, check the format of the line:
25003: cat >"\$tmp/defines.sed" <<\\CEOF
25004: /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25005: /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25006: b
25007: :def
25008: _ACEOF
25009: sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25010: echo 'CEOF
25011: sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25012: ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25013: sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25014: grep . conftest.tail >/dev/null || break
25015: rm -f conftest.defines
25016: mv conftest.tail conftest.defines
25017: done
25018: rm -f conftest.defines conftest.tail
1.9 millert 25019:
1.27 millert 25020: echo "ac_result=$ac_in" >>$CONFIG_STATUS
25021: cat >>$CONFIG_STATUS <<\_ACEOF
25022: if test x"$ac_file" != x-; then
25023: echo "/* $configure_input */" >"$tmp/config.h"
25024: cat "$ac_result" >>"$tmp/config.h"
25025: if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25026: { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25027: echo "$as_me: $ac_file is unchanged" >&6;}
25028: else
25029: rm -f $ac_file
25030: mv "$tmp/config.h" $ac_file
25031: fi
25032: else
25033: echo "/* $configure_input */"
25034: cat "$ac_result"
25035: fi
25036: rm -f "$tmp/out12"
25037: # Compute $ac_file's index in $config_headers.
1.36 millert 25038: _am_arg=$ac_file
1.27 millert 25039: _am_stamp_count=1
25040: for _am_header in $config_headers :; do
25041: case $_am_header in
1.36 millert 25042: $_am_arg | $_am_arg:* )
1.27 millert 25043: break ;;
25044: * )
25045: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25046: esac
25047: done
1.36 millert 25048: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25049: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25050: X"$_am_arg" : 'X\(//\)[^/]' \| \
25051: X"$_am_arg" : 'X\(//\)$' \| \
25052: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25053: echo X"$_am_arg" |
1.27 millert 25054: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25055: s//\1/
25056: q
25057: }
25058: /^X\(\/\/\)[^/].*/{
25059: s//\1/
25060: q
25061: }
25062: /^X\(\/\/\)$/{
25063: s//\1/
25064: q
25065: }
25066: /^X\(\/\).*/{
25067: s//\1/
25068: q
25069: }
25070: s/.*/./; q'`/stamp-h$_am_stamp_count
25071: ;;
1.9 millert 25072:
25073:
1.25 millert 25074: esac
1.1 millert 25075:
1.27 millert 25076: done # for ac_tag
25077:
1.1 millert 25078:
1.9 millert 25079: { (exit 0); exit 0; }
1.16 millert 25080: _ACEOF
1.1 millert 25081: chmod +x $CONFIG_STATUS
1.9 millert 25082: ac_clean_files=$ac_clean_files_save
1.1 millert 25083:
1.16 millert 25084:
1.9 millert 25085: # configure is writing to config.log, and then calls config.status.
25086: # config.status does its own redirection, appending to config.log.
25087: # Unfortunately, on DOS this fails, as config.log is still kept open
25088: # by configure, so config.status won't be able to write to it; its
25089: # output is simply discarded. So we exec the FD to /dev/null,
25090: # effectively closing config.log, so it can be properly (re)opened and
25091: # appended to by config.status. When coming back to configure, we
25092: # need to make the FD available again.
25093: if test "$no_create" != yes; then
25094: ac_cs_success=:
1.16 millert 25095: ac_config_status_args=
25096: test "$silent" = yes &&
25097: ac_config_status_args="$ac_config_status_args --quiet"
1.9 millert 25098: exec 5>/dev/null
1.16 millert 25099: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
1.9 millert 25100: exec 5>>config.log
25101: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25102: # would make configure fail if this is the last instruction.
25103: $ac_cs_success || { (exit 1); exit 1; }
25104: fi
1.1 millert 25105:
1.16 millert 25106:
1.1 millert 25107: if test "$with_pam" = "yes"; then
25108: case $host in
25109: *-*-linux*)
1.17 millert 25110: { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
25111: echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
1.1 millert 25112: ;;
25113: esac
25114: fi
1.39 ! millert 25115:
! 25116:
1.37 millert 25117:
25118:
25119:
25120:
25121:
25122:
25123:
25124:
25125:
25126:
1.36 millert 25127:
25128:
1.34 millert 25129:
25130:
1.32 millert 25131:
25132:
1.31 millert 25133:
25134:
1.23 millert 25135:
25136:
25137:
25138:
25139:
25140:
25141:
25142:
25143:
25144:
25145:
25146:
25147:
25148:
25149:
25150:
25151:
25152:
25153:
25154:
25155:
25156:
25157:
25158:
25159:
25160:
25161:
25162:
25163:
25164:
25165:
25166:
25167:
25168:
25169:
25170:
25171:
25172:
25173:
25174:
25175:
25176:
25177:
25178:
25179:
25180:
25181:
25182:
25183:
25184:
25185:
25186:
25187:
25188:
25189:
25190:
25191:
25192:
25193:
25194:
25195:
25196:
25197:
25198:
25199:
25200:
25201:
25202:
25203:
25204:
25205:
25206:
25207:
25208:
25209:
25210:
25211:
25212:
25213:
25214:
25215:
25216:
25217:
25218:
25219:
25220:
25221:
25222:
25223:
25224:
25225:
25226:
25227:
25228:
25229:
25230:
25231:
25232:
25233:
25234:
25235:
25236:
25237:
25238:
25239:
25240:
25241:
25242:
25243:
25244:
25245:
25246:
25247:
25248:
25249:
25250:
25251:
25252:
25253:
25254:
25255:
25256:
25257:
25258:
1.16 millert 25259:
25260:
25261:
25262:
25263:
25264:
25265:
25266:
25267:
25268:
25269:
25270:
25271:
25272:
1.9 millert 25273: