Annotation of embedaddon/sudo/configure, revision 1.1.1.5
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
1.1.1.5 ! misho 3: # Generated by GNU Autoconf 2.68 for sudo 1.8.8.
1.1 misho 4: #
5: # Report bugs to <http://www.sudo.ws/bugs/>.
6: #
7: #
8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10: # Foundation, Inc.
11: #
12: #
13: # This configure script is free software; the Free Software Foundation
14: # gives unlimited permission to copy, distribute and modify it.
15: ## -------------------- ##
16: ## M4sh Initialization. ##
17: ## -------------------- ##
18:
19: # Be more Bourne compatible
20: DUALCASE=1; export DUALCASE # for MKS sh
21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
28: else
29: case `(set -o) 2>/dev/null` in #(
30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
34: esac
35: fi
36:
37:
38: as_nl='
39: '
40: export as_nl
41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45: # Prefer a ksh shell builtin over an external printf program on Solaris,
46: # but without wasting forks for bash or zsh.
47: if test -z "$BASH_VERSION$ZSH_VERSION" \
48: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49: as_echo='print -r --'
50: as_echo_n='print -rn --'
51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52: as_echo='printf %s\n'
53: as_echo_n='printf %s'
54: else
55: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57: as_echo_n='/usr/ucb/echo -n'
58: else
59: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60: as_echo_n_body='eval
61: arg=$1;
62: case $arg in #(
63: *"$as_nl"*)
64: expr "X$arg" : "X\\(.*\\)$as_nl";
65: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66: esac;
67: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68: '
69: export as_echo_n_body
70: as_echo_n='sh -c $as_echo_n_body as_echo'
71: fi
72: export as_echo_body
73: as_echo='sh -c $as_echo_body as_echo'
74: fi
75:
76: # The user is always right.
77: if test "${PATH_SEPARATOR+set}" != set; then
78: PATH_SEPARATOR=:
79: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81: PATH_SEPARATOR=';'
82: }
83: fi
84:
85:
86: # IFS
87: # We need space, tab and new line, in precisely that order. Quoting is
88: # there to prevent editors from complaining about space-tab.
89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90: # splitting by setting IFS to empty value.)
91: IFS=" "" $as_nl"
92:
93: # Find who we are. Look in the path if we contain no directory separator.
94: as_myself=
95: case $0 in #((
96: *[\\/]* ) as_myself=$0 ;;
97: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98: for as_dir in $PATH
99: do
100: IFS=$as_save_IFS
101: test -z "$as_dir" && as_dir=.
102: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103: done
104: IFS=$as_save_IFS
105:
106: ;;
107: esac
108: # We did not find ourselves, most probably we were run as `sh COMMAND'
109: # in which case we are not to be found in the path.
110: if test "x$as_myself" = x; then
111: as_myself=$0
112: fi
113: if test ! -f "$as_myself"; then
114: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115: exit 1
116: fi
117:
118: # Unset variables that we do not need and which cause bugs (e.g. in
119: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120: # suppresses any "Segmentation fault" message there. '((' could
121: # trigger a bug in pdksh 5.2.14.
122: for as_var in BASH_ENV ENV MAIL MAILPATH
123: do eval test x\${$as_var+set} = xset \
124: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125: done
126: PS1='$ '
127: PS2='> '
128: PS4='+ '
129:
130: # NLS nuisances.
131: LC_ALL=C
132: export LC_ALL
133: LANGUAGE=C
134: export LANGUAGE
135:
136: # CDPATH.
137: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138:
139: if test "x$CONFIG_SHELL" = x; then
140: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141: emulate sh
142: NULLCMD=:
143: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144: # is contrary to our usage. Disable this feature.
145: alias -g '\${1+\"\$@\"}'='\"\$@\"'
146: setopt NO_GLOB_SUBST
147: else
148: case \`(set -o) 2>/dev/null\` in #(
149: *posix*) :
150: set -o posix ;; #(
151: *) :
152: ;;
153: esac
154: fi
155: "
156: as_required="as_fn_return () { (exit \$1); }
157: as_fn_success () { as_fn_return 0; }
158: as_fn_failure () { as_fn_return 1; }
159: as_fn_ret_success () { return 0; }
160: as_fn_ret_failure () { return 1; }
161:
162: exitcode=0
163: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168:
169: else
170: exitcode=1; echo positional parameters were not saved.
171: fi
172: test x\$exitcode = x0 || exit 1"
173: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177:
178: test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181: ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182: PATH=/empty FPATH=/empty; export PATH FPATH
183: test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184: || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185: test \$(( 1 + 1 )) = 2 || exit 1"
186: if (eval "$as_required") 2>/dev/null; then :
187: as_have_required=yes
188: else
189: as_have_required=no
190: fi
191: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192:
193: else
194: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195: as_found=false
196: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197: do
198: IFS=$as_save_IFS
199: test -z "$as_dir" && as_dir=.
200: as_found=:
201: case $as_dir in #(
202: /*)
203: for as_base in sh bash ksh sh5; do
204: # Try only shells that exist, to save several forks.
205: as_shell=$as_dir/$as_base
206: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208: CONFIG_SHELL=$as_shell as_have_required=yes
209: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210: break 2
211: fi
212: fi
213: done;;
214: esac
215: as_found=false
216: done
217: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219: CONFIG_SHELL=$SHELL as_have_required=yes
220: fi; }
221: IFS=$as_save_IFS
222:
223:
224: if test "x$CONFIG_SHELL" != x; then :
225: # We cannot yet assume a decent shell, so we have to provide a
226: # neutralization value for shells without unset; and this also
227: # works around shells that cannot unset nonexistent variables.
228: # Preserve -v and -x to the replacement shell.
229: BASH_ENV=/dev/null
230: ENV=/dev/null
231: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232: export CONFIG_SHELL
233: case $- in # ((((
234: *v*x* | *x*v* ) as_opts=-vx ;;
235: *v* ) as_opts=-v ;;
236: *x* ) as_opts=-x ;;
237: * ) as_opts= ;;
238: esac
239: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240: fi
241:
242: if test x$as_have_required = xno; then :
243: $as_echo "$0: This script requires a shell more modern than all"
244: $as_echo "$0: the shells that I found on your system."
245: if test x${ZSH_VERSION+set} = xset ; then
246: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248: else
249: $as_echo "$0: Please tell bug-autoconf@gnu.org and
250: $0: http://www.sudo.ws/bugs/ about your system, including
251: $0: any error possibly output before this message. Then
252: $0: install a modern shell, or manually run the script
253: $0: under such a shell if you do have one."
254: fi
255: exit 1
256: fi
257: fi
258: fi
259: SHELL=${CONFIG_SHELL-/bin/sh}
260: export SHELL
261: # Unset more variables known to interfere with behavior of common tools.
262: CLICOLOR_FORCE= GREP_OPTIONS=
263: unset CLICOLOR_FORCE GREP_OPTIONS
264:
265: ## --------------------- ##
266: ## M4sh Shell Functions. ##
267: ## --------------------- ##
268: # as_fn_unset VAR
269: # ---------------
270: # Portably unset VAR.
271: as_fn_unset ()
272: {
273: { eval $1=; unset $1;}
274: }
275: as_unset=as_fn_unset
276:
277: # as_fn_set_status STATUS
278: # -----------------------
279: # Set $? to STATUS, without forking.
280: as_fn_set_status ()
281: {
282: return $1
283: } # as_fn_set_status
284:
285: # as_fn_exit STATUS
286: # -----------------
287: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288: as_fn_exit ()
289: {
290: set +e
291: as_fn_set_status $1
292: exit $1
293: } # as_fn_exit
294:
295: # as_fn_mkdir_p
296: # -------------
297: # Create "$as_dir" as a directory, including parents if necessary.
298: as_fn_mkdir_p ()
299: {
300:
301: case $as_dir in #(
302: -*) as_dir=./$as_dir;;
303: esac
304: test -d "$as_dir" || eval $as_mkdir_p || {
305: as_dirs=
306: while :; do
307: case $as_dir in #(
308: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309: *) as_qdir=$as_dir;;
310: esac
311: as_dirs="'$as_qdir' $as_dirs"
312: as_dir=`$as_dirname -- "$as_dir" ||
313: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314: X"$as_dir" : 'X\(//\)[^/]' \| \
315: X"$as_dir" : 'X\(//\)$' \| \
316: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317: $as_echo X"$as_dir" |
318: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319: s//\1/
320: q
321: }
322: /^X\(\/\/\)[^/].*/{
323: s//\1/
324: q
325: }
326: /^X\(\/\/\)$/{
327: s//\1/
328: q
329: }
330: /^X\(\/\).*/{
331: s//\1/
332: q
333: }
334: s/.*/./; q'`
335: test -d "$as_dir" && break
336: done
337: test -z "$as_dirs" || eval "mkdir $as_dirs"
338: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339:
340:
341: } # as_fn_mkdir_p
342: # as_fn_append VAR VALUE
343: # ----------------------
344: # Append the text in VALUE to the end of the definition contained in VAR. Take
345: # advantage of any shell optimizations that allow amortized linear growth over
346: # repeated appends, instead of the typical quadratic growth present in naive
347: # implementations.
348: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349: eval 'as_fn_append ()
350: {
351: eval $1+=\$2
352: }'
353: else
354: as_fn_append ()
355: {
356: eval $1=\$$1\$2
357: }
358: fi # as_fn_append
359:
360: # as_fn_arith ARG...
361: # ------------------
362: # Perform arithmetic evaluation on the ARGs, and store the result in the
363: # global $as_val. Take advantage of shells that can avoid forks. The arguments
364: # must be portable across $(()) and expr.
365: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366: eval 'as_fn_arith ()
367: {
368: as_val=$(( $* ))
369: }'
370: else
371: as_fn_arith ()
372: {
373: as_val=`expr "$@" || test $? -eq 1`
374: }
375: fi # as_fn_arith
376:
377:
378: # as_fn_error STATUS ERROR [LINENO LOG_FD]
379: # ----------------------------------------
380: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382: # script with STATUS, using 1 if that was 0.
383: as_fn_error ()
384: {
385: as_status=$1; test $as_status -eq 0 && as_status=1
386: if test "$4"; then
387: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389: fi
390: $as_echo "$as_me: error: $2" >&2
391: as_fn_exit $as_status
392: } # as_fn_error
393:
394: if expr a : '\(a\)' >/dev/null 2>&1 &&
395: test "X`expr 00001 : '.*\(...\)'`" = X001; then
396: as_expr=expr
397: else
398: as_expr=false
399: fi
400:
401: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402: as_basename=basename
403: else
404: as_basename=false
405: fi
406:
407: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408: as_dirname=dirname
409: else
410: as_dirname=false
411: fi
412:
413: as_me=`$as_basename -- "$0" ||
414: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415: X"$0" : 'X\(//\)$' \| \
416: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417: $as_echo X/"$0" |
418: sed '/^.*\/\([^/][^/]*\)\/*$/{
419: s//\1/
420: q
421: }
422: /^X\/\(\/\/\)$/{
423: s//\1/
424: q
425: }
426: /^X\/\(\/\).*/{
427: s//\1/
428: q
429: }
430: s/.*/./; q'`
431:
432: # Avoid depending upon Character Ranges.
433: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436: as_cr_digits='0123456789'
437: as_cr_alnum=$as_cr_Letters$as_cr_digits
438:
439:
440: as_lineno_1=$LINENO as_lineno_1a=$LINENO
441: as_lineno_2=$LINENO as_lineno_2a=$LINENO
442: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445: sed -n '
446: p
447: /[$]LINENO/=
448: ' <$as_myself |
449: sed '
450: s/[$]LINENO.*/&-/
451: t lineno
452: b
453: :lineno
454: N
455: :loop
456: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457: t loop
458: s/-\n.*//
459: ' >$as_me.lineno &&
460: chmod +x "$as_me.lineno" ||
461: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462:
463: # Don't try to exec as it changes $[0], causing all sort of problems
464: # (the dirname of $[0] is not the place where we might find the
465: # original and so on. Autoconf is especially sensitive to this).
466: . "./$as_me.lineno"
467: # Exit status is that of the last command.
468: exit
469: }
470:
471: ECHO_C= ECHO_N= ECHO_T=
472: case `echo -n x` in #(((((
473: -n*)
474: case `echo 'xy\c'` in
475: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476: xy) ECHO_C='\c';;
477: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478: ECHO_T=' ';;
479: esac;;
480: *)
481: ECHO_N='-n';;
482: esac
483:
484: rm -f conf$$ conf$$.exe conf$$.file
485: if test -d conf$$.dir; then
486: rm -f conf$$.dir/conf$$.file
487: else
488: rm -f conf$$.dir
489: mkdir conf$$.dir 2>/dev/null
490: fi
491: if (echo >conf$$.file) 2>/dev/null; then
492: if ln -s conf$$.file conf$$ 2>/dev/null; then
493: as_ln_s='ln -s'
494: # ... but there are two gotchas:
495: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497: # In both cases, we have to default to `cp -p'.
498: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499: as_ln_s='cp -p'
500: elif ln conf$$.file conf$$ 2>/dev/null; then
501: as_ln_s=ln
502: else
503: as_ln_s='cp -p'
504: fi
505: else
506: as_ln_s='cp -p'
507: fi
508: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509: rmdir conf$$.dir 2>/dev/null
510:
511: if mkdir -p . 2>/dev/null; then
512: as_mkdir_p='mkdir -p "$as_dir"'
513: else
514: test -d ./-p && rmdir ./-p
515: as_mkdir_p=false
516: fi
517:
518: if test -x / >/dev/null 2>&1; then
519: as_test_x='test -x'
520: else
521: if ls -dL / >/dev/null 2>&1; then
522: as_ls_L_option=L
523: else
524: as_ls_L_option=
525: fi
526: as_test_x='
527: eval sh -c '\''
528: if test -d "$1"; then
529: test -d "$1/.";
530: else
531: case $1 in #(
532: -*)set "./$1";;
533: esac;
534: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535: ???[sx]*):;;*)false;;esac;fi
536: '\'' sh
537: '
538: fi
539: as_executable_p=$as_test_x
540:
541: # Sed expression to map a string onto a valid CPP name.
542: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543:
544: # Sed expression to map a string onto a valid variable name.
545: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546:
547: SHELL=${CONFIG_SHELL-/bin/sh}
548:
549:
550: test -n "$DJDIR" || exec 7<&0 </dev/null
551: exec 6>&1
552:
553: # Name of the host.
554: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555: # so uname gets run too.
556: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557:
558: #
559: # Initializations.
560: #
561: ac_default_prefix=/usr/local
562: ac_clean_files=
563: ac_config_libobj_dir=.
564: LIBOBJS=
565: cross_compiling=no
566: subdirs=
567: MFLAGS=
568: MAKEFLAGS=
569:
570: # Identity of this package.
571: PACKAGE_NAME='sudo'
572: PACKAGE_TARNAME='sudo'
1.1.1.5 ! misho 573: PACKAGE_VERSION='1.8.8'
! 574: PACKAGE_STRING='sudo 1.8.8'
1.1 misho 575: PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/'
576: PACKAGE_URL=''
577:
578: ac_config_libobj_dir=compat
579: # Factoring default headers for most tests.
580: ac_includes_default="\
581: #include <stdio.h>
582: #ifdef HAVE_SYS_TYPES_H
583: # include <sys/types.h>
584: #endif
585: #ifdef HAVE_SYS_STAT_H
586: # include <sys/stat.h>
587: #endif
588: #ifdef STDC_HEADERS
589: # include <stdlib.h>
590: # include <stddef.h>
591: #else
592: # ifdef HAVE_STDLIB_H
593: # include <stdlib.h>
594: # endif
595: #endif
596: #ifdef HAVE_STRING_H
597: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598: # include <memory.h>
599: # endif
600: # include <string.h>
601: #endif
602: #ifdef HAVE_STRINGS_H
603: # include <strings.h>
604: #endif
605: #ifdef HAVE_INTTYPES_H
606: # include <inttypes.h>
607: #endif
608: #ifdef HAVE_STDINT_H
609: # include <stdint.h>
610: #endif
611: #ifdef HAVE_UNISTD_H
612: # include <unistd.h>
613: #endif"
614:
1.1.1.3 misho 615: ac_c_werror_flag=
1.1 misho 616: ac_subst_vars='LTLIBOBJS
617: KRB5CONFIG
618: LIBOBJS
619: FLEX
620: YFLAGS
621: YACC
622: NROFFPROG
1.1.1.3 misho 623: MANDOCPROG
1.1 misho 624: TRPROG
625: UNAMEPROG
626: OTOOL64
627: OTOOL
628: LIPO
629: NMEDIT
630: DSYMUTIL
631: MANIFEST_TOOL
632: AWK
633: STRIP
634: ac_ct_AR
635: DLLTOOL
636: OBJDUMP
637: LN_S
638: NM
639: ac_ct_DUMPBIN
640: DUMPBIN
641: LD
642: FGREP
643: EGREP
644: GREP
645: SED
646: host_os
647: host_vendor
648: host_cpu
649: host
650: build_os
651: build_vendor
652: build_cpu
653: build
654: RANLIB
655: AR
656: CPP
657: OBJEXT
658: EXEEXT
659: ac_ct_CC
660: CC
1.1.1.4 misho 661: PLUGINDIR
1.1.1.5 ! misho 662: pam_login_service
1.1.1.4 misho 663: pam_session
1.1 misho 664: editor
665: secure_path
666: netsvc_conf
667: nsswitch_conf
1.1.1.3 misho 668: sssd_lib
1.1 misho 669: ldap_secret
670: ldap_conf
671: path_info
672: root_sudo
673: insults
674: tty_tickets
675: passwd_tries
676: env_reset
677: env_editor
678: runas_default
679: fqdn
680: badpass_message
681: mailsub
682: mailto
683: mail_no_perms
684: mail_no_host
685: mail_no_user
686: ignore_dot
687: loglen
688: badpri
689: goodpri
690: logfac
691: lecture
692: long_otp_prompt
693: passprompt
694: umask_override
695: sudo_umask
696: password_timeout
697: timeout
698: timedir
699: iolog_dir
1.1.1.3 misho 700: NO_VIZ
1.1.1.4 misho 701: SSP_CFLAGS
702: SSP_LDFLAGS
1.1.1.3 misho 703: PIE_CFLAGS
704: PIE_LDFLAGS
705: CROSS_COMPILING
1.1.1.2 misho 706: COMPAT_TEST_PROGS
1.1.1.4 misho 707: LOCALEDIR_SUFFIX
1.1 misho 708: SUDO_NLS
709: LIBINTL
710: LT_STATIC
711: LIBDL
712: CONFIGURE_ARGS
713: ac_config_libobj_dir
714: LIBTOOL_DEPS
715: ZLIB_SRC
716: ZLIB
717: LOGINCAP_USAGE
718: LDAP
719: SELINUX_USAGE
720: BSDAUTH_USAGE
721: DONT_LEAK_PATH_INFO
722: INSTALL_NOEXEC
1.1.1.4 misho 723: sesh_file
1.1 misho 724: noexec_file
725: SOEXT
726: NOEXECDIR
727: NOEXECFILE
728: mansrcdir
729: mansectform
730: mansectsu
731: devdir
732: SEMAN
1.1.1.3 misho 733: PSMAN
1.1 misho 734: LCMAN
735: BAMAN
1.1.1.2 misho 736: DEVEL
1.1 misho 737: SUDOERS_GID
738: SUDOERS_UID
739: SUDOERS_MODE
1.1.1.5 ! misho 740: SHLIB_EXT
1.1.1.3 misho 741: SHLIB_MODE
742: MANCOMPRESSEXT
743: MANCOMPRESS
744: MANDIRTYPE
1.1 misho 745: MANTYPE
746: AUTH_OBJS
747: OSDEFS
748: GETGROUPS_LIB
749: REPLAY_LIBS
750: AFS_LIBS
751: NET_LIBS
752: SUDOERS_LIBS
753: SUDO_LIBS
754: SUDO_OBJS
755: SUDOERS_OBJS
756: COMMON_OBJS
1.1.1.3 misho 757: LT_LDEXPORTS
758: LT_LDDEP
759: LT_LDOPT
760: LT_LDMAP
761: LT_LDFLAGS
1.1 misho 762: SUDOERS_LDFLAGS
763: LDFLAGS
764: CPPFLAGS
765: PROGS
766: CFLAGS
767: LIBTOOL
768: HAVE_BSM_AUDIT
769: target_alias
770: host_alias
771: build_alias
772: LIBS
773: ECHO_T
774: ECHO_N
775: ECHO_C
776: DEFS
777: mandir
778: localedir
779: libdir
780: psdir
781: pdfdir
782: dvidir
783: htmldir
784: infodir
785: docdir
786: oldincludedir
787: includedir
788: localstatedir
789: sharedstatedir
790: sysconfdir
791: datadir
792: datarootdir
793: libexecdir
794: sbindir
795: bindir
796: program_transform_name
797: prefix
798: exec_prefix
799: PACKAGE_URL
800: PACKAGE_BUGREPORT
801: PACKAGE_STRING
802: PACKAGE_VERSION
803: PACKAGE_TARNAME
804: PACKAGE_NAME
805: PATH_SEPARATOR
806: SHELL'
807: ac_subst_files=''
808: ac_user_opts='
809: enable_option_checking
810: with_otp_only
811: with_alertmail
812: with_devel
813: with_CC
814: with_rpath
815: with_blibpath
816: with_bsm_audit
817: with_linux_audit
1.1.1.3 misho 818: with_sssd
819: with_sssd_lib
1.1 misho 820: with_incpath
821: with_libpath
822: with_libraries
823: with_efence
824: with_csops
825: with_passwd
826: with_skey
827: with_opie
828: with_long_otp_prompt
829: with_SecurID
830: with_fwtk
831: with_kerb5
832: with_aixauth
833: with_pam
834: with_AFS
835: with_DCE
836: with_logincap
837: with_bsdauth
838: with_project
839: with_lecture
840: with_logging
841: with_logfac
842: with_goodpri
843: with_badpri
844: with_logpath
845: with_loglen
846: with_ignore_dot
847: with_mail_if_no_user
848: with_mail_if_no_host
849: with_mail_if_noperms
850: with_mailto
851: with_mailsubject
852: with_passprompt
853: with_badpass_message
854: with_fqdn
855: with_timedir
856: with_iologdir
857: with_sendmail
858: with_sudoers_mode
859: with_sudoers_uid
860: with_sudoers_gid
861: with_umask
862: with_umask_override
863: with_runas_default
864: with_exempt
865: with_editor
866: with_env_editor
867: with_passwd_tries
868: with_timeout
869: with_password_timeout
870: with_tty_tickets
871: with_insults
872: with_all_insults
873: with_classic_insults
874: with_csops_insults
875: with_hal_insults
876: with_goons_insults
877: with_nsswitch
878: with_ldap
879: with_ldap_conf_file
880: with_ldap_secret_file
881: with_pc_insults
882: with_secure_path
883: with_interfaces
884: with_stow
885: with_askpass
886: with_plugindir
1.1.1.3 misho 887: with_man
888: with_mdoc
1.1 misho 889: enable_authentication
890: enable_root_mailer
891: enable_setreuid
892: enable_setresuid
893: enable_shadow
894: enable_root_sudo
895: enable_log_host
896: enable_noargs_shell
897: enable_shell_sets_home
898: enable_path_info
899: enable_env_debug
900: enable_zlib
901: enable_env_reset
902: enable_warnings
903: enable_werror
1.1.1.3 misho 904: enable_hardening
905: enable_pie
1.1 misho 906: enable_admin_flag
907: enable_nls
1.1.1.4 misho 908: enable_rpath
1.1 misho 909: with_selinux
910: enable_gss_krb5_ccache_name
911: enable_shared
912: enable_static
913: with_pic
914: enable_fast_install
915: with_gnu_ld
916: with_sysroot
917: enable_libtool_lock
1.1.1.4 misho 918: with_libtool
1.1 misho 919: with_noexec
920: with_netsvc
921: enable_sia
922: enable_largefile
923: with_pam_login
924: enable_pam_session
1.1.1.2 misho 925: enable_kerb5_instance
1.1 misho 926: '
927: ac_precious_vars='build_alias
928: host_alias
929: target_alias
930: CC
931: CFLAGS
932: LDFLAGS
933: LIBS
934: CPPFLAGS
935: CPP
936: YACC
937: YFLAGS'
938:
939:
940: # Initialize some variables set by options.
941: ac_init_help=
942: ac_init_version=false
943: ac_unrecognized_opts=
944: ac_unrecognized_sep=
945: # The variables have the same names as the options, with
946: # dashes changed to underlines.
947: cache_file=/dev/null
948: exec_prefix=NONE
949: no_create=
950: no_recursion=
951: prefix=NONE
952: program_prefix=NONE
953: program_suffix=NONE
954: program_transform_name=s,x,x,
955: silent=
956: site=
957: srcdir=
958: verbose=
959: x_includes=NONE
960: x_libraries=NONE
961:
962: # Installation directory options.
963: # These are left unexpanded so users can "make install exec_prefix=/foo"
964: # and all the variables that are supposed to be based on exec_prefix
965: # by default will actually change.
966: # Use braces instead of parens because sh, perl, etc. also accept them.
967: # (The list follows the same order as the GNU Coding Standards.)
968: bindir='${exec_prefix}/bin'
969: sbindir='${exec_prefix}/sbin'
970: libexecdir='${exec_prefix}/libexec'
971: datarootdir='${prefix}/share'
972: datadir='${datarootdir}'
973: sysconfdir='${prefix}/etc'
974: sharedstatedir='${prefix}/com'
975: localstatedir='${prefix}/var'
976: includedir='${prefix}/include'
977: oldincludedir='/usr/include'
978: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
979: infodir='${datarootdir}/info'
980: htmldir='${docdir}'
981: dvidir='${docdir}'
982: pdfdir='${docdir}'
983: psdir='${docdir}'
984: libdir='${exec_prefix}/lib'
985: localedir='${datarootdir}/locale'
986: mandir='${datarootdir}/man'
987:
988: ac_prev=
989: ac_dashdash=
990: for ac_option
991: do
992: # If the previous option needs an argument, assign it.
993: if test -n "$ac_prev"; then
994: eval $ac_prev=\$ac_option
995: ac_prev=
996: continue
997: fi
998:
999: case $ac_option in
1000: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001: *=) ac_optarg= ;;
1002: *) ac_optarg=yes ;;
1003: esac
1004:
1005: # Accept the important Cygnus configure options, so we can diagnose typos.
1006:
1007: case $ac_dashdash$ac_option in
1008: --)
1009: ac_dashdash=yes ;;
1010:
1011: -bindir | --bindir | --bindi | --bind | --bin | --bi)
1012: ac_prev=bindir ;;
1013: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1014: bindir=$ac_optarg ;;
1015:
1016: -build | --build | --buil | --bui | --bu)
1017: ac_prev=build_alias ;;
1018: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1019: build_alias=$ac_optarg ;;
1020:
1021: -cache-file | --cache-file | --cache-fil | --cache-fi \
1022: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1023: ac_prev=cache_file ;;
1024: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1025: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1026: cache_file=$ac_optarg ;;
1027:
1028: --config-cache | -C)
1029: cache_file=config.cache ;;
1030:
1031: -datadir | --datadir | --datadi | --datad)
1032: ac_prev=datadir ;;
1033: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1034: datadir=$ac_optarg ;;
1035:
1036: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1037: | --dataroo | --dataro | --datar)
1038: ac_prev=datarootdir ;;
1039: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1040: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1041: datarootdir=$ac_optarg ;;
1042:
1043: -disable-* | --disable-*)
1044: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1045: # Reject names that are not valid shell variable names.
1046: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1047: as_fn_error $? "invalid feature name: $ac_useropt"
1048: ac_useropt_orig=$ac_useropt
1049: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050: case $ac_user_opts in
1051: *"
1052: "enable_$ac_useropt"
1053: "*) ;;
1054: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1055: ac_unrecognized_sep=', ';;
1056: esac
1057: eval enable_$ac_useropt=no ;;
1058:
1059: -docdir | --docdir | --docdi | --doc | --do)
1060: ac_prev=docdir ;;
1061: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062: docdir=$ac_optarg ;;
1063:
1064: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1065: ac_prev=dvidir ;;
1066: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067: dvidir=$ac_optarg ;;
1068:
1069: -enable-* | --enable-*)
1070: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071: # Reject names that are not valid shell variable names.
1072: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073: as_fn_error $? "invalid feature name: $ac_useropt"
1074: ac_useropt_orig=$ac_useropt
1075: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076: case $ac_user_opts in
1077: *"
1078: "enable_$ac_useropt"
1079: "*) ;;
1080: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1081: ac_unrecognized_sep=', ';;
1082: esac
1083: eval enable_$ac_useropt=\$ac_optarg ;;
1084:
1085: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1086: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1087: | --exec | --exe | --ex)
1088: ac_prev=exec_prefix ;;
1089: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1090: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1091: | --exec=* | --exe=* | --ex=*)
1092: exec_prefix=$ac_optarg ;;
1093:
1094: -gas | --gas | --ga | --g)
1095: # Obsolete; use --with-gas.
1096: with_gas=yes ;;
1097:
1098: -help | --help | --hel | --he | -h)
1099: ac_init_help=long ;;
1100: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1101: ac_init_help=recursive ;;
1102: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1103: ac_init_help=short ;;
1104:
1105: -host | --host | --hos | --ho)
1106: ac_prev=host_alias ;;
1107: -host=* | --host=* | --hos=* | --ho=*)
1108: host_alias=$ac_optarg ;;
1109:
1110: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1111: ac_prev=htmldir ;;
1112: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1113: | --ht=*)
1114: htmldir=$ac_optarg ;;
1115:
1116: -includedir | --includedir | --includedi | --included | --include \
1117: | --includ | --inclu | --incl | --inc)
1118: ac_prev=includedir ;;
1119: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1120: | --includ=* | --inclu=* | --incl=* | --inc=*)
1121: includedir=$ac_optarg ;;
1122:
1123: -infodir | --infodir | --infodi | --infod | --info | --inf)
1124: ac_prev=infodir ;;
1125: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1126: infodir=$ac_optarg ;;
1127:
1128: -libdir | --libdir | --libdi | --libd)
1129: ac_prev=libdir ;;
1130: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1131: libdir=$ac_optarg ;;
1132:
1133: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1134: | --libexe | --libex | --libe)
1135: ac_prev=libexecdir ;;
1136: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1137: | --libexe=* | --libex=* | --libe=*)
1138: libexecdir=$ac_optarg ;;
1139:
1140: -localedir | --localedir | --localedi | --localed | --locale)
1141: ac_prev=localedir ;;
1142: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1143: localedir=$ac_optarg ;;
1144:
1145: -localstatedir | --localstatedir | --localstatedi | --localstated \
1146: | --localstate | --localstat | --localsta | --localst | --locals)
1147: ac_prev=localstatedir ;;
1148: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1149: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1150: localstatedir=$ac_optarg ;;
1151:
1152: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1153: ac_prev=mandir ;;
1154: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1155: mandir=$ac_optarg ;;
1156:
1157: -nfp | --nfp | --nf)
1158: # Obsolete; use --without-fp.
1159: with_fp=no ;;
1160:
1161: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1162: | --no-cr | --no-c | -n)
1163: no_create=yes ;;
1164:
1165: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1166: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1167: no_recursion=yes ;;
1168:
1169: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1170: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1171: | --oldin | --oldi | --old | --ol | --o)
1172: ac_prev=oldincludedir ;;
1173: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1174: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1175: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1176: oldincludedir=$ac_optarg ;;
1177:
1178: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1179: ac_prev=prefix ;;
1180: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1181: prefix=$ac_optarg ;;
1182:
1183: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1184: | --program-pre | --program-pr | --program-p)
1185: ac_prev=program_prefix ;;
1186: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1187: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1188: program_prefix=$ac_optarg ;;
1189:
1190: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1191: | --program-suf | --program-su | --program-s)
1192: ac_prev=program_suffix ;;
1193: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1194: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1195: program_suffix=$ac_optarg ;;
1196:
1197: -program-transform-name | --program-transform-name \
1198: | --program-transform-nam | --program-transform-na \
1199: | --program-transform-n | --program-transform- \
1200: | --program-transform | --program-transfor \
1201: | --program-transfo | --program-transf \
1202: | --program-trans | --program-tran \
1203: | --progr-tra | --program-tr | --program-t)
1204: ac_prev=program_transform_name ;;
1205: -program-transform-name=* | --program-transform-name=* \
1206: | --program-transform-nam=* | --program-transform-na=* \
1207: | --program-transform-n=* | --program-transform-=* \
1208: | --program-transform=* | --program-transfor=* \
1209: | --program-transfo=* | --program-transf=* \
1210: | --program-trans=* | --program-tran=* \
1211: | --progr-tra=* | --program-tr=* | --program-t=*)
1212: program_transform_name=$ac_optarg ;;
1213:
1214: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1215: ac_prev=pdfdir ;;
1216: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1217: pdfdir=$ac_optarg ;;
1218:
1219: -psdir | --psdir | --psdi | --psd | --ps)
1220: ac_prev=psdir ;;
1221: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1222: psdir=$ac_optarg ;;
1223:
1224: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1225: | -silent | --silent | --silen | --sile | --sil)
1226: silent=yes ;;
1227:
1228: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1229: ac_prev=sbindir ;;
1230: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1231: | --sbi=* | --sb=*)
1232: sbindir=$ac_optarg ;;
1233:
1234: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1235: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1236: | --sharedst | --shareds | --shared | --share | --shar \
1237: | --sha | --sh)
1238: ac_prev=sharedstatedir ;;
1239: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1240: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1241: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1242: | --sha=* | --sh=*)
1243: sharedstatedir=$ac_optarg ;;
1244:
1245: -site | --site | --sit)
1246: ac_prev=site ;;
1247: -site=* | --site=* | --sit=*)
1248: site=$ac_optarg ;;
1249:
1250: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1251: ac_prev=srcdir ;;
1252: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1253: srcdir=$ac_optarg ;;
1254:
1255: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1256: | --syscon | --sysco | --sysc | --sys | --sy)
1257: ac_prev=sysconfdir ;;
1258: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1259: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1260: sysconfdir=$ac_optarg ;;
1261:
1262: -target | --target | --targe | --targ | --tar | --ta | --t)
1263: ac_prev=target_alias ;;
1264: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1265: target_alias=$ac_optarg ;;
1266:
1267: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1268: verbose=yes ;;
1269:
1270: -version | --version | --versio | --versi | --vers | -V)
1271: ac_init_version=: ;;
1272:
1273: -with-* | --with-*)
1274: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1275: # Reject names that are not valid shell variable names.
1276: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277: as_fn_error $? "invalid package name: $ac_useropt"
1278: ac_useropt_orig=$ac_useropt
1279: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280: case $ac_user_opts in
1281: *"
1282: "with_$ac_useropt"
1283: "*) ;;
1284: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1285: ac_unrecognized_sep=', ';;
1286: esac
1287: eval with_$ac_useropt=\$ac_optarg ;;
1288:
1289: -without-* | --without-*)
1290: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1291: # Reject names that are not valid shell variable names.
1292: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293: as_fn_error $? "invalid package name: $ac_useropt"
1294: ac_useropt_orig=$ac_useropt
1295: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296: case $ac_user_opts in
1297: *"
1298: "with_$ac_useropt"
1299: "*) ;;
1300: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1301: ac_unrecognized_sep=', ';;
1302: esac
1303: eval with_$ac_useropt=no ;;
1304:
1305: --x)
1306: # Obsolete; use --with-x.
1307: with_x=yes ;;
1308:
1309: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1310: | --x-incl | --x-inc | --x-in | --x-i)
1311: ac_prev=x_includes ;;
1312: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1313: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1314: x_includes=$ac_optarg ;;
1315:
1316: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1317: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1318: ac_prev=x_libraries ;;
1319: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1320: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1321: x_libraries=$ac_optarg ;;
1322:
1323: -*) as_fn_error $? "unrecognized option: \`$ac_option'
1324: Try \`$0 --help' for more information"
1325: ;;
1326:
1327: *=*)
1328: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329: # Reject names that are not valid shell variable names.
1330: case $ac_envvar in #(
1331: '' | [0-9]* | *[!_$as_cr_alnum]* )
1332: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1333: esac
1334: eval $ac_envvar=\$ac_optarg
1335: export $ac_envvar ;;
1336:
1337: *)
1338: # FIXME: should be removed in autoconf 3.0.
1339: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1340: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1341: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1342: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1343: ;;
1344:
1345: esac
1346: done
1347:
1348: if test -n "$ac_prev"; then
1349: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1350: as_fn_error $? "missing argument to $ac_option"
1351: fi
1352:
1353: if test -n "$ac_unrecognized_opts"; then
1354: case $enable_option_checking in
1355: no) ;;
1356: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1357: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1358: esac
1359: fi
1360:
1361: # Check all directory arguments for consistency.
1362: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1363: datadir sysconfdir sharedstatedir localstatedir includedir \
1364: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1365: libdir localedir mandir
1366: do
1367: eval ac_val=\$$ac_var
1368: # Remove trailing slashes.
1369: case $ac_val in
1370: */ )
1371: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1372: eval $ac_var=\$ac_val;;
1373: esac
1374: # Be sure to have absolute directory names.
1375: case $ac_val in
1376: [\\/$]* | ?:[\\/]* ) continue;;
1377: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1378: esac
1379: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1380: done
1381:
1382: # There might be people who depend on the old broken behavior: `$host'
1383: # used to hold the argument of --host etc.
1384: # FIXME: To remove some day.
1385: build=$build_alias
1386: host=$host_alias
1387: target=$target_alias
1388:
1389: # FIXME: To remove some day.
1390: if test "x$host_alias" != x; then
1391: if test "x$build_alias" = x; then
1392: cross_compiling=maybe
1393: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1394: If a cross compiler is detected then cross compile mode will be used" >&2
1395: elif test "x$build_alias" != "x$host_alias"; then
1396: cross_compiling=yes
1397: fi
1398: fi
1399:
1400: ac_tool_prefix=
1401: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402:
1403: test "$silent" = yes && exec 6>/dev/null
1404:
1405:
1406: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407: ac_ls_di=`ls -di .` &&
1408: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1409: as_fn_error $? "working directory cannot be determined"
1410: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1411: as_fn_error $? "pwd does not report name of working directory"
1412:
1413:
1414: # Find the source files, if location was not specified.
1415: if test -z "$srcdir"; then
1416: ac_srcdir_defaulted=yes
1417: # Try the directory containing this script, then the parent directory.
1418: ac_confdir=`$as_dirname -- "$as_myself" ||
1419: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1420: X"$as_myself" : 'X\(//\)[^/]' \| \
1421: X"$as_myself" : 'X\(//\)$' \| \
1422: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1423: $as_echo X"$as_myself" |
1424: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1425: s//\1/
1426: q
1427: }
1428: /^X\(\/\/\)[^/].*/{
1429: s//\1/
1430: q
1431: }
1432: /^X\(\/\/\)$/{
1433: s//\1/
1434: q
1435: }
1436: /^X\(\/\).*/{
1437: s//\1/
1438: q
1439: }
1440: s/.*/./; q'`
1441: srcdir=$ac_confdir
1442: if test ! -r "$srcdir/$ac_unique_file"; then
1443: srcdir=..
1444: fi
1445: else
1446: ac_srcdir_defaulted=no
1447: fi
1448: if test ! -r "$srcdir/$ac_unique_file"; then
1449: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1450: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1451: fi
1452: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1453: ac_abs_confdir=`(
1454: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1455: pwd)`
1456: # When building in place, set srcdir=.
1457: if test "$ac_abs_confdir" = "$ac_pwd"; then
1458: srcdir=.
1459: fi
1460: # Remove unnecessary trailing slashes from srcdir.
1461: # Double slashes in file names in object file debugging info
1462: # mess up M-x gdb in Emacs.
1463: case $srcdir in
1464: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1465: esac
1466: for ac_var in $ac_precious_vars; do
1467: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1468: eval ac_env_${ac_var}_value=\$${ac_var}
1469: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1470: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1471: done
1472:
1473: #
1474: # Report the --help message.
1475: #
1476: if test "$ac_init_help" = "long"; then
1477: # Omit some internal or obsolete options to make the list less imposing.
1478: # This message is too long to be a string in the A/UX 3.1 sh.
1479: cat <<_ACEOF
1.1.1.5 ! misho 1480: \`configure' configures sudo 1.8.8 to adapt to many kinds of systems.
1.1 misho 1481:
1482: Usage: $0 [OPTION]... [VAR=VALUE]...
1483:
1484: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1485: VAR=VALUE. See below for descriptions of some of the useful variables.
1486:
1487: Defaults for the options are specified in brackets.
1488:
1489: Configuration:
1490: -h, --help display this help and exit
1491: --help=short display options specific to this package
1492: --help=recursive display the short help of all the included packages
1493: -V, --version display version information and exit
1494: -q, --quiet, --silent do not print \`checking ...' messages
1495: --cache-file=FILE cache test results in FILE [disabled]
1496: -C, --config-cache alias for \`--cache-file=config.cache'
1497: -n, --no-create do not create output files
1498: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1499:
1500: Installation directories:
1501: --prefix=PREFIX install architecture-independent files in PREFIX
1502: [$ac_default_prefix]
1503: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1504: [PREFIX]
1505:
1506: By default, \`make install' will install all the files in
1507: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1508: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1509: for instance \`--prefix=\$HOME'.
1510:
1511: For better control, use the options below.
1512:
1513: Fine tuning of the installation directories:
1514: --bindir=DIR user executables [EPREFIX/bin]
1515: --sbindir=DIR system admin executables [EPREFIX/sbin]
1516: --libexecdir=DIR program executables [EPREFIX/libexec]
1517: --sysconfdir=DIR read-only single-machine data [/etc]
1518: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1519: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1520: --libdir=DIR object code libraries [EPREFIX/lib]
1521: --includedir=DIR C header files [PREFIX/include]
1522: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525: --infodir=DIR info documentation [DATAROOTDIR/info]
1526: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527: --mandir=DIR man documentation [DATAROOTDIR/man]
1528: --docdir=DIR documentation root [DATAROOTDIR/doc/sudo]
1529: --htmldir=DIR html documentation [DOCDIR]
1530: --dvidir=DIR dvi documentation [DOCDIR]
1531: --pdfdir=DIR pdf documentation [DOCDIR]
1532: --psdir=DIR ps documentation [DOCDIR]
1533: _ACEOF
1534:
1535: cat <<\_ACEOF
1536:
1537: System types:
1538: --build=BUILD configure for building on BUILD [guessed]
1539: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1540: _ACEOF
1541: fi
1542:
1543: if test -n "$ac_init_help"; then
1544: case $ac_init_help in
1.1.1.5 ! misho 1545: short | recursive ) echo "Configuration of sudo 1.8.8:";;
1.1 misho 1546: esac
1547: cat <<\_ACEOF
1548:
1549: Optional Features:
1550: --disable-option-checking ignore unrecognized --enable/--with options
1551: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1552: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1553: --disable-authentication
1554: Do not require authentication by default
1555: --disable-root-mailer Don't run the mailer as root, run as the user
1556: --disable-setreuid Don't try to use the setreuid() function
1557: --disable-setresuid Don't try to use the setresuid() function
1558: --disable-shadow Never use shadow passwords
1559: --disable-root-sudo Don't allow root to run sudo
1560: --enable-log-host Log the hostname in the log file
1561: --enable-noargs-shell If sudo is given no arguments run a shell
1562: --enable-shell-sets-home
1563: Set $HOME to target user in shell mode
1564: --disable-path-info Print 'command not allowed' not 'command not found'
1565: --enable-env-debug Whether to enable environment debugging.
1566: --enable-zlib[=PATH] Whether to enable or disable zlib
1567: --enable-env-reset Whether to enable environment resetting by default.
1568: --enable-warnings Whether to enable compiler warnings
1569: --enable-werror Whether to enable the -Werror compiler option
1.1.1.3 misho 1570: --disable-hardening Do not use compiler/linker exploit mitigation
1571: options
1.1.1.4 misho 1572: --enable-pie Build sudo as a position independent executable.
1.1 misho 1573: --enable-admin-flag Whether to create a Ubuntu-style admin flag file
1574: --disable-nls Disable natural language support using gettext
1.1.1.4 misho 1575: --disable-rpath Disable passing of -Rpath to the linker
1.1 misho 1576: --enable-gss-krb5-ccache-name
1577: Use GSS-API to set the Kerberos V cred cache name
1578: --enable-shared[=PKGS] build shared libraries [default=yes]
1579: --enable-static[=PKGS] build static libraries [default=yes]
1580: --enable-fast-install[=PKGS]
1581: optimize for fast installation [default=yes]
1582: --disable-libtool-lock avoid locking (might break parallel builds)
1583: --disable-sia Disable SIA on Digital UNIX
1584: --disable-largefile omit support for large files
1585: --disable-pam-session Disable PAM session support
1.1.1.2 misho 1586: --enable-kerb5-instance instance string to append to the username (separated
1587: by a slash)
1.1 misho 1588:
1589: Optional Packages:
1590: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592: --with-otp-only deprecated
1593: --with-alertmail deprecated
1594: --with-devel add development options
1595: --with-CC C compiler to use
1.1.1.4 misho 1596: --with-rpath deprecated, use --disable-rpath
1597: --with-blibpath=PATH deprecated
1.1 misho 1598: --with-bsm-audit enable BSM audit support
1599: --with-linux-audit enable Linux audit support
1.1.1.3 misho 1600: --with-sssd enable SSSD support
1601: --with-sssd-lib path to the SSSD library
1.1 misho 1602: --with-incpath additional places to look for include files
1603: --with-libpath additional places to look for libraries
1604: --with-libraries additional libraries to link with
1605: --with-efence link with -lefence for malloc() debugging
1606: --with-csops add CSOps standard options
1607: --without-passwd don't use passwd/shadow file for authentication
1608: --with-skey=DIR enable S/Key support
1609: --with-opie=DIR enable OPIE support
1610: --with-long-otp-prompt use a two line OTP (skey/opie) prompt
1611: --with-SecurID[=DIR] enable SecurID support
1612: --with-fwtk[=DIR] enable FWTK AuthSRV support
1613: --with-kerb5[=DIR] enable Kerberos V support
1614: --with-aixauth enable AIX general authentication support
1615: --with-pam enable PAM support
1616: --with-AFS enable AFS support
1617: --with-DCE enable DCE support
1618: --with-logincap enable BSD login class support
1619: --with-bsdauth enable BSD authentication support
1620: --with-project enable Solaris project support
1621: --without-lecture don't print lecture for first-time sudoer
1622: --with-logging log via syslog, file, or both
1623: --with-logfac syslog facility to log with (default is "auth")
1624: --with-goodpri syslog priority for commands (def is "notice")
1625: --with-badpri syslog priority for failures (def is "alert")
1626: --with-logpath path to the sudo log file
1627: --with-loglen maximum length of a log file line (default is 80)
1628: --with-ignore-dot ignore '.' in the PATH
1629: --without-mail-if-no-user
1630: do not send mail if user not in sudoers
1631: --with-mail-if-no-host send mail if user in sudoers but not for this host
1632: --with-mail-if-noperms send mail if user not allowed to run command
1633: --with-mailto who should get sudo mail (default is "root")
1634: --with-mailsubject subject of sudo mail
1635: --with-passprompt default password prompt
1636: --with-badpass-message message the user sees when the password is wrong
1637: --with-fqdn expect fully qualified hosts in sudoers
1638: --with-timedir path to the sudo timestamp dir
1639: --with-iologdir=DIR directory to store sudo I/O log files in
1640: --with-sendmail set path to sendmail
1641: --without-sendmail do not send mail at all
1642: --with-sudoers-mode mode of sudoers file (defaults to 0440)
1643: --with-sudoers-uid uid that owns sudoers file (defaults to 0)
1644: --with-sudoers-gid gid that owns sudoers file (defaults to 0)
1645: --with-umask umask with which the prog should run (default is
1646: 022)
1647: --without-umask Preserves the umask of the user invoking sudo.
1648: --with-umask-override Use the umask specified in sudoers even if it is
1649: less restrictive than the user's.
1650: --with-runas-default User to run commands as (default is "root")
1651: --with-exempt=group no passwd needed for users in this group
1652: --with-editor=path Default editor for visudo (defaults to vi)
1653: --with-env-editor Use the environment variable EDITOR for visudo
1654: --with-passwd-tries number of tries to enter password (default is 3)
1655: --with-timeout minutes before sudo asks for passwd again (def is 5
1656: minutes)
1657: --with-password-timeout passwd prompt timeout in minutes (default is 5
1658: minutes)
1659: --with-tty-tickets use a different ticket file for each tty
1660: --with-insults insult the user for entering an incorrect password
1661: --with-all-insults include all the sudo insult sets
1662: --with-classic-insults include the insults from the "classic" sudo
1663: --with-csops-insults include CSOps insults
1664: --with-hal-insults include 2001-like insults
1665: --with-goons-insults include the insults from the "Goon Show"
1666: --with-nsswitch[=PATH] path to nsswitch.conf
1667: --with-ldap[=DIR] enable LDAP support
1668: --with-ldap-conf-file path to LDAP configuration file
1669: --with-ldap-secret-file path to LDAP secret password file
1670: --with-pc-insults replace politically incorrect insults with less
1671: offensive ones
1672: --with-secure-path override the user's path with a built-in one
1673: --without-interfaces don't try to read the ip addr of ether interfaces
1.1.1.3 misho 1674: --with-stow deprecated
1.1 misho 1675: --with-askpass=PATH Fully qualified pathname of askpass helper
1676: --with-plugindir set directory to load plugins from
1.1.1.3 misho 1677: --with-man manual pages use man macros
1678: --with-mdoc manual pages use mdoc macros
1.1 misho 1679: --with-selinux enable SELinux support
1.1.1.2 misho 1680: --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1.1 misho 1681: both]
1682: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1683: --with-sysroot=DIR Search for dependent libraries within DIR
1684: (or the compiler's sysroot if not specified).
1.1.1.4 misho 1685: --with-libtool=PATH specify path to libtool
1.1 misho 1686: --with-noexec=PATH fully qualified pathname of sudo_noexec.so
1687: --with-netsvc[=PATH] path to netsvc.conf
1688: --with-pam-login enable specific PAM session for sudo -i
1689:
1690: Some influential environment variables:
1691: CC C compiler command
1692: CFLAGS C compiler flags
1693: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1694: nonstandard directory <lib dir>
1695: LIBS libraries to pass to the linker, e.g. -l<library>
1696: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1697: you have headers in a nonstandard directory <include dir>
1698: CPP C preprocessor
1699: YACC The `Yet Another Compiler Compiler' implementation to use.
1700: Defaults to the first program found out of: `bison -y', `byacc',
1701: `yacc'.
1702: YFLAGS The list of arguments that will be passed by default to $YACC.
1703: This script will default YFLAGS to the empty string to avoid a
1704: default value of `-d' given by some make applications.
1705:
1706: Use these variables to override the choices made by `configure' or to help
1707: it to find libraries and programs with nonstandard names/locations.
1708:
1709: Report bugs to <http://www.sudo.ws/bugs/>.
1710: _ACEOF
1711: ac_status=$?
1712: fi
1713:
1714: if test "$ac_init_help" = "recursive"; then
1715: # If there are subdirs, report their specific --help.
1716: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1717: test -d "$ac_dir" ||
1718: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719: continue
1720: ac_builddir=.
1721:
1722: case "$ac_dir" in
1723: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724: *)
1725: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1726: # A ".." for each directory in $ac_dir_suffix.
1727: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1728: case $ac_top_builddir_sub in
1729: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1731: esac ;;
1732: esac
1733: ac_abs_top_builddir=$ac_pwd
1734: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1735: # for backward compatibility:
1736: ac_top_builddir=$ac_top_build_prefix
1737:
1738: case $srcdir in
1739: .) # We are building in place.
1740: ac_srcdir=.
1741: ac_top_srcdir=$ac_top_builddir_sub
1742: ac_abs_top_srcdir=$ac_pwd ;;
1743: [\\/]* | ?:[\\/]* ) # Absolute name.
1744: ac_srcdir=$srcdir$ac_dir_suffix;
1745: ac_top_srcdir=$srcdir
1746: ac_abs_top_srcdir=$srcdir ;;
1747: *) # Relative name.
1748: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1749: ac_top_srcdir=$ac_top_build_prefix$srcdir
1750: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1751: esac
1752: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1753:
1754: cd "$ac_dir" || { ac_status=$?; continue; }
1755: # Check for guested configure.
1756: if test -f "$ac_srcdir/configure.gnu"; then
1757: echo &&
1758: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1759: elif test -f "$ac_srcdir/configure"; then
1760: echo &&
1761: $SHELL "$ac_srcdir/configure" --help=recursive
1762: else
1763: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1764: fi || ac_status=$?
1765: cd "$ac_pwd" || { ac_status=$?; break; }
1766: done
1767: fi
1768:
1769: test -n "$ac_init_help" && exit $ac_status
1770: if $ac_init_version; then
1771: cat <<\_ACEOF
1.1.1.5 ! misho 1772: sudo configure 1.8.8
1.1 misho 1773: generated by GNU Autoconf 2.68
1774:
1775: Copyright (C) 2010 Free Software Foundation, Inc.
1776: This configure script is free software; the Free Software Foundation
1777: gives unlimited permission to copy, distribute and modify it.
1778: _ACEOF
1779: exit
1780: fi
1781:
1782: ## ------------------------ ##
1783: ## Autoconf initialization. ##
1784: ## ------------------------ ##
1785:
1786: # ac_fn_c_try_compile LINENO
1787: # --------------------------
1788: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1789: ac_fn_c_try_compile ()
1790: {
1791: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792: rm -f conftest.$ac_objext
1793: if { { ac_try="$ac_compile"
1794: case "(($ac_try" in
1795: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796: *) ac_try_echo=$ac_try;;
1797: esac
1798: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799: $as_echo "$ac_try_echo"; } >&5
1800: (eval "$ac_compile") 2>conftest.err
1801: ac_status=$?
1802: if test -s conftest.err; then
1803: grep -v '^ *+' conftest.err >conftest.er1
1804: cat conftest.er1 >&5
1805: mv -f conftest.er1 conftest.err
1806: fi
1807: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808: test $ac_status = 0; } && {
1809: test -z "$ac_c_werror_flag" ||
1810: test ! -s conftest.err
1811: } && test -s conftest.$ac_objext; then :
1812: ac_retval=0
1813: else
1814: $as_echo "$as_me: failed program was:" >&5
1815: sed 's/^/| /' conftest.$ac_ext >&5
1816:
1817: ac_retval=1
1818: fi
1819: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820: as_fn_set_status $ac_retval
1821:
1822: } # ac_fn_c_try_compile
1823:
1824: # ac_fn_c_try_link LINENO
1825: # -----------------------
1826: # Try to link conftest.$ac_ext, and return whether this succeeded.
1827: ac_fn_c_try_link ()
1828: {
1829: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830: rm -f conftest.$ac_objext conftest$ac_exeext
1831: if { { ac_try="$ac_link"
1832: case "(($ac_try" in
1833: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834: *) ac_try_echo=$ac_try;;
1835: esac
1836: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837: $as_echo "$ac_try_echo"; } >&5
1838: (eval "$ac_link") 2>conftest.err
1839: ac_status=$?
1840: if test -s conftest.err; then
1841: grep -v '^ *+' conftest.err >conftest.er1
1842: cat conftest.er1 >&5
1843: mv -f conftest.er1 conftest.err
1844: fi
1845: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846: test $ac_status = 0; } && {
1847: test -z "$ac_c_werror_flag" ||
1848: test ! -s conftest.err
1849: } && test -s conftest$ac_exeext && {
1850: test "$cross_compiling" = yes ||
1851: $as_test_x conftest$ac_exeext
1852: }; then :
1853: ac_retval=0
1854: else
1855: $as_echo "$as_me: failed program was:" >&5
1856: sed 's/^/| /' conftest.$ac_ext >&5
1857:
1858: ac_retval=1
1859: fi
1860: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1861: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1862: # interfere with the next link command; also delete a directory that is
1863: # left behind by Apple's compiler. We do this before executing the actions.
1864: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1865: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866: as_fn_set_status $ac_retval
1867:
1868: } # ac_fn_c_try_link
1869:
1870: # ac_fn_c_try_cpp LINENO
1871: # ----------------------
1872: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1873: ac_fn_c_try_cpp ()
1874: {
1875: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876: if { { ac_try="$ac_cpp conftest.$ac_ext"
1877: case "(($ac_try" in
1878: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879: *) ac_try_echo=$ac_try;;
1880: esac
1881: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882: $as_echo "$ac_try_echo"; } >&5
1883: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1884: ac_status=$?
1885: if test -s conftest.err; then
1886: grep -v '^ *+' conftest.err >conftest.er1
1887: cat conftest.er1 >&5
1888: mv -f conftest.er1 conftest.err
1889: fi
1890: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891: test $ac_status = 0; } > conftest.i && {
1892: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1893: test ! -s conftest.err
1894: }; then :
1895: ac_retval=0
1896: else
1897: $as_echo "$as_me: failed program was:" >&5
1898: sed 's/^/| /' conftest.$ac_ext >&5
1899:
1900: ac_retval=1
1901: fi
1902: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903: as_fn_set_status $ac_retval
1904:
1905: } # ac_fn_c_try_cpp
1906:
1907: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908: # -------------------------------------------------------
1909: # Tests whether HEADER exists and can be compiled using the include files in
1910: # INCLUDES, setting the cache variable VAR accordingly.
1911: ac_fn_c_check_header_compile ()
1912: {
1913: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915: $as_echo_n "checking for $2... " >&6; }
1916: if eval \${$3+:} false; then :
1917: $as_echo_n "(cached) " >&6
1918: else
1919: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920: /* end confdefs.h. */
1921: $4
1922: #include <$2>
1923: _ACEOF
1924: if ac_fn_c_try_compile "$LINENO"; then :
1925: eval "$3=yes"
1926: else
1927: eval "$3=no"
1928: fi
1929: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930: fi
1931: eval ac_res=\$$3
1932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933: $as_echo "$ac_res" >&6; }
1934: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935:
1936: } # ac_fn_c_check_header_compile
1937:
1938: # ac_fn_c_try_run LINENO
1939: # ----------------------
1940: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1941: # that executables *can* be run.
1942: ac_fn_c_try_run ()
1943: {
1944: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945: if { { ac_try="$ac_link"
1946: case "(($ac_try" in
1947: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948: *) ac_try_echo=$ac_try;;
1949: esac
1950: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951: $as_echo "$ac_try_echo"; } >&5
1952: (eval "$ac_link") 2>&5
1953: ac_status=$?
1954: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1956: { { case "(($ac_try" in
1957: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958: *) ac_try_echo=$ac_try;;
1959: esac
1960: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961: $as_echo "$ac_try_echo"; } >&5
1962: (eval "$ac_try") 2>&5
1963: ac_status=$?
1964: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965: test $ac_status = 0; }; }; then :
1966: ac_retval=0
1967: else
1968: $as_echo "$as_me: program exited with status $ac_status" >&5
1969: $as_echo "$as_me: failed program was:" >&5
1970: sed 's/^/| /' conftest.$ac_ext >&5
1971:
1972: ac_retval=$ac_status
1973: fi
1974: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976: as_fn_set_status $ac_retval
1977:
1978: } # ac_fn_c_try_run
1979:
1980: # ac_fn_c_check_func LINENO FUNC VAR
1981: # ----------------------------------
1982: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1983: ac_fn_c_check_func ()
1984: {
1985: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987: $as_echo_n "checking for $2... " >&6; }
1988: if eval \${$3+:} false; then :
1989: $as_echo_n "(cached) " >&6
1990: else
1991: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992: /* end confdefs.h. */
1993: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1994: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1995: #define $2 innocuous_$2
1996:
1997: /* System header to define __stub macros and hopefully few prototypes,
1998: which can conflict with char $2 (); below.
1999: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2000: <limits.h> exists even on freestanding compilers. */
2001:
2002: #ifdef __STDC__
2003: # include <limits.h>
2004: #else
2005: # include <assert.h>
2006: #endif
2007:
2008: #undef $2
2009:
2010: /* Override any GCC internal prototype to avoid an error.
2011: Use char because int might match the return type of a GCC
2012: builtin and then its argument prototype would still apply. */
2013: #ifdef __cplusplus
2014: extern "C"
2015: #endif
2016: char $2 ();
2017: /* The GNU C library defines this for functions which it implements
2018: to always fail with ENOSYS. Some functions are actually named
2019: something starting with __ and the normal name is an alias. */
2020: #if defined __stub_$2 || defined __stub___$2
2021: choke me
2022: #endif
2023:
2024: int
2025: main ()
2026: {
2027: return $2 ();
2028: ;
2029: return 0;
2030: }
2031: _ACEOF
2032: if ac_fn_c_try_link "$LINENO"; then :
2033: eval "$3=yes"
2034: else
2035: eval "$3=no"
2036: fi
2037: rm -f core conftest.err conftest.$ac_objext \
2038: conftest$ac_exeext conftest.$ac_ext
2039: fi
2040: eval ac_res=\$$3
2041: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042: $as_echo "$ac_res" >&6; }
2043: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044:
2045: } # ac_fn_c_check_func
2046:
1.1.1.2 misho 2047: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048: # -------------------------------------------
2049: # Tests whether TYPE exists after having included INCLUDES, setting cache
2050: # variable VAR accordingly.
2051: ac_fn_c_check_type ()
2052: {
2053: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055: $as_echo_n "checking for $2... " >&6; }
2056: if eval \${$3+:} false; then :
2057: $as_echo_n "(cached) " >&6
2058: else
2059: eval "$3=no"
2060: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061: /* end confdefs.h. */
2062: $4
2063: int
2064: main ()
2065: {
2066: if (sizeof ($2))
2067: return 0;
2068: ;
2069: return 0;
2070: }
2071: _ACEOF
2072: if ac_fn_c_try_compile "$LINENO"; then :
2073: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074: /* end confdefs.h. */
2075: $4
2076: int
2077: main ()
2078: {
2079: if (sizeof (($2)))
2080: return 0;
2081: ;
2082: return 0;
2083: }
2084: _ACEOF
2085: if ac_fn_c_try_compile "$LINENO"; then :
2086:
2087: else
2088: eval "$3=yes"
2089: fi
2090: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091: fi
2092: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093: fi
2094: eval ac_res=\$$3
2095: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096: $as_echo "$ac_res" >&6; }
2097: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098:
2099: } # ac_fn_c_check_type
2100:
1.1 misho 2101: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2102: # -------------------------------------------------------
2103: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2104: # the include files in INCLUDES and setting the cache variable VAR
2105: # accordingly.
2106: ac_fn_c_check_header_mongrel ()
2107: {
2108: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109: if eval \${$3+:} false; then :
2110: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2111: $as_echo_n "checking for $2... " >&6; }
2112: if eval \${$3+:} false; then :
2113: $as_echo_n "(cached) " >&6
2114: fi
2115: eval ac_res=\$$3
2116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117: $as_echo "$ac_res" >&6; }
2118: else
2119: # Is the header compilable?
2120: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2121: $as_echo_n "checking $2 usability... " >&6; }
2122: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123: /* end confdefs.h. */
2124: $4
2125: #include <$2>
2126: _ACEOF
2127: if ac_fn_c_try_compile "$LINENO"; then :
2128: ac_header_compiler=yes
2129: else
2130: ac_header_compiler=no
2131: fi
2132: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2133: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2134: $as_echo "$ac_header_compiler" >&6; }
2135:
2136: # Is the header present?
2137: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2138: $as_echo_n "checking $2 presence... " >&6; }
2139: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140: /* end confdefs.h. */
2141: #include <$2>
2142: _ACEOF
2143: if ac_fn_c_try_cpp "$LINENO"; then :
2144: ac_header_preproc=yes
2145: else
2146: ac_header_preproc=no
2147: fi
2148: rm -f conftest.err conftest.i conftest.$ac_ext
2149: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2150: $as_echo "$ac_header_preproc" >&6; }
2151:
2152: # So? What about this header?
2153: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2154: yes:no: )
2155: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2156: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2157: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2158: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2159: ;;
2160: no:yes:* )
2161: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2162: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2163: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2164: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2165: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2166: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2167: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2168: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2169: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2170: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2171: ( $as_echo "## --------------------------------------- ##
2172: ## Report this to http://www.sudo.ws/bugs/ ##
2173: ## --------------------------------------- ##"
2174: ) | sed "s/^/$as_me: WARNING: /" >&2
2175: ;;
2176: esac
2177: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2178: $as_echo_n "checking for $2... " >&6; }
2179: if eval \${$3+:} false; then :
2180: $as_echo_n "(cached) " >&6
2181: else
2182: eval "$3=\$ac_header_compiler"
2183: fi
2184: eval ac_res=\$$3
2185: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186: $as_echo "$ac_res" >&6; }
2187: fi
2188: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2189:
2190: } # ac_fn_c_check_header_mongrel
2191:
1.1.1.2 misho 2192: # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2193: # ----------------------------------------------------
2194: # Tries to find if the field MEMBER exists in type AGGR, after including
2195: # INCLUDES, setting cache variable VAR accordingly.
2196: ac_fn_c_check_member ()
1.1 misho 2197: {
2198: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1.1.1.2 misho 2199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2200: $as_echo_n "checking for $2.$3... " >&6; }
2201: if eval \${$4+:} false; then :
1.1 misho 2202: $as_echo_n "(cached) " >&6
2203: else
2204: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205: /* end confdefs.h. */
1.1.1.2 misho 2206: $5
1.1 misho 2207: int
2208: main ()
2209: {
1.1.1.2 misho 2210: static $2 ac_aggr;
2211: if (ac_aggr.$3)
2212: return 0;
1.1 misho 2213: ;
2214: return 0;
2215: }
2216: _ACEOF
2217: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2 misho 2218: eval "$4=yes"
2219: else
1.1 misho 2220: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2221: /* end confdefs.h. */
1.1.1.2 misho 2222: $5
1.1 misho 2223: int
2224: main ()
2225: {
1.1.1.2 misho 2226: static $2 ac_aggr;
2227: if (sizeof ac_aggr.$3)
2228: return 0;
1.1 misho 2229: ;
2230: return 0;
2231: }
2232: _ACEOF
2233: if ac_fn_c_try_compile "$LINENO"; then :
1.1.1.2 misho 2234: eval "$4=yes"
1.1 misho 2235: else
1.1.1.2 misho 2236: eval "$4=no"
1.1 misho 2237: fi
2238: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239: fi
2240: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241: fi
1.1.1.2 misho 2242: eval ac_res=\$$4
1.1 misho 2243: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244: $as_echo "$ac_res" >&6; }
2245: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246:
1.1.1.2 misho 2247: } # ac_fn_c_check_member
1.1 misho 2248:
2249: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2250: # --------------------------------------------
2251: # Tries to find the compile-time value of EXPR in a program that includes
2252: # INCLUDES, setting VAR accordingly. Returns whether the value could be
2253: # computed
2254: ac_fn_c_compute_int ()
2255: {
2256: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257: if test "$cross_compiling" = yes; then
2258: # Depending upon the size, compute the lo and hi bounds.
2259: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260: /* end confdefs.h. */
2261: $4
2262: int
2263: main ()
2264: {
2265: static int test_array [1 - 2 * !(($2) >= 0)];
2266: test_array [0] = 0
2267:
2268: ;
2269: return 0;
2270: }
2271: _ACEOF
2272: if ac_fn_c_try_compile "$LINENO"; then :
2273: ac_lo=0 ac_mid=0
2274: while :; do
2275: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276: /* end confdefs.h. */
2277: $4
2278: int
2279: main ()
2280: {
2281: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2282: test_array [0] = 0
2283:
2284: ;
2285: return 0;
2286: }
2287: _ACEOF
2288: if ac_fn_c_try_compile "$LINENO"; then :
2289: ac_hi=$ac_mid; break
2290: else
2291: as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2292: if test $ac_lo -le $ac_mid; then
2293: ac_lo= ac_hi=
2294: break
2295: fi
2296: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2297: fi
2298: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299: done
2300: else
2301: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302: /* end confdefs.h. */
2303: $4
2304: int
2305: main ()
2306: {
2307: static int test_array [1 - 2 * !(($2) < 0)];
2308: test_array [0] = 0
2309:
2310: ;
2311: return 0;
2312: }
2313: _ACEOF
2314: if ac_fn_c_try_compile "$LINENO"; then :
2315: ac_hi=-1 ac_mid=-1
2316: while :; do
2317: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318: /* end confdefs.h. */
2319: $4
2320: int
2321: main ()
2322: {
2323: static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2324: test_array [0] = 0
2325:
2326: ;
2327: return 0;
2328: }
2329: _ACEOF
2330: if ac_fn_c_try_compile "$LINENO"; then :
2331: ac_lo=$ac_mid; break
2332: else
2333: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2334: if test $ac_mid -le $ac_hi; then
2335: ac_lo= ac_hi=
2336: break
2337: fi
2338: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2339: fi
2340: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341: done
2342: else
2343: ac_lo= ac_hi=
2344: fi
2345: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2346: fi
2347: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348: # Binary search between lo and hi bounds.
2349: while test "x$ac_lo" != "x$ac_hi"; do
2350: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352: /* end confdefs.h. */
2353: $4
2354: int
2355: main ()
2356: {
2357: static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2358: test_array [0] = 0
2359:
2360: ;
2361: return 0;
2362: }
2363: _ACEOF
2364: if ac_fn_c_try_compile "$LINENO"; then :
2365: ac_hi=$ac_mid
2366: else
2367: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2368: fi
2369: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2370: done
2371: case $ac_lo in #((
2372: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2373: '') ac_retval=1 ;;
2374: esac
2375: else
2376: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377: /* end confdefs.h. */
2378: $4
2379: static long int longval () { return $2; }
2380: static unsigned long int ulongval () { return $2; }
2381: #include <stdio.h>
2382: #include <stdlib.h>
2383: int
2384: main ()
2385: {
2386:
2387: FILE *f = fopen ("conftest.val", "w");
2388: if (! f)
2389: return 1;
2390: if (($2) < 0)
2391: {
2392: long int i = longval ();
2393: if (i != ($2))
2394: return 1;
2395: fprintf (f, "%ld", i);
2396: }
2397: else
2398: {
2399: unsigned long int i = ulongval ();
2400: if (i != ($2))
2401: return 1;
2402: fprintf (f, "%lu", i);
2403: }
2404: /* Do not output a trailing newline, as this causes \r\n confusion
2405: on some platforms. */
2406: return ferror (f) || fclose (f) != 0;
2407:
2408: ;
2409: return 0;
2410: }
2411: _ACEOF
2412: if ac_fn_c_try_run "$LINENO"; then :
2413: echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2414: else
2415: ac_retval=1
2416: fi
2417: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2418: conftest.$ac_objext conftest.beam conftest.$ac_ext
2419: rm -f conftest.val
2420:
2421: fi
2422: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423: as_fn_set_status $ac_retval
2424:
2425: } # ac_fn_c_compute_int
2426:
2427: # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2428: # ---------------------------------------------
2429: # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2430: # accordingly.
2431: ac_fn_c_check_decl ()
2432: {
2433: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2434: as_decl_name=`echo $2|sed 's/ *(.*//'`
2435: as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2436: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2437: $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2438: if eval \${$3+:} false; then :
2439: $as_echo_n "(cached) " >&6
2440: else
2441: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442: /* end confdefs.h. */
2443: $4
2444: int
2445: main ()
2446: {
2447: #ifndef $as_decl_name
2448: #ifdef __cplusplus
2449: (void) $as_decl_use;
2450: #else
2451: (void) $as_decl_name;
2452: #endif
2453: #endif
2454:
2455: ;
2456: return 0;
2457: }
2458: _ACEOF
2459: if ac_fn_c_try_compile "$LINENO"; then :
2460: eval "$3=yes"
2461: else
2462: eval "$3=no"
2463: fi
2464: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465: fi
2466: eval ac_res=\$$3
2467: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2468: $as_echo "$ac_res" >&6; }
2469: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2470:
2471: } # ac_fn_c_check_decl
2472: cat >config.log <<_ACEOF
2473: This file contains any messages produced by compilers while
2474: running configure, to aid debugging if configure makes a mistake.
2475:
1.1.1.5 ! misho 2476: It was created by sudo $as_me 1.8.8, which was
1.1 misho 2477: generated by GNU Autoconf 2.68. Invocation command line was
2478:
2479: $ $0 $@
2480:
2481: _ACEOF
2482: exec 5>>config.log
2483: {
2484: cat <<_ASUNAME
2485: ## --------- ##
2486: ## Platform. ##
2487: ## --------- ##
2488:
2489: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2490: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2491: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2492: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2493: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2494:
2495: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2496: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2497:
2498: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2499: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2500: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2501: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2502: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2503: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2504: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2505:
2506: _ASUNAME
2507:
2508: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509: for as_dir in $PATH
2510: do
2511: IFS=$as_save_IFS
2512: test -z "$as_dir" && as_dir=.
2513: $as_echo "PATH: $as_dir"
2514: done
2515: IFS=$as_save_IFS
2516:
2517: } >&5
2518:
2519: cat >&5 <<_ACEOF
2520:
2521:
2522: ## ----------- ##
2523: ## Core tests. ##
2524: ## ----------- ##
2525:
2526: _ACEOF
2527:
2528:
2529: # Keep a trace of the command line.
2530: # Strip out --no-create and --no-recursion so they do not pile up.
2531: # Strip out --silent because we don't want to record it for future runs.
2532: # Also quote any args containing shell meta-characters.
2533: # Make two passes to allow for proper duplicate-argument suppression.
2534: ac_configure_args=
2535: ac_configure_args0=
2536: ac_configure_args1=
2537: ac_must_keep_next=false
2538: for ac_pass in 1 2
2539: do
2540: for ac_arg
2541: do
2542: case $ac_arg in
2543: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2544: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2545: | -silent | --silent | --silen | --sile | --sil)
2546: continue ;;
2547: *\'*)
2548: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2549: esac
2550: case $ac_pass in
2551: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2552: 2)
2553: as_fn_append ac_configure_args1 " '$ac_arg'"
2554: if test $ac_must_keep_next = true; then
2555: ac_must_keep_next=false # Got value, back to normal.
2556: else
2557: case $ac_arg in
2558: *=* | --config-cache | -C | -disable-* | --disable-* \
2559: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2560: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2561: | -with-* | --with-* | -without-* | --without-* | --x)
2562: case "$ac_configure_args0 " in
2563: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2564: esac
2565: ;;
2566: -* ) ac_must_keep_next=true ;;
2567: esac
2568: fi
2569: as_fn_append ac_configure_args " '$ac_arg'"
2570: ;;
2571: esac
2572: done
2573: done
2574: { ac_configure_args0=; unset ac_configure_args0;}
2575: { ac_configure_args1=; unset ac_configure_args1;}
2576:
2577: # When interrupted or exit'd, cleanup temporary files, and complete
2578: # config.log. We remove comments because anyway the quotes in there
2579: # would cause problems or look ugly.
2580: # WARNING: Use '\'' to represent an apostrophe within the trap.
2581: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2582: trap 'exit_status=$?
2583: # Save into config.log some information that might help in debugging.
2584: {
2585: echo
2586:
2587: $as_echo "## ---------------- ##
2588: ## Cache variables. ##
2589: ## ---------------- ##"
2590: echo
2591: # The following way of writing the cache mishandles newlines in values,
2592: (
2593: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2594: eval ac_val=\$$ac_var
2595: case $ac_val in #(
2596: *${as_nl}*)
2597: case $ac_var in #(
2598: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2599: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2600: esac
2601: case $ac_var in #(
2602: _ | IFS | as_nl) ;; #(
2603: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2604: *) { eval $ac_var=; unset $ac_var;} ;;
2605: esac ;;
2606: esac
2607: done
2608: (set) 2>&1 |
2609: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2610: *${as_nl}ac_space=\ *)
2611: sed -n \
2612: "s/'\''/'\''\\\\'\'''\''/g;
2613: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2614: ;; #(
2615: *)
2616: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2617: ;;
2618: esac |
2619: sort
2620: )
2621: echo
2622:
2623: $as_echo "## ----------------- ##
2624: ## Output variables. ##
2625: ## ----------------- ##"
2626: echo
2627: for ac_var in $ac_subst_vars
2628: do
2629: eval ac_val=\$$ac_var
2630: case $ac_val in
2631: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2632: esac
2633: $as_echo "$ac_var='\''$ac_val'\''"
2634: done | sort
2635: echo
2636:
2637: if test -n "$ac_subst_files"; then
2638: $as_echo "## ------------------- ##
2639: ## File substitutions. ##
2640: ## ------------------- ##"
2641: echo
2642: for ac_var in $ac_subst_files
2643: do
2644: eval ac_val=\$$ac_var
2645: case $ac_val in
2646: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2647: esac
2648: $as_echo "$ac_var='\''$ac_val'\''"
2649: done | sort
2650: echo
2651: fi
2652:
2653: if test -s confdefs.h; then
2654: $as_echo "## ----------- ##
2655: ## confdefs.h. ##
2656: ## ----------- ##"
2657: echo
2658: cat confdefs.h
2659: echo
2660: fi
2661: test "$ac_signal" != 0 &&
2662: $as_echo "$as_me: caught signal $ac_signal"
2663: $as_echo "$as_me: exit $exit_status"
2664: } >&5
2665: rm -f core *.core core.conftest.* &&
2666: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2667: exit $exit_status
2668: ' 0
2669: for ac_signal in 1 2 13 15; do
2670: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2671: done
2672: ac_signal=0
2673:
2674: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2675: rm -f -r conftest* confdefs.h
2676:
2677: $as_echo "/* confdefs.h */" > confdefs.h
2678:
2679: # Predefined preprocessor variables.
2680:
2681: cat >>confdefs.h <<_ACEOF
2682: #define PACKAGE_NAME "$PACKAGE_NAME"
2683: _ACEOF
2684:
2685: cat >>confdefs.h <<_ACEOF
2686: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2687: _ACEOF
2688:
2689: cat >>confdefs.h <<_ACEOF
2690: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2691: _ACEOF
2692:
2693: cat >>confdefs.h <<_ACEOF
2694: #define PACKAGE_STRING "$PACKAGE_STRING"
2695: _ACEOF
2696:
2697: cat >>confdefs.h <<_ACEOF
2698: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2699: _ACEOF
2700:
2701: cat >>confdefs.h <<_ACEOF
2702: #define PACKAGE_URL "$PACKAGE_URL"
2703: _ACEOF
2704:
2705:
2706: # Let the site file select an alternate cache file if it wants to.
2707: # Prefer an explicitly selected file to automatically selected ones.
2708: ac_site_file1=NONE
2709: ac_site_file2=NONE
2710: if test -n "$CONFIG_SITE"; then
2711: # We do not want a PATH search for config.site.
2712: case $CONFIG_SITE in #((
2713: -*) ac_site_file1=./$CONFIG_SITE;;
2714: */*) ac_site_file1=$CONFIG_SITE;;
2715: *) ac_site_file1=./$CONFIG_SITE;;
2716: esac
2717: elif test "x$prefix" != xNONE; then
2718: ac_site_file1=$prefix/share/config.site
2719: ac_site_file2=$prefix/etc/config.site
2720: else
2721: ac_site_file1=$ac_default_prefix/share/config.site
2722: ac_site_file2=$ac_default_prefix/etc/config.site
2723: fi
2724: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2725: do
2726: test "x$ac_site_file" = xNONE && continue
2727: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2728: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2729: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2730: sed 's/^/| /' "$ac_site_file" >&5
2731: . "$ac_site_file" \
2732: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734: as_fn_error $? "failed to load site script $ac_site_file
2735: See \`config.log' for more details" "$LINENO" 5; }
2736: fi
2737: done
2738:
2739: if test -r "$cache_file"; then
2740: # Some versions of bash will fail to source /dev/null (special files
2741: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2742: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2743: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2744: $as_echo "$as_me: loading cache $cache_file" >&6;}
2745: case $cache_file in
2746: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2747: *) . "./$cache_file";;
2748: esac
2749: fi
2750: else
2751: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2752: $as_echo "$as_me: creating cache $cache_file" >&6;}
2753: >$cache_file
2754: fi
2755:
2756: # Check that the precious variables saved in the cache have kept the same
2757: # value.
2758: ac_cache_corrupted=false
2759: for ac_var in $ac_precious_vars; do
2760: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2761: eval ac_new_set=\$ac_env_${ac_var}_set
2762: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2763: eval ac_new_val=\$ac_env_${ac_var}_value
2764: case $ac_old_set,$ac_new_set in
2765: set,)
2766: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2767: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2768: ac_cache_corrupted=: ;;
2769: ,set)
2770: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2771: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2772: ac_cache_corrupted=: ;;
2773: ,);;
2774: *)
2775: if test "x$ac_old_val" != "x$ac_new_val"; then
2776: # differences in whitespace do not lead to failure.
2777: ac_old_val_w=`echo x $ac_old_val`
2778: ac_new_val_w=`echo x $ac_new_val`
2779: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2780: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2781: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2782: ac_cache_corrupted=:
2783: else
2784: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2785: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2786: eval $ac_var=\$ac_old_val
2787: fi
2788: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2789: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2790: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2791: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2792: fi;;
2793: esac
2794: # Pass precious variables to config.status.
2795: if test "$ac_new_set" = set; then
2796: case $ac_new_val in
2797: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2798: *) ac_arg=$ac_var=$ac_new_val ;;
2799: esac
2800: case " $ac_configure_args " in
2801: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2802: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2803: esac
2804: fi
2805: done
2806: if $ac_cache_corrupted; then
2807: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2808: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2809: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2810: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2811: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2812: fi
2813: ## -------------------- ##
2814: ## Main body of script. ##
2815: ## -------------------- ##
2816:
2817: ac_ext=c
2818: ac_cpp='$CPP $CPPFLAGS'
2819: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2820: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2821: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2822:
2823:
2824: ac_config_headers="$ac_config_headers config.h pathnames.h"
2825:
2826: { $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5
2827: $as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;}
2828:
2829:
2830:
2831:
2832:
2833:
2834:
2835:
2836:
2837:
2838:
2839:
2840:
2841:
2842:
2843:
2844:
2845:
2846:
2847:
2848:
2849:
2850:
2851:
2852:
2853:
2854:
2855:
2856:
2857:
2858:
2859:
2860:
2861:
2862:
2863:
2864:
2865:
2866:
2867:
2868:
2869:
2870:
2871:
2872:
2873:
2874:
2875:
2876:
2877:
2878:
2879:
2880:
2881:
2882:
2883:
2884:
2885:
2886:
2887:
2888:
2889:
2890:
2891:
2892:
2893:
2894:
2895:
2896:
2897:
2898:
2899:
2900:
2901:
2902:
2903:
2904:
2905:
2906:
2907:
2908:
2909:
2910:
2911:
2912:
2913:
2914:
1.1.1.2 misho 2915:
1.1.1.3 misho 2916:
2917:
2918:
2919:
2920:
2921:
2922:
2923:
2924:
2925:
2926:
2927:
2928:
1.1.1.4 misho 2929:
2930:
2931:
2932:
2933:
1.1.1.5 ! misho 2934:
! 2935:
1.1 misho 2936: #
2937: # Begin initial values for man page substitution
2938: #
2939: iolog_dir=/var/log/sudo-io
2940: timedir=/var/adm/sudo
2941: timeout=5
2942: password_timeout=5
2943: sudo_umask=0022
2944: umask_override=off
2945: passprompt="Password:"
2946: long_otp_prompt=off
2947: lecture=once
2948: logfac=auth
2949: goodpri=notice
2950: badpri=alert
2951: loglen=80
2952: ignore_dot=off
2953: mail_no_user=on
2954: mail_no_host=off
2955: mail_no_perms=off
2956: mailto=root
2957: mailsub="*** SECURITY information for %h ***"
2958: badpass_message="Sorry, try again."
2959: fqdn=off
2960: runas_default=root
2961: env_editor=off
2962: env_reset=on
2963: editor=vi
2964: passwd_tries=3
2965: tty_tickets=on
2966: insults=off
2967: root_sudo=on
2968: path_info=on
2969: ldap_conf=/etc/ldap.conf
2970: ldap_secret=/etc/ldap.secret
2971: netsvc_conf=/etc/netsvc.conf
1.1.1.4 misho 2972: noexec_file=/usr/local/libexec/sudo/sudo_noexec.so
2973: sesh_file=/usr/local/libexec/sudo/sesh
1.1 misho 2974: nsswitch_conf=/etc/nsswitch.conf
2975: secure_path="not set"
1.1.1.4 misho 2976: pam_session=on
1.1.1.5 ! misho 2977: pam_login_service=sudo
1.1.1.4 misho 2978: PLUGINDIR=/usr/local/libexec/sudo
1.1 misho 2979: #
2980: # End initial values for man page substitution
2981: #
2982: INSTALL_NOEXEC=
2983: devdir='$(srcdir)'
2984: PROGS="sudo"
1.1.1.3 misho 2985: : ${MANDIRTYPE='man'}
1.1 misho 2986: : ${mansrcdir='.'}
1.1.1.3 misho 2987: : ${SHLIB_MODE='0644'}
1.1 misho 2988: : ${SUDOERS_MODE='0440'}
2989: : ${SUDOERS_UID='0'}
2990: : ${SUDOERS_GID='0'}
1.1.1.2 misho 2991: DEVEL=
1.1 misho 2992: LDAP="#"
2993: BAMAN=0
2994: LCMAN=0
1.1.1.3 misho 2995: PSMAN=0
1.1 misho 2996: SEMAN=0
2997: LIBINTL=
2998: ZLIB=
2999: ZLIB_SRC=
3000: AUTH_OBJS=
3001: AUTH_REG=
3002: AUTH_EXCL=
3003: AUTH_EXCL_DEF=
3004: AUTH_DEF=passwd
3005: SUDO_NLS=disabled
1.1.1.4 misho 3006: LOCALEDIR_SUFFIX=
1.1.1.3 misho 3007: LT_LDEXPORTS="-export-symbols \$(shlib_exp)"
3008: LT_LDDEP="\$(shlib_exp)"
1.1.1.4 misho 3009: NO_VIZ="-DNO_VIZ"
3010: OS_INIT=os_init_common
1.1 misho 3011:
3012: CHECKSHADOW=true
3013: shadow_defs=
3014: shadow_funcs=
3015: shadow_libs=
3016: shadow_libs_optional=
3017: CONFIGURE_ARGS="$@"
3018:
1.1.1.2 misho 3019: RTLD_PRELOAD_VAR="LD_PRELOAD"
3020: RTLD_PRELOAD_ENABLE_VAR=
3021: RTLD_PRELOAD_DELIM=":"
3022: RTLD_PRELOAD_DEFAULT=
3023:
1.1 misho 3024:
3025:
1.1.1.4 misho 3026: #
3027: # Prior to sudo 1.8.7, sudo stored libexec files in $libexecdir.
3028: # Starting with sudo 1.8.7, $libexecdir/sudo is used so strip
3029: # off an extraneous "/sudo" from libexecdir.
3030: #
3031: case "$libexecdir" in
3032: */sudo)
3033: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&5
3034: $as_echo "$as_me: WARNING: libexecdir should not include the \"sudo\" subdirectory" >&2;}
3035: libexecdir=`expr "$libexecdir" : '\\(.*\\)/sudo$'`
3036: ;;
3037: esac
3038:
1.1 misho 3039:
3040:
3041: # Check whether --with-otp-only was given.
3042: if test "${with_otp_only+set}" = set; then :
3043: withval=$with_otp_only; case $with_otp_only in
3044: yes) with_passwd="no"
3045: { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5
3046: $as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
3047: ;;
3048: esac
3049: fi
3050:
3051:
3052:
3053: # Check whether --with-alertmail was given.
3054: if test "${with_alertmail+set}" = set; then :
3055: withval=$with_alertmail; case $with_alertmail in
3056: *) with_mailto="$with_alertmail"
3057: { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5
3058: $as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
3059: ;;
3060: esac
3061: fi
3062:
3063:
3064:
3065:
3066: # Check whether --with-devel was given.
3067: if test "${with_devel+set}" = set; then :
3068: withval=$with_devel; case $with_devel in
3069: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5
3070: $as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
3071: OSDEFS="${OSDEFS} -DSUDO_DEVEL"
1.1.1.2 misho 3072: DEVEL="true"
1.1 misho 3073: devdir=.
3074: ;;
3075: no) ;;
3076: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
3077: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
3078: ;;
3079: esac
3080: fi
3081:
3082:
3083:
3084: # Check whether --with-CC was given.
3085: if test "${with_CC+set}" = set; then :
3086: withval=$with_CC; case $with_CC in
3087: *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5
3088: ;;
3089: esac
3090: fi
3091:
3092:
3093:
3094: # Check whether --with-rpath was given.
3095: if test "${with_rpath+set}" = set; then :
1.1.1.4 misho 3096: withval=$with_rpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-rpath deprecated, rpath is now the default" >&5
3097: $as_echo "$as_me: WARNING: --with-rpath deprecated, rpath is now the default" >&2;}
1.1 misho 3098: fi
3099:
3100:
3101:
3102: # Check whether --with-blibpath was given.
3103: if test "${with_blibpath+set}" = set; then :
1.1.1.4 misho 3104: withval=$with_blibpath; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-blibpath deprecated, use --with-libpath" >&5
3105: $as_echo "$as_me: WARNING: --with-blibpath deprecated, use --with-libpath" >&2;}
1.1 misho 3106: fi
3107:
3108:
3109:
3110: # Check whether --with-bsm-audit was given.
3111: if test "${with_bsm_audit+set}" = set; then :
3112: withval=$with_bsm_audit; case $with_bsm_audit in
3113: yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h
3114:
3115: SUDOERS_LIBS="${SUDOERS_LIBS} -lbsm"
3116: SUDOERS_OBJS="${SUDOERS_OBJS} bsm_audit.lo"
3117: ;;
3118: no) ;;
3119: *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5
3120: ;;
3121: esac
3122: fi
3123:
3124:
3125: ac_ext=c
3126: ac_cpp='$CPP $CPPFLAGS'
3127: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3128: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3129: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130: if test -n "$ac_tool_prefix"; then
3131: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3132: set dummy ${ac_tool_prefix}gcc; ac_word=$2
3133: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134: $as_echo_n "checking for $ac_word... " >&6; }
3135: if ${ac_cv_prog_CC+:} false; then :
3136: $as_echo_n "(cached) " >&6
3137: else
3138: if test -n "$CC"; then
3139: ac_cv_prog_CC="$CC" # Let the user override the test.
3140: else
3141: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142: for as_dir in $PATH
3143: do
3144: IFS=$as_save_IFS
3145: test -z "$as_dir" && as_dir=.
3146: for ac_exec_ext in '' $ac_executable_extensions; do
3147: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3148: ac_cv_prog_CC="${ac_tool_prefix}gcc"
3149: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150: break 2
3151: fi
3152: done
3153: done
3154: IFS=$as_save_IFS
3155:
3156: fi
3157: fi
3158: CC=$ac_cv_prog_CC
3159: if test -n "$CC"; then
3160: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3161: $as_echo "$CC" >&6; }
3162: else
3163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164: $as_echo "no" >&6; }
3165: fi
3166:
3167:
3168: fi
3169: if test -z "$ac_cv_prog_CC"; then
3170: ac_ct_CC=$CC
3171: # Extract the first word of "gcc", so it can be a program name with args.
3172: set dummy gcc; ac_word=$2
3173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3174: $as_echo_n "checking for $ac_word... " >&6; }
3175: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3176: $as_echo_n "(cached) " >&6
3177: else
3178: if test -n "$ac_ct_CC"; then
3179: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3180: else
3181: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182: for as_dir in $PATH
3183: do
3184: IFS=$as_save_IFS
3185: test -z "$as_dir" && as_dir=.
3186: for ac_exec_ext in '' $ac_executable_extensions; do
3187: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188: ac_cv_prog_ac_ct_CC="gcc"
3189: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190: break 2
3191: fi
3192: done
3193: done
3194: IFS=$as_save_IFS
3195:
3196: fi
3197: fi
3198: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3199: if test -n "$ac_ct_CC"; then
3200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3201: $as_echo "$ac_ct_CC" >&6; }
3202: else
3203: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204: $as_echo "no" >&6; }
3205: fi
3206:
3207: if test "x$ac_ct_CC" = x; then
3208: CC=""
3209: else
3210: case $cross_compiling:$ac_tool_warned in
3211: yes:)
3212: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3213: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3214: ac_tool_warned=yes ;;
3215: esac
3216: CC=$ac_ct_CC
3217: fi
3218: else
3219: CC="$ac_cv_prog_CC"
3220: fi
3221:
3222: if test -z "$CC"; then
3223: if test -n "$ac_tool_prefix"; then
3224: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3225: set dummy ${ac_tool_prefix}cc; ac_word=$2
3226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227: $as_echo_n "checking for $ac_word... " >&6; }
3228: if ${ac_cv_prog_CC+:} false; then :
3229: $as_echo_n "(cached) " >&6
3230: else
3231: if test -n "$CC"; then
3232: ac_cv_prog_CC="$CC" # Let the user override the test.
3233: else
3234: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235: for as_dir in $PATH
3236: do
3237: IFS=$as_save_IFS
3238: test -z "$as_dir" && as_dir=.
3239: for ac_exec_ext in '' $ac_executable_extensions; do
3240: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3241: ac_cv_prog_CC="${ac_tool_prefix}cc"
3242: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243: break 2
3244: fi
3245: done
3246: done
3247: IFS=$as_save_IFS
3248:
3249: fi
3250: fi
3251: CC=$ac_cv_prog_CC
3252: if test -n "$CC"; then
3253: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254: $as_echo "$CC" >&6; }
3255: else
3256: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257: $as_echo "no" >&6; }
3258: fi
3259:
3260:
3261: fi
3262: fi
3263: if test -z "$CC"; then
3264: # Extract the first word of "cc", so it can be a program name with args.
3265: set dummy cc; ac_word=$2
3266: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3267: $as_echo_n "checking for $ac_word... " >&6; }
3268: if ${ac_cv_prog_CC+:} false; then :
3269: $as_echo_n "(cached) " >&6
3270: else
3271: if test -n "$CC"; then
3272: ac_cv_prog_CC="$CC" # Let the user override the test.
3273: else
3274: ac_prog_rejected=no
3275: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276: for as_dir in $PATH
3277: do
3278: IFS=$as_save_IFS
3279: test -z "$as_dir" && as_dir=.
3280: for ac_exec_ext in '' $ac_executable_extensions; do
3281: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3282: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3283: ac_prog_rejected=yes
3284: continue
3285: fi
3286: ac_cv_prog_CC="cc"
3287: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288: break 2
3289: fi
3290: done
3291: done
3292: IFS=$as_save_IFS
3293:
3294: if test $ac_prog_rejected = yes; then
3295: # We found a bogon in the path, so make sure we never use it.
3296: set dummy $ac_cv_prog_CC
3297: shift
3298: if test $# != 0; then
3299: # We chose a different compiler from the bogus one.
3300: # However, it has the same basename, so the bogon will be chosen
3301: # first if we set CC to just the basename; use the full file name.
3302: shift
3303: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3304: fi
3305: fi
3306: fi
3307: fi
3308: CC=$ac_cv_prog_CC
3309: if test -n "$CC"; then
3310: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311: $as_echo "$CC" >&6; }
3312: else
3313: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314: $as_echo "no" >&6; }
3315: fi
3316:
3317:
3318: fi
3319: if test -z "$CC"; then
3320: if test -n "$ac_tool_prefix"; then
3321: for ac_prog in cl.exe
3322: do
3323: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3324: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326: $as_echo_n "checking for $ac_word... " >&6; }
3327: if ${ac_cv_prog_CC+:} false; then :
3328: $as_echo_n "(cached) " >&6
3329: else
3330: if test -n "$CC"; then
3331: ac_cv_prog_CC="$CC" # Let the user override the test.
3332: else
3333: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334: for as_dir in $PATH
3335: do
3336: IFS=$as_save_IFS
3337: test -z "$as_dir" && as_dir=.
3338: for ac_exec_ext in '' $ac_executable_extensions; do
3339: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3341: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342: break 2
3343: fi
3344: done
3345: done
3346: IFS=$as_save_IFS
3347:
3348: fi
3349: fi
3350: CC=$ac_cv_prog_CC
3351: if test -n "$CC"; then
3352: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353: $as_echo "$CC" >&6; }
3354: else
3355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356: $as_echo "no" >&6; }
3357: fi
3358:
3359:
3360: test -n "$CC" && break
3361: done
3362: fi
3363: if test -z "$CC"; then
3364: ac_ct_CC=$CC
3365: for ac_prog in cl.exe
3366: do
3367: # Extract the first word of "$ac_prog", so it can be a program name with args.
3368: set dummy $ac_prog; ac_word=$2
3369: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370: $as_echo_n "checking for $ac_word... " >&6; }
3371: if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372: $as_echo_n "(cached) " >&6
3373: else
3374: if test -n "$ac_ct_CC"; then
3375: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376: else
3377: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378: for as_dir in $PATH
3379: do
3380: IFS=$as_save_IFS
3381: test -z "$as_dir" && as_dir=.
3382: for ac_exec_ext in '' $ac_executable_extensions; do
3383: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3384: ac_cv_prog_ac_ct_CC="$ac_prog"
3385: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386: break 2
3387: fi
3388: done
3389: done
3390: IFS=$as_save_IFS
3391:
3392: fi
3393: fi
3394: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395: if test -n "$ac_ct_CC"; then
3396: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397: $as_echo "$ac_ct_CC" >&6; }
3398: else
3399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400: $as_echo "no" >&6; }
3401: fi
3402:
3403:
3404: test -n "$ac_ct_CC" && break
3405: done
3406:
3407: if test "x$ac_ct_CC" = x; then
3408: CC=""
3409: else
3410: case $cross_compiling:$ac_tool_warned in
3411: yes:)
3412: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414: ac_tool_warned=yes ;;
3415: esac
3416: CC=$ac_ct_CC
3417: fi
3418: fi
3419:
3420: fi
3421:
3422:
3423: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3424: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3425: as_fn_error $? "no acceptable C compiler found in \$PATH
3426: See \`config.log' for more details" "$LINENO" 5; }
3427:
3428: # Provide some information about the compiler.
3429: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3430: set X $ac_compile
3431: ac_compiler=$2
3432: for ac_option in --version -v -V -qversion; do
3433: { { ac_try="$ac_compiler $ac_option >&5"
3434: case "(($ac_try" in
3435: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3436: *) ac_try_echo=$ac_try;;
3437: esac
3438: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3439: $as_echo "$ac_try_echo"; } >&5
3440: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3441: ac_status=$?
3442: if test -s conftest.err; then
3443: sed '10a\
3444: ... rest of stderr output deleted ...
3445: 10q' conftest.err >conftest.er1
3446: cat conftest.er1 >&5
3447: fi
3448: rm -f conftest.er1 conftest.err
3449: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3450: test $ac_status = 0; }
3451: done
3452:
3453: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454: /* end confdefs.h. */
3455:
3456: int
3457: main ()
3458: {
3459:
3460: ;
3461: return 0;
3462: }
3463: _ACEOF
3464: ac_clean_files_save=$ac_clean_files
3465: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3466: # Try to create an executable without -o first, disregard a.out.
3467: # It will help us diagnose broken compilers, and finding out an intuition
3468: # of exeext.
3469: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3470: $as_echo_n "checking whether the C compiler works... " >&6; }
3471: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3472:
3473: # The possible output files:
3474: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3475:
3476: ac_rmfiles=
3477: for ac_file in $ac_files
3478: do
3479: case $ac_file in
3480: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3481: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3482: esac
3483: done
3484: rm -f $ac_rmfiles
3485:
3486: if { { ac_try="$ac_link_default"
3487: case "(($ac_try" in
3488: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489: *) ac_try_echo=$ac_try;;
3490: esac
3491: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3492: $as_echo "$ac_try_echo"; } >&5
3493: (eval "$ac_link_default") 2>&5
3494: ac_status=$?
3495: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3496: test $ac_status = 0; }; then :
3497: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3498: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3499: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3500: # so that the user can short-circuit this test for compilers unknown to
3501: # Autoconf.
3502: for ac_file in $ac_files ''
3503: do
3504: test -f "$ac_file" || continue
3505: case $ac_file in
3506: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3507: ;;
3508: [ab].out )
3509: # We found the default executable, but exeext='' is most
3510: # certainly right.
3511: break;;
3512: *.* )
3513: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3514: then :; else
3515: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3516: fi
3517: # We set ac_cv_exeext here because the later test for it is not
3518: # safe: cross compilers may not add the suffix if given an `-o'
3519: # argument, so we may need to know it at that point already.
3520: # Even if this section looks crufty: it has the advantage of
3521: # actually working.
3522: break;;
3523: * )
3524: break;;
3525: esac
3526: done
3527: test "$ac_cv_exeext" = no && ac_cv_exeext=
3528:
3529: else
3530: ac_file=''
3531: fi
3532: if test -z "$ac_file"; then :
3533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534: $as_echo "no" >&6; }
3535: $as_echo "$as_me: failed program was:" >&5
3536: sed 's/^/| /' conftest.$ac_ext >&5
3537:
3538: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3539: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3540: as_fn_error 77 "C compiler cannot create executables
3541: See \`config.log' for more details" "$LINENO" 5; }
3542: else
3543: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544: $as_echo "yes" >&6; }
3545: fi
3546: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3547: $as_echo_n "checking for C compiler default output file name... " >&6; }
3548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3549: $as_echo "$ac_file" >&6; }
3550: ac_exeext=$ac_cv_exeext
3551:
3552: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3553: ac_clean_files=$ac_clean_files_save
3554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3555: $as_echo_n "checking for suffix of executables... " >&6; }
3556: if { { ac_try="$ac_link"
3557: case "(($ac_try" in
3558: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559: *) ac_try_echo=$ac_try;;
3560: esac
3561: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562: $as_echo "$ac_try_echo"; } >&5
3563: (eval "$ac_link") 2>&5
3564: ac_status=$?
3565: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566: test $ac_status = 0; }; then :
3567: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3568: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3569: # work properly (i.e., refer to `conftest.exe'), while it won't with
3570: # `rm'.
3571: for ac_file in conftest.exe conftest conftest.*; do
3572: test -f "$ac_file" || continue
3573: case $ac_file in
3574: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3575: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3576: break;;
3577: * ) break;;
3578: esac
3579: done
3580: else
3581: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3582: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3583: as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3584: See \`config.log' for more details" "$LINENO" 5; }
3585: fi
3586: rm -f conftest conftest$ac_cv_exeext
3587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3588: $as_echo "$ac_cv_exeext" >&6; }
3589:
3590: rm -f conftest.$ac_ext
3591: EXEEXT=$ac_cv_exeext
3592: ac_exeext=$EXEEXT
3593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594: /* end confdefs.h. */
3595: #include <stdio.h>
3596: int
3597: main ()
3598: {
3599: FILE *f = fopen ("conftest.out", "w");
3600: return ferror (f) || fclose (f) != 0;
3601:
3602: ;
3603: return 0;
3604: }
3605: _ACEOF
3606: ac_clean_files="$ac_clean_files conftest.out"
3607: # Check that the compiler produces executables we can run. If not, either
3608: # the compiler is broken, or we cross compile.
3609: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3610: $as_echo_n "checking whether we are cross compiling... " >&6; }
3611: if test "$cross_compiling" != yes; then
3612: { { ac_try="$ac_link"
3613: case "(($ac_try" in
3614: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615: *) ac_try_echo=$ac_try;;
3616: esac
3617: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618: $as_echo "$ac_try_echo"; } >&5
3619: (eval "$ac_link") 2>&5
3620: ac_status=$?
3621: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622: test $ac_status = 0; }
3623: if { ac_try='./conftest$ac_cv_exeext'
3624: { { case "(($ac_try" in
3625: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626: *) ac_try_echo=$ac_try;;
3627: esac
3628: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3629: $as_echo "$ac_try_echo"; } >&5
3630: (eval "$ac_try") 2>&5
3631: ac_status=$?
3632: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3633: test $ac_status = 0; }; }; then
3634: cross_compiling=no
3635: else
3636: if test "$cross_compiling" = maybe; then
3637: cross_compiling=yes
3638: else
3639: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3640: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3641: as_fn_error $? "cannot run C compiled programs.
3642: If you meant to cross compile, use \`--host'.
3643: See \`config.log' for more details" "$LINENO" 5; }
3644: fi
3645: fi
3646: fi
3647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3648: $as_echo "$cross_compiling" >&6; }
3649:
3650: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3651: ac_clean_files=$ac_clean_files_save
3652: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3653: $as_echo_n "checking for suffix of object files... " >&6; }
3654: if ${ac_cv_objext+:} false; then :
3655: $as_echo_n "(cached) " >&6
3656: else
3657: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658: /* end confdefs.h. */
3659:
3660: int
3661: main ()
3662: {
3663:
3664: ;
3665: return 0;
3666: }
3667: _ACEOF
3668: rm -f conftest.o conftest.obj
3669: if { { ac_try="$ac_compile"
3670: case "(($ac_try" in
3671: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672: *) ac_try_echo=$ac_try;;
3673: esac
3674: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3675: $as_echo "$ac_try_echo"; } >&5
3676: (eval "$ac_compile") 2>&5
3677: ac_status=$?
3678: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3679: test $ac_status = 0; }; then :
3680: for ac_file in conftest.o conftest.obj conftest.*; do
3681: test -f "$ac_file" || continue;
3682: case $ac_file in
3683: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3684: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685: break;;
3686: esac
3687: done
3688: else
3689: $as_echo "$as_me: failed program was:" >&5
3690: sed 's/^/| /' conftest.$ac_ext >&5
3691:
3692: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694: as_fn_error $? "cannot compute suffix of object files: cannot compile
3695: See \`config.log' for more details" "$LINENO" 5; }
3696: fi
3697: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3698: fi
3699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3700: $as_echo "$ac_cv_objext" >&6; }
3701: OBJEXT=$ac_cv_objext
3702: ac_objext=$OBJEXT
3703: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3704: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3705: if ${ac_cv_c_compiler_gnu+:} false; then :
3706: $as_echo_n "(cached) " >&6
3707: else
3708: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709: /* end confdefs.h. */
3710:
3711: int
3712: main ()
3713: {
3714: #ifndef __GNUC__
3715: choke me
3716: #endif
3717:
3718: ;
3719: return 0;
3720: }
3721: _ACEOF
3722: if ac_fn_c_try_compile "$LINENO"; then :
3723: ac_compiler_gnu=yes
3724: else
3725: ac_compiler_gnu=no
3726: fi
3727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3729:
3730: fi
3731: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3732: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3733: if test $ac_compiler_gnu = yes; then
3734: GCC=yes
3735: else
3736: GCC=
3737: fi
3738: ac_test_CFLAGS=${CFLAGS+set}
3739: ac_save_CFLAGS=$CFLAGS
3740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3741: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3742: if ${ac_cv_prog_cc_g+:} false; then :
3743: $as_echo_n "(cached) " >&6
3744: else
3745: ac_save_c_werror_flag=$ac_c_werror_flag
3746: ac_c_werror_flag=yes
3747: ac_cv_prog_cc_g=no
3748: CFLAGS="-g"
3749: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750: /* end confdefs.h. */
3751:
3752: int
3753: main ()
3754: {
3755:
3756: ;
3757: return 0;
3758: }
3759: _ACEOF
3760: if ac_fn_c_try_compile "$LINENO"; then :
3761: ac_cv_prog_cc_g=yes
3762: else
3763: CFLAGS=""
3764: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3765: /* end confdefs.h. */
3766:
3767: int
3768: main ()
3769: {
3770:
3771: ;
3772: return 0;
3773: }
3774: _ACEOF
3775: if ac_fn_c_try_compile "$LINENO"; then :
3776:
3777: else
3778: ac_c_werror_flag=$ac_save_c_werror_flag
3779: CFLAGS="-g"
3780: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781: /* end confdefs.h. */
3782:
3783: int
3784: main ()
3785: {
3786:
3787: ;
3788: return 0;
3789: }
3790: _ACEOF
3791: if ac_fn_c_try_compile "$LINENO"; then :
3792: ac_cv_prog_cc_g=yes
3793: fi
3794: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3795: fi
3796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3797: fi
3798: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3799: ac_c_werror_flag=$ac_save_c_werror_flag
3800: fi
3801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3802: $as_echo "$ac_cv_prog_cc_g" >&6; }
3803: if test "$ac_test_CFLAGS" = set; then
3804: CFLAGS=$ac_save_CFLAGS
3805: elif test $ac_cv_prog_cc_g = yes; then
3806: if test "$GCC" = yes; then
3807: CFLAGS="-g -O2"
3808: else
3809: CFLAGS="-g"
3810: fi
3811: else
3812: if test "$GCC" = yes; then
3813: CFLAGS="-O2"
3814: else
3815: CFLAGS=
3816: fi
3817: fi
3818: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3819: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3820: if ${ac_cv_prog_cc_c89+:} false; then :
3821: $as_echo_n "(cached) " >&6
3822: else
3823: ac_cv_prog_cc_c89=no
3824: ac_save_CC=$CC
3825: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826: /* end confdefs.h. */
3827: #include <stdarg.h>
3828: #include <stdio.h>
3829: #include <sys/types.h>
3830: #include <sys/stat.h>
3831: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3832: struct buf { int x; };
3833: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3834: static char *e (p, i)
3835: char **p;
3836: int i;
3837: {
3838: return p[i];
3839: }
3840: static char *f (char * (*g) (char **, int), char **p, ...)
3841: {
3842: char *s;
3843: va_list v;
3844: va_start (v,p);
3845: s = g (p, va_arg (v,int));
3846: va_end (v);
3847: return s;
3848: }
3849:
3850: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3851: function prototypes and stuff, but not '\xHH' hex character constants.
3852: These don't provoke an error unfortunately, instead are silently treated
3853: as 'x'. The following induces an error, until -std is added to get
3854: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3855: array size at least. It's necessary to write '\x00'==0 to get something
3856: that's true only with -std. */
3857: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3858:
3859: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3860: inside strings and character constants. */
3861: #define FOO(x) 'x'
3862: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3863:
3864: int test (int i, double x);
3865: struct s1 {int (*f) (int a);};
3866: struct s2 {int (*f) (double a);};
3867: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3868: int argc;
3869: char **argv;
3870: int
3871: main ()
3872: {
3873: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3874: ;
3875: return 0;
3876: }
3877: _ACEOF
3878: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3879: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3880: do
3881: CC="$ac_save_CC $ac_arg"
3882: if ac_fn_c_try_compile "$LINENO"; then :
3883: ac_cv_prog_cc_c89=$ac_arg
3884: fi
3885: rm -f core conftest.err conftest.$ac_objext
3886: test "x$ac_cv_prog_cc_c89" != "xno" && break
3887: done
3888: rm -f conftest.$ac_ext
3889: CC=$ac_save_CC
3890:
3891: fi
3892: # AC_CACHE_VAL
3893: case "x$ac_cv_prog_cc_c89" in
3894: x)
3895: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3896: $as_echo "none needed" >&6; } ;;
3897: xno)
3898: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3899: $as_echo "unsupported" >&6; } ;;
3900: *)
3901: CC="$CC $ac_cv_prog_cc_c89"
3902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3903: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3904: esac
3905: if test "x$ac_cv_prog_cc_c89" != xno; then :
3906:
3907: fi
3908:
3909: ac_ext=c
3910: ac_cpp='$CPP $CPPFLAGS'
3911: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914:
3915:
3916:
3917: # Check whether --with-linux-audit was given.
3918: if test "${with_linux_audit+set}" = set; then :
3919: withval=$with_linux_audit; case $with_linux_audit in
3920: yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3921: /* end confdefs.h. */
3922: #include <libaudit.h>
3923: int
3924: main ()
3925: {
3926: int i = AUDIT_USER_CMD; (void)i;
3927: ;
3928: return 0;
3929: }
3930: _ACEOF
3931: if ac_fn_c_try_compile "$LINENO"; then :
3932:
3933: $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h
3934:
3935: SUDO_LIBS="${SUDO_LIBS} -laudit"
3936: SUDOERS_LIBS="${SUDO_LIBS} -laudit"
3937: SUDOERS_OBJS="${SUDOERS_OBJS} linux_audit.lo"
3938:
3939: else
3940:
3941: as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5
3942:
3943: fi
3944: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3945: ;;
3946: no) ;;
3947: *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5
3948: ;;
3949: esac
3950: fi
3951:
3952:
3953:
1.1.1.3 misho 3954: # Check whether --with-sssd was given.
3955: if test "${with_sssd+set}" = set; then :
3956: withval=$with_sssd; case $with_sssd in
3957: yes) SUDOERS_OBJS="${SUDOERS_OBJS} sssd.lo"
3958: $as_echo "#define HAVE_SSSD 1" >>confdefs.h
3959:
3960: ;;
3961: no) ;;
3962: *) as_fn_error $? "\"--with-sssd does not take an argument.\"" "$LINENO" 5
3963: ;;
3964: esac
3965: fi
3966:
3967:
3968:
3969: # Check whether --with-sssd-lib was given.
3970: if test "${with_sssd_lib+set}" = set; then :
3971: withval=$with_sssd_lib;
3972: fi
3973:
3974: sssd_lib="\"LIBDIR\""
3975: test -n "$with_sssd_lib" && sssd_lib="$with_sssd_lib"
3976: cat >>confdefs.h <<EOF
3977: #define _PATH_SSSD_LIB "$sssd_lib"
3978: EOF
3979:
3980:
3981:
1.1 misho 3982: # Check whether --with-incpath was given.
3983: if test "${with_incpath+set}" = set; then :
3984: withval=$with_incpath; case $with_incpath in
3985: yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5
3986: ;;
3987: no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5
3988: ;;
3989: *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5
3990: $as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
3991: for i in ${with_incpath}; do
1.1.1.4 misho 3992:
3993: case "${CPPFLAGS}" in
3994: *"-I${i}"|*"-I${i} ")
3995: ;;
3996: *)
3997: if test X"${CPPFLAGS}" = X""; then
3998: CPPFLAGS="-I${i}"
3999: else
4000: CPPFLAGS="${CPPFLAGS} -I${i}"
4001: fi
4002: ;;
4003: esac
4004:
1.1 misho 4005: done
4006: ;;
4007: esac
4008: fi
4009:
4010:
4011:
4012: # Check whether --with-libpath was given.
4013: if test "${with_libpath+set}" = set; then :
4014: withval=$with_libpath; case $with_libpath in
4015: yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5
4016: ;;
4017: no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5
4018: ;;
4019: *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5
4020: $as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
4021: ;;
4022: esac
4023: fi
4024:
4025:
4026:
4027: # Check whether --with-libraries was given.
4028: if test "${with_libraries+set}" = set; then :
4029: withval=$with_libraries; case $with_libraries in
4030: yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5
4031: ;;
4032: no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5
4033: ;;
4034: *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5
4035: $as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
4036: ;;
4037: esac
4038: fi
4039:
4040:
4041:
4042: # Check whether --with-efence was given.
4043: if test "${with_efence+set}" = set; then :
4044: withval=$with_efence; case $with_efence in
4045: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5
4046: $as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
4047: LIBS="${LIBS} -lefence"
4048: if test -f /usr/local/lib/libefence.a; then
4049: with_libpath="${with_libpath} /usr/local/lib"
4050: fi
4051: ;;
4052: no) ;;
4053: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
4054: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
4055: ;;
4056: esac
4057: fi
4058:
4059:
4060:
4061: # Check whether --with-csops was given.
4062: if test "${with_csops+set}" = set; then :
4063: withval=$with_csops; case $with_csops in
4064: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5
4065: $as_echo "$as_me: Adding CSOps standard options" >&6;}
4066: CHECKSIA=false
4067: with_ignore_dot=yes
4068: insults=on
4069: with_classic_insults=yes
4070: with_csops_insults=yes
4071: with_env_editor=yes
4072: : ${mansectsu='8'}
4073: : ${mansectform='5'}
4074: ;;
4075: no) ;;
4076: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
4077: $as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
4078: ;;
4079: esac
4080: fi
4081:
4082:
4083:
4084: # Check whether --with-passwd was given.
4085: if test "${with_passwd+set}" = set; then :
4086: withval=$with_passwd; case $with_passwd in
4087: yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5
4088: $as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; }
4089: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5
4090: $as_echo "$with_passwd" >&6; }
4091: AUTH_DEF=""
4092: test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
4093: ;;
4094: *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5
4095: ;;
4096: esac
4097: fi
4098:
4099:
4100:
4101: # Check whether --with-skey was given.
4102: if test "${with_skey+set}" = set; then :
4103: withval=$with_skey; case $with_skey in
4104: no) ;;
4105: *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h
4106:
4107: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5
4108: $as_echo_n "checking whether to try S/Key authentication... " >&6; }
4109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4110: $as_echo "yes" >&6; }
4111: AUTH_REG="$AUTH_REG S/Key"
4112: ;;
4113: esac
4114: fi
4115:
4116:
4117:
4118: # Check whether --with-opie was given.
4119: if test "${with_opie+set}" = set; then :
4120: withval=$with_opie; case $with_opie in
4121: no) ;;
4122: *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h
4123:
4124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5
4125: $as_echo_n "checking whether to try NRL OPIE authentication... " >&6; }
4126: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4127: $as_echo "yes" >&6; }
4128: AUTH_REG="$AUTH_REG NRL_OPIE"
4129: ;;
4130: esac
4131: fi
4132:
4133:
4134:
4135: # Check whether --with-long-otp-prompt was given.
4136: if test "${with_long_otp_prompt+set}" = set; then :
4137: withval=$with_long_otp_prompt; case $with_long_otp_prompt in
4138: yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h
4139:
4140: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5
4141: $as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; }
4142: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143: $as_echo "yes" >&6; }
4144: long_otp_prompt=on
4145: ;;
4146: no) long_otp_prompt=off
4147: ;;
4148: *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5
4149: ;;
4150: esac
4151: fi
4152:
4153:
4154:
4155: # Check whether --with-SecurID was given.
4156: if test "${with_SecurID+set}" = set; then :
4157: withval=$with_SecurID; case $with_SecurID in
4158: no) ;;
4159: *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h
4160:
4161: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5
4162: $as_echo_n "checking whether to use SecurID for authentication... " >&6; }
4163: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4164: $as_echo "yes" >&6; }
4165: AUTH_EXCL="$AUTH_EXCL SecurID"
4166: ;;
4167: esac
4168: fi
4169:
4170:
4171:
4172: # Check whether --with-fwtk was given.
4173: if test "${with_fwtk+set}" = set; then :
4174: withval=$with_fwtk; case $with_fwtk in
4175: no) ;;
4176: *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h
4177:
4178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5
4179: $as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; }
4180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181: $as_echo "yes" >&6; }
4182: AUTH_EXCL="$AUTH_EXCL FWTK"
4183: ;;
4184: esac
4185: fi
4186:
4187:
4188:
4189: # Check whether --with-kerb5 was given.
4190: if test "${with_kerb5+set}" = set; then :
4191: withval=$with_kerb5; case $with_kerb5 in
4192: no) ;;
4193: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5
4194: $as_echo_n "checking whether to try Kerberos V authentication... " >&6; }
4195: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4196: $as_echo "yes" >&6; }
4197: AUTH_REG="$AUTH_REG kerb5"
4198: ;;
4199: esac
4200: fi
4201:
4202:
4203:
4204: # Check whether --with-aixauth was given.
4205: if test "${with_aixauth+set}" = set; then :
4206: withval=$with_aixauth; case $with_aixauth in
4207: yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
4208: no) ;;
4209: *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5
4210: ;;
4211: esac
4212: fi
4213:
4214:
4215:
4216: # Check whether --with-pam was given.
4217: if test "${with_pam+set}" = set; then :
4218: withval=$with_pam; case $with_pam in
4219: yes) AUTH_EXCL="$AUTH_EXCL PAM";;
4220: no) ;;
4221: *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5
4222: ;;
4223: esac
4224: fi
4225:
4226:
4227:
4228: # Check whether --with-AFS was given.
4229: if test "${with_AFS+set}" = set; then :
4230: withval=$with_AFS; case $with_AFS in
4231: yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h
4232:
4233: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5
4234: $as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; }
4235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4236: $as_echo "yes" >&6; }
4237: AUTH_REG="$AUTH_REG AFS"
4238: ;;
4239: no) ;;
4240: *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5
4241: ;;
4242: esac
4243: fi
4244:
4245:
4246:
4247: # Check whether --with-DCE was given.
4248: if test "${with_DCE+set}" = set; then :
4249: withval=$with_DCE; case $with_DCE in
4250: yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h
4251:
4252: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5
4253: $as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; }
4254: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255: $as_echo "yes" >&6; }
4256: AUTH_REG="$AUTH_REG DCE"
4257: ;;
4258: no) ;;
4259: *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5
4260: ;;
4261: esac
4262: fi
4263:
4264:
4265:
4266: # Check whether --with-logincap was given.
4267: if test "${with_logincap+set}" = set; then :
4268: withval=$with_logincap; case $with_logincap in
4269: yes|no) ;;
4270: *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5
4271: ;;
4272: esac
4273: fi
4274:
4275:
4276:
4277: # Check whether --with-bsdauth was given.
4278: if test "${with_bsdauth+set}" = set; then :
4279: withval=$with_bsdauth; case $with_bsdauth in
4280: yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
4281: no) ;;
4282: *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5
4283: ;;
4284: esac
4285: fi
4286:
4287:
4288:
4289: # Check whether --with-project was given.
4290: if test "${with_project+set}" = set; then :
4291: withval=$with_project; case $with_project in
4292: yes|no) ;;
4293: no) ;;
4294: *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5
4295: ;;
4296: esac
4297: fi
4298:
4299:
4300: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5
4301: $as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; }
4302:
4303: # Check whether --with-lecture was given.
4304: if test "${with_lecture+set}" = set; then :
4305: withval=$with_lecture; case $with_lecture in
4306: yes|short|always) lecture=once
4307: ;;
4308: no|none|never) lecture=never
4309: ;;
4310: *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5
4311: ;;
4312: esac
4313: fi
4314:
4315: if test "$lecture" = "once"; then
4316: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4317: $as_echo "yes" >&6; }
4318: else
4319: $as_echo "#define NO_LECTURE 1" >>confdefs.h
4320:
4321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322: $as_echo "no" >&6; }
4323: fi
4324:
4325: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5
4326: $as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; }
4327:
4328: # Check whether --with-logging was given.
4329: if test "${with_logging+set}" = set; then :
4330: withval=$with_logging; case $with_logging in
4331: yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5
4332: ;;
4333: no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5
4334: ;;
4335: syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4336:
4337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4338: $as_echo "syslog" >&6; }
4339: ;;
4340: file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h
4341:
4342: { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5
4343: $as_echo "file" >&6; }
4344: ;;
4345: both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h
4346:
4347: { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5
4348: $as_echo "both" >&6; }
4349: ;;
4350: *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5
4351: ;;
4352: esac
4353: else
4354: $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h
4355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5
4356: $as_echo "syslog" >&6; }
4357: fi
4358:
4359:
4360:
4361: # Check whether --with-logfac was given.
4362: if test "${with_logfac+set}" = set; then :
4363: withval=$with_logfac; case $with_logfac in
4364: yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5
4365: ;;
4366: no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5
4367: ;;
4368: authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac
4369: ;;
4370: *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5
4371: ;;
4372: esac
4373: fi
4374:
4375:
4376: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5
4377: $as_echo_n "checking at which syslog priority to log commands... " >&6; }
4378:
4379: # Check whether --with-goodpri was given.
4380: if test "${with_goodpri+set}" = set; then :
4381: withval=$with_goodpri; case $with_goodpri in
4382: yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5
4383: ;;
4384: no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5
4385: ;;
4386: alert|crit|debug|emerg|err|info|notice|warning)
4387: goodpri=$with_goodpri
4388: ;;
4389: *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5
4390: ;;
4391: esac
4392: fi
4393:
4394:
4395: cat >>confdefs.h <<_ACEOF
4396: #define PRI_SUCCESS "$goodpri"
4397: _ACEOF
4398:
4399: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5
4400: $as_echo "$goodpri" >&6; }
4401:
4402: { $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5
4403: $as_echo_n "checking at which syslog priority to log failures... " >&6; }
4404:
4405: # Check whether --with-badpri was given.
4406: if test "${with_badpri+set}" = set; then :
4407: withval=$with_badpri; case $with_badpri in
4408: yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5
4409: ;;
4410: no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5
4411: ;;
4412: alert|crit|debug|emerg|err|info|notice|warning)
4413: badpri=$with_badpri
4414: ;;
4415: *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5
4416: ;;
4417: esac
4418: fi
4419:
4420:
4421: cat >>confdefs.h <<_ACEOF
4422: #define PRI_FAILURE "$badpri"
4423: _ACEOF
4424:
4425: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5
4426: $as_echo "$badpri" >&6; }
4427:
4428:
4429: # Check whether --with-logpath was given.
4430: if test "${with_logpath+set}" = set; then :
4431: withval=$with_logpath; case $with_logpath in
4432: yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5
4433: ;;
4434: no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5
4435: ;;
4436: esac
4437: fi
4438:
4439:
4440: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5
4441: $as_echo_n "checking how long a line in the log file should be... " >&6; }
4442:
4443: # Check whether --with-loglen was given.
4444: if test "${with_loglen+set}" = set; then :
4445: withval=$with_loglen; case $with_loglen in
4446: yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5
4447: ;;
4448: no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5
4449: ;;
4450: [0-9]*) loglen=$with_loglen
4451: ;;
4452: *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5
4453: ;;
4454: esac
4455: fi
4456:
4457:
4458: cat >>confdefs.h <<_ACEOF
4459: #define MAXLOGFILELEN $loglen
4460: _ACEOF
4461:
4462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5
4463: $as_echo "$loglen" >&6; }
4464:
4465: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5
4466: $as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; }
4467:
4468: # Check whether --with-ignore-dot was given.
4469: if test "${with_ignore_dot+set}" = set; then :
4470: withval=$with_ignore_dot; case $with_ignore_dot in
4471: yes) ignore_dot=on
4472: ;;
4473: no) ignore_dot=off
4474: ;;
4475: *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5
4476: ;;
4477: esac
4478: fi
4479:
4480: if test "$ignore_dot" = "on"; then
4481: $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h
4482:
4483: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484: $as_echo "yes" >&6; }
4485: else
4486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4487: $as_echo "no" >&6; }
4488: fi
4489:
4490: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5
4491: $as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; }
4492:
4493: # Check whether --with-mail-if-no-user was given.
4494: if test "${with_mail_if_no_user+set}" = set; then :
4495: withval=$with_mail_if_no_user; case $with_mail_if_no_user in
4496: yes) mail_no_user=on
4497: ;;
4498: no) mail_no_user=off
4499: ;;
4500: *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5
4501: ;;
4502: esac
4503: fi
4504:
4505: if test "$mail_no_user" = "on"; then
4506: $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h
4507:
4508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509: $as_echo "yes" >&6; }
4510: else
4511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4512: $as_echo "no" >&6; }
4513: fi
4514:
4515: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5
4516: $as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; }
4517:
4518: # Check whether --with-mail-if-no-host was given.
4519: if test "${with_mail_if_no_host+set}" = set; then :
4520: withval=$with_mail_if_no_host; case $with_mail_if_no_host in
4521: yes) mail_no_host=on
4522: ;;
4523: no) mail_no_host=off
4524: ;;
4525: *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5
4526: ;;
4527: esac
4528: fi
4529:
4530: if test "$mail_no_host" = "on"; then
4531: $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h
4532:
4533: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4534: $as_echo "yes" >&6; }
4535: else
4536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537: $as_echo "no" >&6; }
4538: fi
4539:
4540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5
4541: $as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; }
4542:
4543: # Check whether --with-mail-if-noperms was given.
4544: if test "${with_mail_if_noperms+set}" = set; then :
4545: withval=$with_mail_if_noperms; case $with_mail_if_noperms in
4546: yes) mail_noperms=on
4547: ;;
4548: no) mail_noperms=off
4549: ;;
4550: *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5
4551: ;;
4552: esac
4553: fi
4554:
4555: if test "$mail_noperms" = "on"; then
4556: $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h
4557:
4558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4559: $as_echo "yes" >&6; }
4560: else
4561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562: $as_echo "no" >&6; }
4563: fi
4564:
4565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5
4566: $as_echo_n "checking who should get the mail that sudo sends... " >&6; }
4567:
4568: # Check whether --with-mailto was given.
4569: if test "${with_mailto+set}" = set; then :
4570: withval=$with_mailto; case $with_mailto in
4571: yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5
4572: ;;
4573: no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5
4574: ;;
4575: *) mailto=$with_mailto
4576: ;;
4577: esac
4578: fi
4579:
4580:
4581: cat >>confdefs.h <<_ACEOF
4582: #define MAILTO "$mailto"
4583: _ACEOF
4584:
4585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5
4586: $as_echo "$mailto" >&6; }
4587:
4588:
4589: # Check whether --with-mailsubject was given.
4590: if test "${with_mailsubject+set}" = set; then :
4591: withval=$with_mailsubject; case $with_mailsubject in
4592: yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5
4593: ;;
4594: no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5
4595: $as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
4596: ;;
4597: *) mailsub="$with_mailsubject"
4598: { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5
4599: $as_echo_n "checking sudo mail subject... " >&6; }
4600: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5
4601: $as_echo "Using alert mail subject: $mailsub" >&6; }
4602: ;;
4603: esac
4604: fi
4605:
4606:
4607: cat >>confdefs.h <<_ACEOF
4608: #define MAILSUBJECT "$mailsub"
4609: _ACEOF
4610:
4611:
4612: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5
4613: $as_echo_n "checking for bad password prompt... " >&6; }
4614:
4615: # Check whether --with-passprompt was given.
4616: if test "${with_passprompt+set}" = set; then :
4617: withval=$with_passprompt; case $with_passprompt in
4618: yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5
4619: ;;
4620: no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5
4621: $as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
4622: ;;
4623: *) passprompt="$with_passprompt"
4624: esac
4625: fi
4626:
4627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5
4628: $as_echo "$passprompt" >&6; }
4629:
4630: cat >>confdefs.h <<_ACEOF
4631: #define PASSPROMPT "$passprompt"
4632: _ACEOF
4633:
4634:
4635: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5
4636: $as_echo_n "checking for bad password message... " >&6; }
4637:
4638: # Check whether --with-badpass-message was given.
4639: if test "${with_badpass_message+set}" = set; then :
4640: withval=$with_badpass_message; case $with_badpass_message in
4641: yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5
4642: ;;
4643: no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5
4644: $as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
4645: ;;
4646: *) badpass_message="$with_badpass_message"
4647: ;;
4648: esac
4649: fi
4650:
4651:
4652: cat >>confdefs.h <<_ACEOF
4653: #define INCORRECT_PASSWORD "$badpass_message"
4654: _ACEOF
4655:
4656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5
4657: $as_echo "$badpass_message" >&6; }
4658:
4659: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5
4660: $as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; }
4661:
4662: # Check whether --with-fqdn was given.
4663: if test "${with_fqdn+set}" = set; then :
4664: withval=$with_fqdn; case $with_fqdn in
4665: yes) fqdn=on
4666: ;;
4667: no) fqdn=off
4668: ;;
4669: *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5
4670: ;;
4671: esac
4672: fi
4673:
4674: if test "$fqdn" = "on"; then
4675: $as_echo "#define FQDN 1" >>confdefs.h
4676:
4677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4678: $as_echo "yes" >&6; }
4679: else
4680: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4681: $as_echo "no" >&6; }
4682: fi
4683:
4684:
4685: # Check whether --with-timedir was given.
4686: if test "${with_timedir+set}" = set; then :
4687: withval=$with_timedir; case $with_timedir in
4688: yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5
4689: ;;
4690: no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5
4691: ;;
4692: esac
4693: fi
4694:
4695:
4696:
4697: # Check whether --with-iologdir was given.
4698: if test "${with_iologdir+set}" = set; then :
4699: withval=$with_iologdir; case $with_iologdir in
4700: yes) ;;
4701: no) as_fn_error $? "\"--without-iologdir not supported.\"" "$LINENO" 5
4702: ;;
4703: esac
4704: fi
4705:
4706:
4707:
4708: # Check whether --with-sendmail was given.
4709: if test "${with_sendmail+set}" = set; then :
4710: withval=$with_sendmail; case $with_sendmail in
4711: yes) with_sendmail=""
4712: ;;
4713: no) ;;
4714: *) cat >>confdefs.h <<EOF
4715: #define _PATH_SUDO_SENDMAIL "$with_sendmail"
4716: EOF
4717:
4718: ;;
4719: esac
4720: fi
4721:
4722:
4723:
4724: # Check whether --with-sudoers-mode was given.
4725: if test "${with_sudoers_mode+set}" = set; then :
4726: withval=$with_sudoers_mode; case $with_sudoers_mode in
4727: yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5
4728: ;;
4729: no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5
4730: ;;
4731: [1-9]*) SUDOERS_MODE=0${with_sudoers_mode}
4732: ;;
4733: 0*) SUDOERS_MODE=$with_sudoers_mode
4734: ;;
4735: *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5
4736: ;;
4737: esac
4738: fi
4739:
4740:
4741:
4742: # Check whether --with-sudoers-uid was given.
4743: if test "${with_sudoers_uid+set}" = set; then :
4744: withval=$with_sudoers_uid; case $with_sudoers_uid in
4745: yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5
4746: ;;
4747: no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5
4748: ;;
4749: [0-9]*) SUDOERS_UID=$with_sudoers_uid
4750: ;;
4751: *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5
4752: ;;
4753: esac
4754: fi
4755:
4756:
4757:
4758: # Check whether --with-sudoers-gid was given.
4759: if test "${with_sudoers_gid+set}" = set; then :
4760: withval=$with_sudoers_gid; case $with_sudoers_gid in
4761: yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5
4762: ;;
4763: no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5
4764: ;;
4765: [0-9]*) SUDOERS_GID=$with_sudoers_gid
4766: ;;
4767: *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5
4768: ;;
4769: esac
4770: fi
4771:
4772:
4773: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5
4774: $as_echo_n "checking for umask programs should be run with... " >&6; }
4775:
4776: # Check whether --with-umask was given.
4777: if test "${with_umask+set}" = set; then :
4778: withval=$with_umask; case $with_umask in
4779: yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5
4780: ;;
4781: no) sudo_umask=0777
4782: ;;
4783: [0-9]*) sudo_umask=$with_umask
4784: ;;
4785: *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5
4786: ;;
4787: esac
4788: fi
4789:
4790:
4791: cat >>confdefs.h <<_ACEOF
4792: #define SUDO_UMASK $sudo_umask
4793: _ACEOF
4794:
4795: if test "$sudo_umask" = "0777"; then
4796: { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5
4797: $as_echo "user" >&6; }
4798: else
4799: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5
4800: $as_echo "$sudo_umask" >&6; }
4801: fi
4802:
4803:
4804: # Check whether --with-umask-override was given.
4805: if test "${with_umask_override+set}" = set; then :
4806: withval=$with_umask_override; case $with_umask_override in
4807: yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h
4808:
4809: umask_override=on
4810: ;;
4811: no) umask_override=off
4812: ;;
4813: *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5
4814: ;;
4815: esac
4816: fi
4817:
4818:
4819: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5
4820: $as_echo_n "checking for default user to run commands as... " >&6; }
4821:
4822: # Check whether --with-runas-default was given.
4823: if test "${with_runas_default+set}" = set; then :
4824: withval=$with_runas_default; case $with_runas_default in
4825: yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5
4826: ;;
4827: no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5
4828: ;;
4829: *) runas_default="$with_runas_default"
4830: ;;
4831: esac
4832: fi
4833:
4834:
4835: cat >>confdefs.h <<_ACEOF
4836: #define RUNAS_DEFAULT "$runas_default"
4837: _ACEOF
4838:
4839: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5
4840: $as_echo "$runas_default" >&6; }
4841:
4842:
4843: # Check whether --with-exempt was given.
4844: if test "${with_exempt+set}" = set; then :
4845: withval=$with_exempt; case $with_exempt in
4846: yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5
4847: ;;
4848: no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5
4849: ;;
4850: *)
4851: cat >>confdefs.h <<_ACEOF
4852: #define EXEMPTGROUP "$with_exempt"
4853: _ACEOF
4854:
4855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5
4856: $as_echo_n "checking for group to be exempt from password... " >&6; }
4857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5
4858: $as_echo "$with_exempt" >&6; }
4859: ;;
4860: esac
4861: fi
4862:
4863:
4864: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5
4865: $as_echo_n "checking for editor that visudo should use... " >&6; }
4866:
4867: # Check whether --with-editor was given.
4868: if test "${with_editor+set}" = set; then :
4869: withval=$with_editor; case $with_editor in
4870: yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5
4871: ;;
4872: no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4873: ;;
4874: *)
4875: cat >>confdefs.h <<_ACEOF
4876: #define EDITOR "$with_editor"
4877: _ACEOF
4878:
4879: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5
4880: $as_echo "$with_editor" >&6; }
4881: editor="$with_editor"
4882: ;;
4883: esac
4884: else
4885: $as_echo "#define EDITOR _PATH_VI" >>confdefs.h
4886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5
4887: $as_echo "vi" >&6; }
4888: fi
4889:
4890:
4891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5
4892: $as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; }
4893:
4894: # Check whether --with-env-editor was given.
4895: if test "${with_env_editor+set}" = set; then :
4896: withval=$with_env_editor; case $with_env_editor in
4897: yes) env_editor=on
4898: ;;
4899: no) env_editor=off
4900: ;;
4901: *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5
4902: ;;
4903: esac
4904: fi
4905:
4906: if test "$env_editor" = "on"; then
4907: $as_echo "#define ENV_EDITOR 1" >>confdefs.h
4908:
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4910: $as_echo "yes" >&6; }
4911: else
4912: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4913: $as_echo "no" >&6; }
4914: fi
4915:
4916: { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5
4917: $as_echo_n "checking number of tries a user gets to enter their password... " >&6; }
4918:
4919: # Check whether --with-passwd-tries was given.
4920: if test "${with_passwd_tries+set}" = set; then :
4921: withval=$with_passwd_tries; case $with_passwd_tries in
4922: yes) ;;
4923: no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5
4924: ;;
4925: [1-9]*) passwd_tries=$with_passwd_tries
4926: ;;
4927: *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5
4928: ;;
4929: esac
4930: fi
4931:
4932:
4933: cat >>confdefs.h <<_ACEOF
4934: #define TRIES_FOR_PASSWORD $passwd_tries
4935: _ACEOF
4936:
4937: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5
4938: $as_echo "$passwd_tries" >&6; }
4939:
4940: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5
4941: $as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; }
4942:
4943: # Check whether --with-timeout was given.
4944: if test "${with_timeout+set}" = set; then :
4945: withval=$with_timeout; case $with_timeout in
4946: yes) ;;
4947: no) timeout=0
4948: ;;
4949: [0-9]*) timeout=$with_timeout
4950: ;;
4951: *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4952: ;;
4953: esac
4954: fi
4955:
4956:
4957: cat >>confdefs.h <<_ACEOF
4958: #define TIMEOUT $timeout
4959: _ACEOF
4960:
4961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5
4962: $as_echo "$timeout" >&6; }
4963:
4964: { $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5
4965: $as_echo_n "checking time in minutes after the password prompt will time out... " >&6; }
4966:
4967: # Check whether --with-password-timeout was given.
4968: if test "${with_password_timeout+set}" = set; then :
4969: withval=$with_password_timeout; case $with_password_timeout in
4970: yes) ;;
4971: no) password_timeout=0
4972: ;;
4973: [0-9]*) password_timeout=$with_password_timeout
4974: ;;
4975: *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5
4976: ;;
4977: esac
4978: fi
4979:
4980:
4981: cat >>confdefs.h <<_ACEOF
4982: #define PASSWORD_TIMEOUT $password_timeout
4983: _ACEOF
4984:
4985: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5
4986: $as_echo "$password_timeout" >&6; }
4987:
4988: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5
4989: $as_echo_n "checking whether to use per-tty ticket files... " >&6; }
4990:
4991: # Check whether --with-tty-tickets was given.
4992: if test "${with_tty_tickets+set}" = set; then :
4993: withval=$with_tty_tickets; case $with_tty_tickets in
4994: yes) tty_tickets=on
4995: ;;
4996: no) tty_tickets=off
4997: ;;
4998: *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5
4999: ;;
5000: esac
5001: fi
5002:
5003: if test "$tty_tickets" = "off"; then
5004: $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h
5005:
5006: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5007: $as_echo "no" >&6; }
5008: else
5009: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5010: $as_echo "yes" >&6; }
5011: fi
5012:
5013: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5
5014: $as_echo_n "checking whether to include insults... " >&6; }
5015:
5016: # Check whether --with-insults was given.
5017: if test "${with_insults+set}" = set; then :
5018: withval=$with_insults; case $with_insults in
5019: yes) insults=on
5020: with_classic_insults=yes
5021: with_csops_insults=yes
5022: ;;
5023: disabled) insults=off
5024: with_classic_insults=yes
5025: with_csops_insults=yes
5026: ;;
5027: no) insults=off
5028: ;;
5029: *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5
5030: ;;
5031: esac
5032: fi
5033:
5034: if test "$insults" = "on"; then
5035: $as_echo "#define USE_INSULTS 1" >>confdefs.h
5036:
5037: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5038: $as_echo "yes" >&6; }
5039: else
5040: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5041: $as_echo "no" >&6; }
5042: fi
5043:
5044:
5045: # Check whether --with-all-insults was given.
5046: if test "${with_all_insults+set}" = set; then :
5047: withval=$with_all_insults; case $with_all_insults in
5048: yes) with_classic_insults=yes
5049: with_csops_insults=yes
5050: with_hal_insults=yes
5051: with_goons_insults=yes
5052: ;;
5053: no) ;;
5054: *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5
5055: ;;
5056: esac
5057: fi
5058:
5059:
5060:
5061: # Check whether --with-classic-insults was given.
5062: if test "${with_classic_insults+set}" = set; then :
5063: withval=$with_classic_insults; case $with_classic_insults in
5064: yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h
5065:
5066: ;;
5067: no) ;;
5068: *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5
5069: ;;
5070: esac
5071: fi
5072:
5073:
5074:
5075: # Check whether --with-csops-insults was given.
5076: if test "${with_csops_insults+set}" = set; then :
5077: withval=$with_csops_insults; case $with_csops_insults in
5078: yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h
5079:
5080: ;;
5081: no) ;;
5082: *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5
5083: ;;
5084: esac
5085: fi
5086:
5087:
5088:
5089: # Check whether --with-hal-insults was given.
5090: if test "${with_hal_insults+set}" = set; then :
5091: withval=$with_hal_insults; case $with_hal_insults in
5092: yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h
5093:
5094: ;;
5095: no) ;;
5096: *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5
5097: ;;
5098: esac
5099: fi
5100:
5101:
5102:
5103: # Check whether --with-goons-insults was given.
5104: if test "${with_goons_insults+set}" = set; then :
5105: withval=$with_goons_insults; case $with_goons_insults in
5106: yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h
5107:
5108: ;;
5109: no) ;;
5110: *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5
5111: ;;
5112: esac
5113: fi
5114:
5115:
5116:
5117: # Check whether --with-nsswitch was given.
5118: if test "${with_nsswitch+set}" = set; then :
5119: withval=$with_nsswitch; case $with_nsswitch in
5120: no) ;;
5121: yes) with_nsswitch="/etc/nsswitch.conf"
5122: ;;
5123: *) ;;
5124: esac
5125: fi
5126:
5127:
5128:
5129: # Check whether --with-ldap was given.
5130: if test "${with_ldap+set}" = set; then :
5131: withval=$with_ldap; case $with_ldap in
5132: no) ;;
5133: *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h
5134:
5135: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5
5136: $as_echo_n "checking whether to use sudoers from LDAP... " >&6; }
5137: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5138: $as_echo "yes" >&6; }
5139: ;;
5140: esac
5141: fi
5142:
5143:
5144:
5145: # Check whether --with-ldap-conf-file was given.
5146: if test "${with_ldap_conf_file+set}" = set; then :
5147: withval=$with_ldap_conf_file;
5148: fi
5149:
5150: test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file"
5151: cat >>confdefs.h <<EOF
5152: #define _PATH_LDAP_CONF "$ldap_conf"
5153: EOF
5154:
5155:
5156:
5157: # Check whether --with-ldap-secret-file was given.
5158: if test "${with_ldap_secret_file+set}" = set; then :
5159: withval=$with_ldap_secret_file;
5160: fi
5161:
5162: test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file"
5163: cat >>confdefs.h <<EOF
5164: #define _PATH_LDAP_SECRET "$ldap_secret"
5165: EOF
5166:
5167:
5168:
5169: # Check whether --with-pc-insults was given.
5170: if test "${with_pc_insults+set}" = set; then :
5171: withval=$with_pc_insults; case $with_pc_insults in
5172: yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h
5173:
5174: ;;
5175: no) ;;
5176: *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5
5177: ;;
5178: esac
5179: fi
5180:
5181:
5182: if test "$insults" = "on"; then
5183: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5
5184: $as_echo_n "checking which insult sets to include... " >&6; }
5185: i=""
5186: test "$with_goons_insults" = "yes" && i="goons ${i}"
5187: test "$with_hal_insults" = "yes" && i="hal ${i}"
5188: test "$with_csops_insults" = "yes" && i="csops ${i}"
5189: test "$with_classic_insults" = "yes" && i="classic ${i}"
5190: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5
5191: $as_echo "$i" >&6; }
5192: fi
5193:
5194: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5
5195: $as_echo_n "checking whether to override the user's path... " >&6; }
5196:
5197: # Check whether --with-secure-path was given.
5198: if test "${with_secure_path+set}" = set; then :
5199: withval=$with_secure_path; case $with_secure_path in
5200: yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
5201: cat >>confdefs.h <<_ACEOF
5202: #define SECURE_PATH "$with_secure_path"
5203: _ACEOF
5204:
5205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5206: $as_echo "$with_secure_path" >&6; }
5207: secure_path="set to $with_secure_path"
5208: ;;
5209: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5210: $as_echo "no" >&6; }
5211: ;;
5212: *) cat >>confdefs.h <<_ACEOF
5213: #define SECURE_PATH "$with_secure_path"
5214: _ACEOF
5215:
5216: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5
5217: $as_echo "$with_secure_path" >&6; }
5218: secure_path="set to F<$with_secure_path>"
5219: ;;
5220: esac
5221: else
5222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223: $as_echo "no" >&6; }
5224: fi
5225:
5226:
5227: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5
5228: $as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; }
5229:
5230: # Check whether --with-interfaces was given.
5231: if test "${with_interfaces+set}" = set; then :
5232: withval=$with_interfaces; case $with_interfaces in
5233: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5234: $as_echo "yes" >&6; }
5235: ;;
5236: no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h
5237:
5238: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239: $as_echo "no" >&6; }
5240: ;;
5241: *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5
5242: ;;
5243: esac
5244: else
5245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246: $as_echo "yes" >&6; }
5247: fi
5248:
5249:
5250:
5251: # Check whether --with-stow was given.
5252: if test "${with_stow+set}" = set; then :
5253: withval=$with_stow; case $with_stow in
1.1.1.3 misho 5254: *) { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5
5255: $as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;}
1.1 misho 5256: ;;
5257: esac
5258: fi
5259:
5260:
5261: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5
5262: $as_echo_n "checking whether to use an askpass helper... " >&6; }
5263:
5264: # Check whether --with-askpass was given.
5265: if test "${with_askpass+set}" = set; then :
5266: withval=$with_askpass; case $with_askpass in
5267: yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5
5268: ;;
5269: no) ;;
1.1.1.4 misho 5270: *) ;;
1.1 misho 5271: esac
5272: else
1.1.1.4 misho 5273:
5274: with_askpass=no
5275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1 misho 5276: $as_echo "no" >&6; }
1.1.1.4 misho 5277:
1.1 misho 5278: fi
5279:
1.1.1.4 misho 5280: if test X"$with_askpass" != X"no"; then
5281: cat >>confdefs.h <<EOF
5282: #define _PATH_SUDO_ASKPASS "$with_askpass"
5283: EOF
5284:
5285: else
5286: cat >>confdefs.h <<EOF
5287: #define _PATH_SUDO_ASKPASS NULL
5288: EOF
5289:
5290: fi
1.1 misho 5291:
5292:
5293: # Check whether --with-plugindir was given.
5294: if test "${with_plugindir+set}" = set; then :
5295: withval=$with_plugindir; case $with_plugindir in
5296: no) as_fn_error $? "\"illegal argument: --without-plugindir.\"" "$LINENO" 5
5297: ;;
5298: *) ;;
5299: esac
5300: else
1.1.1.4 misho 5301: with_plugindir="$libexecdir/sudo"
1.1 misho 5302: fi
5303:
5304:
5305:
1.1.1.3 misho 5306: # Check whether --with-man was given.
5307: if test "${with_man+set}" = set; then :
5308: withval=$with_man; case $with_man in
5309: yes) MANTYPE=man
5310: ;;
5311: no) as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5
5312: ;;
5313: *) as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5
5314: ;;
5315: esac
5316: fi
5317:
5318:
5319:
5320: # Check whether --with-mdoc was given.
5321: if test "${with_mdoc+set}" = set; then :
5322: withval=$with_mdoc; case $with_mdoc in
5323: yes) MANTYPE=mdoc
5324: ;;
5325: no) as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5
5326: ;;
5327: *) as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5
5328: ;;
5329: esac
5330: fi
5331:
5332:
5333:
1.1 misho 5334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5
5335: $as_echo_n "checking whether to do user authentication by default... " >&6; }
5336: # Check whether --enable-authentication was given.
5337: if test "${enable_authentication+set}" = set; then :
5338: enableval=$enable_authentication; case "$enableval" in
5339: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340: $as_echo "yes" >&6; }
5341: ;;
5342: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5343: $as_echo "no" >&6; }
5344: $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h
5345:
5346: ;;
5347: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348: $as_echo "no" >&6; }
5349: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
5350: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
5351: ;;
5352: esac
5353:
5354: else
5355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356: $as_echo "yes" >&6; }
5357: fi
5358:
5359:
5360: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5
5361: $as_echo_n "checking whether to disable running the mailer as root... " >&6; }
5362: # Check whether --enable-root-mailer was given.
5363: if test "${enable_root_mailer+set}" = set; then :
5364: enableval=$enable_root_mailer; case "$enableval" in
5365: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366: $as_echo "no" >&6; }
5367: ;;
5368: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5369: $as_echo "yes" >&6; }
5370: $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h
5371:
5372: ;;
5373: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374: $as_echo "no" >&6; }
5375: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
5376: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
5377: ;;
5378: esac
5379:
5380: else
5381: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382: $as_echo "no" >&6; }
5383: fi
5384:
5385:
5386: # Check whether --enable-setreuid was given.
5387: if test "${enable_setreuid+set}" = set; then :
5388: enableval=$enable_setreuid; case "$enableval" in
5389: no) SKIP_SETREUID=yes
5390: ;;
5391: *) ;;
5392: esac
5393:
5394: fi
5395:
5396:
5397: # Check whether --enable-setresuid was given.
5398: if test "${enable_setresuid+set}" = set; then :
5399: enableval=$enable_setresuid; case "$enableval" in
5400: no) SKIP_SETRESUID=yes
5401: ;;
5402: *) ;;
5403: esac
5404:
5405: fi
5406:
5407:
5408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5
5409: $as_echo_n "checking whether to disable shadow password support... " >&6; }
5410: # Check whether --enable-shadow was given.
5411: if test "${enable_shadow+set}" = set; then :
5412: enableval=$enable_shadow; case "$enableval" in
5413: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414: $as_echo "no" >&6; }
5415: ;;
5416: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5417: $as_echo "yes" >&6; }
5418: CHECKSHADOW="false"
5419: ;;
5420: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421: $as_echo "no" >&6; }
5422: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
5423: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
5424: ;;
5425: esac
5426:
5427: else
5428: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429: $as_echo "no" >&6; }
5430: fi
5431:
5432:
5433: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5
5434: $as_echo_n "checking whether root should be allowed to use sudo... " >&6; }
5435: # Check whether --enable-root-sudo was given.
5436: if test "${enable_root_sudo+set}" = set; then :
5437: enableval=$enable_root_sudo; case "$enableval" in
5438: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5439: $as_echo "yes" >&6; }
5440: ;;
5441: no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h
5442:
5443: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444: $as_echo "no" >&6; }
5445: root_sudo=off
5446: ;;
5447: *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5
5448: ;;
5449: esac
5450:
5451: else
5452: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5453: $as_echo "yes" >&6; }
5454: fi
5455:
5456:
5457: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5
5458: $as_echo_n "checking whether to log the hostname in the log file... " >&6; }
5459: # Check whether --enable-log-host was given.
5460: if test "${enable_log_host+set}" = set; then :
5461: enableval=$enable_log_host; case "$enableval" in
5462: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463: $as_echo "yes" >&6; }
5464: $as_echo "#define HOST_IN_LOG 1" >>confdefs.h
5465:
5466: ;;
5467: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468: $as_echo "no" >&6; }
5469: ;;
5470: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471: $as_echo "no" >&6; }
5472: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
5473: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
5474: ;;
5475: esac
5476:
5477: else
5478: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479: $as_echo "no" >&6; }
5480: fi
5481:
5482:
5483: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5
5484: $as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; }
5485: # Check whether --enable-noargs-shell was given.
5486: if test "${enable_noargs_shell+set}" = set; then :
5487: enableval=$enable_noargs_shell; case "$enableval" in
5488: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5489: $as_echo "yes" >&6; }
5490: $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h
5491:
5492: ;;
5493: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494: $as_echo "no" >&6; }
5495: ;;
5496: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497: $as_echo "no" >&6; }
5498: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
5499: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
5500: ;;
5501: esac
5502:
5503: else
5504: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505: $as_echo "no" >&6; }
5506: fi
5507:
5508:
5509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5
5510: $as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; }
5511: # Check whether --enable-shell-sets-home was given.
5512: if test "${enable_shell_sets_home+set}" = set; then :
5513: enableval=$enable_shell_sets_home; case "$enableval" in
5514: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5515: $as_echo "yes" >&6; }
5516: $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h
5517:
5518: ;;
5519: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520: $as_echo "no" >&6; }
5521: ;;
5522: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523: $as_echo "no" >&6; }
5524: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
5525: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
5526: ;;
5527: esac
5528:
5529: else
5530: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5531: $as_echo "no" >&6; }
5532: fi
5533:
5534:
5535: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5
5536: $as_echo_n "checking whether to disable 'command not found' messages... " >&6; }
5537: # Check whether --enable-path_info was given.
5538: if test "${enable_path_info+set}" = set; then :
5539: enableval=$enable_path_info; case "$enableval" in
5540: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5541: $as_echo "no" >&6; }
5542: ;;
5543: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5544: $as_echo "yes" >&6; }
5545: $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h
5546:
5547: path_info=off
5548: ;;
5549: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550: $as_echo "no" >&6; }
5551: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
5552: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
5553: ;;
5554: esac
5555:
5556: else
5557: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558: $as_echo "no" >&6; }
5559: fi
5560:
5561:
5562: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5
5563: $as_echo_n "checking whether to enable environment debugging... " >&6; }
5564: # Check whether --enable-env_debug was given.
5565: if test "${enable_env_debug+set}" = set; then :
5566: enableval=$enable_env_debug; case "$enableval" in
5567: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5568: $as_echo "yes" >&6; }
5569: $as_echo "#define ENV_DEBUG 1" >>confdefs.h
5570:
5571: ;;
5572: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573: $as_echo "no" >&6; }
5574: ;;
5575: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576: $as_echo "no" >&6; }
5577: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5
5578: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;}
5579: ;;
5580: esac
5581:
5582: else
5583: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584: $as_echo "no" >&6; }
5585: fi
5586:
5587:
5588: # Check whether --enable-zlib was given.
5589: if test "${enable_zlib+set}" = set; then :
5590: enableval=$enable_zlib;
5591: else
5592: enable_zlib=yes
5593: fi
5594:
5595:
5596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5
5597: $as_echo_n "checking whether to enable environment resetting by default... " >&6; }
5598: # Check whether --enable-env_reset was given.
5599: if test "${enable_env_reset+set}" = set; then :
5600: enableval=$enable_env_reset; case "$enableval" in
5601: yes) env_reset=on
5602: ;;
5603: no) env_reset=off
5604: ;;
5605: *) env_reset=on
5606: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5
5607: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;}
5608: ;;
5609: esac
5610:
5611: fi
5612:
5613: if test "$env_reset" = "on"; then
5614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5615: $as_echo "yes" >&6; }
1.1.1.2 misho 5616: $as_echo "#define ENV_RESET 1" >>confdefs.h
1.1 misho 5617:
5618: else
5619: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5620: $as_echo "no" >&6; }
1.1.1.2 misho 5621: $as_echo "#define ENV_RESET 0" >>confdefs.h
1.1 misho 5622:
5623: fi
5624:
5625: # Check whether --enable-warnings was given.
5626: if test "${enable_warnings+set}" = set; then :
5627: enableval=$enable_warnings; case "$enableval" in
5628: yes) ;;
5629: no) ;;
5630: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5
5631: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;}
5632: ;;
5633: esac
5634:
5635: fi
5636:
5637:
5638: # Check whether --enable-werror was given.
5639: if test "${enable_werror+set}" = set; then :
5640: enableval=$enable_werror; case "$enableval" in
5641: yes) ;;
5642: no) ;;
5643: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5
5644: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;}
5645: ;;
5646: esac
5647:
5648: fi
5649:
5650:
1.1.1.3 misho 5651: # Check whether --enable-hardening was given.
5652: if test "${enable_hardening+set}" = set; then :
5653: enableval=$enable_hardening;
5654: else
5655: enable_hardening=yes
5656: fi
5657:
5658:
5659: # Check whether --enable-pie was given.
5660: if test "${enable_pie+set}" = set; then :
5661: enableval=$enable_pie;
5662: fi
5663:
5664:
1.1 misho 5665: # Check whether --enable-admin-flag was given.
5666: if test "${enable_admin_flag+set}" = set; then :
5667: enableval=$enable_admin_flag; case "$enableval" in
5668: yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h
5669:
5670: ;;
5671: no) ;;
5672: *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5
5673: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;}
5674: ;;
5675: esac
5676:
5677: fi
5678:
5679:
5680: # Check whether --enable-nls was given.
5681: if test "${enable_nls+set}" = set; then :
5682: enableval=$enable_nls;
5683: else
5684: enable_nls=yes
5685: fi
5686:
5687:
1.1.1.4 misho 5688: # Check whether --enable-rpath was given.
5689: if test "${enable_rpath+set}" = set; then :
5690: enableval=$enable_rpath;
5691: else
5692: enable_rpath=yes
5693: fi
5694:
5695:
1.1 misho 5696:
5697: # Check whether --with-selinux was given.
5698: if test "${with_selinux+set}" = set; then :
5699: withval=$with_selinux; case $with_selinux in
5700: yes) SELINUX_USAGE="[-r role] [-t type] "
5701: $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
5702:
5703: SUDO_LIBS="${SUDO_LIBS} -lselinux"
5704: SUDO_OBJS="${SUDO_OBJS} selinux.o"
5705: PROGS="${PROGS} sesh"
5706: SEMAN=1
5707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5
5708: $as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; }
5709: if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then :
5710: $as_echo_n "(cached) " >&6
5711: else
5712: ac_check_lib_save_LIBS=$LIBS
5713: LIBS="-lselinux $LIBS"
5714: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5715: /* end confdefs.h. */
5716:
5717: /* Override any GCC internal prototype to avoid an error.
5718: Use char because int might match the return type of a GCC
5719: builtin and then its argument prototype would still apply. */
5720: #ifdef __cplusplus
5721: extern "C"
5722: #endif
5723: char setkeycreatecon ();
5724: int
5725: main ()
5726: {
5727: return setkeycreatecon ();
5728: ;
5729: return 0;
5730: }
5731: _ACEOF
5732: if ac_fn_c_try_link "$LINENO"; then :
5733: ac_cv_lib_selinux_setkeycreatecon=yes
5734: else
5735: ac_cv_lib_selinux_setkeycreatecon=no
5736: fi
5737: rm -f core conftest.err conftest.$ac_objext \
5738: conftest$ac_exeext conftest.$ac_ext
5739: LIBS=$ac_check_lib_save_LIBS
5740: fi
5741: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5
5742: $as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; }
5743: if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then :
5744: $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h
5745:
5746: fi
5747:
5748: ;;
5749: no) ;;
5750: *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5
5751: ;;
5752: esac
1.1.1.4 misho 5753: else
5754: with_selinux=no
1.1 misho 5755: fi
5756:
5757:
5758: # Check whether --enable-gss_krb5_ccache_name was given.
5759: if test "${enable_gss_krb5_ccache_name+set}" = set; then :
5760: enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
5761: else
5762: check_gss_krb5_ccache_name=no
5763: fi
5764:
5765:
5766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
5767: $as_echo_n "checking for library containing strerror... " >&6; }
5768: if ${ac_cv_search_strerror+:} false; then :
5769: $as_echo_n "(cached) " >&6
5770: else
5771: ac_func_search_save_LIBS=$LIBS
5772: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773: /* end confdefs.h. */
5774:
5775: /* Override any GCC internal prototype to avoid an error.
5776: Use char because int might match the return type of a GCC
5777: builtin and then its argument prototype would still apply. */
5778: #ifdef __cplusplus
5779: extern "C"
5780: #endif
5781: char strerror ();
5782: int
5783: main ()
5784: {
5785: return strerror ();
5786: ;
5787: return 0;
5788: }
5789: _ACEOF
5790: for ac_lib in '' cposix; do
5791: if test -z "$ac_lib"; then
5792: ac_res="none required"
5793: else
5794: ac_res=-l$ac_lib
5795: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5796: fi
5797: if ac_fn_c_try_link "$LINENO"; then :
5798: ac_cv_search_strerror=$ac_res
5799: fi
5800: rm -f core conftest.err conftest.$ac_objext \
5801: conftest$ac_exeext
5802: if ${ac_cv_search_strerror+:} false; then :
5803: break
5804: fi
5805: done
5806: if ${ac_cv_search_strerror+:} false; then :
5807:
5808: else
5809: ac_cv_search_strerror=no
5810: fi
5811: rm conftest.$ac_ext
5812: LIBS=$ac_func_search_save_LIBS
5813: fi
5814: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
5815: $as_echo "$ac_cv_search_strerror" >&6; }
5816: ac_res=$ac_cv_search_strerror
5817: if test "$ac_res" != no; then :
5818: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5819:
5820: fi
5821:
5822: ac_ext=c
5823: ac_cpp='$CPP $CPPFLAGS'
5824: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5825: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5826: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5828: $as_echo_n "checking how to run the C preprocessor... " >&6; }
5829: # On Suns, sometimes $CPP names a directory.
5830: if test -n "$CPP" && test -d "$CPP"; then
5831: CPP=
5832: fi
5833: if test -z "$CPP"; then
5834: if ${ac_cv_prog_CPP+:} false; then :
5835: $as_echo_n "(cached) " >&6
5836: else
5837: # Double quotes because CPP needs to be expanded
5838: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5839: do
5840: ac_preproc_ok=false
5841: for ac_c_preproc_warn_flag in '' yes
5842: do
5843: # Use a header file that comes with gcc, so configuring glibc
5844: # with a fresh cross-compiler works.
5845: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5846: # <limits.h> exists even on freestanding compilers.
5847: # On the NeXT, cc -E runs the code through the compiler's parser,
5848: # not just through cpp. "Syntax error" is here to catch this case.
5849: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850: /* end confdefs.h. */
5851: #ifdef __STDC__
5852: # include <limits.h>
5853: #else
5854: # include <assert.h>
5855: #endif
5856: Syntax error
5857: _ACEOF
5858: if ac_fn_c_try_cpp "$LINENO"; then :
5859:
5860: else
5861: # Broken: fails on valid input.
5862: continue
5863: fi
5864: rm -f conftest.err conftest.i conftest.$ac_ext
5865:
5866: # OK, works on sane cases. Now check whether nonexistent headers
5867: # can be detected and how.
5868: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869: /* end confdefs.h. */
5870: #include <ac_nonexistent.h>
5871: _ACEOF
5872: if ac_fn_c_try_cpp "$LINENO"; then :
5873: # Broken: success on invalid input.
5874: continue
5875: else
5876: # Passes both tests.
5877: ac_preproc_ok=:
5878: break
5879: fi
5880: rm -f conftest.err conftest.i conftest.$ac_ext
5881:
5882: done
5883: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5884: rm -f conftest.i conftest.err conftest.$ac_ext
5885: if $ac_preproc_ok; then :
5886: break
5887: fi
5888:
5889: done
5890: ac_cv_prog_CPP=$CPP
5891:
5892: fi
5893: CPP=$ac_cv_prog_CPP
5894: else
5895: ac_cv_prog_CPP=$CPP
5896: fi
5897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5898: $as_echo "$CPP" >&6; }
5899: ac_preproc_ok=false
5900: for ac_c_preproc_warn_flag in '' yes
5901: do
5902: # Use a header file that comes with gcc, so configuring glibc
5903: # with a fresh cross-compiler works.
5904: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905: # <limits.h> exists even on freestanding compilers.
5906: # On the NeXT, cc -E runs the code through the compiler's parser,
5907: # not just through cpp. "Syntax error" is here to catch this case.
5908: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909: /* end confdefs.h. */
5910: #ifdef __STDC__
5911: # include <limits.h>
5912: #else
5913: # include <assert.h>
5914: #endif
5915: Syntax error
5916: _ACEOF
5917: if ac_fn_c_try_cpp "$LINENO"; then :
5918:
5919: else
5920: # Broken: fails on valid input.
5921: continue
5922: fi
5923: rm -f conftest.err conftest.i conftest.$ac_ext
5924:
5925: # OK, works on sane cases. Now check whether nonexistent headers
5926: # can be detected and how.
5927: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5928: /* end confdefs.h. */
5929: #include <ac_nonexistent.h>
5930: _ACEOF
5931: if ac_fn_c_try_cpp "$LINENO"; then :
5932: # Broken: success on invalid input.
5933: continue
5934: else
5935: # Passes both tests.
5936: ac_preproc_ok=:
5937: break
5938: fi
5939: rm -f conftest.err conftest.i conftest.$ac_ext
5940:
5941: done
5942: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5943: rm -f conftest.i conftest.err conftest.$ac_ext
5944: if $ac_preproc_ok; then :
5945:
5946: else
5947: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5948: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5949: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5950: See \`config.log' for more details" "$LINENO" 5; }
5951: fi
5952:
5953: ac_ext=c
5954: ac_cpp='$CPP $CPPFLAGS'
5955: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5956: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5957: ac_compiler_gnu=$ac_cv_c_compiler_gnu
5958:
5959: if test -n "$ac_tool_prefix"; then
5960: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5961: set dummy ${ac_tool_prefix}ar; ac_word=$2
5962: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963: $as_echo_n "checking for $ac_word... " >&6; }
5964: if ${ac_cv_prog_AR+:} false; then :
5965: $as_echo_n "(cached) " >&6
5966: else
5967: if test -n "$AR"; then
5968: ac_cv_prog_AR="$AR" # Let the user override the test.
5969: else
5970: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971: for as_dir in $PATH
5972: do
5973: IFS=$as_save_IFS
5974: test -z "$as_dir" && as_dir=.
5975: for ac_exec_ext in '' $ac_executable_extensions; do
5976: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5977: ac_cv_prog_AR="${ac_tool_prefix}ar"
5978: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979: break 2
5980: fi
5981: done
5982: done
5983: IFS=$as_save_IFS
5984:
5985: fi
5986: fi
5987: AR=$ac_cv_prog_AR
5988: if test -n "$AR"; then
5989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5990: $as_echo "$AR" >&6; }
5991: else
5992: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993: $as_echo "no" >&6; }
5994: fi
5995:
5996:
5997: fi
5998: if test -z "$ac_cv_prog_AR"; then
5999: ac_ct_AR=$AR
6000: # Extract the first word of "ar", so it can be a program name with args.
6001: set dummy ar; ac_word=$2
6002: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003: $as_echo_n "checking for $ac_word... " >&6; }
6004: if ${ac_cv_prog_ac_ct_AR+:} false; then :
6005: $as_echo_n "(cached) " >&6
6006: else
6007: if test -n "$ac_ct_AR"; then
6008: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6009: else
6010: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6011: for as_dir in $PATH
6012: do
6013: IFS=$as_save_IFS
6014: test -z "$as_dir" && as_dir=.
6015: for ac_exec_ext in '' $ac_executable_extensions; do
6016: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017: ac_cv_prog_ac_ct_AR="ar"
6018: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6019: break 2
6020: fi
6021: done
6022: done
6023: IFS=$as_save_IFS
6024:
6025: fi
6026: fi
6027: ac_ct_AR=$ac_cv_prog_ac_ct_AR
6028: if test -n "$ac_ct_AR"; then
6029: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6030: $as_echo "$ac_ct_AR" >&6; }
6031: else
6032: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033: $as_echo "no" >&6; }
6034: fi
6035:
6036: if test "x$ac_ct_AR" = x; then
6037: AR="false"
6038: else
6039: case $cross_compiling:$ac_tool_warned in
6040: yes:)
6041: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6042: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6043: ac_tool_warned=yes ;;
6044: esac
6045: AR=$ac_ct_AR
6046: fi
6047: else
6048: AR="$ac_cv_prog_AR"
6049: fi
6050:
6051: if test -n "$ac_tool_prefix"; then
6052: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6053: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6054: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055: $as_echo_n "checking for $ac_word... " >&6; }
6056: if ${ac_cv_prog_RANLIB+:} false; then :
6057: $as_echo_n "(cached) " >&6
6058: else
6059: if test -n "$RANLIB"; then
6060: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6061: else
6062: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063: for as_dir in $PATH
6064: do
6065: IFS=$as_save_IFS
6066: test -z "$as_dir" && as_dir=.
6067: for ac_exec_ext in '' $ac_executable_extensions; do
6068: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6070: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6071: break 2
6072: fi
6073: done
6074: done
6075: IFS=$as_save_IFS
6076:
6077: fi
6078: fi
6079: RANLIB=$ac_cv_prog_RANLIB
6080: if test -n "$RANLIB"; then
6081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6082: $as_echo "$RANLIB" >&6; }
6083: else
6084: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085: $as_echo "no" >&6; }
6086: fi
6087:
6088:
6089: fi
6090: if test -z "$ac_cv_prog_RANLIB"; then
6091: ac_ct_RANLIB=$RANLIB
6092: # Extract the first word of "ranlib", so it can be a program name with args.
6093: set dummy ranlib; ac_word=$2
6094: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6095: $as_echo_n "checking for $ac_word... " >&6; }
6096: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6097: $as_echo_n "(cached) " >&6
6098: else
6099: if test -n "$ac_ct_RANLIB"; then
6100: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6101: else
6102: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103: for as_dir in $PATH
6104: do
6105: IFS=$as_save_IFS
6106: test -z "$as_dir" && as_dir=.
6107: for ac_exec_ext in '' $ac_executable_extensions; do
6108: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109: ac_cv_prog_ac_ct_RANLIB="ranlib"
6110: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6111: break 2
6112: fi
6113: done
6114: done
6115: IFS=$as_save_IFS
6116:
6117: fi
6118: fi
6119: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6120: if test -n "$ac_ct_RANLIB"; then
6121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6122: $as_echo "$ac_ct_RANLIB" >&6; }
6123: else
6124: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6125: $as_echo "no" >&6; }
6126: fi
6127:
6128: if test "x$ac_ct_RANLIB" = x; then
6129: RANLIB=":"
6130: else
6131: case $cross_compiling:$ac_tool_warned in
6132: yes:)
6133: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6134: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6135: ac_tool_warned=yes ;;
6136: esac
6137: RANLIB=$ac_ct_RANLIB
6138: fi
6139: else
6140: RANLIB="$ac_cv_prog_RANLIB"
6141: fi
6142:
6143: if test X"$AR" = X"false"; then
6144: as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5
6145: fi
6146:
6147: if test "x$ac_cv_prog_cc_c89" = "xno"; then
6148: as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
6149: fi
6150:
6151: if test "$enable_static" = "no"; then
6152: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
6153: $as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
6154: enable_static=yes
6155: fi
6156:
6157: ac_aux_dir=
6158: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
6159: if test -f "$ac_dir/install-sh"; then
6160: ac_aux_dir=$ac_dir
6161: ac_install_sh="$ac_aux_dir/install-sh -c"
6162: break
6163: elif test -f "$ac_dir/install.sh"; then
6164: ac_aux_dir=$ac_dir
6165: ac_install_sh="$ac_aux_dir/install.sh -c"
6166: break
6167: elif test -f "$ac_dir/shtool"; then
6168: ac_aux_dir=$ac_dir
6169: ac_install_sh="$ac_aux_dir/shtool install -c"
6170: break
6171: fi
6172: done
6173: if test -z "$ac_aux_dir"; then
6174: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
6175: fi
6176:
6177: # These three variables are undocumented and unsupported,
6178: # and are intended to be withdrawn in a future Autoconf release.
6179: # They can cause serious problems if a builder's source tree is in a directory
6180: # whose full name contains unusual characters.
6181: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
6182: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
6183: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
6184:
6185:
6186: # Make sure we can run config.sub.
6187: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6188: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6189:
6190: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6191: $as_echo_n "checking build system type... " >&6; }
6192: if ${ac_cv_build+:} false; then :
6193: $as_echo_n "(cached) " >&6
6194: else
6195: ac_build_alias=$build_alias
6196: test "x$ac_build_alias" = x &&
6197: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6198: test "x$ac_build_alias" = x &&
6199: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6200: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6201: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6202:
6203: fi
6204: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6205: $as_echo "$ac_cv_build" >&6; }
6206: case $ac_cv_build in
6207: *-*-*) ;;
6208: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6209: esac
6210: build=$ac_cv_build
6211: ac_save_IFS=$IFS; IFS='-'
6212: set x $ac_cv_build
6213: shift
6214: build_cpu=$1
6215: build_vendor=$2
6216: shift; shift
6217: # Remember, the first character of IFS is used to create $*,
6218: # except with old shells:
6219: build_os=$*
6220: IFS=$ac_save_IFS
6221: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6222:
6223:
6224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6225: $as_echo_n "checking host system type... " >&6; }
6226: if ${ac_cv_host+:} false; then :
6227: $as_echo_n "(cached) " >&6
6228: else
6229: if test "x$host_alias" = x; then
6230: ac_cv_host=$ac_cv_build
6231: else
6232: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6233: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6234: fi
6235:
6236: fi
6237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6238: $as_echo "$ac_cv_host" >&6; }
6239: case $ac_cv_host in
6240: *-*-*) ;;
6241: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6242: esac
6243: host=$ac_cv_host
6244: ac_save_IFS=$IFS; IFS='-'
6245: set x $ac_cv_host
6246: shift
6247: host_cpu=$1
6248: host_vendor=$2
6249: shift; shift
6250: # Remember, the first character of IFS is used to create $*,
6251: # except with old shells:
6252: host_os=$*
6253: IFS=$ac_save_IFS
6254: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6255:
6256:
6257:
6258:
6259: case `pwd` in
6260: *\ * | *\ *)
6261: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6262: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6263: esac
6264:
6265:
6266:
1.1.1.2 misho 6267: macro_version='2.4.2'
6268: macro_revision='1.3337'
1.1 misho 6269:
6270:
6271:
6272:
6273:
6274:
6275:
6276:
6277:
6278:
6279:
6280:
6281:
6282: ltmain="$ac_aux_dir/ltmain.sh"
6283:
6284: # Backslashify metacharacters that are still active within
6285: # double-quoted strings.
6286: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6287:
6288: # Same as above, but do not quote variable references.
6289: double_quote_subst='s/\(["`\\]\)/\\\1/g'
6290:
6291: # Sed substitution to delay expansion of an escaped shell variable in a
6292: # double_quote_subst'ed string.
6293: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6294:
6295: # Sed substitution to delay expansion of an escaped single quote.
6296: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6297:
6298: # Sed substitution to avoid accidental globbing in evaled expressions
6299: no_glob_subst='s/\*/\\\*/g'
6300:
6301: ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6302: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6303: ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6304:
6305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6306: $as_echo_n "checking how to print strings... " >&6; }
6307: # Test print first, because it will be a builtin if present.
6308: if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6309: test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6310: ECHO='print -r --'
6311: elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6312: ECHO='printf %s\n'
6313: else
6314: # Use this function as a fallback that always works.
6315: func_fallback_echo ()
6316: {
6317: eval 'cat <<_LTECHO_EOF
6318: $1
6319: _LTECHO_EOF'
6320: }
6321: ECHO='func_fallback_echo'
6322: fi
6323:
6324: # func_echo_all arg...
6325: # Invoke $ECHO with all args, space-separated.
6326: func_echo_all ()
6327: {
6328: $ECHO ""
6329: }
6330:
6331: case "$ECHO" in
6332: printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6333: $as_echo "printf" >&6; } ;;
6334: print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6335: $as_echo "print -r" >&6; } ;;
6336: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6337: $as_echo "cat" >&6; } ;;
6338: esac
6339:
6340:
6341:
6342:
6343:
6344:
6345:
6346:
6347:
6348:
6349:
6350:
6351:
6352:
6353: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6354: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6355: if ${ac_cv_path_SED+:} false; then :
6356: $as_echo_n "(cached) " >&6
6357: else
6358: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6359: for ac_i in 1 2 3 4 5 6 7; do
6360: ac_script="$ac_script$as_nl$ac_script"
6361: done
6362: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6363: { ac_script=; unset ac_script;}
6364: if test -z "$SED"; then
6365: ac_path_SED_found=false
6366: # Loop through the user's path and test for each of PROGNAME-LIST
6367: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6368: for as_dir in $PATH
6369: do
6370: IFS=$as_save_IFS
6371: test -z "$as_dir" && as_dir=.
6372: for ac_prog in sed gsed; do
6373: for ac_exec_ext in '' $ac_executable_extensions; do
6374: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6375: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6376: # Check for GNU ac_path_SED and select it if it is found.
6377: # Check for GNU $ac_path_SED
6378: case `"$ac_path_SED" --version 2>&1` in
6379: *GNU*)
6380: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6381: *)
6382: ac_count=0
6383: $as_echo_n 0123456789 >"conftest.in"
6384: while :
6385: do
6386: cat "conftest.in" "conftest.in" >"conftest.tmp"
6387: mv "conftest.tmp" "conftest.in"
6388: cp "conftest.in" "conftest.nl"
6389: $as_echo '' >> "conftest.nl"
6390: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6391: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6392: as_fn_arith $ac_count + 1 && ac_count=$as_val
6393: if test $ac_count -gt ${ac_path_SED_max-0}; then
6394: # Best one so far, save it but keep looking for a better one
6395: ac_cv_path_SED="$ac_path_SED"
6396: ac_path_SED_max=$ac_count
6397: fi
6398: # 10*(2^10) chars as input seems more than enough
6399: test $ac_count -gt 10 && break
6400: done
6401: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6402: esac
6403:
6404: $ac_path_SED_found && break 3
6405: done
6406: done
6407: done
6408: IFS=$as_save_IFS
6409: if test -z "$ac_cv_path_SED"; then
6410: as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6411: fi
6412: else
6413: ac_cv_path_SED=$SED
6414: fi
6415:
6416: fi
6417: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6418: $as_echo "$ac_cv_path_SED" >&6; }
6419: SED="$ac_cv_path_SED"
6420: rm -f conftest.sed
6421:
6422: test -z "$SED" && SED=sed
6423: Xsed="$SED -e 1s/^X//"
6424:
6425:
6426:
6427:
6428:
6429:
6430:
6431:
6432:
6433:
6434:
6435: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6436: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6437: if ${ac_cv_path_GREP+:} false; then :
6438: $as_echo_n "(cached) " >&6
6439: else
6440: if test -z "$GREP"; then
6441: ac_path_GREP_found=false
6442: # Loop through the user's path and test for each of PROGNAME-LIST
6443: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6444: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6445: do
6446: IFS=$as_save_IFS
6447: test -z "$as_dir" && as_dir=.
6448: for ac_prog in grep ggrep; do
6449: for ac_exec_ext in '' $ac_executable_extensions; do
6450: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6451: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6452: # Check for GNU ac_path_GREP and select it if it is found.
6453: # Check for GNU $ac_path_GREP
6454: case `"$ac_path_GREP" --version 2>&1` in
6455: *GNU*)
6456: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6457: *)
6458: ac_count=0
6459: $as_echo_n 0123456789 >"conftest.in"
6460: while :
6461: do
6462: cat "conftest.in" "conftest.in" >"conftest.tmp"
6463: mv "conftest.tmp" "conftest.in"
6464: cp "conftest.in" "conftest.nl"
6465: $as_echo 'GREP' >> "conftest.nl"
6466: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6467: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6468: as_fn_arith $ac_count + 1 && ac_count=$as_val
6469: if test $ac_count -gt ${ac_path_GREP_max-0}; then
6470: # Best one so far, save it but keep looking for a better one
6471: ac_cv_path_GREP="$ac_path_GREP"
6472: ac_path_GREP_max=$ac_count
6473: fi
6474: # 10*(2^10) chars as input seems more than enough
6475: test $ac_count -gt 10 && break
6476: done
6477: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6478: esac
6479:
6480: $ac_path_GREP_found && break 3
6481: done
6482: done
6483: done
6484: IFS=$as_save_IFS
6485: if test -z "$ac_cv_path_GREP"; then
6486: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6487: fi
6488: else
6489: ac_cv_path_GREP=$GREP
6490: fi
6491:
6492: fi
6493: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6494: $as_echo "$ac_cv_path_GREP" >&6; }
6495: GREP="$ac_cv_path_GREP"
6496:
6497:
6498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6499: $as_echo_n "checking for egrep... " >&6; }
6500: if ${ac_cv_path_EGREP+:} false; then :
6501: $as_echo_n "(cached) " >&6
6502: else
6503: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6504: then ac_cv_path_EGREP="$GREP -E"
6505: else
6506: if test -z "$EGREP"; then
6507: ac_path_EGREP_found=false
6508: # Loop through the user's path and test for each of PROGNAME-LIST
6509: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6510: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6511: do
6512: IFS=$as_save_IFS
6513: test -z "$as_dir" && as_dir=.
6514: for ac_prog in egrep; do
6515: for ac_exec_ext in '' $ac_executable_extensions; do
6516: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6517: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6518: # Check for GNU ac_path_EGREP and select it if it is found.
6519: # Check for GNU $ac_path_EGREP
6520: case `"$ac_path_EGREP" --version 2>&1` in
6521: *GNU*)
6522: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6523: *)
6524: ac_count=0
6525: $as_echo_n 0123456789 >"conftest.in"
6526: while :
6527: do
6528: cat "conftest.in" "conftest.in" >"conftest.tmp"
6529: mv "conftest.tmp" "conftest.in"
6530: cp "conftest.in" "conftest.nl"
6531: $as_echo 'EGREP' >> "conftest.nl"
6532: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6533: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6534: as_fn_arith $ac_count + 1 && ac_count=$as_val
6535: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6536: # Best one so far, save it but keep looking for a better one
6537: ac_cv_path_EGREP="$ac_path_EGREP"
6538: ac_path_EGREP_max=$ac_count
6539: fi
6540: # 10*(2^10) chars as input seems more than enough
6541: test $ac_count -gt 10 && break
6542: done
6543: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6544: esac
6545:
6546: $ac_path_EGREP_found && break 3
6547: done
6548: done
6549: done
6550: IFS=$as_save_IFS
6551: if test -z "$ac_cv_path_EGREP"; then
6552: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6553: fi
6554: else
6555: ac_cv_path_EGREP=$EGREP
6556: fi
6557:
6558: fi
6559: fi
6560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6561: $as_echo "$ac_cv_path_EGREP" >&6; }
6562: EGREP="$ac_cv_path_EGREP"
6563:
6564:
6565: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6566: $as_echo_n "checking for fgrep... " >&6; }
6567: if ${ac_cv_path_FGREP+:} false; then :
6568: $as_echo_n "(cached) " >&6
6569: else
6570: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6571: then ac_cv_path_FGREP="$GREP -F"
6572: else
6573: if test -z "$FGREP"; then
6574: ac_path_FGREP_found=false
6575: # Loop through the user's path and test for each of PROGNAME-LIST
6576: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6578: do
6579: IFS=$as_save_IFS
6580: test -z "$as_dir" && as_dir=.
6581: for ac_prog in fgrep; do
6582: for ac_exec_ext in '' $ac_executable_extensions; do
6583: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6584: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6585: # Check for GNU ac_path_FGREP and select it if it is found.
6586: # Check for GNU $ac_path_FGREP
6587: case `"$ac_path_FGREP" --version 2>&1` in
6588: *GNU*)
6589: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6590: *)
6591: ac_count=0
6592: $as_echo_n 0123456789 >"conftest.in"
6593: while :
6594: do
6595: cat "conftest.in" "conftest.in" >"conftest.tmp"
6596: mv "conftest.tmp" "conftest.in"
6597: cp "conftest.in" "conftest.nl"
6598: $as_echo 'FGREP' >> "conftest.nl"
6599: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6600: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6601: as_fn_arith $ac_count + 1 && ac_count=$as_val
6602: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6603: # Best one so far, save it but keep looking for a better one
6604: ac_cv_path_FGREP="$ac_path_FGREP"
6605: ac_path_FGREP_max=$ac_count
6606: fi
6607: # 10*(2^10) chars as input seems more than enough
6608: test $ac_count -gt 10 && break
6609: done
6610: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6611: esac
6612:
6613: $ac_path_FGREP_found && break 3
6614: done
6615: done
6616: done
6617: IFS=$as_save_IFS
6618: if test -z "$ac_cv_path_FGREP"; then
6619: as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6620: fi
6621: else
6622: ac_cv_path_FGREP=$FGREP
6623: fi
6624:
6625: fi
6626: fi
6627: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6628: $as_echo "$ac_cv_path_FGREP" >&6; }
6629: FGREP="$ac_cv_path_FGREP"
6630:
6631:
6632: test -z "$GREP" && GREP=grep
6633:
6634:
6635:
6636:
6637:
6638:
6639:
6640:
6641:
6642:
6643:
6644:
6645:
6646:
6647:
6648:
6649:
6650:
6651:
6652: # Check whether --with-gnu-ld was given.
6653: if test "${with_gnu_ld+set}" = set; then :
6654: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6655: else
6656: with_gnu_ld=no
6657: fi
6658:
6659: ac_prog=ld
6660: if test "$GCC" = yes; then
6661: # Check if gcc -print-prog-name=ld gives a path.
6662: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6663: $as_echo_n "checking for ld used by $CC... " >&6; }
6664: case $host in
6665: *-*-mingw*)
6666: # gcc leaves a trailing carriage return which upsets mingw
6667: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6668: *)
6669: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6670: esac
6671: case $ac_prog in
6672: # Accept absolute paths.
6673: [\\/]* | ?:[\\/]*)
6674: re_direlt='/[^/][^/]*/\.\./'
6675: # Canonicalize the pathname of ld
6676: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6677: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6678: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6679: done
6680: test -z "$LD" && LD="$ac_prog"
6681: ;;
6682: "")
6683: # If it fails, then pretend we aren't using GCC.
6684: ac_prog=ld
6685: ;;
6686: *)
6687: # If it is relative, then search for the first ld in PATH.
6688: with_gnu_ld=unknown
6689: ;;
6690: esac
6691: elif test "$with_gnu_ld" = yes; then
6692: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6693: $as_echo_n "checking for GNU ld... " >&6; }
6694: else
6695: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6696: $as_echo_n "checking for non-GNU ld... " >&6; }
6697: fi
6698: if ${lt_cv_path_LD+:} false; then :
6699: $as_echo_n "(cached) " >&6
6700: else
6701: if test -z "$LD"; then
6702: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6703: for ac_dir in $PATH; do
6704: IFS="$lt_save_ifs"
6705: test -z "$ac_dir" && ac_dir=.
6706: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6707: lt_cv_path_LD="$ac_dir/$ac_prog"
6708: # Check to see if the program is GNU ld. I'd rather use --version,
6709: # but apparently some variants of GNU ld only accept -v.
6710: # Break only if it was the GNU/non-GNU ld that we prefer.
6711: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6712: *GNU* | *'with BFD'*)
6713: test "$with_gnu_ld" != no && break
6714: ;;
6715: *)
6716: test "$with_gnu_ld" != yes && break
6717: ;;
6718: esac
6719: fi
6720: done
6721: IFS="$lt_save_ifs"
6722: else
6723: lt_cv_path_LD="$LD" # Let the user override the test with a path.
6724: fi
6725: fi
6726:
6727: LD="$lt_cv_path_LD"
6728: if test -n "$LD"; then
6729: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6730: $as_echo "$LD" >&6; }
6731: else
6732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733: $as_echo "no" >&6; }
6734: fi
6735: test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6736: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6737: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6738: if ${lt_cv_prog_gnu_ld+:} false; then :
6739: $as_echo_n "(cached) " >&6
6740: else
6741: # I'd rather use --version here, but apparently some GNU lds only accept -v.
6742: case `$LD -v 2>&1 </dev/null` in
6743: *GNU* | *'with BFD'*)
6744: lt_cv_prog_gnu_ld=yes
6745: ;;
6746: *)
6747: lt_cv_prog_gnu_ld=no
6748: ;;
6749: esac
6750: fi
6751: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6752: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6753: with_gnu_ld=$lt_cv_prog_gnu_ld
6754:
6755:
6756:
6757:
6758:
6759:
6760:
6761:
6762:
6763: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6764: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6765: if ${lt_cv_path_NM+:} false; then :
6766: $as_echo_n "(cached) " >&6
6767: else
6768: if test -n "$NM"; then
6769: # Let the user override the test.
6770: lt_cv_path_NM="$NM"
6771: else
6772: lt_nm_to_check="${ac_tool_prefix}nm"
6773: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6774: lt_nm_to_check="$lt_nm_to_check nm"
6775: fi
6776: for lt_tmp_nm in $lt_nm_to_check; do
6777: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6778: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6779: IFS="$lt_save_ifs"
6780: test -z "$ac_dir" && ac_dir=.
6781: tmp_nm="$ac_dir/$lt_tmp_nm"
6782: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6783: # Check to see if the nm accepts a BSD-compat flag.
6784: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6785: # nm: unknown option "B" ignored
6786: # Tru64's nm complains that /dev/null is an invalid object file
6787: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6788: */dev/null* | *'Invalid file or object type'*)
6789: lt_cv_path_NM="$tmp_nm -B"
6790: break
6791: ;;
6792: *)
6793: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6794: */dev/null*)
6795: lt_cv_path_NM="$tmp_nm -p"
6796: break
6797: ;;
6798: *)
6799: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6800: continue # so that we can try to find one that supports BSD flags
6801: ;;
6802: esac
6803: ;;
6804: esac
6805: fi
6806: done
6807: IFS="$lt_save_ifs"
6808: done
6809: : ${lt_cv_path_NM=no}
6810: fi
6811: fi
6812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6813: $as_echo "$lt_cv_path_NM" >&6; }
6814: if test "$lt_cv_path_NM" != "no"; then
6815: NM="$lt_cv_path_NM"
6816: else
6817: # Didn't find any BSD compatible name lister, look for dumpbin.
6818: if test -n "$DUMPBIN"; then :
6819: # Let the user override the test.
6820: else
6821: if test -n "$ac_tool_prefix"; then
6822: for ac_prog in dumpbin "link -dump"
6823: do
6824: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6825: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6826: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6827: $as_echo_n "checking for $ac_word... " >&6; }
6828: if ${ac_cv_prog_DUMPBIN+:} false; then :
6829: $as_echo_n "(cached) " >&6
6830: else
6831: if test -n "$DUMPBIN"; then
6832: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6833: else
6834: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835: for as_dir in $PATH
6836: do
6837: IFS=$as_save_IFS
6838: test -z "$as_dir" && as_dir=.
6839: for ac_exec_ext in '' $ac_executable_extensions; do
6840: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6841: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6842: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6843: break 2
6844: fi
6845: done
6846: done
6847: IFS=$as_save_IFS
6848:
6849: fi
6850: fi
6851: DUMPBIN=$ac_cv_prog_DUMPBIN
6852: if test -n "$DUMPBIN"; then
6853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6854: $as_echo "$DUMPBIN" >&6; }
6855: else
6856: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6857: $as_echo "no" >&6; }
6858: fi
6859:
6860:
6861: test -n "$DUMPBIN" && break
6862: done
6863: fi
6864: if test -z "$DUMPBIN"; then
6865: ac_ct_DUMPBIN=$DUMPBIN
6866: for ac_prog in dumpbin "link -dump"
6867: do
6868: # Extract the first word of "$ac_prog", so it can be a program name with args.
6869: set dummy $ac_prog; ac_word=$2
6870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6871: $as_echo_n "checking for $ac_word... " >&6; }
6872: if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6873: $as_echo_n "(cached) " >&6
6874: else
6875: if test -n "$ac_ct_DUMPBIN"; then
6876: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6877: else
6878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879: for as_dir in $PATH
6880: do
6881: IFS=$as_save_IFS
6882: test -z "$as_dir" && as_dir=.
6883: for ac_exec_ext in '' $ac_executable_extensions; do
6884: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6885: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6886: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6887: break 2
6888: fi
6889: done
6890: done
6891: IFS=$as_save_IFS
6892:
6893: fi
6894: fi
6895: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6896: if test -n "$ac_ct_DUMPBIN"; then
6897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6898: $as_echo "$ac_ct_DUMPBIN" >&6; }
6899: else
6900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6901: $as_echo "no" >&6; }
6902: fi
6903:
6904:
6905: test -n "$ac_ct_DUMPBIN" && break
6906: done
6907:
6908: if test "x$ac_ct_DUMPBIN" = x; then
6909: DUMPBIN=":"
6910: else
6911: case $cross_compiling:$ac_tool_warned in
6912: yes:)
6913: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6914: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6915: ac_tool_warned=yes ;;
6916: esac
6917: DUMPBIN=$ac_ct_DUMPBIN
6918: fi
6919: fi
6920:
6921: case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6922: *COFF*)
6923: DUMPBIN="$DUMPBIN -symbols"
6924: ;;
6925: *)
6926: DUMPBIN=:
6927: ;;
6928: esac
6929: fi
6930:
6931: if test "$DUMPBIN" != ":"; then
6932: NM="$DUMPBIN"
6933: fi
6934: fi
6935: test -z "$NM" && NM=nm
6936:
6937:
6938:
6939:
6940:
6941:
6942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6943: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6944: if ${lt_cv_nm_interface+:} false; then :
6945: $as_echo_n "(cached) " >&6
6946: else
6947: lt_cv_nm_interface="BSD nm"
6948: echo "int some_variable = 0;" > conftest.$ac_ext
6949: (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6950: (eval "$ac_compile" 2>conftest.err)
6951: cat conftest.err >&5
6952: (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6953: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6954: cat conftest.err >&5
6955: (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6956: cat conftest.out >&5
6957: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6958: lt_cv_nm_interface="MS dumpbin"
6959: fi
6960: rm -f conftest*
6961: fi
6962: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6963: $as_echo "$lt_cv_nm_interface" >&6; }
6964:
6965: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6966: $as_echo_n "checking whether ln -s works... " >&6; }
6967: LN_S=$as_ln_s
6968: if test "$LN_S" = "ln -s"; then
6969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6970: $as_echo "yes" >&6; }
6971: else
6972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6973: $as_echo "no, using $LN_S" >&6; }
6974: fi
6975:
6976: # find the maximum length of command line arguments
6977: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6978: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6979: if ${lt_cv_sys_max_cmd_len+:} false; then :
6980: $as_echo_n "(cached) " >&6
6981: else
6982: i=0
6983: teststring="ABCD"
6984:
6985: case $build_os in
6986: msdosdjgpp*)
6987: # On DJGPP, this test can blow up pretty badly due to problems in libc
6988: # (any single argument exceeding 2000 bytes causes a buffer overrun
6989: # during glob expansion). Even if it were fixed, the result of this
6990: # check would be larger than it should be.
6991: lt_cv_sys_max_cmd_len=12288; # 12K is about right
6992: ;;
6993:
6994: gnu*)
6995: # Under GNU Hurd, this test is not required because there is
6996: # no limit to the length of command line arguments.
6997: # Libtool will interpret -1 as no limit whatsoever
6998: lt_cv_sys_max_cmd_len=-1;
6999: ;;
7000:
7001: cygwin* | mingw* | cegcc*)
7002: # On Win9x/ME, this test blows up -- it succeeds, but takes
7003: # about 5 minutes as the teststring grows exponentially.
7004: # Worse, since 9x/ME are not pre-emptively multitasking,
7005: # you end up with a "frozen" computer, even though with patience
7006: # the test eventually succeeds (with a max line length of 256k).
7007: # Instead, let's just punt: use the minimum linelength reported by
7008: # all of the supported platforms: 8192 (on NT/2K/XP).
7009: lt_cv_sys_max_cmd_len=8192;
7010: ;;
7011:
7012: mint*)
7013: # On MiNT this can take a long time and run out of memory.
7014: lt_cv_sys_max_cmd_len=8192;
7015: ;;
7016:
7017: amigaos*)
7018: # On AmigaOS with pdksh, this test takes hours, literally.
7019: # So we just punt and use a minimum line length of 8192.
7020: lt_cv_sys_max_cmd_len=8192;
7021: ;;
7022:
7023: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7024: # This has been around since 386BSD, at least. Likely further.
7025: if test -x /sbin/sysctl; then
7026: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7027: elif test -x /usr/sbin/sysctl; then
7028: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7029: else
7030: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7031: fi
7032: # And add a safety zone
7033: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7034: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7035: ;;
7036:
7037: interix*)
7038: # We know the value 262144 and hardcode it with a safety zone (like BSD)
7039: lt_cv_sys_max_cmd_len=196608
7040: ;;
7041:
1.1.1.2 misho 7042: os2*)
7043: # The test takes a long time on OS/2.
7044: lt_cv_sys_max_cmd_len=8192
7045: ;;
7046:
1.1 misho 7047: osf*)
7048: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7049: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7050: # nice to cause kernel panics so lets avoid the loop below.
7051: # First set a reasonable default.
7052: lt_cv_sys_max_cmd_len=16384
7053: #
7054: if test -x /sbin/sysconfig; then
7055: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7056: *1*) lt_cv_sys_max_cmd_len=-1 ;;
7057: esac
7058: fi
7059: ;;
7060: sco3.2v5*)
7061: lt_cv_sys_max_cmd_len=102400
7062: ;;
7063: sysv5* | sco5v6* | sysv4.2uw2*)
7064: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7065: if test -n "$kargmax"; then
7066: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7067: else
7068: lt_cv_sys_max_cmd_len=32768
7069: fi
7070: ;;
7071: *)
7072: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7073: if test -n "$lt_cv_sys_max_cmd_len"; then
7074: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7075: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7076: else
7077: # Make teststring a little bigger before we do anything with it.
7078: # a 1K string should be a reasonable start.
7079: for i in 1 2 3 4 5 6 7 8 ; do
7080: teststring=$teststring$teststring
7081: done
7082: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7083: # If test is not a shell built-in, we'll probably end up computing a
7084: # maximum length that is only half of the actual maximum length, but
7085: # we can't tell.
1.1.1.2 misho 7086: while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
1.1 misho 7087: = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7088: test $i != 17 # 1/2 MB should be enough
7089: do
7090: i=`expr $i + 1`
7091: teststring=$teststring$teststring
7092: done
7093: # Only check the string length outside the loop.
7094: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7095: teststring=
7096: # Add a significant safety factor because C++ compilers can tack on
7097: # massive amounts of additional arguments before passing them to the
7098: # linker. It appears as though 1/2 is a usable value.
7099: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7100: fi
7101: ;;
7102: esac
7103:
7104: fi
7105:
7106: if test -n $lt_cv_sys_max_cmd_len ; then
7107: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7108: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7109: else
7110: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7111: $as_echo "none" >&6; }
7112: fi
7113: max_cmd_len=$lt_cv_sys_max_cmd_len
7114:
7115:
7116:
7117:
7118:
7119:
7120: : ${CP="cp -f"}
7121: : ${MV="mv -f"}
7122: : ${RM="rm -f"}
7123:
7124: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7125: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7126: # Try some XSI features
7127: xsi_shell=no
7128: ( _lt_dummy="a/b/c"
7129: test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
7130: = c,a/b,b/c, \
7131: && eval 'test $(( 1 + 1 )) -eq 2 \
7132: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7133: && xsi_shell=yes
7134: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7135: $as_echo "$xsi_shell" >&6; }
7136:
7137:
7138: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7139: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7140: lt_shell_append=no
7141: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7142: >/dev/null 2>&1 \
7143: && lt_shell_append=yes
7144: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7145: $as_echo "$lt_shell_append" >&6; }
7146:
7147:
7148: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7149: lt_unset=unset
7150: else
7151: lt_unset=false
7152: fi
7153:
7154:
7155:
7156:
7157:
7158: # test EBCDIC or ASCII
7159: case `echo X|tr X '\101'` in
7160: A) # ASCII based system
7161: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7162: lt_SP2NL='tr \040 \012'
7163: lt_NL2SP='tr \015\012 \040\040'
7164: ;;
7165: *) # EBCDIC based system
7166: lt_SP2NL='tr \100 \n'
7167: lt_NL2SP='tr \r\n \100\100'
7168: ;;
7169: esac
7170:
7171:
7172:
7173:
7174:
7175:
7176:
7177:
7178:
7179: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7180: $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7181: if ${lt_cv_to_host_file_cmd+:} false; then :
7182: $as_echo_n "(cached) " >&6
7183: else
7184: case $host in
7185: *-*-mingw* )
7186: case $build in
7187: *-*-mingw* ) # actually msys
7188: lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7189: ;;
7190: *-*-cygwin* )
7191: lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7192: ;;
7193: * ) # otherwise, assume *nix
7194: lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7195: ;;
7196: esac
7197: ;;
7198: *-*-cygwin* )
7199: case $build in
7200: *-*-mingw* ) # actually msys
7201: lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7202: ;;
7203: *-*-cygwin* )
7204: lt_cv_to_host_file_cmd=func_convert_file_noop
7205: ;;
7206: * ) # otherwise, assume *nix
7207: lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7208: ;;
7209: esac
7210: ;;
7211: * ) # unhandled hosts (and "normal" native builds)
7212: lt_cv_to_host_file_cmd=func_convert_file_noop
7213: ;;
7214: esac
7215:
7216: fi
7217:
7218: to_host_file_cmd=$lt_cv_to_host_file_cmd
7219: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7220: $as_echo "$lt_cv_to_host_file_cmd" >&6; }
7221:
7222:
7223:
7224:
7225:
7226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7227: $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7228: if ${lt_cv_to_tool_file_cmd+:} false; then :
7229: $as_echo_n "(cached) " >&6
7230: else
7231: #assume ordinary cross tools, or native build.
7232: lt_cv_to_tool_file_cmd=func_convert_file_noop
7233: case $host in
7234: *-*-mingw* )
7235: case $build in
7236: *-*-mingw* ) # actually msys
7237: lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7238: ;;
7239: esac
7240: ;;
7241: esac
7242:
7243: fi
7244:
7245: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7247: $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7248:
7249:
7250:
7251:
7252:
7253: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7254: $as_echo_n "checking for $LD option to reload object files... " >&6; }
7255: if ${lt_cv_ld_reload_flag+:} false; then :
7256: $as_echo_n "(cached) " >&6
7257: else
7258: lt_cv_ld_reload_flag='-r'
7259: fi
7260: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7261: $as_echo "$lt_cv_ld_reload_flag" >&6; }
7262: reload_flag=$lt_cv_ld_reload_flag
7263: case $reload_flag in
7264: "" | " "*) ;;
7265: *) reload_flag=" $reload_flag" ;;
7266: esac
7267: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7268: case $host_os in
7269: cygwin* | mingw* | pw32* | cegcc*)
7270: if test "$GCC" != yes; then
7271: reload_cmds=false
7272: fi
7273: ;;
7274: darwin*)
7275: if test "$GCC" = yes; then
7276: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7277: else
7278: reload_cmds='$LD$reload_flag -o $output$reload_objs'
7279: fi
7280: ;;
7281: esac
7282:
7283:
7284:
7285:
7286:
7287:
7288:
7289:
7290:
7291: if test -n "$ac_tool_prefix"; then
7292: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7293: set dummy ${ac_tool_prefix}objdump; ac_word=$2
7294: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295: $as_echo_n "checking for $ac_word... " >&6; }
7296: if ${ac_cv_prog_OBJDUMP+:} false; then :
7297: $as_echo_n "(cached) " >&6
7298: else
7299: if test -n "$OBJDUMP"; then
7300: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7301: else
7302: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303: for as_dir in $PATH
7304: do
7305: IFS=$as_save_IFS
7306: test -z "$as_dir" && as_dir=.
7307: for ac_exec_ext in '' $ac_executable_extensions; do
7308: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7309: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7310: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311: break 2
7312: fi
7313: done
7314: done
7315: IFS=$as_save_IFS
7316:
7317: fi
7318: fi
7319: OBJDUMP=$ac_cv_prog_OBJDUMP
7320: if test -n "$OBJDUMP"; then
7321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7322: $as_echo "$OBJDUMP" >&6; }
7323: else
7324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325: $as_echo "no" >&6; }
7326: fi
7327:
7328:
7329: fi
7330: if test -z "$ac_cv_prog_OBJDUMP"; then
7331: ac_ct_OBJDUMP=$OBJDUMP
7332: # Extract the first word of "objdump", so it can be a program name with args.
7333: set dummy objdump; ac_word=$2
7334: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7335: $as_echo_n "checking for $ac_word... " >&6; }
7336: if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7337: $as_echo_n "(cached) " >&6
7338: else
7339: if test -n "$ac_ct_OBJDUMP"; then
7340: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7341: else
7342: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343: for as_dir in $PATH
7344: do
7345: IFS=$as_save_IFS
7346: test -z "$as_dir" && as_dir=.
7347: for ac_exec_ext in '' $ac_executable_extensions; do
7348: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349: ac_cv_prog_ac_ct_OBJDUMP="objdump"
7350: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7351: break 2
7352: fi
7353: done
7354: done
7355: IFS=$as_save_IFS
7356:
7357: fi
7358: fi
7359: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7360: if test -n "$ac_ct_OBJDUMP"; then
7361: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7362: $as_echo "$ac_ct_OBJDUMP" >&6; }
7363: else
7364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7365: $as_echo "no" >&6; }
7366: fi
7367:
7368: if test "x$ac_ct_OBJDUMP" = x; then
7369: OBJDUMP="false"
7370: else
7371: case $cross_compiling:$ac_tool_warned in
7372: yes:)
7373: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7374: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7375: ac_tool_warned=yes ;;
7376: esac
7377: OBJDUMP=$ac_ct_OBJDUMP
7378: fi
7379: else
7380: OBJDUMP="$ac_cv_prog_OBJDUMP"
7381: fi
7382:
7383: test -z "$OBJDUMP" && OBJDUMP=objdump
7384:
7385:
7386:
7387:
7388:
7389:
7390:
7391:
7392:
7393: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7394: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7395: if ${lt_cv_deplibs_check_method+:} false; then :
7396: $as_echo_n "(cached) " >&6
7397: else
7398: lt_cv_file_magic_cmd='$MAGIC_CMD'
7399: lt_cv_file_magic_test_file=
7400: lt_cv_deplibs_check_method='unknown'
7401: # Need to set the preceding variable on all platforms that support
7402: # interlibrary dependencies.
7403: # 'none' -- dependencies not supported.
7404: # `unknown' -- same as none, but documents that we really don't know.
7405: # 'pass_all' -- all dependencies passed with no checks.
7406: # 'test_compile' -- check by making test program.
7407: # 'file_magic [[regex]]' -- check by looking for files in library path
7408: # which responds to the $file_magic_cmd with a given extended regex.
7409: # If you have `file' or equivalent on your system and you're not sure
7410: # whether `pass_all' will *always* work, you probably want this one.
7411:
7412: case $host_os in
7413: aix[4-9]*)
7414: lt_cv_deplibs_check_method=pass_all
7415: ;;
7416:
7417: beos*)
7418: lt_cv_deplibs_check_method=pass_all
7419: ;;
7420:
7421: bsdi[45]*)
7422: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7423: lt_cv_file_magic_cmd='/usr/bin/file -L'
7424: lt_cv_file_magic_test_file=/shlib/libc.so
7425: ;;
7426:
7427: cygwin*)
7428: # func_win32_libid is a shell function defined in ltmain.sh
7429: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7430: lt_cv_file_magic_cmd='func_win32_libid'
7431: ;;
7432:
7433: mingw* | pw32*)
7434: # Base MSYS/MinGW do not provide the 'file' command needed by
7435: # func_win32_libid shell function, so use a weaker test based on 'objdump',
7436: # unless we find 'file', for example because we are cross-compiling.
7437: # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7438: if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7439: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7440: lt_cv_file_magic_cmd='func_win32_libid'
7441: else
7442: # Keep this pattern in sync with the one in func_win32_libid.
7443: lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7444: lt_cv_file_magic_cmd='$OBJDUMP -f'
7445: fi
7446: ;;
7447:
7448: cegcc*)
7449: # use the weaker test based on 'objdump'. See mingw*.
7450: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7451: lt_cv_file_magic_cmd='$OBJDUMP -f'
7452: ;;
7453:
7454: darwin* | rhapsody*)
7455: lt_cv_deplibs_check_method=pass_all
7456: ;;
7457:
7458: freebsd* | dragonfly*)
7459: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7460: case $host_cpu in
7461: i*86 )
7462: # Not sure whether the presence of OpenBSD here was a mistake.
7463: # Let's accept both of them until this is cleared up.
7464: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7465: lt_cv_file_magic_cmd=/usr/bin/file
7466: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7467: ;;
7468: esac
7469: else
7470: lt_cv_deplibs_check_method=pass_all
7471: fi
7472: ;;
7473:
7474: gnu*)
7475: lt_cv_deplibs_check_method=pass_all
7476: ;;
7477:
7478: haiku*)
7479: lt_cv_deplibs_check_method=pass_all
7480: ;;
7481:
7482: hpux10.20* | hpux11*)
7483: lt_cv_file_magic_cmd=/usr/bin/file
7484: case $host_cpu in
7485: ia64*)
7486: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7487: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7488: ;;
7489: hppa*64*)
7490: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7491: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7492: ;;
7493: *)
7494: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7495: lt_cv_file_magic_test_file=/usr/lib/libc.sl
7496: ;;
7497: esac
7498: ;;
7499:
7500: interix[3-9]*)
7501: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7502: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7503: ;;
7504:
7505: irix5* | irix6* | nonstopux*)
7506: case $LD in
7507: *-32|*"-32 ") libmagic=32-bit;;
7508: *-n32|*"-n32 ") libmagic=N32;;
7509: *-64|*"-64 ") libmagic=64-bit;;
7510: *) libmagic=never-match;;
7511: esac
7512: lt_cv_deplibs_check_method=pass_all
7513: ;;
7514:
1.1.1.2 misho 7515: # This must be glibc/ELF.
1.1 misho 7516: linux* | k*bsd*-gnu | kopensolaris*-gnu)
7517: lt_cv_deplibs_check_method=pass_all
7518: ;;
7519:
7520: netbsd*)
7521: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7522: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7523: else
7524: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7525: fi
7526: ;;
7527:
7528: newos6*)
7529: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7530: lt_cv_file_magic_cmd=/usr/bin/file
7531: lt_cv_file_magic_test_file=/usr/lib/libnls.so
7532: ;;
7533:
7534: *nto* | *qnx*)
7535: lt_cv_deplibs_check_method=pass_all
7536: ;;
7537:
7538: openbsd*)
7539: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7540: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7541: else
7542: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7543: fi
7544: ;;
7545:
7546: osf3* | osf4* | osf5*)
7547: lt_cv_deplibs_check_method=pass_all
7548: ;;
7549:
7550: rdos*)
7551: lt_cv_deplibs_check_method=pass_all
7552: ;;
7553:
7554: solaris*)
7555: lt_cv_deplibs_check_method=pass_all
7556: ;;
7557:
7558: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7559: lt_cv_deplibs_check_method=pass_all
7560: ;;
7561:
7562: sysv4 | sysv4.3*)
7563: case $host_vendor in
7564: motorola)
7565: 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]'
7566: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7567: ;;
7568: ncr)
7569: lt_cv_deplibs_check_method=pass_all
7570: ;;
7571: sequent)
7572: lt_cv_file_magic_cmd='/bin/file'
7573: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7574: ;;
7575: sni)
7576: lt_cv_file_magic_cmd='/bin/file'
7577: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7578: lt_cv_file_magic_test_file=/lib/libc.so
7579: ;;
7580: siemens)
7581: lt_cv_deplibs_check_method=pass_all
7582: ;;
7583: pc)
7584: lt_cv_deplibs_check_method=pass_all
7585: ;;
7586: esac
7587: ;;
7588:
7589: tpf*)
7590: lt_cv_deplibs_check_method=pass_all
7591: ;;
7592: esac
7593:
7594: fi
7595: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7596: $as_echo "$lt_cv_deplibs_check_method" >&6; }
7597:
7598: file_magic_glob=
7599: want_nocaseglob=no
7600: if test "$build" = "$host"; then
7601: case $host_os in
7602: mingw* | pw32*)
7603: if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7604: want_nocaseglob=yes
7605: else
7606: file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7607: fi
7608: ;;
7609: esac
7610: fi
7611:
7612: file_magic_cmd=$lt_cv_file_magic_cmd
7613: deplibs_check_method=$lt_cv_deplibs_check_method
7614: test -z "$deplibs_check_method" && deplibs_check_method=unknown
7615:
7616:
7617:
7618:
7619:
7620:
7621:
7622:
7623:
7624:
7625:
7626:
7627:
7628:
7629:
7630:
7631:
7632:
7633:
7634:
7635:
7636:
7637: if test -n "$ac_tool_prefix"; then
7638: # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7639: set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7640: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641: $as_echo_n "checking for $ac_word... " >&6; }
7642: if ${ac_cv_prog_DLLTOOL+:} false; then :
7643: $as_echo_n "(cached) " >&6
7644: else
7645: if test -n "$DLLTOOL"; then
7646: ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7647: else
7648: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649: for as_dir in $PATH
7650: do
7651: IFS=$as_save_IFS
7652: test -z "$as_dir" && as_dir=.
7653: for ac_exec_ext in '' $ac_executable_extensions; do
7654: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7655: ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7656: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657: break 2
7658: fi
7659: done
7660: done
7661: IFS=$as_save_IFS
7662:
7663: fi
7664: fi
7665: DLLTOOL=$ac_cv_prog_DLLTOOL
7666: if test -n "$DLLTOOL"; then
7667: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7668: $as_echo "$DLLTOOL" >&6; }
7669: else
7670: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671: $as_echo "no" >&6; }
7672: fi
7673:
7674:
7675: fi
7676: if test -z "$ac_cv_prog_DLLTOOL"; then
7677: ac_ct_DLLTOOL=$DLLTOOL
7678: # Extract the first word of "dlltool", so it can be a program name with args.
7679: set dummy dlltool; ac_word=$2
7680: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7681: $as_echo_n "checking for $ac_word... " >&6; }
7682: if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7683: $as_echo_n "(cached) " >&6
7684: else
7685: if test -n "$ac_ct_DLLTOOL"; then
7686: ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7687: else
7688: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689: for as_dir in $PATH
7690: do
7691: IFS=$as_save_IFS
7692: test -z "$as_dir" && as_dir=.
7693: for ac_exec_ext in '' $ac_executable_extensions; do
7694: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7695: ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7696: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7697: break 2
7698: fi
7699: done
7700: done
7701: IFS=$as_save_IFS
7702:
7703: fi
7704: fi
7705: ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7706: if test -n "$ac_ct_DLLTOOL"; then
7707: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7708: $as_echo "$ac_ct_DLLTOOL" >&6; }
7709: else
7710: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711: $as_echo "no" >&6; }
7712: fi
7713:
7714: if test "x$ac_ct_DLLTOOL" = x; then
7715: DLLTOOL="false"
7716: else
7717: case $cross_compiling:$ac_tool_warned in
7718: yes:)
7719: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721: ac_tool_warned=yes ;;
7722: esac
7723: DLLTOOL=$ac_ct_DLLTOOL
7724: fi
7725: else
7726: DLLTOOL="$ac_cv_prog_DLLTOOL"
7727: fi
7728:
7729: test -z "$DLLTOOL" && DLLTOOL=dlltool
7730:
7731:
7732:
7733:
7734:
7735:
7736:
7737:
7738:
7739:
7740: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7741: $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7742: if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7743: $as_echo_n "(cached) " >&6
7744: else
7745: lt_cv_sharedlib_from_linklib_cmd='unknown'
7746:
7747: case $host_os in
7748: cygwin* | mingw* | pw32* | cegcc*)
7749: # two different shell functions defined in ltmain.sh
7750: # decide which to use based on capabilities of $DLLTOOL
7751: case `$DLLTOOL --help 2>&1` in
7752: *--identify-strict*)
7753: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7754: ;;
7755: *)
7756: lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7757: ;;
7758: esac
7759: ;;
7760: *)
7761: # fallback: assume linklib IS sharedlib
7762: lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7763: ;;
7764: esac
7765:
7766: fi
7767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7768: $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7769: sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7770: test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7771:
7772:
7773:
7774:
7775:
7776:
7777:
7778: if test -n "$ac_tool_prefix"; then
7779: for ac_prog in ar
7780: do
7781: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7782: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7783: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784: $as_echo_n "checking for $ac_word... " >&6; }
7785: if ${ac_cv_prog_AR+:} false; then :
7786: $as_echo_n "(cached) " >&6
7787: else
7788: if test -n "$AR"; then
7789: ac_cv_prog_AR="$AR" # Let the user override the test.
7790: else
7791: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792: for as_dir in $PATH
7793: do
7794: IFS=$as_save_IFS
7795: test -z "$as_dir" && as_dir=.
7796: for ac_exec_ext in '' $ac_executable_extensions; do
7797: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7798: ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7799: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800: break 2
7801: fi
7802: done
7803: done
7804: IFS=$as_save_IFS
7805:
7806: fi
7807: fi
7808: AR=$ac_cv_prog_AR
7809: if test -n "$AR"; then
7810: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7811: $as_echo "$AR" >&6; }
7812: else
7813: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814: $as_echo "no" >&6; }
7815: fi
7816:
7817:
7818: test -n "$AR" && break
7819: done
7820: fi
7821: if test -z "$AR"; then
7822: ac_ct_AR=$AR
7823: for ac_prog in ar
7824: do
7825: # Extract the first word of "$ac_prog", so it can be a program name with args.
7826: set dummy $ac_prog; ac_word=$2
7827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7828: $as_echo_n "checking for $ac_word... " >&6; }
7829: if ${ac_cv_prog_ac_ct_AR+:} false; then :
7830: $as_echo_n "(cached) " >&6
7831: else
7832: if test -n "$ac_ct_AR"; then
7833: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7834: else
7835: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836: for as_dir in $PATH
7837: do
7838: IFS=$as_save_IFS
7839: test -z "$as_dir" && as_dir=.
7840: for ac_exec_ext in '' $ac_executable_extensions; do
7841: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7842: ac_cv_prog_ac_ct_AR="$ac_prog"
7843: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844: break 2
7845: fi
7846: done
7847: done
7848: IFS=$as_save_IFS
7849:
7850: fi
7851: fi
7852: ac_ct_AR=$ac_cv_prog_ac_ct_AR
7853: if test -n "$ac_ct_AR"; then
7854: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7855: $as_echo "$ac_ct_AR" >&6; }
7856: else
7857: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858: $as_echo "no" >&6; }
7859: fi
7860:
7861:
7862: test -n "$ac_ct_AR" && break
7863: done
7864:
7865: if test "x$ac_ct_AR" = x; then
7866: AR="false"
7867: else
7868: case $cross_compiling:$ac_tool_warned in
7869: yes:)
7870: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872: ac_tool_warned=yes ;;
7873: esac
7874: AR=$ac_ct_AR
7875: fi
7876: fi
7877:
7878: : ${AR=ar}
7879: : ${AR_FLAGS=cru}
7880:
7881:
7882:
7883:
7884:
7885:
7886:
7887:
7888:
7889:
7890:
7891: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7892: $as_echo_n "checking for archiver @FILE support... " >&6; }
7893: if ${lt_cv_ar_at_file+:} false; then :
7894: $as_echo_n "(cached) " >&6
7895: else
7896: lt_cv_ar_at_file=no
7897: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898: /* end confdefs.h. */
7899:
7900: int
7901: main ()
7902: {
7903:
7904: ;
7905: return 0;
7906: }
7907: _ACEOF
7908: if ac_fn_c_try_compile "$LINENO"; then :
7909: echo conftest.$ac_objext > conftest.lst
7910: lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7911: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7912: (eval $lt_ar_try) 2>&5
7913: ac_status=$?
7914: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7915: test $ac_status = 0; }
7916: if test "$ac_status" -eq 0; then
7917: # Ensure the archiver fails upon bogus file names.
7918: rm -f conftest.$ac_objext libconftest.a
7919: { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7920: (eval $lt_ar_try) 2>&5
7921: ac_status=$?
7922: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7923: test $ac_status = 0; }
7924: if test "$ac_status" -ne 0; then
7925: lt_cv_ar_at_file=@
7926: fi
7927: fi
7928: rm -f conftest.* libconftest.a
7929:
7930: fi
7931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932:
7933: fi
7934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7935: $as_echo "$lt_cv_ar_at_file" >&6; }
7936:
7937: if test "x$lt_cv_ar_at_file" = xno; then
7938: archiver_list_spec=
7939: else
7940: archiver_list_spec=$lt_cv_ar_at_file
7941: fi
7942:
7943:
7944:
7945:
7946:
7947:
7948:
7949: if test -n "$ac_tool_prefix"; then
7950: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7951: set dummy ${ac_tool_prefix}strip; ac_word=$2
7952: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7953: $as_echo_n "checking for $ac_word... " >&6; }
7954: if ${ac_cv_prog_STRIP+:} false; then :
7955: $as_echo_n "(cached) " >&6
7956: else
7957: if test -n "$STRIP"; then
7958: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7959: else
7960: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961: for as_dir in $PATH
7962: do
7963: IFS=$as_save_IFS
7964: test -z "$as_dir" && as_dir=.
7965: for ac_exec_ext in '' $ac_executable_extensions; do
7966: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7968: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7969: break 2
7970: fi
7971: done
7972: done
7973: IFS=$as_save_IFS
7974:
7975: fi
7976: fi
7977: STRIP=$ac_cv_prog_STRIP
7978: if test -n "$STRIP"; then
7979: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7980: $as_echo "$STRIP" >&6; }
7981: else
7982: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7983: $as_echo "no" >&6; }
7984: fi
7985:
7986:
7987: fi
7988: if test -z "$ac_cv_prog_STRIP"; then
7989: ac_ct_STRIP=$STRIP
7990: # Extract the first word of "strip", so it can be a program name with args.
7991: set dummy strip; ac_word=$2
7992: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993: $as_echo_n "checking for $ac_word... " >&6; }
7994: if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7995: $as_echo_n "(cached) " >&6
7996: else
7997: if test -n "$ac_ct_STRIP"; then
7998: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7999: else
8000: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001: for as_dir in $PATH
8002: do
8003: IFS=$as_save_IFS
8004: test -z "$as_dir" && as_dir=.
8005: for ac_exec_ext in '' $ac_executable_extensions; do
8006: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8007: ac_cv_prog_ac_ct_STRIP="strip"
8008: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8009: break 2
8010: fi
8011: done
8012: done
8013: IFS=$as_save_IFS
8014:
8015: fi
8016: fi
8017: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8018: if test -n "$ac_ct_STRIP"; then
8019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8020: $as_echo "$ac_ct_STRIP" >&6; }
8021: else
8022: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023: $as_echo "no" >&6; }
8024: fi
8025:
8026: if test "x$ac_ct_STRIP" = x; then
8027: STRIP=":"
8028: else
8029: case $cross_compiling:$ac_tool_warned in
8030: yes:)
8031: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8032: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8033: ac_tool_warned=yes ;;
8034: esac
8035: STRIP=$ac_ct_STRIP
8036: fi
8037: else
8038: STRIP="$ac_cv_prog_STRIP"
8039: fi
8040:
8041: test -z "$STRIP" && STRIP=:
8042:
8043:
8044:
8045:
8046:
8047:
8048: if test -n "$ac_tool_prefix"; then
8049: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8050: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8051: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8052: $as_echo_n "checking for $ac_word... " >&6; }
8053: if ${ac_cv_prog_RANLIB+:} false; then :
8054: $as_echo_n "(cached) " >&6
8055: else
8056: if test -n "$RANLIB"; then
8057: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8058: else
8059: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060: for as_dir in $PATH
8061: do
8062: IFS=$as_save_IFS
8063: test -z "$as_dir" && as_dir=.
8064: for ac_exec_ext in '' $ac_executable_extensions; do
8065: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8066: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8067: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8068: break 2
8069: fi
8070: done
8071: done
8072: IFS=$as_save_IFS
8073:
8074: fi
8075: fi
8076: RANLIB=$ac_cv_prog_RANLIB
8077: if test -n "$RANLIB"; then
8078: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8079: $as_echo "$RANLIB" >&6; }
8080: else
8081: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082: $as_echo "no" >&6; }
8083: fi
8084:
8085:
8086: fi
8087: if test -z "$ac_cv_prog_RANLIB"; then
8088: ac_ct_RANLIB=$RANLIB
8089: # Extract the first word of "ranlib", so it can be a program name with args.
8090: set dummy ranlib; ac_word=$2
8091: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092: $as_echo_n "checking for $ac_word... " >&6; }
8093: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8094: $as_echo_n "(cached) " >&6
8095: else
8096: if test -n "$ac_ct_RANLIB"; then
8097: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8098: else
8099: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100: for as_dir in $PATH
8101: do
8102: IFS=$as_save_IFS
8103: test -z "$as_dir" && as_dir=.
8104: for ac_exec_ext in '' $ac_executable_extensions; do
8105: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106: ac_cv_prog_ac_ct_RANLIB="ranlib"
8107: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108: break 2
8109: fi
8110: done
8111: done
8112: IFS=$as_save_IFS
8113:
8114: fi
8115: fi
8116: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8117: if test -n "$ac_ct_RANLIB"; then
8118: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8119: $as_echo "$ac_ct_RANLIB" >&6; }
8120: else
8121: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122: $as_echo "no" >&6; }
8123: fi
8124:
8125: if test "x$ac_ct_RANLIB" = x; then
8126: RANLIB=":"
8127: else
8128: case $cross_compiling:$ac_tool_warned in
8129: yes:)
8130: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8131: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8132: ac_tool_warned=yes ;;
8133: esac
8134: RANLIB=$ac_ct_RANLIB
8135: fi
8136: else
8137: RANLIB="$ac_cv_prog_RANLIB"
8138: fi
8139:
8140: test -z "$RANLIB" && RANLIB=:
8141:
8142:
8143:
8144:
8145:
8146:
8147: # Determine commands to create old-style static archives.
8148: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8149: old_postinstall_cmds='chmod 644 $oldlib'
8150: old_postuninstall_cmds=
8151:
8152: if test -n "$RANLIB"; then
8153: case $host_os in
8154: openbsd*)
1.1.1.2 misho 8155: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1.1 misho 8156: ;;
8157: *)
1.1.1.2 misho 8158: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 8159: ;;
8160: esac
1.1.1.2 misho 8161: old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1.1 misho 8162: fi
8163:
8164: case $host_os in
8165: darwin*)
8166: lock_old_archive_extraction=yes ;;
8167: *)
8168: lock_old_archive_extraction=no ;;
8169: esac
8170:
8171:
8172:
8173:
8174:
8175:
8176:
8177:
8178:
8179:
8180:
8181:
8182:
8183:
8184:
8185:
8186:
8187:
8188:
8189:
8190:
8191: for ac_prog in gawk mawk nawk awk
8192: do
8193: # Extract the first word of "$ac_prog", so it can be a program name with args.
8194: set dummy $ac_prog; ac_word=$2
8195: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196: $as_echo_n "checking for $ac_word... " >&6; }
8197: if ${ac_cv_prog_AWK+:} false; then :
8198: $as_echo_n "(cached) " >&6
8199: else
8200: if test -n "$AWK"; then
8201: ac_cv_prog_AWK="$AWK" # Let the user override the test.
8202: else
8203: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204: for as_dir in $PATH
8205: do
8206: IFS=$as_save_IFS
8207: test -z "$as_dir" && as_dir=.
8208: for ac_exec_ext in '' $ac_executable_extensions; do
8209: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210: ac_cv_prog_AWK="$ac_prog"
8211: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212: break 2
8213: fi
8214: done
8215: done
8216: IFS=$as_save_IFS
8217:
8218: fi
8219: fi
8220: AWK=$ac_cv_prog_AWK
8221: if test -n "$AWK"; then
8222: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8223: $as_echo "$AWK" >&6; }
8224: else
8225: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226: $as_echo "no" >&6; }
8227: fi
8228:
8229:
8230: test -n "$AWK" && break
8231: done
8232:
8233:
8234:
8235:
8236:
8237:
8238:
8239:
8240:
8241:
8242:
8243:
8244:
8245:
8246:
8247:
8248:
8249:
8250:
8251: # If no C compiler was specified, use CC.
8252: LTCC=${LTCC-"$CC"}
8253:
8254: # If no C compiler flags were specified, use CFLAGS.
8255: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8256:
8257: # Allow CC to be a program name with arguments.
8258: compiler=$CC
8259:
8260:
8261: # Check for command to grab the raw symbol name followed by C symbol from nm.
8262: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8263: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8264: if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8265: $as_echo_n "(cached) " >&6
8266: else
8267:
8268: # These are sane defaults that work on at least a few old systems.
8269: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8270:
8271: # Character class describing NM global symbol codes.
8272: symcode='[BCDEGRST]'
8273:
8274: # Regexp to match symbols that can be accessed directly from C.
8275: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8276:
8277: # Define system-specific variables.
8278: case $host_os in
8279: aix*)
8280: symcode='[BCDT]'
8281: ;;
8282: cygwin* | mingw* | pw32* | cegcc*)
8283: symcode='[ABCDGISTW]'
8284: ;;
8285: hpux*)
8286: if test "$host_cpu" = ia64; then
8287: symcode='[ABCDEGRST]'
8288: fi
8289: ;;
8290: irix* | nonstopux*)
8291: symcode='[BCDEGRST]'
8292: ;;
8293: osf*)
8294: symcode='[BCDEGQRST]'
8295: ;;
8296: solaris*)
8297: symcode='[BDRT]'
8298: ;;
8299: sco3.2v5*)
8300: symcode='[DT]'
8301: ;;
8302: sysv4.2uw2*)
8303: symcode='[DT]'
8304: ;;
8305: sysv5* | sco5v6* | unixware* | OpenUNIX*)
8306: symcode='[ABDT]'
8307: ;;
8308: sysv4)
8309: symcode='[DFNSTU]'
8310: ;;
8311: esac
8312:
8313: # If we're using GNU nm, then use its standard symbol codes.
8314: case `$NM -V 2>&1` in
8315: *GNU* | *'with BFD'*)
8316: symcode='[ABCDGIRSTW]' ;;
8317: esac
8318:
8319: # Transform an extracted symbol line into a proper C declaration.
8320: # Some systems (esp. on ia64) link data and code symbols differently,
8321: # so use this general approach.
8322: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8323:
8324: # Transform an extracted symbol line into symbol name and symbol address
8325: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8326: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8327:
8328: # Handle CRLF in mingw tool chain
8329: opt_cr=
8330: case $build_os in
8331: mingw*)
8332: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8333: ;;
8334: esac
8335:
8336: # Try without a prefix underscore, then with it.
8337: for ac_symprfx in "" "_"; do
8338:
8339: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8340: symxfrm="\\1 $ac_symprfx\\2 \\2"
8341:
8342: # Write the raw and C identifiers.
8343: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8344: # Fake it for dumpbin and say T for any non-static function
8345: # and D for any global variable.
8346: # Also find C++ and __fastcall symbols from MSVC++,
8347: # which start with @ or ?.
8348: lt_cv_sys_global_symbol_pipe="$AWK '"\
8349: " {last_section=section; section=\$ 3};"\
1.1.1.2 misho 8350: " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
1.1 misho 8351: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8352: " \$ 0!~/External *\|/{next};"\
8353: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8354: " {if(hide[section]) next};"\
8355: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8356: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8357: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8358: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8359: " ' prfx=^$ac_symprfx"
8360: else
8361: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8362: fi
8363: lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8364:
8365: # Check to see that the pipe works correctly.
8366: pipe_works=no
8367:
8368: rm -f conftest*
8369: cat > conftest.$ac_ext <<_LT_EOF
8370: #ifdef __cplusplus
8371: extern "C" {
8372: #endif
8373: char nm_test_var;
8374: void nm_test_func(void);
8375: void nm_test_func(void){}
8376: #ifdef __cplusplus
8377: }
8378: #endif
8379: int main(){nm_test_var='a';nm_test_func();return(0);}
8380: _LT_EOF
8381:
8382: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8383: (eval $ac_compile) 2>&5
8384: ac_status=$?
8385: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8386: test $ac_status = 0; }; then
8387: # Now try to grab the symbols.
8388: nlist=conftest.nm
8389: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8390: (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8391: ac_status=$?
8392: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8393: test $ac_status = 0; } && test -s "$nlist"; then
8394: # Try sorting and uniquifying the output.
8395: if sort "$nlist" | uniq > "$nlist"T; then
8396: mv -f "$nlist"T "$nlist"
8397: else
8398: rm -f "$nlist"T
8399: fi
8400:
8401: # Make sure that we snagged all the symbols we need.
8402: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8403: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8404: cat <<_LT_EOF > conftest.$ac_ext
8405: /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
8406: #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
8407: /* DATA imports from DLLs on WIN32 con't be const, because runtime
8408: relocations are performed -- see ld's documentation on pseudo-relocs. */
8409: # define LT_DLSYM_CONST
8410: #elif defined(__osf__)
8411: /* This system does not cope well with relocations in const data. */
8412: # define LT_DLSYM_CONST
8413: #else
8414: # define LT_DLSYM_CONST const
8415: #endif
8416:
8417: #ifdef __cplusplus
8418: extern "C" {
8419: #endif
8420:
8421: _LT_EOF
8422: # Now generate the symbol file.
8423: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8424:
8425: cat <<_LT_EOF >> conftest.$ac_ext
8426:
8427: /* The mapping between symbol names and symbols. */
8428: LT_DLSYM_CONST struct {
8429: const char *name;
8430: void *address;
8431: }
8432: lt__PROGRAM__LTX_preloaded_symbols[] =
8433: {
8434: { "@PROGRAM@", (void *) 0 },
8435: _LT_EOF
8436: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8437: cat <<\_LT_EOF >> conftest.$ac_ext
8438: {0, (void *) 0}
8439: };
8440:
8441: /* This works around a problem in FreeBSD linker */
8442: #ifdef FREEBSD_WORKAROUND
8443: static const void *lt_preloaded_setup() {
8444: return lt__PROGRAM__LTX_preloaded_symbols;
8445: }
8446: #endif
8447:
8448: #ifdef __cplusplus
8449: }
8450: #endif
8451: _LT_EOF
8452: # Now try linking the two files.
8453: mv conftest.$ac_objext conftstm.$ac_objext
8454: lt_globsym_save_LIBS=$LIBS
8455: lt_globsym_save_CFLAGS=$CFLAGS
8456: LIBS="conftstm.$ac_objext"
8457: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8458: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8459: (eval $ac_link) 2>&5
8460: ac_status=$?
8461: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8462: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8463: pipe_works=yes
8464: fi
8465: LIBS=$lt_globsym_save_LIBS
8466: CFLAGS=$lt_globsym_save_CFLAGS
8467: else
8468: echo "cannot find nm_test_func in $nlist" >&5
8469: fi
8470: else
8471: echo "cannot find nm_test_var in $nlist" >&5
8472: fi
8473: else
8474: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8475: fi
8476: else
8477: echo "$progname: failed program was:" >&5
8478: cat conftest.$ac_ext >&5
8479: fi
8480: rm -rf conftest* conftst*
8481:
8482: # Do not use the global_symbol_pipe unless it works.
8483: if test "$pipe_works" = yes; then
8484: break
8485: else
8486: lt_cv_sys_global_symbol_pipe=
8487: fi
8488: done
8489:
8490: fi
8491:
8492: if test -z "$lt_cv_sys_global_symbol_pipe"; then
8493: lt_cv_sys_global_symbol_to_cdecl=
8494: fi
8495: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8496: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8497: $as_echo "failed" >&6; }
8498: else
8499: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8500: $as_echo "ok" >&6; }
8501: fi
8502:
8503: # Response file support.
8504: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8505: nm_file_list_spec='@'
8506: elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8507: nm_file_list_spec='@'
8508: fi
8509:
8510:
8511:
8512:
8513:
8514:
8515:
8516:
8517:
8518:
8519:
8520:
8521:
8522:
8523:
8524:
8525:
8526:
8527:
8528:
8529:
8530:
8531:
8532:
8533:
8534:
8535:
8536: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8537: $as_echo_n "checking for sysroot... " >&6; }
8538:
8539: # Check whether --with-sysroot was given.
8540: if test "${with_sysroot+set}" = set; then :
8541: withval=$with_sysroot;
8542: else
8543: with_sysroot=no
8544: fi
8545:
8546:
8547: lt_sysroot=
8548: case ${with_sysroot} in #(
8549: yes)
8550: if test "$GCC" = yes; then
8551: lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8552: fi
8553: ;; #(
8554: /*)
8555: lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8556: ;; #(
8557: no|'')
8558: ;; #(
8559: *)
8560: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8561: $as_echo "${with_sysroot}" >&6; }
8562: as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8563: ;;
8564: esac
8565:
8566: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8567: $as_echo "${lt_sysroot:-no}" >&6; }
8568:
8569:
8570:
8571:
8572:
8573: # Check whether --enable-libtool-lock was given.
8574: if test "${enable_libtool_lock+set}" = set; then :
8575: enableval=$enable_libtool_lock;
8576: fi
8577:
8578: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8579:
8580: # Some flags need to be propagated to the compiler or linker for good
8581: # libtool support.
8582: case $host in
8583: ia64-*-hpux*)
8584: # Find out which ABI we are using.
8585: echo 'int i;' > conftest.$ac_ext
8586: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8587: (eval $ac_compile) 2>&5
8588: ac_status=$?
8589: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8590: test $ac_status = 0; }; then
8591: case `/usr/bin/file conftest.$ac_objext` in
8592: *ELF-32*)
8593: HPUX_IA64_MODE="32"
8594: ;;
8595: *ELF-64*)
8596: HPUX_IA64_MODE="64"
8597: ;;
8598: esac
8599: fi
8600: rm -rf conftest*
8601: ;;
8602: *-*-irix6*)
8603: # Find out which ABI we are using.
8604: echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8605: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8606: (eval $ac_compile) 2>&5
8607: ac_status=$?
8608: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8609: test $ac_status = 0; }; then
8610: if test "$lt_cv_prog_gnu_ld" = yes; then
8611: case `/usr/bin/file conftest.$ac_objext` in
8612: *32-bit*)
8613: LD="${LD-ld} -melf32bsmip"
8614: ;;
8615: *N32*)
8616: LD="${LD-ld} -melf32bmipn32"
8617: ;;
8618: *64-bit*)
8619: LD="${LD-ld} -melf64bmip"
8620: ;;
8621: esac
8622: else
8623: case `/usr/bin/file conftest.$ac_objext` in
8624: *32-bit*)
8625: LD="${LD-ld} -32"
8626: ;;
8627: *N32*)
8628: LD="${LD-ld} -n32"
8629: ;;
8630: *64-bit*)
8631: LD="${LD-ld} -64"
8632: ;;
8633: esac
8634: fi
8635: fi
8636: rm -rf conftest*
8637: ;;
8638:
8639: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8640: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8641: # Find out which ABI we are using.
8642: echo 'int i;' > conftest.$ac_ext
8643: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8644: (eval $ac_compile) 2>&5
8645: ac_status=$?
8646: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647: test $ac_status = 0; }; then
8648: case `/usr/bin/file conftest.o` in
8649: *32-bit*)
8650: case $host in
8651: x86_64-*kfreebsd*-gnu)
8652: LD="${LD-ld} -m elf_i386_fbsd"
8653: ;;
8654: x86_64-*linux*)
8655: LD="${LD-ld} -m elf_i386"
8656: ;;
8657: ppc64-*linux*|powerpc64-*linux*)
8658: LD="${LD-ld} -m elf32ppclinux"
8659: ;;
8660: s390x-*linux*)
8661: LD="${LD-ld} -m elf_s390"
8662: ;;
8663: sparc64-*linux*)
8664: LD="${LD-ld} -m elf32_sparc"
8665: ;;
8666: esac
8667: ;;
8668: *64-bit*)
8669: case $host in
8670: x86_64-*kfreebsd*-gnu)
8671: LD="${LD-ld} -m elf_x86_64_fbsd"
8672: ;;
8673: x86_64-*linux*)
8674: LD="${LD-ld} -m elf_x86_64"
8675: ;;
8676: ppc*-*linux*|powerpc*-*linux*)
8677: LD="${LD-ld} -m elf64ppc"
8678: ;;
8679: s390*-*linux*|s390*-*tpf*)
8680: LD="${LD-ld} -m elf64_s390"
8681: ;;
8682: sparc*-*linux*)
8683: LD="${LD-ld} -m elf64_sparc"
8684: ;;
8685: esac
8686: ;;
8687: esac
8688: fi
8689: rm -rf conftest*
8690: ;;
8691:
8692: *-*-sco3.2v5*)
8693: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8694: SAVE_CFLAGS="$CFLAGS"
8695: CFLAGS="$CFLAGS -belf"
8696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8697: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8698: if ${lt_cv_cc_needs_belf+:} false; then :
8699: $as_echo_n "(cached) " >&6
8700: else
8701: ac_ext=c
8702: ac_cpp='$CPP $CPPFLAGS'
8703: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8704: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8705: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8706:
8707: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708: /* end confdefs.h. */
8709:
8710: int
8711: main ()
8712: {
8713:
8714: ;
8715: return 0;
8716: }
8717: _ACEOF
8718: if ac_fn_c_try_link "$LINENO"; then :
8719: lt_cv_cc_needs_belf=yes
8720: else
8721: lt_cv_cc_needs_belf=no
8722: fi
8723: rm -f core conftest.err conftest.$ac_objext \
8724: conftest$ac_exeext conftest.$ac_ext
8725: ac_ext=c
8726: ac_cpp='$CPP $CPPFLAGS'
8727: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8728: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8729: ac_compiler_gnu=$ac_cv_c_compiler_gnu
8730:
8731: fi
8732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8733: $as_echo "$lt_cv_cc_needs_belf" >&6; }
8734: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8735: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8736: CFLAGS="$SAVE_CFLAGS"
8737: fi
8738: ;;
1.1.1.2 misho 8739: *-*solaris*)
1.1 misho 8740: # Find out which ABI we are using.
8741: echo 'int i;' > conftest.$ac_ext
8742: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8743: (eval $ac_compile) 2>&5
8744: ac_status=$?
8745: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8746: test $ac_status = 0; }; then
8747: case `/usr/bin/file conftest.o` in
8748: *64-bit*)
8749: case $lt_cv_prog_gnu_ld in
1.1.1.2 misho 8750: yes*)
8751: case $host in
8752: i?86-*-solaris*)
8753: LD="${LD-ld} -m elf_x86_64"
8754: ;;
8755: sparc*-*-solaris*)
8756: LD="${LD-ld} -m elf64_sparc"
8757: ;;
8758: esac
8759: # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8760: if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8761: LD="${LD-ld}_sol2"
8762: fi
8763: ;;
1.1 misho 8764: *)
8765: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8766: LD="${LD-ld} -64"
8767: fi
8768: ;;
8769: esac
8770: ;;
8771: esac
8772: fi
8773: rm -rf conftest*
8774: ;;
8775: esac
8776:
8777: need_locks="$enable_libtool_lock"
8778:
8779: if test -n "$ac_tool_prefix"; then
8780: # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8781: set dummy ${ac_tool_prefix}mt; ac_word=$2
8782: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8783: $as_echo_n "checking for $ac_word... " >&6; }
8784: if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8785: $as_echo_n "(cached) " >&6
8786: else
8787: if test -n "$MANIFEST_TOOL"; then
8788: ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8789: else
8790: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791: for as_dir in $PATH
8792: do
8793: IFS=$as_save_IFS
8794: test -z "$as_dir" && as_dir=.
8795: for ac_exec_ext in '' $ac_executable_extensions; do
8796: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8797: ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8798: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8799: break 2
8800: fi
8801: done
8802: done
8803: IFS=$as_save_IFS
8804:
8805: fi
8806: fi
8807: MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8808: if test -n "$MANIFEST_TOOL"; then
8809: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8810: $as_echo "$MANIFEST_TOOL" >&6; }
8811: else
8812: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8813: $as_echo "no" >&6; }
8814: fi
8815:
8816:
8817: fi
8818: if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8819: ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8820: # Extract the first word of "mt", so it can be a program name with args.
8821: set dummy mt; ac_word=$2
8822: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8823: $as_echo_n "checking for $ac_word... " >&6; }
8824: if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8825: $as_echo_n "(cached) " >&6
8826: else
8827: if test -n "$ac_ct_MANIFEST_TOOL"; then
8828: ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8829: else
8830: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8831: for as_dir in $PATH
8832: do
8833: IFS=$as_save_IFS
8834: test -z "$as_dir" && as_dir=.
8835: for ac_exec_ext in '' $ac_executable_extensions; do
8836: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8837: ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8838: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8839: break 2
8840: fi
8841: done
8842: done
8843: IFS=$as_save_IFS
8844:
8845: fi
8846: fi
8847: ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8848: if test -n "$ac_ct_MANIFEST_TOOL"; then
8849: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8850: $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8851: else
8852: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853: $as_echo "no" >&6; }
8854: fi
8855:
8856: if test "x$ac_ct_MANIFEST_TOOL" = x; then
8857: MANIFEST_TOOL=":"
8858: else
8859: case $cross_compiling:$ac_tool_warned in
8860: yes:)
8861: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8862: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8863: ac_tool_warned=yes ;;
8864: esac
8865: MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8866: fi
8867: else
8868: MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8869: fi
8870:
8871: test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8872: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8873: $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8874: if ${lt_cv_path_mainfest_tool+:} false; then :
8875: $as_echo_n "(cached) " >&6
8876: else
8877: lt_cv_path_mainfest_tool=no
8878: echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8879: $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8880: cat conftest.err >&5
8881: if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8882: lt_cv_path_mainfest_tool=yes
8883: fi
8884: rm -f conftest*
8885: fi
8886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8887: $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8888: if test "x$lt_cv_path_mainfest_tool" != xyes; then
8889: MANIFEST_TOOL=:
8890: fi
8891:
8892:
8893:
8894:
8895:
8896:
8897: case $host_os in
8898: rhapsody* | darwin*)
8899: if test -n "$ac_tool_prefix"; then
8900: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8901: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8902: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903: $as_echo_n "checking for $ac_word... " >&6; }
8904: if ${ac_cv_prog_DSYMUTIL+:} false; then :
8905: $as_echo_n "(cached) " >&6
8906: else
8907: if test -n "$DSYMUTIL"; then
8908: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8909: else
8910: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8911: for as_dir in $PATH
8912: do
8913: IFS=$as_save_IFS
8914: test -z "$as_dir" && as_dir=.
8915: for ac_exec_ext in '' $ac_executable_extensions; do
8916: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8917: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8918: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8919: break 2
8920: fi
8921: done
8922: done
8923: IFS=$as_save_IFS
8924:
8925: fi
8926: fi
8927: DSYMUTIL=$ac_cv_prog_DSYMUTIL
8928: if test -n "$DSYMUTIL"; then
8929: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8930: $as_echo "$DSYMUTIL" >&6; }
8931: else
8932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933: $as_echo "no" >&6; }
8934: fi
8935:
8936:
8937: fi
8938: if test -z "$ac_cv_prog_DSYMUTIL"; then
8939: ac_ct_DSYMUTIL=$DSYMUTIL
8940: # Extract the first word of "dsymutil", so it can be a program name with args.
8941: set dummy dsymutil; ac_word=$2
8942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8943: $as_echo_n "checking for $ac_word... " >&6; }
8944: if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8945: $as_echo_n "(cached) " >&6
8946: else
8947: if test -n "$ac_ct_DSYMUTIL"; then
8948: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8949: else
8950: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951: for as_dir in $PATH
8952: do
8953: IFS=$as_save_IFS
8954: test -z "$as_dir" && as_dir=.
8955: for ac_exec_ext in '' $ac_executable_extensions; do
8956: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8958: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8959: break 2
8960: fi
8961: done
8962: done
8963: IFS=$as_save_IFS
8964:
8965: fi
8966: fi
8967: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8968: if test -n "$ac_ct_DSYMUTIL"; then
8969: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8970: $as_echo "$ac_ct_DSYMUTIL" >&6; }
8971: else
8972: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973: $as_echo "no" >&6; }
8974: fi
8975:
8976: if test "x$ac_ct_DSYMUTIL" = x; then
8977: DSYMUTIL=":"
8978: else
8979: case $cross_compiling:$ac_tool_warned in
8980: yes:)
8981: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8982: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8983: ac_tool_warned=yes ;;
8984: esac
8985: DSYMUTIL=$ac_ct_DSYMUTIL
8986: fi
8987: else
8988: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8989: fi
8990:
8991: if test -n "$ac_tool_prefix"; then
8992: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8993: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995: $as_echo_n "checking for $ac_word... " >&6; }
8996: if ${ac_cv_prog_NMEDIT+:} false; then :
8997: $as_echo_n "(cached) " >&6
8998: else
8999: if test -n "$NMEDIT"; then
9000: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9001: else
9002: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9003: for as_dir in $PATH
9004: do
9005: IFS=$as_save_IFS
9006: test -z "$as_dir" && as_dir=.
9007: for ac_exec_ext in '' $ac_executable_extensions; do
9008: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9009: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9010: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9011: break 2
9012: fi
9013: done
9014: done
9015: IFS=$as_save_IFS
9016:
9017: fi
9018: fi
9019: NMEDIT=$ac_cv_prog_NMEDIT
9020: if test -n "$NMEDIT"; then
9021: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9022: $as_echo "$NMEDIT" >&6; }
9023: else
9024: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025: $as_echo "no" >&6; }
9026: fi
9027:
9028:
9029: fi
9030: if test -z "$ac_cv_prog_NMEDIT"; then
9031: ac_ct_NMEDIT=$NMEDIT
9032: # Extract the first word of "nmedit", so it can be a program name with args.
9033: set dummy nmedit; ac_word=$2
9034: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035: $as_echo_n "checking for $ac_word... " >&6; }
9036: if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9037: $as_echo_n "(cached) " >&6
9038: else
9039: if test -n "$ac_ct_NMEDIT"; then
9040: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9041: else
9042: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043: for as_dir in $PATH
9044: do
9045: IFS=$as_save_IFS
9046: test -z "$as_dir" && as_dir=.
9047: for ac_exec_ext in '' $ac_executable_extensions; do
9048: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049: ac_cv_prog_ac_ct_NMEDIT="nmedit"
9050: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051: break 2
9052: fi
9053: done
9054: done
9055: IFS=$as_save_IFS
9056:
9057: fi
9058: fi
9059: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9060: if test -n "$ac_ct_NMEDIT"; then
9061: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9062: $as_echo "$ac_ct_NMEDIT" >&6; }
9063: else
9064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065: $as_echo "no" >&6; }
9066: fi
9067:
9068: if test "x$ac_ct_NMEDIT" = x; then
9069: NMEDIT=":"
9070: else
9071: case $cross_compiling:$ac_tool_warned in
9072: yes:)
9073: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9074: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9075: ac_tool_warned=yes ;;
9076: esac
9077: NMEDIT=$ac_ct_NMEDIT
9078: fi
9079: else
9080: NMEDIT="$ac_cv_prog_NMEDIT"
9081: fi
9082:
9083: if test -n "$ac_tool_prefix"; then
9084: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9085: set dummy ${ac_tool_prefix}lipo; ac_word=$2
9086: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9087: $as_echo_n "checking for $ac_word... " >&6; }
9088: if ${ac_cv_prog_LIPO+:} false; then :
9089: $as_echo_n "(cached) " >&6
9090: else
9091: if test -n "$LIPO"; then
9092: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9093: else
9094: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095: for as_dir in $PATH
9096: do
9097: IFS=$as_save_IFS
9098: test -z "$as_dir" && as_dir=.
9099: for ac_exec_ext in '' $ac_executable_extensions; do
9100: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9101: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9102: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9103: break 2
9104: fi
9105: done
9106: done
9107: IFS=$as_save_IFS
9108:
9109: fi
9110: fi
9111: LIPO=$ac_cv_prog_LIPO
9112: if test -n "$LIPO"; then
9113: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9114: $as_echo "$LIPO" >&6; }
9115: else
9116: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9117: $as_echo "no" >&6; }
9118: fi
9119:
9120:
9121: fi
9122: if test -z "$ac_cv_prog_LIPO"; then
9123: ac_ct_LIPO=$LIPO
9124: # Extract the first word of "lipo", so it can be a program name with args.
9125: set dummy lipo; ac_word=$2
9126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9127: $as_echo_n "checking for $ac_word... " >&6; }
9128: if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9129: $as_echo_n "(cached) " >&6
9130: else
9131: if test -n "$ac_ct_LIPO"; then
9132: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9133: else
9134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135: for as_dir in $PATH
9136: do
9137: IFS=$as_save_IFS
9138: test -z "$as_dir" && as_dir=.
9139: for ac_exec_ext in '' $ac_executable_extensions; do
9140: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141: ac_cv_prog_ac_ct_LIPO="lipo"
9142: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143: break 2
9144: fi
9145: done
9146: done
9147: IFS=$as_save_IFS
9148:
9149: fi
9150: fi
9151: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9152: if test -n "$ac_ct_LIPO"; then
9153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9154: $as_echo "$ac_ct_LIPO" >&6; }
9155: else
9156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9157: $as_echo "no" >&6; }
9158: fi
9159:
9160: if test "x$ac_ct_LIPO" = x; then
9161: LIPO=":"
9162: else
9163: case $cross_compiling:$ac_tool_warned in
9164: yes:)
9165: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9166: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9167: ac_tool_warned=yes ;;
9168: esac
9169: LIPO=$ac_ct_LIPO
9170: fi
9171: else
9172: LIPO="$ac_cv_prog_LIPO"
9173: fi
9174:
9175: if test -n "$ac_tool_prefix"; then
9176: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9177: set dummy ${ac_tool_prefix}otool; ac_word=$2
9178: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9179: $as_echo_n "checking for $ac_word... " >&6; }
9180: if ${ac_cv_prog_OTOOL+:} false; then :
9181: $as_echo_n "(cached) " >&6
9182: else
9183: if test -n "$OTOOL"; then
9184: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9185: else
9186: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9187: for as_dir in $PATH
9188: do
9189: IFS=$as_save_IFS
9190: test -z "$as_dir" && as_dir=.
9191: for ac_exec_ext in '' $ac_executable_extensions; do
9192: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9193: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9194: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9195: break 2
9196: fi
9197: done
9198: done
9199: IFS=$as_save_IFS
9200:
9201: fi
9202: fi
9203: OTOOL=$ac_cv_prog_OTOOL
9204: if test -n "$OTOOL"; then
9205: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9206: $as_echo "$OTOOL" >&6; }
9207: else
9208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9209: $as_echo "no" >&6; }
9210: fi
9211:
9212:
9213: fi
9214: if test -z "$ac_cv_prog_OTOOL"; then
9215: ac_ct_OTOOL=$OTOOL
9216: # Extract the first word of "otool", so it can be a program name with args.
9217: set dummy otool; ac_word=$2
9218: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219: $as_echo_n "checking for $ac_word... " >&6; }
9220: if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9221: $as_echo_n "(cached) " >&6
9222: else
9223: if test -n "$ac_ct_OTOOL"; then
9224: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9225: else
9226: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9227: for as_dir in $PATH
9228: do
9229: IFS=$as_save_IFS
9230: test -z "$as_dir" && as_dir=.
9231: for ac_exec_ext in '' $ac_executable_extensions; do
9232: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9233: ac_cv_prog_ac_ct_OTOOL="otool"
9234: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9235: break 2
9236: fi
9237: done
9238: done
9239: IFS=$as_save_IFS
9240:
9241: fi
9242: fi
9243: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9244: if test -n "$ac_ct_OTOOL"; then
9245: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9246: $as_echo "$ac_ct_OTOOL" >&6; }
9247: else
9248: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249: $as_echo "no" >&6; }
9250: fi
9251:
9252: if test "x$ac_ct_OTOOL" = x; then
9253: OTOOL=":"
9254: else
9255: case $cross_compiling:$ac_tool_warned in
9256: yes:)
9257: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9258: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9259: ac_tool_warned=yes ;;
9260: esac
9261: OTOOL=$ac_ct_OTOOL
9262: fi
9263: else
9264: OTOOL="$ac_cv_prog_OTOOL"
9265: fi
9266:
9267: if test -n "$ac_tool_prefix"; then
9268: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9269: set dummy ${ac_tool_prefix}otool64; ac_word=$2
9270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9271: $as_echo_n "checking for $ac_word... " >&6; }
9272: if ${ac_cv_prog_OTOOL64+:} false; then :
9273: $as_echo_n "(cached) " >&6
9274: else
9275: if test -n "$OTOOL64"; then
9276: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9277: else
9278: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9279: for as_dir in $PATH
9280: do
9281: IFS=$as_save_IFS
9282: test -z "$as_dir" && as_dir=.
9283: for ac_exec_ext in '' $ac_executable_extensions; do
9284: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9286: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9287: break 2
9288: fi
9289: done
9290: done
9291: IFS=$as_save_IFS
9292:
9293: fi
9294: fi
9295: OTOOL64=$ac_cv_prog_OTOOL64
9296: if test -n "$OTOOL64"; then
9297: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9298: $as_echo "$OTOOL64" >&6; }
9299: else
9300: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9301: $as_echo "no" >&6; }
9302: fi
9303:
9304:
9305: fi
9306: if test -z "$ac_cv_prog_OTOOL64"; then
9307: ac_ct_OTOOL64=$OTOOL64
9308: # Extract the first word of "otool64", so it can be a program name with args.
9309: set dummy otool64; ac_word=$2
9310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9311: $as_echo_n "checking for $ac_word... " >&6; }
9312: if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9313: $as_echo_n "(cached) " >&6
9314: else
9315: if test -n "$ac_ct_OTOOL64"; then
9316: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9317: else
9318: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9319: for as_dir in $PATH
9320: do
9321: IFS=$as_save_IFS
9322: test -z "$as_dir" && as_dir=.
9323: for ac_exec_ext in '' $ac_executable_extensions; do
9324: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9325: ac_cv_prog_ac_ct_OTOOL64="otool64"
9326: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9327: break 2
9328: fi
9329: done
9330: done
9331: IFS=$as_save_IFS
9332:
9333: fi
9334: fi
9335: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9336: if test -n "$ac_ct_OTOOL64"; then
9337: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9338: $as_echo "$ac_ct_OTOOL64" >&6; }
9339: else
9340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9341: $as_echo "no" >&6; }
9342: fi
9343:
9344: if test "x$ac_ct_OTOOL64" = x; then
9345: OTOOL64=":"
9346: else
9347: case $cross_compiling:$ac_tool_warned in
9348: yes:)
9349: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9350: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9351: ac_tool_warned=yes ;;
9352: esac
9353: OTOOL64=$ac_ct_OTOOL64
9354: fi
9355: else
9356: OTOOL64="$ac_cv_prog_OTOOL64"
9357: fi
9358:
9359:
9360:
9361:
9362:
9363:
9364:
9365:
9366:
9367:
9368:
9369:
9370:
9371:
9372:
9373:
9374:
9375:
9376:
9377:
9378:
9379:
9380:
9381:
9382:
9383:
9384:
9385: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9386: $as_echo_n "checking for -single_module linker flag... " >&6; }
9387: if ${lt_cv_apple_cc_single_mod+:} false; then :
9388: $as_echo_n "(cached) " >&6
9389: else
9390: lt_cv_apple_cc_single_mod=no
9391: if test -z "${LT_MULTI_MODULE}"; then
9392: # By default we will add the -single_module flag. You can override
9393: # by either setting the environment variable LT_MULTI_MODULE
9394: # non-empty at configure time, or by adding -multi_module to the
9395: # link flags.
9396: rm -rf libconftest.dylib*
9397: echo "int foo(void){return 1;}" > conftest.c
9398: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9399: -dynamiclib -Wl,-single_module conftest.c" >&5
9400: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9401: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9402: _lt_result=$?
1.1.1.2 misho 9403: # If there is a non-empty error log, and "single_module"
9404: # appears in it, assume the flag caused a linker warning
9405: if test -s conftest.err && $GREP single_module conftest.err; then
9406: cat conftest.err >&5
9407: # Otherwise, if the output was created with a 0 exit code from
9408: # the compiler, it worked.
9409: elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1.1 misho 9410: lt_cv_apple_cc_single_mod=yes
9411: else
9412: cat conftest.err >&5
9413: fi
9414: rm -rf libconftest.dylib*
9415: rm -f conftest.*
9416: fi
9417: fi
9418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9419: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
1.1.1.2 misho 9420:
1.1 misho 9421: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9422: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9423: if ${lt_cv_ld_exported_symbols_list+:} false; then :
9424: $as_echo_n "(cached) " >&6
9425: else
9426: lt_cv_ld_exported_symbols_list=no
9427: save_LDFLAGS=$LDFLAGS
9428: echo "_main" > conftest.sym
9429: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9430: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431: /* end confdefs.h. */
9432:
9433: int
9434: main ()
9435: {
9436:
9437: ;
9438: return 0;
9439: }
9440: _ACEOF
9441: if ac_fn_c_try_link "$LINENO"; then :
9442: lt_cv_ld_exported_symbols_list=yes
9443: else
9444: lt_cv_ld_exported_symbols_list=no
9445: fi
9446: rm -f core conftest.err conftest.$ac_objext \
9447: conftest$ac_exeext conftest.$ac_ext
9448: LDFLAGS="$save_LDFLAGS"
9449:
9450: fi
9451: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9452: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
1.1.1.2 misho 9453:
1.1 misho 9454: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9455: $as_echo_n "checking for -force_load linker flag... " >&6; }
9456: if ${lt_cv_ld_force_load+:} false; then :
9457: $as_echo_n "(cached) " >&6
9458: else
9459: lt_cv_ld_force_load=no
9460: cat > conftest.c << _LT_EOF
9461: int forced_loaded() { return 2;}
9462: _LT_EOF
9463: echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9464: $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9465: echo "$AR cru libconftest.a conftest.o" >&5
9466: $AR cru libconftest.a conftest.o 2>&5
9467: echo "$RANLIB libconftest.a" >&5
9468: $RANLIB libconftest.a 2>&5
9469: cat > conftest.c << _LT_EOF
9470: int main() { return 0;}
9471: _LT_EOF
9472: echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9473: $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9474: _lt_result=$?
1.1.1.2 misho 9475: if test -s conftest.err && $GREP force_load conftest.err; then
9476: cat conftest.err >&5
9477: elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1.1 misho 9478: lt_cv_ld_force_load=yes
9479: else
9480: cat conftest.err >&5
9481: fi
9482: rm -f conftest.err libconftest.a conftest conftest.c
9483: rm -rf conftest.dSYM
9484:
9485: fi
9486: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9487: $as_echo "$lt_cv_ld_force_load" >&6; }
9488: case $host_os in
9489: rhapsody* | darwin1.[012])
9490: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9491: darwin1.*)
9492: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9493: darwin*) # darwin 5.x on
9494: # if running on 10.5 or later, the deployment target defaults
9495: # to the OS version, if on x86, and 10.4, the deployment
9496: # target defaults to 10.4. Don't you love it?
9497: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9498: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9499: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9500: 10.[012]*)
9501: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9502: 10.*)
9503: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9504: esac
9505: ;;
9506: esac
9507: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9508: _lt_dar_single_mod='$single_module'
9509: fi
9510: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9511: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9512: else
9513: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9514: fi
9515: if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9516: _lt_dsymutil='~$DSYMUTIL $lib || :'
9517: else
9518: _lt_dsymutil=
9519: fi
9520: ;;
9521: esac
9522:
9523:
9524: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9525: $as_echo_n "checking for ANSI C header files... " >&6; }
9526: if ${ac_cv_header_stdc+:} false; then :
9527: $as_echo_n "(cached) " >&6
9528: else
9529: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530: /* end confdefs.h. */
9531: #include <stdlib.h>
9532: #include <stdarg.h>
9533: #include <string.h>
9534: #include <float.h>
9535:
9536: int
9537: main ()
9538: {
9539:
9540: ;
9541: return 0;
9542: }
9543: _ACEOF
9544: if ac_fn_c_try_compile "$LINENO"; then :
9545: ac_cv_header_stdc=yes
9546: else
9547: ac_cv_header_stdc=no
9548: fi
9549: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550:
9551: if test $ac_cv_header_stdc = yes; then
9552: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9553: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554: /* end confdefs.h. */
9555: #include <string.h>
9556:
9557: _ACEOF
9558: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9559: $EGREP "memchr" >/dev/null 2>&1; then :
9560:
9561: else
9562: ac_cv_header_stdc=no
9563: fi
9564: rm -f conftest*
9565:
9566: fi
9567:
9568: if test $ac_cv_header_stdc = yes; then
9569: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9570: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571: /* end confdefs.h. */
9572: #include <stdlib.h>
9573:
9574: _ACEOF
9575: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9576: $EGREP "free" >/dev/null 2>&1; then :
9577:
9578: else
9579: ac_cv_header_stdc=no
9580: fi
9581: rm -f conftest*
9582:
9583: fi
9584:
9585: if test $ac_cv_header_stdc = yes; then
9586: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9587: if test "$cross_compiling" = yes; then :
9588: :
9589: else
9590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591: /* end confdefs.h. */
9592: #include <ctype.h>
9593: #include <stdlib.h>
9594: #if ((' ' & 0x0FF) == 0x020)
9595: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9596: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9597: #else
9598: # define ISLOWER(c) \
9599: (('a' <= (c) && (c) <= 'i') \
9600: || ('j' <= (c) && (c) <= 'r') \
9601: || ('s' <= (c) && (c) <= 'z'))
9602: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9603: #endif
9604:
9605: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9606: int
9607: main ()
9608: {
9609: int i;
9610: for (i = 0; i < 256; i++)
9611: if (XOR (islower (i), ISLOWER (i))
9612: || toupper (i) != TOUPPER (i))
9613: return 2;
9614: return 0;
9615: }
9616: _ACEOF
9617: if ac_fn_c_try_run "$LINENO"; then :
9618:
9619: else
9620: ac_cv_header_stdc=no
9621: fi
9622: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9623: conftest.$ac_objext conftest.beam conftest.$ac_ext
9624: fi
9625:
9626: fi
9627: fi
9628: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9629: $as_echo "$ac_cv_header_stdc" >&6; }
9630: if test $ac_cv_header_stdc = yes; then
9631:
9632: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9633:
9634: fi
9635:
9636: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9637: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9638: inttypes.h stdint.h unistd.h
9639: do :
9640: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9641: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9642: "
9643: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9644: cat >>confdefs.h <<_ACEOF
9645: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9646: _ACEOF
9647:
9648: fi
9649:
9650: done
9651:
9652:
9653: for ac_header in dlfcn.h
9654: do :
9655: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9656: "
9657: if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9658: cat >>confdefs.h <<_ACEOF
9659: #define HAVE_DLFCN_H 1
9660: _ACEOF
9661:
9662: fi
9663:
9664: done
9665:
9666:
9667:
9668:
9669:
9670: # Set options
9671: enable_dlopen=yes
9672:
9673:
9674:
9675:
9676: enable_win32_dll=no
9677:
9678:
9679: # Check whether --enable-shared was given.
9680: if test "${enable_shared+set}" = set; then :
9681: enableval=$enable_shared; p=${PACKAGE-default}
9682: case $enableval in
9683: yes) enable_shared=yes ;;
9684: no) enable_shared=no ;;
9685: *)
9686: enable_shared=no
9687: # Look at the argument we got. We use all the common list separators.
9688: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9689: for pkg in $enableval; do
9690: IFS="$lt_save_ifs"
9691: if test "X$pkg" = "X$p"; then
9692: enable_shared=yes
9693: fi
9694: done
9695: IFS="$lt_save_ifs"
9696: ;;
9697: esac
9698: else
9699: enable_shared=yes
9700: fi
9701:
9702:
9703:
9704:
9705:
9706:
9707:
9708:
9709:
9710: # Check whether --enable-static was given.
9711: if test "${enable_static+set}" = set; then :
9712: enableval=$enable_static; p=${PACKAGE-default}
9713: case $enableval in
9714: yes) enable_static=yes ;;
9715: no) enable_static=no ;;
9716: *)
9717: enable_static=no
9718: # Look at the argument we got. We use all the common list separators.
9719: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9720: for pkg in $enableval; do
9721: IFS="$lt_save_ifs"
9722: if test "X$pkg" = "X$p"; then
9723: enable_static=yes
9724: fi
9725: done
9726: IFS="$lt_save_ifs"
9727: ;;
9728: esac
9729: else
9730: enable_static=yes
9731: fi
9732:
9733:
9734:
9735:
9736:
9737:
9738:
9739:
9740:
9741:
9742: # Check whether --with-pic was given.
9743: if test "${with_pic+set}" = set; then :
1.1.1.2 misho 9744: withval=$with_pic; lt_p=${PACKAGE-default}
9745: case $withval in
9746: yes|no) pic_mode=$withval ;;
9747: *)
9748: pic_mode=default
9749: # Look at the argument we got. We use all the common list separators.
9750: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9751: for lt_pkg in $withval; do
9752: IFS="$lt_save_ifs"
9753: if test "X$lt_pkg" = "X$lt_p"; then
9754: pic_mode=yes
9755: fi
9756: done
9757: IFS="$lt_save_ifs"
9758: ;;
9759: esac
1.1 misho 9760: else
9761: pic_mode=default
9762: fi
9763:
9764:
9765: test -z "$pic_mode" && pic_mode=default
9766:
9767:
9768:
9769:
9770:
9771:
9772:
9773: # Check whether --enable-fast-install was given.
9774: if test "${enable_fast_install+set}" = set; then :
9775: enableval=$enable_fast_install; p=${PACKAGE-default}
9776: case $enableval in
9777: yes) enable_fast_install=yes ;;
9778: no) enable_fast_install=no ;;
9779: *)
9780: enable_fast_install=no
9781: # Look at the argument we got. We use all the common list separators.
9782: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9783: for pkg in $enableval; do
9784: IFS="$lt_save_ifs"
9785: if test "X$pkg" = "X$p"; then
9786: enable_fast_install=yes
9787: fi
9788: done
9789: IFS="$lt_save_ifs"
9790: ;;
9791: esac
9792: else
9793: enable_fast_install=yes
9794: fi
9795:
9796:
9797:
9798:
9799:
9800:
9801:
9802:
9803:
9804:
9805:
9806: # This can be used to rebuild libtool when needed
9807: LIBTOOL_DEPS="$ltmain"
9808:
9809: # Always use our own libtool.
9810: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9811:
9812:
9813:
9814:
9815:
9816:
9817:
9818:
9819:
9820:
9821:
9822:
9823:
9824:
9825:
9826:
9827:
9828:
9829:
9830:
9831:
9832:
9833:
9834:
9835:
9836:
1.1.1.2 misho 9837:
9838:
9839:
9840:
1.1 misho 9841: test -z "$LN_S" && LN_S="ln -s"
9842:
9843:
9844:
9845:
9846:
9847:
9848:
9849:
9850:
9851:
9852:
9853:
9854:
9855:
9856: if test -n "${ZSH_VERSION+set}" ; then
9857: setopt NO_GLOB_SUBST
9858: fi
9859:
9860: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9861: $as_echo_n "checking for objdir... " >&6; }
9862: if ${lt_cv_objdir+:} false; then :
9863: $as_echo_n "(cached) " >&6
9864: else
9865: rm -f .libs 2>/dev/null
9866: mkdir .libs 2>/dev/null
9867: if test -d .libs; then
9868: lt_cv_objdir=.libs
9869: else
9870: # MS-DOS does not allow filenames that begin with a dot.
9871: lt_cv_objdir=_libs
9872: fi
9873: rmdir .libs 2>/dev/null
9874: fi
9875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9876: $as_echo "$lt_cv_objdir" >&6; }
9877: objdir=$lt_cv_objdir
9878:
9879:
9880:
9881:
9882:
9883: cat >>confdefs.h <<_ACEOF
9884: #define LT_OBJDIR "$lt_cv_objdir/"
9885: _ACEOF
9886:
9887:
9888:
9889:
9890: case $host_os in
9891: aix3*)
9892: # AIX sometimes has problems with the GCC collect2 program. For some
9893: # reason, if we set the COLLECT_NAMES environment variable, the problems
9894: # vanish in a puff of smoke.
9895: if test "X${COLLECT_NAMES+set}" != Xset; then
9896: COLLECT_NAMES=
9897: export COLLECT_NAMES
9898: fi
9899: ;;
9900: esac
9901:
9902: # Global variables:
9903: ofile=libtool
9904: can_build_shared=yes
9905:
9906: # All known linkers require a `.a' archive for static linking (except MSVC,
9907: # which needs '.lib').
9908: libext=a
9909:
9910: with_gnu_ld="$lt_cv_prog_gnu_ld"
9911:
9912: old_CC="$CC"
9913: old_CFLAGS="$CFLAGS"
9914:
9915: # Set sane defaults for various variables
9916: test -z "$CC" && CC=cc
9917: test -z "$LTCC" && LTCC=$CC
9918: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9919: test -z "$LD" && LD=ld
9920: test -z "$ac_objext" && ac_objext=o
9921:
9922: for cc_temp in $compiler""; do
9923: case $cc_temp in
9924: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9925: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9926: \-*) ;;
9927: *) break;;
9928: esac
9929: done
9930: cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9931:
9932:
9933: # Only perform the check for file, if the check method requires it
9934: test -z "$MAGIC_CMD" && MAGIC_CMD=file
9935: case $deplibs_check_method in
9936: file_magic*)
9937: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9938: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9939: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9940: if ${lt_cv_path_MAGIC_CMD+:} false; then :
9941: $as_echo_n "(cached) " >&6
9942: else
9943: case $MAGIC_CMD in
9944: [\\/*] | ?:[\\/]*)
9945: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9946: ;;
9947: *)
9948: lt_save_MAGIC_CMD="$MAGIC_CMD"
9949: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9950: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9951: for ac_dir in $ac_dummy; do
9952: IFS="$lt_save_ifs"
9953: test -z "$ac_dir" && ac_dir=.
9954: if test -f $ac_dir/${ac_tool_prefix}file; then
9955: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9956: if test -n "$file_magic_test_file"; then
9957: case $deplibs_check_method in
9958: "file_magic "*)
9959: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9960: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9961: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9962: $EGREP "$file_magic_regex" > /dev/null; then
9963: :
9964: else
9965: cat <<_LT_EOF 1>&2
9966:
9967: *** Warning: the command libtool uses to detect shared libraries,
9968: *** $file_magic_cmd, produces output that libtool cannot recognize.
9969: *** The result is that libtool may fail to recognize shared libraries
9970: *** as such. This will affect the creation of libtool libraries that
9971: *** depend on shared libraries, but programs linked with such libtool
9972: *** libraries will work regardless of this problem. Nevertheless, you
9973: *** may want to report the problem to your system manager and/or to
9974: *** bug-libtool@gnu.org
9975:
9976: _LT_EOF
9977: fi ;;
9978: esac
9979: fi
9980: break
9981: fi
9982: done
9983: IFS="$lt_save_ifs"
9984: MAGIC_CMD="$lt_save_MAGIC_CMD"
9985: ;;
9986: esac
9987: fi
9988:
9989: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9990: if test -n "$MAGIC_CMD"; then
9991: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9992: $as_echo "$MAGIC_CMD" >&6; }
9993: else
9994: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9995: $as_echo "no" >&6; }
9996: fi
9997:
9998:
9999:
10000:
10001:
10002: if test -z "$lt_cv_path_MAGIC_CMD"; then
10003: if test -n "$ac_tool_prefix"; then
10004: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10005: $as_echo_n "checking for file... " >&6; }
10006: if ${lt_cv_path_MAGIC_CMD+:} false; then :
10007: $as_echo_n "(cached) " >&6
10008: else
10009: case $MAGIC_CMD in
10010: [\\/*] | ?:[\\/]*)
10011: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10012: ;;
10013: *)
10014: lt_save_MAGIC_CMD="$MAGIC_CMD"
10015: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10016: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10017: for ac_dir in $ac_dummy; do
10018: IFS="$lt_save_ifs"
10019: test -z "$ac_dir" && ac_dir=.
10020: if test -f $ac_dir/file; then
10021: lt_cv_path_MAGIC_CMD="$ac_dir/file"
10022: if test -n "$file_magic_test_file"; then
10023: case $deplibs_check_method in
10024: "file_magic "*)
10025: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10026: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10027: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10028: $EGREP "$file_magic_regex" > /dev/null; then
10029: :
10030: else
10031: cat <<_LT_EOF 1>&2
10032:
10033: *** Warning: the command libtool uses to detect shared libraries,
10034: *** $file_magic_cmd, produces output that libtool cannot recognize.
10035: *** The result is that libtool may fail to recognize shared libraries
10036: *** as such. This will affect the creation of libtool libraries that
10037: *** depend on shared libraries, but programs linked with such libtool
10038: *** libraries will work regardless of this problem. Nevertheless, you
10039: *** may want to report the problem to your system manager and/or to
10040: *** bug-libtool@gnu.org
10041:
10042: _LT_EOF
10043: fi ;;
10044: esac
10045: fi
10046: break
10047: fi
10048: done
10049: IFS="$lt_save_ifs"
10050: MAGIC_CMD="$lt_save_MAGIC_CMD"
10051: ;;
10052: esac
10053: fi
10054:
10055: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10056: if test -n "$MAGIC_CMD"; then
10057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10058: $as_echo "$MAGIC_CMD" >&6; }
10059: else
10060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10061: $as_echo "no" >&6; }
10062: fi
10063:
10064:
10065: else
10066: MAGIC_CMD=:
10067: fi
10068: fi
10069:
10070: fi
10071: ;;
10072: esac
10073:
10074: # Use C for the default configuration in the libtool script
10075:
10076: lt_save_CC="$CC"
10077: ac_ext=c
10078: ac_cpp='$CPP $CPPFLAGS'
10079: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10080: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10081: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10082:
10083:
10084: # Source file extension for C test sources.
10085: ac_ext=c
10086:
10087: # Object file extension for compiled C test sources.
10088: objext=o
10089: objext=$objext
10090:
10091: # Code to be used in simple compile tests
10092: lt_simple_compile_test_code="int some_variable = 0;"
10093:
10094: # Code to be used in simple link tests
10095: lt_simple_link_test_code='int main(){return(0);}'
10096:
10097:
10098:
10099:
10100:
10101:
10102:
10103: # If no C compiler was specified, use CC.
10104: LTCC=${LTCC-"$CC"}
10105:
10106: # If no C compiler flags were specified, use CFLAGS.
10107: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10108:
10109: # Allow CC to be a program name with arguments.
10110: compiler=$CC
10111:
10112: # Save the default compiler, since it gets overwritten when the other
10113: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10114: compiler_DEFAULT=$CC
10115:
10116: # save warnings/boilerplate of simple test code
10117: ac_outfile=conftest.$ac_objext
10118: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10119: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10120: _lt_compiler_boilerplate=`cat conftest.err`
10121: $RM conftest*
10122:
10123: ac_outfile=conftest.$ac_objext
10124: echo "$lt_simple_link_test_code" >conftest.$ac_ext
10125: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10126: _lt_linker_boilerplate=`cat conftest.err`
10127: $RM -r conftest*
10128:
10129:
10130: ## CAVEAT EMPTOR:
10131: ## There is no encapsulation within the following macros, do not change
10132: ## the running order or otherwise move them around unless you know exactly
10133: ## what you are doing...
10134: if test -n "$compiler"; then
10135:
10136: lt_prog_compiler_no_builtin_flag=
10137:
10138: if test "$GCC" = yes; then
10139: case $cc_basename in
10140: nvcc*)
10141: lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10142: *)
10143: lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10144: esac
10145:
10146: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10147: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10148: if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10149: $as_echo_n "(cached) " >&6
10150: else
10151: lt_cv_prog_compiler_rtti_exceptions=no
10152: ac_outfile=conftest.$ac_objext
10153: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154: lt_compiler_flag="-fno-rtti -fno-exceptions"
10155: # Insert the option either (1) after the last *FLAGS variable, or
10156: # (2) before a word containing "conftest.", or (3) at the end.
10157: # Note that $ac_compile itself does not contain backslashes and begins
10158: # with a dollar sign (not a hyphen), so the echo should work correctly.
10159: # The option is referenced via a variable to avoid confusing sed.
10160: lt_compile=`echo "$ac_compile" | $SED \
10161: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10162: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10163: -e 's:$: $lt_compiler_flag:'`
10164: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10165: (eval "$lt_compile" 2>conftest.err)
10166: ac_status=$?
10167: cat conftest.err >&5
10168: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169: if (exit $ac_status) && test -s "$ac_outfile"; then
10170: # The compiler can only warn and ignore the option if not recognized
10171: # So say no if there are warnings other than the usual output.
10172: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10173: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10174: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10175: lt_cv_prog_compiler_rtti_exceptions=yes
10176: fi
10177: fi
10178: $RM conftest*
10179:
10180: fi
10181: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10182: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10183:
10184: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10185: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10186: else
10187: :
10188: fi
10189:
10190: fi
10191:
10192:
10193:
10194:
10195:
10196:
10197: lt_prog_compiler_wl=
10198: lt_prog_compiler_pic=
10199: lt_prog_compiler_static=
10200:
10201:
10202: if test "$GCC" = yes; then
10203: lt_prog_compiler_wl='-Wl,'
10204: lt_prog_compiler_static='-static'
10205:
10206: case $host_os in
10207: aix*)
10208: # All AIX code is PIC.
10209: if test "$host_cpu" = ia64; then
10210: # AIX 5 now supports IA64 processor
10211: lt_prog_compiler_static='-Bstatic'
10212: fi
10213: ;;
10214:
10215: amigaos*)
10216: case $host_cpu in
10217: powerpc)
10218: # see comment about AmigaOS4 .so support
10219: lt_prog_compiler_pic='-fPIC'
10220: ;;
10221: m68k)
10222: # FIXME: we need at least 68020 code to build shared libraries, but
10223: # adding the `-m68020' flag to GCC prevents building anything better,
10224: # like `-m68040'.
10225: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10226: ;;
10227: esac
10228: ;;
10229:
10230: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10231: # PIC is the default for these OSes.
10232: ;;
10233:
10234: mingw* | cygwin* | pw32* | os2* | cegcc*)
10235: # This hack is so that the source file can tell whether it is being
10236: # built for inclusion in a dll (and should export symbols for example).
10237: # Although the cygwin gcc ignores -fPIC, still need this for old-style
10238: # (--disable-auto-import) libraries
10239: lt_prog_compiler_pic='-DDLL_EXPORT'
10240: ;;
10241:
10242: darwin* | rhapsody*)
10243: # PIC is the default on this platform
10244: # Common symbols not allowed in MH_DYLIB files
10245: lt_prog_compiler_pic='-fno-common'
10246: ;;
10247:
10248: haiku*)
10249: # PIC is the default for Haiku.
10250: # The "-static" flag exists, but is broken.
10251: lt_prog_compiler_static=
10252: ;;
10253:
10254: hpux*)
10255: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10256: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10257: # sets the default TLS model and affects inlining.
10258: case $host_cpu in
10259: hppa*64*)
10260: # +Z the default
10261: ;;
10262: *)
10263: lt_prog_compiler_pic='-fPIC'
10264: ;;
10265: esac
10266: ;;
10267:
10268: interix[3-9]*)
10269: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10270: # Instead, we relocate shared libraries at runtime.
10271: ;;
10272:
10273: msdosdjgpp*)
10274: # Just because we use GCC doesn't mean we suddenly get shared libraries
10275: # on systems that don't support them.
10276: lt_prog_compiler_can_build_shared=no
10277: enable_shared=no
10278: ;;
10279:
10280: *nto* | *qnx*)
10281: # QNX uses GNU C++, but need to define -shared option too, otherwise
10282: # it will coredump.
10283: lt_prog_compiler_pic='-fPIC -shared'
10284: ;;
10285:
10286: sysv4*MP*)
10287: if test -d /usr/nec; then
10288: lt_prog_compiler_pic=-Kconform_pic
10289: fi
10290: ;;
10291:
10292: *)
10293: lt_prog_compiler_pic='-fPIC'
10294: ;;
10295: esac
10296:
10297: case $cc_basename in
10298: nvcc*) # Cuda Compiler Driver 2.2
10299: lt_prog_compiler_wl='-Xlinker '
1.1.1.2 misho 10300: if test -n "$lt_prog_compiler_pic"; then
10301: lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10302: fi
1.1 misho 10303: ;;
10304: esac
10305: else
10306: # PORTME Check for flag to pass linker flags through the system compiler.
10307: case $host_os in
10308: aix*)
10309: lt_prog_compiler_wl='-Wl,'
10310: if test "$host_cpu" = ia64; then
10311: # AIX 5 now supports IA64 processor
10312: lt_prog_compiler_static='-Bstatic'
10313: else
10314: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10315: fi
10316: ;;
10317:
10318: mingw* | cygwin* | pw32* | os2* | cegcc*)
10319: # This hack is so that the source file can tell whether it is being
10320: # built for inclusion in a dll (and should export symbols for example).
10321: lt_prog_compiler_pic='-DDLL_EXPORT'
10322: ;;
10323:
10324: hpux9* | hpux10* | hpux11*)
10325: lt_prog_compiler_wl='-Wl,'
10326: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10327: # not for PA HP-UX.
10328: case $host_cpu in
10329: hppa*64*|ia64*)
10330: # +Z the default
10331: ;;
10332: *)
10333: lt_prog_compiler_pic='+Z'
10334: ;;
10335: esac
10336: # Is there a better lt_prog_compiler_static that works with the bundled CC?
10337: lt_prog_compiler_static='${wl}-a ${wl}archive'
10338: ;;
10339:
10340: irix5* | irix6* | nonstopux*)
10341: lt_prog_compiler_wl='-Wl,'
10342: # PIC (with -KPIC) is the default.
10343: lt_prog_compiler_static='-non_shared'
10344: ;;
10345:
10346: linux* | k*bsd*-gnu | kopensolaris*-gnu)
10347: case $cc_basename in
10348: # old Intel for x86_64 which still supported -KPIC.
10349: ecc*)
10350: lt_prog_compiler_wl='-Wl,'
10351: lt_prog_compiler_pic='-KPIC'
10352: lt_prog_compiler_static='-static'
10353: ;;
10354: # icc used to be incompatible with GCC.
10355: # ICC 10 doesn't accept -KPIC any more.
10356: icc* | ifort*)
10357: lt_prog_compiler_wl='-Wl,'
10358: lt_prog_compiler_pic='-fPIC'
10359: lt_prog_compiler_static='-static'
10360: ;;
10361: # Lahey Fortran 8.1.
10362: lf95*)
10363: lt_prog_compiler_wl='-Wl,'
10364: lt_prog_compiler_pic='--shared'
10365: lt_prog_compiler_static='--static'
10366: ;;
10367: nagfor*)
10368: # NAG Fortran compiler
10369: lt_prog_compiler_wl='-Wl,-Wl,,'
10370: lt_prog_compiler_pic='-PIC'
10371: lt_prog_compiler_static='-Bstatic'
10372: ;;
10373: pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10374: # Portland Group compilers (*not* the Pentium gcc compiler,
10375: # which looks to be a dead project)
10376: lt_prog_compiler_wl='-Wl,'
10377: lt_prog_compiler_pic='-fpic'
10378: lt_prog_compiler_static='-Bstatic'
10379: ;;
10380: ccc*)
10381: lt_prog_compiler_wl='-Wl,'
10382: # All Alpha code is PIC.
10383: lt_prog_compiler_static='-non_shared'
10384: ;;
10385: xl* | bgxl* | bgf* | mpixl*)
10386: # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10387: lt_prog_compiler_wl='-Wl,'
10388: lt_prog_compiler_pic='-qpic'
10389: lt_prog_compiler_static='-qstaticlink'
10390: ;;
10391: *)
10392: case `$CC -V 2>&1 | sed 5q` in
1.1.1.2 misho 10393: *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
1.1 misho 10394: # Sun Fortran 8.3 passes all unrecognized flags to the linker
10395: lt_prog_compiler_pic='-KPIC'
10396: lt_prog_compiler_static='-Bstatic'
10397: lt_prog_compiler_wl=''
10398: ;;
1.1.1.2 misho 10399: *Sun\ F* | *Sun*Fortran*)
10400: lt_prog_compiler_pic='-KPIC'
10401: lt_prog_compiler_static='-Bstatic'
10402: lt_prog_compiler_wl='-Qoption ld '
10403: ;;
1.1 misho 10404: *Sun\ C*)
10405: # Sun C 5.9
10406: lt_prog_compiler_pic='-KPIC'
10407: lt_prog_compiler_static='-Bstatic'
10408: lt_prog_compiler_wl='-Wl,'
10409: ;;
1.1.1.2 misho 10410: *Intel*\ [CF]*Compiler*)
10411: lt_prog_compiler_wl='-Wl,'
10412: lt_prog_compiler_pic='-fPIC'
10413: lt_prog_compiler_static='-static'
10414: ;;
10415: *Portland\ Group*)
10416: lt_prog_compiler_wl='-Wl,'
10417: lt_prog_compiler_pic='-fpic'
10418: lt_prog_compiler_static='-Bstatic'
10419: ;;
1.1 misho 10420: esac
10421: ;;
10422: esac
10423: ;;
10424:
10425: newsos6)
10426: lt_prog_compiler_pic='-KPIC'
10427: lt_prog_compiler_static='-Bstatic'
10428: ;;
10429:
10430: *nto* | *qnx*)
10431: # QNX uses GNU C++, but need to define -shared option too, otherwise
10432: # it will coredump.
10433: lt_prog_compiler_pic='-fPIC -shared'
10434: ;;
10435:
10436: osf3* | osf4* | osf5*)
10437: lt_prog_compiler_wl='-Wl,'
10438: # All OSF/1 code is PIC.
10439: lt_prog_compiler_static='-non_shared'
10440: ;;
10441:
10442: rdos*)
10443: lt_prog_compiler_static='-non_shared'
10444: ;;
10445:
10446: solaris*)
10447: lt_prog_compiler_pic='-KPIC'
10448: lt_prog_compiler_static='-Bstatic'
10449: case $cc_basename in
10450: f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10451: lt_prog_compiler_wl='-Qoption ld ';;
10452: *)
10453: lt_prog_compiler_wl='-Wl,';;
10454: esac
10455: ;;
10456:
10457: sunos4*)
10458: lt_prog_compiler_wl='-Qoption ld '
10459: lt_prog_compiler_pic='-PIC'
10460: lt_prog_compiler_static='-Bstatic'
10461: ;;
10462:
10463: sysv4 | sysv4.2uw2* | sysv4.3*)
10464: lt_prog_compiler_wl='-Wl,'
10465: lt_prog_compiler_pic='-KPIC'
10466: lt_prog_compiler_static='-Bstatic'
10467: ;;
10468:
10469: sysv4*MP*)
10470: if test -d /usr/nec ;then
10471: lt_prog_compiler_pic='-Kconform_pic'
10472: lt_prog_compiler_static='-Bstatic'
10473: fi
10474: ;;
10475:
10476: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10477: lt_prog_compiler_wl='-Wl,'
10478: lt_prog_compiler_pic='-KPIC'
10479: lt_prog_compiler_static='-Bstatic'
10480: ;;
10481:
10482: unicos*)
10483: lt_prog_compiler_wl='-Wl,'
10484: lt_prog_compiler_can_build_shared=no
10485: ;;
10486:
10487: uts4*)
10488: lt_prog_compiler_pic='-pic'
10489: lt_prog_compiler_static='-Bstatic'
10490: ;;
10491:
10492: *)
10493: lt_prog_compiler_can_build_shared=no
10494: ;;
10495: esac
10496: fi
10497:
10498: case $host_os in
10499: # For platforms which do not support PIC, -DPIC is meaningless:
10500: *djgpp*)
10501: lt_prog_compiler_pic=
10502: ;;
10503: *)
10504: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10505: ;;
10506: esac
10507:
10508: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10509: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10510: if ${lt_cv_prog_compiler_pic+:} false; then :
10511: $as_echo_n "(cached) " >&6
10512: else
10513: lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10514: fi
10515: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10516: $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10517: lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10518:
10519: #
10520: # Check to make sure the PIC flag actually works.
10521: #
10522: if test -n "$lt_prog_compiler_pic"; then
10523: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10524: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10525: if ${lt_cv_prog_compiler_pic_works+:} false; then :
10526: $as_echo_n "(cached) " >&6
10527: else
10528: lt_cv_prog_compiler_pic_works=no
10529: ac_outfile=conftest.$ac_objext
10530: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10531: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10532: # Insert the option either (1) after the last *FLAGS variable, or
10533: # (2) before a word containing "conftest.", or (3) at the end.
10534: # Note that $ac_compile itself does not contain backslashes and begins
10535: # with a dollar sign (not a hyphen), so the echo should work correctly.
10536: # The option is referenced via a variable to avoid confusing sed.
10537: lt_compile=`echo "$ac_compile" | $SED \
10538: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10539: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10540: -e 's:$: $lt_compiler_flag:'`
10541: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10542: (eval "$lt_compile" 2>conftest.err)
10543: ac_status=$?
10544: cat conftest.err >&5
10545: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546: if (exit $ac_status) && test -s "$ac_outfile"; then
10547: # The compiler can only warn and ignore the option if not recognized
10548: # So say no if there are warnings other than the usual output.
10549: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10550: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10551: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10552: lt_cv_prog_compiler_pic_works=yes
10553: fi
10554: fi
10555: $RM conftest*
10556:
10557: fi
10558: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10559: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10560:
10561: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10562: case $lt_prog_compiler_pic in
10563: "" | " "*) ;;
10564: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10565: esac
10566: else
10567: lt_prog_compiler_pic=
10568: lt_prog_compiler_can_build_shared=no
10569: fi
10570:
10571: fi
10572:
10573:
10574:
10575:
10576:
10577:
10578:
10579:
10580:
10581:
10582:
10583: #
10584: # Check to make sure the static flag actually works.
10585: #
10586: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10587: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10588: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10589: if ${lt_cv_prog_compiler_static_works+:} false; then :
10590: $as_echo_n "(cached) " >&6
10591: else
10592: lt_cv_prog_compiler_static_works=no
10593: save_LDFLAGS="$LDFLAGS"
10594: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10595: echo "$lt_simple_link_test_code" > conftest.$ac_ext
10596: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10597: # The linker can only warn and ignore the option if not recognized
10598: # So say no if there are warnings
10599: if test -s conftest.err; then
10600: # Append any errors to the config.log.
10601: cat conftest.err 1>&5
10602: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10603: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10604: if diff conftest.exp conftest.er2 >/dev/null; then
10605: lt_cv_prog_compiler_static_works=yes
10606: fi
10607: else
10608: lt_cv_prog_compiler_static_works=yes
10609: fi
10610: fi
10611: $RM -r conftest*
10612: LDFLAGS="$save_LDFLAGS"
10613:
10614: fi
10615: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10616: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10617:
10618: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10619: :
10620: else
10621: lt_prog_compiler_static=
10622: fi
10623:
10624:
10625:
10626:
10627:
10628:
10629:
10630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10631: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10632: if ${lt_cv_prog_compiler_c_o+:} false; then :
10633: $as_echo_n "(cached) " >&6
10634: else
10635: lt_cv_prog_compiler_c_o=no
10636: $RM -r conftest 2>/dev/null
10637: mkdir conftest
10638: cd conftest
10639: mkdir out
10640: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10641:
10642: lt_compiler_flag="-o out/conftest2.$ac_objext"
10643: # Insert the option either (1) after the last *FLAGS variable, or
10644: # (2) before a word containing "conftest.", or (3) at the end.
10645: # Note that $ac_compile itself does not contain backslashes and begins
10646: # with a dollar sign (not a hyphen), so the echo should work correctly.
10647: lt_compile=`echo "$ac_compile" | $SED \
10648: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10649: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10650: -e 's:$: $lt_compiler_flag:'`
10651: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10652: (eval "$lt_compile" 2>out/conftest.err)
10653: ac_status=$?
10654: cat out/conftest.err >&5
10655: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10657: then
10658: # The compiler can only warn and ignore the option if not recognized
10659: # So say no if there are warnings
10660: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10661: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10662: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10663: lt_cv_prog_compiler_c_o=yes
10664: fi
10665: fi
10666: chmod u+w . 2>&5
10667: $RM conftest*
10668: # SGI C++ compiler will create directory out/ii_files/ for
10669: # template instantiation
10670: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10671: $RM out/* && rmdir out
10672: cd ..
10673: $RM -r conftest
10674: $RM conftest*
10675:
10676: fi
10677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10678: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10679:
10680:
10681:
10682:
10683:
10684:
10685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10686: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10687: if ${lt_cv_prog_compiler_c_o+:} false; then :
10688: $as_echo_n "(cached) " >&6
10689: else
10690: lt_cv_prog_compiler_c_o=no
10691: $RM -r conftest 2>/dev/null
10692: mkdir conftest
10693: cd conftest
10694: mkdir out
10695: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10696:
10697: lt_compiler_flag="-o out/conftest2.$ac_objext"
10698: # Insert the option either (1) after the last *FLAGS variable, or
10699: # (2) before a word containing "conftest.", or (3) at the end.
10700: # Note that $ac_compile itself does not contain backslashes and begins
10701: # with a dollar sign (not a hyphen), so the echo should work correctly.
10702: lt_compile=`echo "$ac_compile" | $SED \
10703: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10704: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10705: -e 's:$: $lt_compiler_flag:'`
10706: (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10707: (eval "$lt_compile" 2>out/conftest.err)
10708: ac_status=$?
10709: cat out/conftest.err >&5
10710: echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711: if (exit $ac_status) && test -s out/conftest2.$ac_objext
10712: then
10713: # The compiler can only warn and ignore the option if not recognized
10714: # So say no if there are warnings
10715: $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10716: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10717: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10718: lt_cv_prog_compiler_c_o=yes
10719: fi
10720: fi
10721: chmod u+w . 2>&5
10722: $RM conftest*
10723: # SGI C++ compiler will create directory out/ii_files/ for
10724: # template instantiation
10725: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10726: $RM out/* && rmdir out
10727: cd ..
10728: $RM -r conftest
10729: $RM conftest*
10730:
10731: fi
10732: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10733: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10734:
10735:
10736:
10737:
10738: hard_links="nottested"
10739: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10740: # do not overwrite the value of need_locks provided by the user
10741: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10742: $as_echo_n "checking if we can lock with hard links... " >&6; }
10743: hard_links=yes
10744: $RM conftest*
10745: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10746: touch conftest.a
10747: ln conftest.a conftest.b 2>&5 || hard_links=no
10748: ln conftest.a conftest.b 2>/dev/null && hard_links=no
10749: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10750: $as_echo "$hard_links" >&6; }
10751: if test "$hard_links" = no; then
10752: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10753: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10754: need_locks=warn
10755: fi
10756: else
10757: need_locks=no
10758: fi
10759:
10760:
10761:
10762:
10763:
10764:
10765: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10766: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10767:
10768: runpath_var=
10769: allow_undefined_flag=
10770: always_export_symbols=no
10771: archive_cmds=
10772: archive_expsym_cmds=
10773: compiler_needs_object=no
10774: enable_shared_with_static_runtimes=no
10775: export_dynamic_flag_spec=
10776: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10777: hardcode_automatic=no
10778: hardcode_direct=no
10779: hardcode_direct_absolute=no
10780: hardcode_libdir_flag_spec=
10781: hardcode_libdir_separator=
10782: hardcode_minus_L=no
10783: hardcode_shlibpath_var=unsupported
10784: inherit_rpath=no
10785: link_all_deplibs=unknown
10786: module_cmds=
10787: module_expsym_cmds=
10788: old_archive_from_new_cmds=
10789: old_archive_from_expsyms_cmds=
10790: thread_safe_flag_spec=
10791: whole_archive_flag_spec=
10792: # include_expsyms should be a list of space-separated symbols to be *always*
10793: # included in the symbol list
10794: include_expsyms=
10795: # exclude_expsyms can be an extended regexp of symbols to exclude
10796: # it will be wrapped by ` (' and `)$', so one must not match beginning or
10797: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10798: # as well as any symbol that contains `d'.
10799: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10800: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10801: # platforms (ab)use it in PIC code, but their linkers get confused if
10802: # the symbol is explicitly referenced. Since portable code cannot
10803: # rely on this symbol name, it's probably fine to never include it in
10804: # preloaded symbol tables.
10805: # Exclude shared library initialization/finalization symbols.
10806: extract_expsyms_cmds=
10807:
10808: case $host_os in
10809: cygwin* | mingw* | pw32* | cegcc*)
10810: # FIXME: the MSVC++ port hasn't been tested in a loooong time
10811: # When not using gcc, we currently assume that we are using
10812: # Microsoft Visual C++.
10813: if test "$GCC" != yes; then
10814: with_gnu_ld=no
10815: fi
10816: ;;
10817: interix*)
10818: # we just hope/assume this is gcc and not c89 (= MSVC++)
10819: with_gnu_ld=yes
10820: ;;
10821: openbsd*)
10822: with_gnu_ld=no
10823: ;;
10824: esac
10825:
10826: ld_shlibs=yes
10827:
10828: # On some targets, GNU ld is compatible enough with the native linker
10829: # that we're better off using the native interface for both.
10830: lt_use_gnu_ld_interface=no
10831: if test "$with_gnu_ld" = yes; then
10832: case $host_os in
10833: aix*)
10834: # The AIX port of GNU ld has always aspired to compatibility
10835: # with the native linker. However, as the warning in the GNU ld
10836: # block says, versions before 2.19.5* couldn't really create working
10837: # shared libraries, regardless of the interface used.
10838: case `$LD -v 2>&1` in
10839: *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10840: *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10841: *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10842: *)
10843: lt_use_gnu_ld_interface=yes
10844: ;;
10845: esac
10846: ;;
10847: *)
10848: lt_use_gnu_ld_interface=yes
10849: ;;
10850: esac
10851: fi
10852:
10853: if test "$lt_use_gnu_ld_interface" = yes; then
10854: # If archive_cmds runs LD, not CC, wlarc should be empty
10855: wlarc='${wl}'
10856:
10857: # Set some defaults for GNU ld with shared library support. These
10858: # are reset later if shared libraries are not supported. Putting them
10859: # here allows them to be overridden if necessary.
10860: runpath_var=LD_RUN_PATH
10861: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10862: export_dynamic_flag_spec='${wl}--export-dynamic'
10863: # ancient GNU ld didn't support --whole-archive et. al.
10864: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10865: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10866: else
10867: whole_archive_flag_spec=
10868: fi
10869: supports_anon_versioning=no
10870: case `$LD -v 2>&1` in
10871: *GNU\ gold*) supports_anon_versioning=yes ;;
10872: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10873: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10874: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10875: *\ 2.11.*) ;; # other 2.11 versions
10876: *) supports_anon_versioning=yes ;;
10877: esac
10878:
10879: # See if GNU ld supports shared libraries.
10880: case $host_os in
10881: aix[3-9]*)
10882: # On AIX/PPC, the GNU linker is very broken
10883: if test "$host_cpu" != ia64; then
10884: ld_shlibs=no
10885: cat <<_LT_EOF 1>&2
10886:
10887: *** Warning: the GNU linker, at least up to release 2.19, is reported
10888: *** to be unable to reliably create shared libraries on AIX.
10889: *** Therefore, libtool is disabling shared libraries support. If you
10890: *** really care for shared libraries, you may want to install binutils
10891: *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10892: *** You will then need to restart the configuration process.
10893:
10894: _LT_EOF
10895: fi
10896: ;;
10897:
10898: amigaos*)
10899: case $host_cpu in
10900: powerpc)
10901: # see comment about AmigaOS4 .so support
10902: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10903: archive_expsym_cmds=''
10904: ;;
10905: m68k)
10906: 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)'
10907: hardcode_libdir_flag_spec='-L$libdir'
10908: hardcode_minus_L=yes
10909: ;;
10910: esac
10911: ;;
10912:
10913: beos*)
10914: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10915: allow_undefined_flag=unsupported
10916: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10917: # support --undefined. This deserves some investigation. FIXME
10918: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10919: else
10920: ld_shlibs=no
10921: fi
10922: ;;
10923:
10924: cygwin* | mingw* | pw32* | cegcc*)
10925: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10926: # as there is no search path for DLLs.
10927: hardcode_libdir_flag_spec='-L$libdir'
10928: export_dynamic_flag_spec='${wl}--export-all-symbols'
10929: allow_undefined_flag=unsupported
10930: always_export_symbols=no
10931: enable_shared_with_static_runtimes=yes
10932: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10933: exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10934:
10935: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10936: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10937: # If the export-symbols file already is a .def file (1st line
10938: # is EXPORTS), use it as is; otherwise, prepend...
10939: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10940: cp $export_symbols $output_objdir/$soname.def;
10941: else
10942: echo EXPORTS > $output_objdir/$soname.def;
10943: cat $export_symbols >> $output_objdir/$soname.def;
10944: fi~
10945: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10946: else
10947: ld_shlibs=no
10948: fi
10949: ;;
10950:
10951: haiku*)
10952: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10953: link_all_deplibs=yes
10954: ;;
10955:
10956: interix[3-9]*)
10957: hardcode_direct=no
10958: hardcode_shlibpath_var=no
10959: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10960: export_dynamic_flag_spec='${wl}-E'
10961: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10962: # Instead, shared libraries are loaded at an image base (0x10000000 by
10963: # default) and relocated if they conflict, which is a slow very memory
10964: # consuming and fragmenting process. To avoid this, we pick a random,
10965: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10966: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10967: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10968: 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'
10969: ;;
10970:
10971: gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10972: tmp_diet=no
10973: if test "$host_os" = linux-dietlibc; then
10974: case $cc_basename in
10975: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10976: esac
10977: fi
10978: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10979: && test "$tmp_diet" = no
10980: then
10981: tmp_addflag=' $pic_flag'
10982: tmp_sharedflag='-shared'
10983: case $cc_basename,$host_cpu in
10984: pgcc*) # Portland Group C compiler
10985: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10986: tmp_addflag=' $pic_flag'
10987: ;;
10988: pgf77* | pgf90* | pgf95* | pgfortran*)
10989: # Portland Group f77 and f90 compilers
10990: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10991: tmp_addflag=' $pic_flag -Mnomain' ;;
10992: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10993: tmp_addflag=' -i_dynamic' ;;
10994: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10995: tmp_addflag=' -i_dynamic -nofor_main' ;;
10996: ifc* | ifort*) # Intel Fortran compiler
10997: tmp_addflag=' -nofor_main' ;;
10998: lf95*) # Lahey Fortran 8.1
10999: whole_archive_flag_spec=
11000: tmp_sharedflag='--shared' ;;
11001: xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11002: tmp_sharedflag='-qmkshrobj'
11003: tmp_addflag= ;;
11004: nvcc*) # Cuda Compiler Driver 2.2
11005: whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11006: compiler_needs_object=yes
11007: ;;
11008: esac
11009: case `$CC -V 2>&1 | sed 5q` in
11010: *Sun\ C*) # Sun C 5.9
11011: whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11012: compiler_needs_object=yes
11013: tmp_sharedflag='-G' ;;
11014: *Sun\ F*) # Sun Fortran 8.3
11015: tmp_sharedflag='-G' ;;
11016: esac
11017: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018:
11019: if test "x$supports_anon_versioning" = xyes; then
11020: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11021: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11022: echo "local: *; };" >> $output_objdir/$libname.ver~
11023: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11024: fi
11025:
11026: case $cc_basename in
11027: xlf* | bgf* | bgxlf* | mpixlf*)
11028: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11029: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
1.1.1.2 misho 11030: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
1.1 misho 11031: archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11032: if test "x$supports_anon_versioning" = xyes; then
11033: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11034: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11035: echo "local: *; };" >> $output_objdir/$libname.ver~
11036: $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11037: fi
11038: ;;
11039: esac
11040: else
11041: ld_shlibs=no
11042: fi
11043: ;;
11044:
11045: netbsd*)
11046: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11047: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11048: wlarc=
11049: else
11050: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11051: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11052: fi
11053: ;;
11054:
11055: solaris*)
11056: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11057: ld_shlibs=no
11058: cat <<_LT_EOF 1>&2
11059:
11060: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11061: *** create shared libraries on Solaris systems. Therefore, libtool
11062: *** is disabling shared libraries support. We urge you to upgrade GNU
11063: *** binutils to release 2.9.1 or newer. Another option is to modify
11064: *** your PATH or compiler configuration so that the native linker is
11065: *** used, and then restart.
11066:
11067: _LT_EOF
11068: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11069: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11070: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11071: else
11072: ld_shlibs=no
11073: fi
11074: ;;
11075:
11076: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11077: case `$LD -v 2>&1` in
11078: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11079: ld_shlibs=no
11080: cat <<_LT_EOF 1>&2
11081:
11082: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11083: *** reliably create shared libraries on SCO systems. Therefore, libtool
11084: *** is disabling shared libraries support. We urge you to upgrade GNU
11085: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11086: *** your PATH or compiler configuration so that the native linker is
11087: *** used, and then restart.
11088:
11089: _LT_EOF
11090: ;;
11091: *)
11092: # For security reasons, it is highly recommended that you always
11093: # use absolute paths for naming shared libraries, and exclude the
11094: # DT_RUNPATH tag from executables and libraries. But doing so
11095: # requires that you compile everything twice, which is a pain.
11096: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11097: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11098: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11099: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11100: else
11101: ld_shlibs=no
11102: fi
11103: ;;
11104: esac
11105: ;;
11106:
11107: sunos4*)
11108: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11109: wlarc=
11110: hardcode_direct=yes
11111: hardcode_shlibpath_var=no
11112: ;;
11113:
11114: *)
11115: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11116: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11117: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11118: else
11119: ld_shlibs=no
11120: fi
11121: ;;
11122: esac
11123:
11124: if test "$ld_shlibs" = no; then
11125: runpath_var=
11126: hardcode_libdir_flag_spec=
11127: export_dynamic_flag_spec=
11128: whole_archive_flag_spec=
11129: fi
11130: else
11131: # PORTME fill in a description of your system's linker (not GNU ld)
11132: case $host_os in
11133: aix3*)
11134: allow_undefined_flag=unsupported
11135: always_export_symbols=yes
11136: 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'
11137: # Note: this linker hardcodes the directories in LIBPATH if there
11138: # are no directories specified by -L.
11139: hardcode_minus_L=yes
11140: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11141: # Neither direct hardcoding nor static linking is supported with a
11142: # broken collect2.
11143: hardcode_direct=unsupported
11144: fi
11145: ;;
11146:
11147: aix[4-9]*)
11148: if test "$host_cpu" = ia64; then
11149: # On IA64, the linker does run time linking by default, so we don't
11150: # have to do anything special.
11151: aix_use_runtimelinking=no
11152: exp_sym_flag='-Bexport'
11153: no_entry_flag=""
11154: else
11155: # If we're using GNU nm, then we don't want the "-C" option.
11156: # -C means demangle to AIX nm, but means don't demangle with GNU nm
11157: # Also, AIX nm treats weak defined symbols like other global
11158: # defined symbols, whereas GNU nm marks them as "W".
11159: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11160: export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11161: else
11162: 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'
11163: fi
11164: aix_use_runtimelinking=no
11165:
11166: # Test if we are trying to use run time linking or normal
11167: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11168: # need to do runtime linking.
11169: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11170: for ld_flag in $LDFLAGS; do
11171: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11172: aix_use_runtimelinking=yes
11173: break
11174: fi
11175: done
11176: ;;
11177: esac
11178:
11179: exp_sym_flag='-bexport'
11180: no_entry_flag='-bnoentry'
11181: fi
11182:
11183: # When large executables or shared objects are built, AIX ld can
11184: # have problems creating the table of contents. If linking a library
11185: # or program results in "error TOC overflow" add -mminimal-toc to
11186: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11187: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11188:
11189: archive_cmds=''
11190: hardcode_direct=yes
11191: hardcode_direct_absolute=yes
11192: hardcode_libdir_separator=':'
11193: link_all_deplibs=yes
11194: file_list_spec='${wl}-f,'
11195:
11196: if test "$GCC" = yes; then
11197: case $host_os in aix4.[012]|aix4.[012].*)
11198: # We only want to do this on AIX 4.2 and lower, the check
11199: # below for broken collect2 doesn't work under 4.3+
11200: collect2name=`${CC} -print-prog-name=collect2`
11201: if test -f "$collect2name" &&
11202: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11203: then
11204: # We have reworked collect2
11205: :
11206: else
11207: # We have old collect2
11208: hardcode_direct=unsupported
11209: # It fails to find uninstalled libraries when the uninstalled
11210: # path is not listed in the libpath. Setting hardcode_minus_L
11211: # to unsupported forces relinking
11212: hardcode_minus_L=yes
11213: hardcode_libdir_flag_spec='-L$libdir'
11214: hardcode_libdir_separator=
11215: fi
11216: ;;
11217: esac
11218: shared_flag='-shared'
11219: if test "$aix_use_runtimelinking" = yes; then
11220: shared_flag="$shared_flag "'${wl}-G'
11221: fi
11222: else
11223: # not using gcc
11224: if test "$host_cpu" = ia64; then
11225: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11226: # chokes on -Wl,-G. The following line is correct:
11227: shared_flag='-G'
11228: else
11229: if test "$aix_use_runtimelinking" = yes; then
11230: shared_flag='${wl}-G'
11231: else
11232: shared_flag='${wl}-bM:SRE'
11233: fi
11234: fi
11235: fi
11236:
11237: export_dynamic_flag_spec='${wl}-bexpall'
11238: # It seems that -bexpall does not export symbols beginning with
11239: # underscore (_), so it is better to generate a list of symbols to export.
11240: always_export_symbols=yes
11241: if test "$aix_use_runtimelinking" = yes; then
11242: # Warning - without using the other runtime loading flags (-brtl),
11243: # -berok will link without error, but may produce a broken library.
11244: allow_undefined_flag='-berok'
11245: # Determine the default libpath from the value encoded in an
11246: # empty executable.
11247: if test "${lt_cv_aix_libpath+set}" = set; then
11248: aix_libpath=$lt_cv_aix_libpath
11249: else
11250: if ${lt_cv_aix_libpath_+:} false; then :
11251: $as_echo_n "(cached) " >&6
11252: else
11253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11254: /* end confdefs.h. */
11255:
11256: int
11257: main ()
11258: {
11259:
11260: ;
11261: return 0;
11262: }
11263: _ACEOF
11264: if ac_fn_c_try_link "$LINENO"; then :
11265:
11266: lt_aix_libpath_sed='
11267: /Import File Strings/,/^$/ {
11268: /^0/ {
11269: s/^0 *\([^ ]*\) *$/\1/
11270: p
11271: }
11272: }'
11273: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11274: # Check for a 64-bit object if we didn't find anything.
11275: if test -z "$lt_cv_aix_libpath_"; then
11276: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11277: fi
11278: fi
11279: rm -f core conftest.err conftest.$ac_objext \
11280: conftest$ac_exeext conftest.$ac_ext
11281: if test -z "$lt_cv_aix_libpath_"; then
11282: lt_cv_aix_libpath_="/usr/lib:/lib"
11283: fi
11284:
11285: fi
11286:
11287: aix_libpath=$lt_cv_aix_libpath_
11288: fi
11289:
11290: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11291: archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11292: else
11293: if test "$host_cpu" = ia64; then
11294: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11295: allow_undefined_flag="-z nodefs"
11296: 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"
11297: else
11298: # Determine the default libpath from the value encoded in an
11299: # empty executable.
11300: if test "${lt_cv_aix_libpath+set}" = set; then
11301: aix_libpath=$lt_cv_aix_libpath
11302: else
11303: if ${lt_cv_aix_libpath_+:} false; then :
11304: $as_echo_n "(cached) " >&6
11305: else
11306: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307: /* end confdefs.h. */
11308:
11309: int
11310: main ()
11311: {
11312:
11313: ;
11314: return 0;
11315: }
11316: _ACEOF
11317: if ac_fn_c_try_link "$LINENO"; then :
11318:
11319: lt_aix_libpath_sed='
11320: /Import File Strings/,/^$/ {
11321: /^0/ {
11322: s/^0 *\([^ ]*\) *$/\1/
11323: p
11324: }
11325: }'
11326: lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11327: # Check for a 64-bit object if we didn't find anything.
11328: if test -z "$lt_cv_aix_libpath_"; then
11329: lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11330: fi
11331: fi
11332: rm -f core conftest.err conftest.$ac_objext \
11333: conftest$ac_exeext conftest.$ac_ext
11334: if test -z "$lt_cv_aix_libpath_"; then
11335: lt_cv_aix_libpath_="/usr/lib:/lib"
11336: fi
11337:
11338: fi
11339:
11340: aix_libpath=$lt_cv_aix_libpath_
11341: fi
11342:
11343: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11344: # Warning - without using the other run time loading flags,
11345: # -berok will link without error, but may produce a broken library.
11346: no_undefined_flag=' ${wl}-bernotok'
11347: allow_undefined_flag=' ${wl}-berok'
11348: if test "$with_gnu_ld" = yes; then
11349: # We only use this code for GNU lds that support --whole-archive.
11350: whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11351: else
11352: # Exported symbols can be pulled into shared objects from archives
11353: whole_archive_flag_spec='$convenience'
11354: fi
11355: archive_cmds_need_lc=yes
11356: # This is similar to how AIX traditionally builds its shared libraries.
11357: 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'
11358: fi
11359: fi
11360: ;;
11361:
11362: amigaos*)
11363: case $host_cpu in
11364: powerpc)
11365: # see comment about AmigaOS4 .so support
11366: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11367: archive_expsym_cmds=''
11368: ;;
11369: m68k)
11370: 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)'
11371: hardcode_libdir_flag_spec='-L$libdir'
11372: hardcode_minus_L=yes
11373: ;;
11374: esac
11375: ;;
11376:
11377: bsdi[45]*)
11378: export_dynamic_flag_spec=-rdynamic
11379: ;;
11380:
11381: cygwin* | mingw* | pw32* | cegcc*)
11382: # When not using gcc, we currently assume that we are using
11383: # Microsoft Visual C++.
11384: # hardcode_libdir_flag_spec is actually meaningless, as there is
11385: # no search path for DLLs.
11386: case $cc_basename in
11387: cl*)
11388: # Native MSVC
11389: hardcode_libdir_flag_spec=' '
11390: allow_undefined_flag=unsupported
11391: always_export_symbols=yes
11392: file_list_spec='@'
11393: # Tell ltmain to make .lib files, not .a files.
11394: libext=lib
11395: # Tell ltmain to make .dll files, not .so files.
11396: shrext_cmds=".dll"
11397: # FIXME: Setting linknames here is a bad hack.
11398: archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
11399: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11400: sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
11401: else
11402: sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
11403: fi~
11404: $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11405: linknames='
11406: # The linker will not automatically build a static lib if we build a DLL.
11407: # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11408: enable_shared_with_static_runtimes=yes
1.1.1.2 misho 11409: exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
1.1 misho 11410: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11411: # Don't use ranlib
11412: old_postinstall_cmds='chmod 644 $oldlib'
11413: postlink_cmds='lt_outputfile="@OUTPUT@"~
11414: lt_tool_outputfile="@TOOL_OUTPUT@"~
11415: case $lt_outputfile in
11416: *.exe|*.EXE) ;;
11417: *)
11418: lt_outputfile="$lt_outputfile.exe"
11419: lt_tool_outputfile="$lt_tool_outputfile.exe"
11420: ;;
11421: esac~
11422: if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
11423: $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11424: $RM "$lt_outputfile.manifest";
11425: fi'
11426: ;;
11427: *)
11428: # Assume MSVC wrapper
11429: hardcode_libdir_flag_spec=' '
11430: allow_undefined_flag=unsupported
11431: # Tell ltmain to make .lib files, not .a files.
11432: libext=lib
11433: # Tell ltmain to make .dll files, not .so files.
11434: shrext_cmds=".dll"
11435: # FIXME: Setting linknames here is a bad hack.
11436: archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11437: # The linker will automatically build a .lib file if we build a DLL.
11438: old_archive_from_new_cmds='true'
11439: # FIXME: Should let the user specify the lib program.
11440: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11441: enable_shared_with_static_runtimes=yes
11442: ;;
11443: esac
11444: ;;
11445:
11446: darwin* | rhapsody*)
11447:
11448:
11449: archive_cmds_need_lc=no
11450: hardcode_direct=no
11451: hardcode_automatic=yes
11452: hardcode_shlibpath_var=unsupported
11453: if test "$lt_cv_ld_force_load" = "yes"; then
11454: whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1.1.1.2 misho 11455:
1.1 misho 11456: else
11457: whole_archive_flag_spec=''
11458: fi
11459: link_all_deplibs=yes
11460: allow_undefined_flag="$_lt_dar_allow_undefined"
11461: case $cc_basename in
11462: ifort*) _lt_dar_can_shared=yes ;;
11463: *) _lt_dar_can_shared=$GCC ;;
11464: esac
11465: if test "$_lt_dar_can_shared" = "yes"; then
11466: output_verbose_link_cmd=func_echo_all
11467: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11468: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11469: 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}"
11470: 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}"
11471:
11472: else
11473: ld_shlibs=no
11474: fi
11475:
11476: ;;
11477:
11478: dgux*)
11479: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11480: hardcode_libdir_flag_spec='-L$libdir'
11481: hardcode_shlibpath_var=no
11482: ;;
11483:
11484: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11485: # support. Future versions do this automatically, but an explicit c++rt0.o
11486: # does not break anything, and helps significantly (at the cost of a little
11487: # extra space).
11488: freebsd2.2*)
11489: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11490: hardcode_libdir_flag_spec='-R$libdir'
11491: hardcode_direct=yes
11492: hardcode_shlibpath_var=no
11493: ;;
11494:
11495: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
1.1.1.2 misho 11496: freebsd2.*)
1.1 misho 11497: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11498: hardcode_direct=yes
11499: hardcode_minus_L=yes
11500: hardcode_shlibpath_var=no
11501: ;;
11502:
11503: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11504: freebsd* | dragonfly*)
11505: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11506: hardcode_libdir_flag_spec='-R$libdir'
11507: hardcode_direct=yes
11508: hardcode_shlibpath_var=no
11509: ;;
11510:
11511: hpux9*)
11512: if test "$GCC" = yes; then
11513: archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11514: else
11515: 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'
11516: fi
11517: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11518: hardcode_libdir_separator=:
11519: hardcode_direct=yes
11520:
11521: # hardcode_minus_L: Not really in the search PATH,
11522: # but as the default location of the library.
11523: hardcode_minus_L=yes
11524: export_dynamic_flag_spec='${wl}-E'
11525: ;;
11526:
11527: hpux10*)
11528: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11529: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11530: else
11531: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11532: fi
11533: if test "$with_gnu_ld" = no; then
11534: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11535: hardcode_libdir_separator=:
11536: hardcode_direct=yes
11537: hardcode_direct_absolute=yes
11538: export_dynamic_flag_spec='${wl}-E'
11539: # hardcode_minus_L: Not really in the search PATH,
11540: # but as the default location of the library.
11541: hardcode_minus_L=yes
11542: fi
11543: ;;
11544:
11545: hpux11*)
11546: if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11547: case $host_cpu in
11548: hppa*64*)
11549: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11550: ;;
11551: ia64*)
11552: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11553: ;;
11554: *)
11555: archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11556: ;;
11557: esac
11558: else
11559: case $host_cpu in
11560: hppa*64*)
11561: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11562: ;;
11563: ia64*)
11564: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11565: ;;
11566: *)
11567:
11568: # Older versions of the 11.00 compiler do not understand -b yet
11569: # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11570: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11571: $as_echo_n "checking if $CC understands -b... " >&6; }
11572: if ${lt_cv_prog_compiler__b+:} false; then :
11573: $as_echo_n "(cached) " >&6
11574: else
11575: lt_cv_prog_compiler__b=no
11576: save_LDFLAGS="$LDFLAGS"
11577: LDFLAGS="$LDFLAGS -b"
11578: echo "$lt_simple_link_test_code" > conftest.$ac_ext
11579: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11580: # The linker can only warn and ignore the option if not recognized
11581: # So say no if there are warnings
11582: if test -s conftest.err; then
11583: # Append any errors to the config.log.
11584: cat conftest.err 1>&5
11585: $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11586: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11587: if diff conftest.exp conftest.er2 >/dev/null; then
11588: lt_cv_prog_compiler__b=yes
11589: fi
11590: else
11591: lt_cv_prog_compiler__b=yes
11592: fi
11593: fi
11594: $RM -r conftest*
11595: LDFLAGS="$save_LDFLAGS"
11596:
11597: fi
11598: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11599: $as_echo "$lt_cv_prog_compiler__b" >&6; }
11600:
11601: if test x"$lt_cv_prog_compiler__b" = xyes; then
11602: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11603: else
11604: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11605: fi
11606:
11607: ;;
11608: esac
11609: fi
11610: if test "$with_gnu_ld" = no; then
11611: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11612: hardcode_libdir_separator=:
11613:
11614: case $host_cpu in
11615: hppa*64*|ia64*)
11616: hardcode_direct=no
11617: hardcode_shlibpath_var=no
11618: ;;
11619: *)
11620: hardcode_direct=yes
11621: hardcode_direct_absolute=yes
11622: export_dynamic_flag_spec='${wl}-E'
11623:
11624: # hardcode_minus_L: Not really in the search PATH,
11625: # but as the default location of the library.
11626: hardcode_minus_L=yes
11627: ;;
11628: esac
11629: fi
11630: ;;
11631:
11632: irix5* | irix6* | nonstopux*)
11633: if test "$GCC" = yes; then
11634: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11635: # Try to use the -exported_symbol ld option, if it does not
11636: # work, assume that -exports_file does not work either and
11637: # implicitly export all symbols.
11638: # This should be the same for all languages, so no per-tag cache variable.
11639: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11640: $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11641: if ${lt_cv_irix_exported_symbol+:} false; then :
11642: $as_echo_n "(cached) " >&6
11643: else
11644: save_LDFLAGS="$LDFLAGS"
11645: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11646: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647: /* end confdefs.h. */
11648: int foo (void) { return 0; }
11649: _ACEOF
11650: if ac_fn_c_try_link "$LINENO"; then :
11651: lt_cv_irix_exported_symbol=yes
11652: else
11653: lt_cv_irix_exported_symbol=no
11654: fi
11655: rm -f core conftest.err conftest.$ac_objext \
11656: conftest$ac_exeext conftest.$ac_ext
11657: LDFLAGS="$save_LDFLAGS"
11658: fi
11659: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11660: $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11661: if test "$lt_cv_irix_exported_symbol" = yes; then
11662: archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11663: fi
11664: else
11665: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11666: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11667: fi
11668: archive_cmds_need_lc='no'
11669: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11670: hardcode_libdir_separator=:
11671: inherit_rpath=yes
11672: link_all_deplibs=yes
11673: ;;
11674:
11675: netbsd*)
11676: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11677: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11678: else
11679: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11680: fi
11681: hardcode_libdir_flag_spec='-R$libdir'
11682: hardcode_direct=yes
11683: hardcode_shlibpath_var=no
11684: ;;
11685:
11686: newsos6)
11687: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11688: hardcode_direct=yes
11689: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11690: hardcode_libdir_separator=:
11691: hardcode_shlibpath_var=no
11692: ;;
11693:
11694: *nto* | *qnx*)
11695: ;;
11696:
11697: openbsd*)
11698: if test -f /usr/libexec/ld.so; then
11699: hardcode_direct=yes
11700: hardcode_shlibpath_var=no
11701: hardcode_direct_absolute=yes
11702: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11704: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11705: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11706: export_dynamic_flag_spec='${wl}-E'
11707: else
11708: case $host_os in
11709: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11710: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11711: hardcode_libdir_flag_spec='-R$libdir'
11712: ;;
11713: *)
11714: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11715: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11716: ;;
11717: esac
11718: fi
11719: else
11720: ld_shlibs=no
11721: fi
11722: ;;
11723:
11724: os2*)
11725: hardcode_libdir_flag_spec='-L$libdir'
11726: hardcode_minus_L=yes
11727: allow_undefined_flag=unsupported
11728: 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'
11729: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11730: ;;
11731:
11732: osf3*)
11733: if test "$GCC" = yes; then
11734: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11735: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11736: else
11737: allow_undefined_flag=' -expect_unresolved \*'
11738: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11739: fi
11740: archive_cmds_need_lc='no'
11741: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11742: hardcode_libdir_separator=:
11743: ;;
11744:
11745: osf4* | osf5*) # as osf3* with the addition of -msym flag
11746: if test "$GCC" = yes; then
11747: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11748: archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11749: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11750: else
11751: allow_undefined_flag=' -expect_unresolved \*'
11752: archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11753: archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11754: $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11755:
11756: # Both c and cxx compiler support -rpath directly
11757: hardcode_libdir_flag_spec='-rpath $libdir'
11758: fi
11759: archive_cmds_need_lc='no'
11760: hardcode_libdir_separator=:
11761: ;;
11762:
11763: solaris*)
11764: no_undefined_flag=' -z defs'
11765: if test "$GCC" = yes; then
11766: wlarc='${wl}'
11767: archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11768: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11769: $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11770: else
11771: case `$CC -V 2>&1` in
11772: *"Compilers 5.0"*)
11773: wlarc=''
11774: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11775: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11776: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11777: ;;
11778: *)
11779: wlarc='${wl}'
11780: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11781: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11782: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11783: ;;
11784: esac
11785: fi
11786: hardcode_libdir_flag_spec='-R$libdir'
11787: hardcode_shlibpath_var=no
11788: case $host_os in
11789: solaris2.[0-5] | solaris2.[0-5].*) ;;
11790: *)
11791: # The compiler driver will combine and reorder linker options,
11792: # but understands `-z linker_flag'. GCC discards it without `$wl',
11793: # but is careful enough not to reorder.
11794: # Supported since Solaris 2.6 (maybe 2.5.1?)
11795: if test "$GCC" = yes; then
11796: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11797: else
11798: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11799: fi
11800: ;;
11801: esac
11802: link_all_deplibs=yes
11803: ;;
11804:
11805: sunos4*)
11806: if test "x$host_vendor" = xsequent; then
11807: # Use $CC to link under sequent, because it throws in some extra .o
11808: # files that make .init and .fini sections work.
11809: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11810: else
11811: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11812: fi
11813: hardcode_libdir_flag_spec='-L$libdir'
11814: hardcode_direct=yes
11815: hardcode_minus_L=yes
11816: hardcode_shlibpath_var=no
11817: ;;
11818:
11819: sysv4)
11820: case $host_vendor in
11821: sni)
11822: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11823: hardcode_direct=yes # is this really true???
11824: ;;
11825: siemens)
11826: ## LD is ld it makes a PLAMLIB
11827: ## CC just makes a GrossModule.
11828: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11829: reload_cmds='$CC -r -o $output$reload_objs'
11830: hardcode_direct=no
11831: ;;
11832: motorola)
11833: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11834: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11835: ;;
11836: esac
11837: runpath_var='LD_RUN_PATH'
11838: hardcode_shlibpath_var=no
11839: ;;
11840:
11841: sysv4.3*)
11842: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11843: hardcode_shlibpath_var=no
11844: export_dynamic_flag_spec='-Bexport'
11845: ;;
11846:
11847: sysv4*MP*)
11848: if test -d /usr/nec; then
11849: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11850: hardcode_shlibpath_var=no
11851: runpath_var=LD_RUN_PATH
11852: hardcode_runpath_var=yes
11853: ld_shlibs=yes
11854: fi
11855: ;;
11856:
11857: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11858: no_undefined_flag='${wl}-z,text'
11859: archive_cmds_need_lc=no
11860: hardcode_shlibpath_var=no
11861: runpath_var='LD_RUN_PATH'
11862:
11863: if test "$GCC" = yes; then
11864: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11866: else
11867: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11868: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11869: fi
11870: ;;
11871:
11872: sysv5* | sco3.2v5* | sco5v6*)
11873: # Note: We can NOT use -z defs as we might desire, because we do not
11874: # link with -lc, and that would cause any symbols used from libc to
11875: # always be unresolved, which means just about no library would
11876: # ever link correctly. If we're not using GNU ld we use -z text
11877: # though, which does catch some bad symbols but isn't as heavy-handed
11878: # as -z defs.
11879: no_undefined_flag='${wl}-z,text'
11880: allow_undefined_flag='${wl}-z,nodefs'
11881: archive_cmds_need_lc=no
11882: hardcode_shlibpath_var=no
11883: hardcode_libdir_flag_spec='${wl}-R,$libdir'
11884: hardcode_libdir_separator=':'
11885: link_all_deplibs=yes
11886: export_dynamic_flag_spec='${wl}-Bexport'
11887: runpath_var='LD_RUN_PATH'
11888:
11889: if test "$GCC" = yes; then
11890: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11891: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11892: else
11893: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11894: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11895: fi
11896: ;;
11897:
11898: uts4*)
11899: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900: hardcode_libdir_flag_spec='-L$libdir'
11901: hardcode_shlibpath_var=no
11902: ;;
11903:
11904: *)
11905: ld_shlibs=no
11906: ;;
11907: esac
11908:
11909: if test x$host_vendor = xsni; then
11910: case $host in
11911: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11912: export_dynamic_flag_spec='${wl}-Blargedynsym'
11913: ;;
11914: esac
11915: fi
11916: fi
11917:
11918: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11919: $as_echo "$ld_shlibs" >&6; }
11920: test "$ld_shlibs" = no && can_build_shared=no
11921:
11922: with_gnu_ld=$with_gnu_ld
11923:
11924:
11925:
11926:
11927:
11928:
11929:
11930:
11931:
11932:
11933:
11934:
11935:
11936:
11937:
11938: #
11939: # Do we need to explicitly link libc?
11940: #
11941: case "x$archive_cmds_need_lc" in
11942: x|xyes)
11943: # Assume -lc should be added
11944: archive_cmds_need_lc=yes
11945:
11946: if test "$enable_shared" = yes && test "$GCC" = yes; then
11947: case $archive_cmds in
11948: *'~'*)
11949: # FIXME: we may have to deal with multi-command sequences.
11950: ;;
11951: '$CC '*)
11952: # Test whether the compiler implicitly links with -lc since on some
11953: # systems, -lgcc has to come before -lc. If gcc already passes -lc
11954: # to ld, don't add -lc before -lgcc.
11955: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11956: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11957: if ${lt_cv_archive_cmds_need_lc+:} false; then :
11958: $as_echo_n "(cached) " >&6
11959: else
11960: $RM conftest*
11961: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11962:
11963: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11964: (eval $ac_compile) 2>&5
11965: ac_status=$?
11966: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11967: test $ac_status = 0; } 2>conftest.err; then
11968: soname=conftest
11969: lib=conftest
11970: libobjs=conftest.$ac_objext
11971: deplibs=
11972: wl=$lt_prog_compiler_wl
11973: pic_flag=$lt_prog_compiler_pic
11974: compiler_flags=-v
11975: linker_flags=-v
11976: verstring=
11977: output_objdir=.
11978: libname=conftest
11979: lt_save_allow_undefined_flag=$allow_undefined_flag
11980: allow_undefined_flag=
11981: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11982: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11983: ac_status=$?
11984: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11985: test $ac_status = 0; }
11986: then
11987: lt_cv_archive_cmds_need_lc=no
11988: else
11989: lt_cv_archive_cmds_need_lc=yes
11990: fi
11991: allow_undefined_flag=$lt_save_allow_undefined_flag
11992: else
11993: cat conftest.err 1>&5
11994: fi
11995: $RM conftest*
11996:
11997: fi
11998: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11999: $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12000: archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12001: ;;
12002: esac
12003: fi
12004: ;;
12005: esac
12006:
12007:
12008:
12009:
12010:
12011:
12012:
12013:
12014:
12015:
12016:
12017:
12018:
12019:
12020:
12021:
12022:
12023:
12024:
12025:
12026:
12027:
12028:
12029:
12030:
12031:
12032:
12033:
12034:
12035:
12036:
12037:
12038:
12039:
12040:
12041:
12042:
12043:
12044:
12045:
12046:
12047:
12048:
12049:
12050:
12051:
12052:
12053:
12054:
12055:
12056:
12057:
12058:
12059:
12060:
12061:
12062:
12063:
12064:
12065:
12066:
12067:
12068:
12069:
12070:
12071:
12072:
12073:
12074:
12075:
12076:
12077:
12078:
12079:
12080:
12081:
12082:
12083:
12084:
12085:
12086:
12087:
12088:
12089:
12090:
12091:
12092:
12093:
12094:
12095:
12096:
12097:
12098:
12099:
12100:
12101:
12102:
12103:
12104:
12105:
12106:
12107:
12108:
12109:
12110:
12111:
12112:
12113:
12114:
12115:
12116:
12117:
12118:
12119:
12120:
12121:
12122:
12123:
12124:
12125:
12126:
12127:
12128:
12129:
12130:
12131:
12132:
12133:
12134:
12135:
12136:
12137:
12138:
12139:
12140:
12141:
12142:
12143:
12144:
12145:
12146:
12147:
12148:
12149:
12150:
12151:
12152:
12153:
12154:
12155:
12156:
12157:
12158: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12159: $as_echo_n "checking dynamic linker characteristics... " >&6; }
12160:
12161: if test "$GCC" = yes; then
12162: case $host_os in
12163: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12164: *) lt_awk_arg="/^libraries:/" ;;
12165: esac
12166: case $host_os in
12167: mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12168: *) lt_sed_strip_eq="s,=/,/,g" ;;
12169: esac
12170: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12171: case $lt_search_path_spec in
12172: *\;*)
12173: # if the path contains ";" then we assume it to be the separator
12174: # otherwise default to the standard path separator (i.e. ":") - it is
12175: # assumed that no part of a normal pathname contains ";" but that should
12176: # okay in the real world where ";" in dirpaths is itself problematic.
12177: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12178: ;;
12179: *)
12180: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12181: ;;
12182: esac
12183: # Ok, now we have the path, separated by spaces, we can step through it
12184: # and add multilib dir if necessary.
12185: lt_tmp_lt_search_path_spec=
12186: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12187: for lt_sys_path in $lt_search_path_spec; do
12188: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12189: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12190: else
12191: test -d "$lt_sys_path" && \
12192: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12193: fi
12194: done
12195: lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12196: BEGIN {RS=" "; FS="/|\n";} {
12197: lt_foo="";
12198: lt_count=0;
12199: for (lt_i = NF; lt_i > 0; lt_i--) {
12200: if ($lt_i != "" && $lt_i != ".") {
12201: if ($lt_i == "..") {
12202: lt_count++;
12203: } else {
12204: if (lt_count == 0) {
12205: lt_foo="/" $lt_i lt_foo;
12206: } else {
12207: lt_count--;
12208: }
12209: }
12210: }
12211: }
12212: if (lt_foo != "") { lt_freq[lt_foo]++; }
12213: if (lt_freq[lt_foo] == 1) { print lt_foo; }
12214: }'`
12215: # AWK program above erroneously prepends '/' to C:/dos/paths
12216: # for these hosts.
12217: case $host_os in
12218: mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12219: $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12220: esac
12221: sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12222: else
12223: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12224: fi
12225: library_names_spec=
12226: libname_spec='lib$name'
12227: soname_spec=
12228: shrext_cmds=".so"
12229: postinstall_cmds=
12230: postuninstall_cmds=
12231: finish_cmds=
12232: finish_eval=
12233: shlibpath_var=
12234: shlibpath_overrides_runpath=unknown
12235: version_type=none
12236: dynamic_linker="$host_os ld.so"
12237: sys_lib_dlsearch_path_spec="/lib /usr/lib"
12238: need_lib_prefix=unknown
12239: hardcode_into_libs=no
12240:
12241: # when you set need_version to no, make sure it does not cause -set_version
12242: # flags to be left without arguments
12243: need_version=unknown
12244:
12245: case $host_os in
12246: aix3*)
1.1.1.2 misho 12247: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12248: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12249: shlibpath_var=LIBPATH
12250:
12251: # AIX 3 has no versioning support, so we append a major version to the name.
12252: soname_spec='${libname}${release}${shared_ext}$major'
12253: ;;
12254:
12255: aix[4-9]*)
1.1.1.2 misho 12256: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12257: need_lib_prefix=no
12258: need_version=no
12259: hardcode_into_libs=yes
12260: if test "$host_cpu" = ia64; then
12261: # AIX 5 supports IA64
12262: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12263: shlibpath_var=LD_LIBRARY_PATH
12264: else
12265: # With GCC up to 2.95.x, collect2 would create an import file
12266: # for dependence libraries. The import file would start with
12267: # the line `#! .'. This would cause the generated library to
12268: # depend on `.', always an invalid library. This was fixed in
12269: # development snapshots of GCC prior to 3.0.
12270: case $host_os in
12271: aix4 | aix4.[01] | aix4.[01].*)
12272: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12273: echo ' yes '
12274: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12275: :
12276: else
12277: can_build_shared=no
12278: fi
12279: ;;
12280: esac
12281: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12282: # soname into executable. Probably we can add versioning support to
12283: # collect2, so additional links can be useful in future.
12284: if test "$aix_use_runtimelinking" = yes; then
12285: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12286: # instead of lib<name>.a to let people know that these are not
12287: # typical AIX shared libraries.
12288: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12289: else
12290: # We preserve .a as extension for shared libraries through AIX4.2
12291: # and later when we are not doing run time linking.
12292: library_names_spec='${libname}${release}.a $libname.a'
12293: soname_spec='${libname}${release}${shared_ext}$major'
12294: fi
12295: shlibpath_var=LIBPATH
12296: fi
12297: ;;
12298:
12299: amigaos*)
12300: case $host_cpu in
12301: powerpc)
12302: # Since July 2007 AmigaOS4 officially supports .so libraries.
12303: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12304: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305: ;;
12306: m68k)
12307: library_names_spec='$libname.ixlibrary $libname.a'
12308: # Create ${libname}_ixlibrary.a entries in /sys/libs.
12309: finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
12310: ;;
12311: esac
12312: ;;
12313:
12314: beos*)
12315: library_names_spec='${libname}${shared_ext}'
12316: dynamic_linker="$host_os ld.so"
12317: shlibpath_var=LIBRARY_PATH
12318: ;;
12319:
12320: bsdi[45]*)
1.1.1.2 misho 12321: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12322: need_version=no
12323: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324: soname_spec='${libname}${release}${shared_ext}$major'
12325: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12326: shlibpath_var=LD_LIBRARY_PATH
12327: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12328: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12329: # the default ld.so.conf also contains /usr/contrib/lib and
12330: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12331: # libtool to hard-code these into programs
12332: ;;
12333:
12334: cygwin* | mingw* | pw32* | cegcc*)
12335: version_type=windows
12336: shrext_cmds=".dll"
12337: need_version=no
12338: need_lib_prefix=no
12339:
12340: case $GCC,$cc_basename in
12341: yes,*)
12342: # gcc
12343: library_names_spec='$libname.dll.a'
12344: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12345: postinstall_cmds='base_file=`basename \${file}`~
12346: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12347: dldir=$destdir/`dirname \$dlpath`~
12348: test -d \$dldir || mkdir -p \$dldir~
12349: $install_prog $dir/$dlname \$dldir/$dlname~
12350: chmod a+x \$dldir/$dlname~
12351: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12352: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12353: fi'
12354: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12355: dlpath=$dir/\$dldll~
12356: $RM \$dlpath'
12357: shlibpath_overrides_runpath=yes
12358:
12359: case $host_os in
12360: cygwin*)
12361: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12362: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12363:
12364: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12365: ;;
12366: mingw* | cegcc*)
12367: # MinGW DLLs use traditional 'lib' prefix
12368: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12369: ;;
12370: pw32*)
12371: # pw32 DLLs use 'pw' prefix rather than 'lib'
12372: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12373: ;;
12374: esac
12375: dynamic_linker='Win32 ld.exe'
12376: ;;
12377:
12378: *,cl*)
12379: # Native MSVC
12380: libname_spec='$name'
12381: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12382: library_names_spec='${libname}.dll.lib'
12383:
12384: case $build_os in
12385: mingw*)
12386: sys_lib_search_path_spec=
12387: lt_save_ifs=$IFS
12388: IFS=';'
12389: for lt_path in $LIB
12390: do
12391: IFS=$lt_save_ifs
12392: # Let DOS variable expansion print the short 8.3 style file name.
12393: lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12394: sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12395: done
12396: IFS=$lt_save_ifs
12397: # Convert to MSYS style.
12398: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12399: ;;
12400: cygwin*)
12401: # Convert to unix form, then to dos form, then back to unix form
12402: # but this time dos style (no spaces!) so that the unix form looks
12403: # like /cygdrive/c/PROGRA~1:/cygdr...
12404: sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12405: sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12406: sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12407: ;;
12408: *)
12409: sys_lib_search_path_spec="$LIB"
12410: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12411: # It is most probably a Windows format PATH.
12412: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12413: else
12414: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12415: fi
12416: # FIXME: find the short name or the path components, as spaces are
12417: # common. (e.g. "Program Files" -> "PROGRA~1")
12418: ;;
12419: esac
12420:
12421: # DLL is installed to $(libdir)/../bin by postinstall_cmds
12422: postinstall_cmds='base_file=`basename \${file}`~
12423: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12424: dldir=$destdir/`dirname \$dlpath`~
12425: test -d \$dldir || mkdir -p \$dldir~
12426: $install_prog $dir/$dlname \$dldir/$dlname'
12427: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12428: dlpath=$dir/\$dldll~
12429: $RM \$dlpath'
12430: shlibpath_overrides_runpath=yes
12431: dynamic_linker='Win32 link.exe'
12432: ;;
12433:
12434: *)
12435: # Assume MSVC wrapper
12436: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12437: dynamic_linker='Win32 ld.exe'
12438: ;;
12439: esac
12440: # FIXME: first we should search . and the directory the executable is in
12441: shlibpath_var=PATH
12442: ;;
12443:
12444: darwin* | rhapsody*)
12445: dynamic_linker="$host_os dyld"
12446: version_type=darwin
12447: need_lib_prefix=no
12448: need_version=no
12449: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12450: soname_spec='${libname}${release}${major}$shared_ext'
12451: shlibpath_overrides_runpath=yes
12452: shlibpath_var=DYLD_LIBRARY_PATH
12453: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12454:
12455: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12456: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12457: ;;
12458:
12459: dgux*)
1.1.1.2 misho 12460: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12461: need_lib_prefix=no
12462: need_version=no
12463: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12464: soname_spec='${libname}${release}${shared_ext}$major'
12465: shlibpath_var=LD_LIBRARY_PATH
12466: ;;
12467:
12468: freebsd* | dragonfly*)
12469: # DragonFly does not have aout. When/if they implement a new
12470: # versioning mechanism, adjust this.
12471: if test -x /usr/bin/objformat; then
12472: objformat=`/usr/bin/objformat`
12473: else
12474: case $host_os in
1.1.1.2 misho 12475: freebsd[23].*) objformat=aout ;;
1.1 misho 12476: *) objformat=elf ;;
12477: esac
12478: fi
12479: version_type=freebsd-$objformat
12480: case $version_type in
12481: freebsd-elf*)
12482: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12483: need_version=no
12484: need_lib_prefix=no
12485: ;;
12486: freebsd-*)
12487: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12488: need_version=yes
12489: ;;
12490: esac
12491: shlibpath_var=LD_LIBRARY_PATH
12492: case $host_os in
1.1.1.2 misho 12493: freebsd2.*)
1.1 misho 12494: shlibpath_overrides_runpath=yes
12495: ;;
12496: freebsd3.[01]* | freebsdelf3.[01]*)
12497: shlibpath_overrides_runpath=yes
12498: hardcode_into_libs=yes
12499: ;;
12500: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12501: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12502: shlibpath_overrides_runpath=no
12503: hardcode_into_libs=yes
12504: ;;
12505: *) # from 4.6 on, and DragonFly
12506: shlibpath_overrides_runpath=yes
12507: hardcode_into_libs=yes
12508: ;;
12509: esac
12510: ;;
12511:
12512: gnu*)
1.1.1.2 misho 12513: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12514: need_lib_prefix=no
12515: need_version=no
12516: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12517: soname_spec='${libname}${release}${shared_ext}$major'
12518: shlibpath_var=LD_LIBRARY_PATH
1.1.1.2 misho 12519: shlibpath_overrides_runpath=no
1.1 misho 12520: hardcode_into_libs=yes
12521: ;;
12522:
12523: haiku*)
1.1.1.2 misho 12524: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12525: need_lib_prefix=no
12526: need_version=no
12527: dynamic_linker="$host_os runtime_loader"
12528: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12529: soname_spec='${libname}${release}${shared_ext}$major'
12530: shlibpath_var=LIBRARY_PATH
12531: shlibpath_overrides_runpath=yes
12532: sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12533: hardcode_into_libs=yes
12534: ;;
12535:
12536: hpux9* | hpux10* | hpux11*)
12537: # Give a soname corresponding to the major version so that dld.sl refuses to
12538: # link against other versions.
12539: version_type=sunos
12540: need_lib_prefix=no
12541: need_version=no
12542: case $host_cpu in
12543: ia64*)
12544: shrext_cmds='.so'
12545: hardcode_into_libs=yes
12546: dynamic_linker="$host_os dld.so"
12547: shlibpath_var=LD_LIBRARY_PATH
12548: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12549: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12550: soname_spec='${libname}${release}${shared_ext}$major'
12551: if test "X$HPUX_IA64_MODE" = X32; then
12552: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12553: else
12554: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12555: fi
12556: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12557: ;;
12558: hppa*64*)
12559: shrext_cmds='.sl'
12560: hardcode_into_libs=yes
12561: dynamic_linker="$host_os dld.sl"
12562: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12563: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12564: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12565: soname_spec='${libname}${release}${shared_ext}$major'
12566: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12567: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12568: ;;
12569: *)
12570: shrext_cmds='.sl'
12571: dynamic_linker="$host_os dld.sl"
12572: shlibpath_var=SHLIB_PATH
12573: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12574: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12575: soname_spec='${libname}${release}${shared_ext}$major'
12576: ;;
12577: esac
12578: # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12579: postinstall_cmds='chmod 555 $lib'
12580: # or fails outright, so override atomically:
12581: install_override_mode=555
12582: ;;
12583:
12584: interix[3-9]*)
1.1.1.2 misho 12585: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12586: need_lib_prefix=no
12587: need_version=no
12588: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12589: soname_spec='${libname}${release}${shared_ext}$major'
12590: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12591: shlibpath_var=LD_LIBRARY_PATH
12592: shlibpath_overrides_runpath=no
12593: hardcode_into_libs=yes
12594: ;;
12595:
12596: irix5* | irix6* | nonstopux*)
12597: case $host_os in
12598: nonstopux*) version_type=nonstopux ;;
12599: *)
12600: if test "$lt_cv_prog_gnu_ld" = yes; then
1.1.1.2 misho 12601: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12602: else
12603: version_type=irix
12604: fi ;;
12605: esac
12606: need_lib_prefix=no
12607: need_version=no
12608: soname_spec='${libname}${release}${shared_ext}$major'
12609: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12610: case $host_os in
12611: irix5* | nonstopux*)
12612: libsuff= shlibsuff=
12613: ;;
12614: *)
12615: case $LD in # libtool.m4 will add one of these switches to LD
12616: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12617: libsuff= shlibsuff= libmagic=32-bit;;
12618: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12619: libsuff=32 shlibsuff=N32 libmagic=N32;;
12620: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12621: libsuff=64 shlibsuff=64 libmagic=64-bit;;
12622: *) libsuff= shlibsuff= libmagic=never-match;;
12623: esac
12624: ;;
12625: esac
12626: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12627: shlibpath_overrides_runpath=no
12628: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12629: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12630: hardcode_into_libs=yes
12631: ;;
12632:
12633: # No shared lib support for Linux oldld, aout, or coff.
12634: linux*oldld* | linux*aout* | linux*coff*)
12635: dynamic_linker=no
12636: ;;
12637:
1.1.1.2 misho 12638: # This must be glibc/ELF.
1.1 misho 12639: linux* | k*bsd*-gnu | kopensolaris*-gnu)
1.1.1.2 misho 12640: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12641: need_lib_prefix=no
12642: need_version=no
12643: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12644: soname_spec='${libname}${release}${shared_ext}$major'
12645: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12646: shlibpath_var=LD_LIBRARY_PATH
12647: shlibpath_overrides_runpath=no
12648:
12649: # Some binutils ld are patched to set DT_RUNPATH
12650: if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12651: $as_echo_n "(cached) " >&6
12652: else
12653: lt_cv_shlibpath_overrides_runpath=no
12654: save_LDFLAGS=$LDFLAGS
12655: save_libdir=$libdir
12656: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12657: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12658: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659: /* end confdefs.h. */
12660:
12661: int
12662: main ()
12663: {
12664:
12665: ;
12666: return 0;
12667: }
12668: _ACEOF
12669: if ac_fn_c_try_link "$LINENO"; then :
12670: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12671: lt_cv_shlibpath_overrides_runpath=yes
12672: fi
12673: fi
12674: rm -f core conftest.err conftest.$ac_objext \
12675: conftest$ac_exeext conftest.$ac_ext
12676: LDFLAGS=$save_LDFLAGS
12677: libdir=$save_libdir
12678:
12679: fi
12680:
12681: shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12682:
12683: # This implies no fast_install, which is unacceptable.
12684: # Some rework will be needed to allow for fast_install
12685: # before this can be enabled.
12686: hardcode_into_libs=yes
12687:
12688: # Append ld.so.conf contents to the search path
12689: if test -f /etc/ld.so.conf; then
12690: 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;s/"//g;/^$/d' | tr '\n' ' '`
12691: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12692: fi
12693:
12694: # We used to test for /lib/ld.so.1 and disable shared libraries on
12695: # powerpc, because MkLinux only supported shared libraries with the
12696: # GNU dynamic linker. Since this was broken with cross compilers,
12697: # most powerpc-linux boxes support dynamic linking these days and
12698: # people can always --disable-shared, the test was removed, and we
12699: # assume the GNU/Linux dynamic linker is in use.
12700: dynamic_linker='GNU/Linux ld.so'
12701: ;;
12702:
12703: netbsd*)
12704: version_type=sunos
12705: need_lib_prefix=no
12706: need_version=no
12707: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12708: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12709: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12710: dynamic_linker='NetBSD (a.out) ld.so'
12711: else
12712: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12713: soname_spec='${libname}${release}${shared_ext}$major'
12714: dynamic_linker='NetBSD ld.elf_so'
12715: fi
12716: shlibpath_var=LD_LIBRARY_PATH
12717: shlibpath_overrides_runpath=yes
12718: hardcode_into_libs=yes
12719: ;;
12720:
12721: newsos6)
1.1.1.2 misho 12722: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12723: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12724: shlibpath_var=LD_LIBRARY_PATH
12725: shlibpath_overrides_runpath=yes
12726: ;;
12727:
12728: *nto* | *qnx*)
12729: version_type=qnx
12730: need_lib_prefix=no
12731: need_version=no
12732: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733: soname_spec='${libname}${release}${shared_ext}$major'
12734: shlibpath_var=LD_LIBRARY_PATH
12735: shlibpath_overrides_runpath=no
12736: hardcode_into_libs=yes
12737: dynamic_linker='ldqnx.so'
12738: ;;
12739:
12740: openbsd*)
12741: version_type=sunos
12742: sys_lib_dlsearch_path_spec="/usr/lib"
12743: need_lib_prefix=no
12744: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12745: case $host_os in
12746: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12747: *) need_version=no ;;
12748: esac
12749: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12750: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12751: shlibpath_var=LD_LIBRARY_PATH
12752: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12753: case $host_os in
12754: openbsd2.[89] | openbsd2.[89].*)
12755: shlibpath_overrides_runpath=no
12756: ;;
12757: *)
12758: shlibpath_overrides_runpath=yes
12759: ;;
12760: esac
12761: else
12762: shlibpath_overrides_runpath=yes
12763: fi
12764: ;;
12765:
12766: os2*)
12767: libname_spec='$name'
12768: shrext_cmds=".dll"
12769: need_lib_prefix=no
12770: library_names_spec='$libname${shared_ext} $libname.a'
12771: dynamic_linker='OS/2 ld.exe'
12772: shlibpath_var=LIBPATH
12773: ;;
12774:
12775: osf3* | osf4* | osf5*)
12776: version_type=osf
12777: need_lib_prefix=no
12778: need_version=no
12779: soname_spec='${libname}${release}${shared_ext}$major'
12780: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781: shlibpath_var=LD_LIBRARY_PATH
12782: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12783: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12784: ;;
12785:
12786: rdos*)
12787: dynamic_linker=no
12788: ;;
12789:
12790: solaris*)
1.1.1.2 misho 12791: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12792: need_lib_prefix=no
12793: need_version=no
12794: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12795: soname_spec='${libname}${release}${shared_ext}$major'
12796: shlibpath_var=LD_LIBRARY_PATH
12797: shlibpath_overrides_runpath=yes
12798: hardcode_into_libs=yes
12799: # ldd complains unless libraries are executable
12800: postinstall_cmds='chmod +x $lib'
12801: ;;
12802:
12803: sunos4*)
12804: version_type=sunos
12805: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12806: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12807: shlibpath_var=LD_LIBRARY_PATH
12808: shlibpath_overrides_runpath=yes
12809: if test "$with_gnu_ld" = yes; then
12810: need_lib_prefix=no
12811: fi
12812: need_version=yes
12813: ;;
12814:
12815: sysv4 | sysv4.3*)
1.1.1.2 misho 12816: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12817: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818: soname_spec='${libname}${release}${shared_ext}$major'
12819: shlibpath_var=LD_LIBRARY_PATH
12820: case $host_vendor in
12821: sni)
12822: shlibpath_overrides_runpath=no
12823: need_lib_prefix=no
12824: runpath_var=LD_RUN_PATH
12825: ;;
12826: siemens)
12827: need_lib_prefix=no
12828: ;;
12829: motorola)
12830: need_lib_prefix=no
12831: need_version=no
12832: shlibpath_overrides_runpath=no
12833: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12834: ;;
12835: esac
12836: ;;
12837:
12838: sysv4*MP*)
12839: if test -d /usr/nec ;then
1.1.1.2 misho 12840: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12841: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12842: soname_spec='$libname${shared_ext}.$major'
12843: shlibpath_var=LD_LIBRARY_PATH
12844: fi
12845: ;;
12846:
12847: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12848: version_type=freebsd-elf
12849: need_lib_prefix=no
12850: need_version=no
12851: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12852: soname_spec='${libname}${release}${shared_ext}$major'
12853: shlibpath_var=LD_LIBRARY_PATH
12854: shlibpath_overrides_runpath=yes
12855: hardcode_into_libs=yes
12856: if test "$with_gnu_ld" = yes; then
12857: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12858: else
12859: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12860: case $host_os in
12861: sco3.2v5*)
12862: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12863: ;;
12864: esac
12865: fi
12866: sys_lib_dlsearch_path_spec='/usr/lib'
12867: ;;
12868:
12869: tpf*)
12870: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
1.1.1.2 misho 12871: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12872: need_lib_prefix=no
12873: need_version=no
12874: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12875: shlibpath_var=LD_LIBRARY_PATH
12876: shlibpath_overrides_runpath=no
12877: hardcode_into_libs=yes
12878: ;;
12879:
12880: uts4*)
1.1.1.2 misho 12881: version_type=linux # correct to gnu/linux during the next big refactor
1.1 misho 12882: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883: soname_spec='${libname}${release}${shared_ext}$major'
12884: shlibpath_var=LD_LIBRARY_PATH
12885: ;;
12886:
12887: *)
12888: dynamic_linker=no
12889: ;;
12890: esac
12891: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12892: $as_echo "$dynamic_linker" >&6; }
12893: test "$dynamic_linker" = no && can_build_shared=no
12894:
12895: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12896: if test "$GCC" = yes; then
12897: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12898: fi
12899:
12900: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12901: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12902: fi
12903: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12904: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12905: fi
12906:
12907:
12908:
12909:
12910:
12911:
12912:
12913:
12914:
12915:
12916:
12917:
12918:
12919:
12920:
12921:
12922:
12923:
12924:
12925:
12926:
12927:
12928:
12929:
12930:
12931:
12932:
12933:
12934:
12935:
12936:
12937:
12938:
12939:
12940:
12941:
12942:
12943:
12944:
12945:
12946:
12947:
12948:
12949:
12950:
12951:
12952:
12953:
12954:
12955:
12956:
12957:
12958:
12959:
12960:
12961:
12962:
12963:
12964:
12965:
12966:
12967:
12968:
12969:
12970:
12971:
12972:
12973:
12974:
12975:
12976:
12977:
12978:
12979:
12980:
12981:
12982:
12983:
12984:
12985:
12986:
12987:
12988:
12989:
12990:
12991:
12992:
12993:
12994:
12995:
12996:
12997:
12998: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12999: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13000: hardcode_action=
13001: if test -n "$hardcode_libdir_flag_spec" ||
13002: test -n "$runpath_var" ||
13003: test "X$hardcode_automatic" = "Xyes" ; then
13004:
13005: # We can hardcode non-existent directories.
13006: if test "$hardcode_direct" != no &&
13007: # If the only mechanism to avoid hardcoding is shlibpath_var, we
13008: # have to relink, otherwise we might link with an installed library
13009: # when we should be linking with a yet-to-be-installed one
13010: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13011: test "$hardcode_minus_L" != no; then
13012: # Linking always hardcodes the temporary library directory.
13013: hardcode_action=relink
13014: else
13015: # We can link without hardcoding, and we can hardcode nonexisting dirs.
13016: hardcode_action=immediate
13017: fi
13018: else
13019: # We cannot hardcode anything, or else we can only hardcode existing
13020: # directories.
13021: hardcode_action=unsupported
13022: fi
13023: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13024: $as_echo "$hardcode_action" >&6; }
13025:
13026: if test "$hardcode_action" = relink ||
13027: test "$inherit_rpath" = yes; then
13028: # Fast installation is not supported
13029: enable_fast_install=no
13030: elif test "$shlibpath_overrides_runpath" = yes ||
13031: test "$enable_shared" = no; then
13032: # Fast installation is not necessary
13033: enable_fast_install=needless
13034: fi
13035:
13036:
13037:
13038:
13039:
13040:
13041: if test "x$enable_dlopen" != xyes; then
13042: enable_dlopen=unknown
13043: enable_dlopen_self=unknown
13044: enable_dlopen_self_static=unknown
13045: else
13046: lt_cv_dlopen=no
13047: lt_cv_dlopen_libs=
13048:
13049: case $host_os in
13050: beos*)
13051: lt_cv_dlopen="load_add_on"
13052: lt_cv_dlopen_libs=
13053: lt_cv_dlopen_self=yes
13054: ;;
13055:
13056: mingw* | pw32* | cegcc*)
13057: lt_cv_dlopen="LoadLibrary"
13058: lt_cv_dlopen_libs=
13059: ;;
13060:
13061: cygwin*)
13062: lt_cv_dlopen="dlopen"
13063: lt_cv_dlopen_libs=
13064: ;;
13065:
13066: darwin*)
13067: # if libdl is installed we need to link against it
13068: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13069: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13070: if ${ac_cv_lib_dl_dlopen+:} false; then :
13071: $as_echo_n "(cached) " >&6
13072: else
13073: ac_check_lib_save_LIBS=$LIBS
13074: LIBS="-ldl $LIBS"
13075: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076: /* end confdefs.h. */
13077:
13078: /* Override any GCC internal prototype to avoid an error.
13079: Use char because int might match the return type of a GCC
13080: builtin and then its argument prototype would still apply. */
13081: #ifdef __cplusplus
13082: extern "C"
13083: #endif
13084: char dlopen ();
13085: int
13086: main ()
13087: {
13088: return dlopen ();
13089: ;
13090: return 0;
13091: }
13092: _ACEOF
13093: if ac_fn_c_try_link "$LINENO"; then :
13094: ac_cv_lib_dl_dlopen=yes
13095: else
13096: ac_cv_lib_dl_dlopen=no
13097: fi
13098: rm -f core conftest.err conftest.$ac_objext \
13099: conftest$ac_exeext conftest.$ac_ext
13100: LIBS=$ac_check_lib_save_LIBS
13101: fi
13102: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13103: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13104: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13105: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13106: else
13107:
13108: lt_cv_dlopen="dyld"
13109: lt_cv_dlopen_libs=
13110: lt_cv_dlopen_self=yes
13111:
13112: fi
13113:
13114: ;;
13115:
13116: *)
13117: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13118: if test "x$ac_cv_func_shl_load" = xyes; then :
13119: lt_cv_dlopen="shl_load"
13120: else
13121: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13122: $as_echo_n "checking for shl_load in -ldld... " >&6; }
13123: if ${ac_cv_lib_dld_shl_load+:} false; then :
13124: $as_echo_n "(cached) " >&6
13125: else
13126: ac_check_lib_save_LIBS=$LIBS
13127: LIBS="-ldld $LIBS"
13128: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13129: /* end confdefs.h. */
13130:
13131: /* Override any GCC internal prototype to avoid an error.
13132: Use char because int might match the return type of a GCC
13133: builtin and then its argument prototype would still apply. */
13134: #ifdef __cplusplus
13135: extern "C"
13136: #endif
13137: char shl_load ();
13138: int
13139: main ()
13140: {
13141: return shl_load ();
13142: ;
13143: return 0;
13144: }
13145: _ACEOF
13146: if ac_fn_c_try_link "$LINENO"; then :
13147: ac_cv_lib_dld_shl_load=yes
13148: else
13149: ac_cv_lib_dld_shl_load=no
13150: fi
13151: rm -f core conftest.err conftest.$ac_objext \
13152: conftest$ac_exeext conftest.$ac_ext
13153: LIBS=$ac_check_lib_save_LIBS
13154: fi
13155: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13156: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13157: if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13158: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13159: else
13160: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13161: if test "x$ac_cv_func_dlopen" = xyes; then :
13162: lt_cv_dlopen="dlopen"
13163: else
13164: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13165: $as_echo_n "checking for dlopen in -ldl... " >&6; }
13166: if ${ac_cv_lib_dl_dlopen+:} false; then :
13167: $as_echo_n "(cached) " >&6
13168: else
13169: ac_check_lib_save_LIBS=$LIBS
13170: LIBS="-ldl $LIBS"
13171: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13172: /* end confdefs.h. */
13173:
13174: /* Override any GCC internal prototype to avoid an error.
13175: Use char because int might match the return type of a GCC
13176: builtin and then its argument prototype would still apply. */
13177: #ifdef __cplusplus
13178: extern "C"
13179: #endif
13180: char dlopen ();
13181: int
13182: main ()
13183: {
13184: return dlopen ();
13185: ;
13186: return 0;
13187: }
13188: _ACEOF
13189: if ac_fn_c_try_link "$LINENO"; then :
13190: ac_cv_lib_dl_dlopen=yes
13191: else
13192: ac_cv_lib_dl_dlopen=no
13193: fi
13194: rm -f core conftest.err conftest.$ac_objext \
13195: conftest$ac_exeext conftest.$ac_ext
13196: LIBS=$ac_check_lib_save_LIBS
13197: fi
13198: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13199: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13200: if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13201: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13202: else
13203: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13204: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13205: if ${ac_cv_lib_svld_dlopen+:} false; then :
13206: $as_echo_n "(cached) " >&6
13207: else
13208: ac_check_lib_save_LIBS=$LIBS
13209: LIBS="-lsvld $LIBS"
13210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211: /* end confdefs.h. */
13212:
13213: /* Override any GCC internal prototype to avoid an error.
13214: Use char because int might match the return type of a GCC
13215: builtin and then its argument prototype would still apply. */
13216: #ifdef __cplusplus
13217: extern "C"
13218: #endif
13219: char dlopen ();
13220: int
13221: main ()
13222: {
13223: return dlopen ();
13224: ;
13225: return 0;
13226: }
13227: _ACEOF
13228: if ac_fn_c_try_link "$LINENO"; then :
13229: ac_cv_lib_svld_dlopen=yes
13230: else
13231: ac_cv_lib_svld_dlopen=no
13232: fi
13233: rm -f core conftest.err conftest.$ac_objext \
13234: conftest$ac_exeext conftest.$ac_ext
13235: LIBS=$ac_check_lib_save_LIBS
13236: fi
13237: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13238: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13239: if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13240: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13241: else
13242: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13243: $as_echo_n "checking for dld_link in -ldld... " >&6; }
13244: if ${ac_cv_lib_dld_dld_link+:} false; then :
13245: $as_echo_n "(cached) " >&6
13246: else
13247: ac_check_lib_save_LIBS=$LIBS
13248: LIBS="-ldld $LIBS"
13249: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250: /* end confdefs.h. */
13251:
13252: /* Override any GCC internal prototype to avoid an error.
13253: Use char because int might match the return type of a GCC
13254: builtin and then its argument prototype would still apply. */
13255: #ifdef __cplusplus
13256: extern "C"
13257: #endif
13258: char dld_link ();
13259: int
13260: main ()
13261: {
13262: return dld_link ();
13263: ;
13264: return 0;
13265: }
13266: _ACEOF
13267: if ac_fn_c_try_link "$LINENO"; then :
13268: ac_cv_lib_dld_dld_link=yes
13269: else
13270: ac_cv_lib_dld_dld_link=no
13271: fi
13272: rm -f core conftest.err conftest.$ac_objext \
13273: conftest$ac_exeext conftest.$ac_ext
13274: LIBS=$ac_check_lib_save_LIBS
13275: fi
13276: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13277: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13278: if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13279: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13280: fi
13281:
13282:
13283: fi
13284:
13285:
13286: fi
13287:
13288:
13289: fi
13290:
13291:
13292: fi
13293:
13294:
13295: fi
13296:
13297: ;;
13298: esac
13299:
13300: if test "x$lt_cv_dlopen" != xno; then
13301: enable_dlopen=yes
13302: else
13303: enable_dlopen=no
13304: fi
13305:
13306: case $lt_cv_dlopen in
13307: dlopen)
13308: save_CPPFLAGS="$CPPFLAGS"
13309: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13310:
13311: save_LDFLAGS="$LDFLAGS"
13312: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13313:
13314: save_LIBS="$LIBS"
13315: LIBS="$lt_cv_dlopen_libs $LIBS"
13316:
13317: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13318: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13319: if ${lt_cv_dlopen_self+:} false; then :
13320: $as_echo_n "(cached) " >&6
13321: else
13322: if test "$cross_compiling" = yes; then :
13323: lt_cv_dlopen_self=cross
13324: else
13325: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13326: lt_status=$lt_dlunknown
13327: cat > conftest.$ac_ext <<_LT_EOF
13328: #line $LINENO "configure"
13329: #include "confdefs.h"
13330:
13331: #if HAVE_DLFCN_H
13332: #include <dlfcn.h>
13333: #endif
13334:
13335: #include <stdio.h>
13336:
13337: #ifdef RTLD_GLOBAL
13338: # define LT_DLGLOBAL RTLD_GLOBAL
13339: #else
13340: # ifdef DL_GLOBAL
13341: # define LT_DLGLOBAL DL_GLOBAL
13342: # else
13343: # define LT_DLGLOBAL 0
13344: # endif
13345: #endif
13346:
13347: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13348: find out it does not work in some platform. */
13349: #ifndef LT_DLLAZY_OR_NOW
13350: # ifdef RTLD_LAZY
13351: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13352: # else
13353: # ifdef DL_LAZY
13354: # define LT_DLLAZY_OR_NOW DL_LAZY
13355: # else
13356: # ifdef RTLD_NOW
13357: # define LT_DLLAZY_OR_NOW RTLD_NOW
13358: # else
13359: # ifdef DL_NOW
13360: # define LT_DLLAZY_OR_NOW DL_NOW
13361: # else
13362: # define LT_DLLAZY_OR_NOW 0
13363: # endif
13364: # endif
13365: # endif
13366: # endif
13367: #endif
13368:
13369: /* When -fvisbility=hidden is used, assume the code has been annotated
13370: correspondingly for the symbols needed. */
13371: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13372: int fnord () __attribute__((visibility("default")));
13373: #endif
13374:
13375: int fnord () { return 42; }
13376: int main ()
13377: {
13378: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13379: int status = $lt_dlunknown;
13380:
13381: if (self)
13382: {
13383: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13384: else
13385: {
13386: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13387: else puts (dlerror ());
13388: }
13389: /* dlclose (self); */
13390: }
13391: else
13392: puts (dlerror ());
13393:
13394: return status;
13395: }
13396: _LT_EOF
13397: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13398: (eval $ac_link) 2>&5
13399: ac_status=$?
13400: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13401: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13402: (./conftest; exit; ) >&5 2>/dev/null
13403: lt_status=$?
13404: case x$lt_status in
13405: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13406: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13407: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13408: esac
13409: else :
13410: # compilation failed
13411: lt_cv_dlopen_self=no
13412: fi
13413: fi
13414: rm -fr conftest*
13415:
13416:
13417: fi
13418: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13419: $as_echo "$lt_cv_dlopen_self" >&6; }
13420:
13421: if test "x$lt_cv_dlopen_self" = xyes; then
13422: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13423: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13424: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13425: if ${lt_cv_dlopen_self_static+:} false; then :
13426: $as_echo_n "(cached) " >&6
13427: else
13428: if test "$cross_compiling" = yes; then :
13429: lt_cv_dlopen_self_static=cross
13430: else
13431: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13432: lt_status=$lt_dlunknown
13433: cat > conftest.$ac_ext <<_LT_EOF
13434: #line $LINENO "configure"
13435: #include "confdefs.h"
13436:
13437: #if HAVE_DLFCN_H
13438: #include <dlfcn.h>
13439: #endif
13440:
13441: #include <stdio.h>
13442:
13443: #ifdef RTLD_GLOBAL
13444: # define LT_DLGLOBAL RTLD_GLOBAL
13445: #else
13446: # ifdef DL_GLOBAL
13447: # define LT_DLGLOBAL DL_GLOBAL
13448: # else
13449: # define LT_DLGLOBAL 0
13450: # endif
13451: #endif
13452:
13453: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13454: find out it does not work in some platform. */
13455: #ifndef LT_DLLAZY_OR_NOW
13456: # ifdef RTLD_LAZY
13457: # define LT_DLLAZY_OR_NOW RTLD_LAZY
13458: # else
13459: # ifdef DL_LAZY
13460: # define LT_DLLAZY_OR_NOW DL_LAZY
13461: # else
13462: # ifdef RTLD_NOW
13463: # define LT_DLLAZY_OR_NOW RTLD_NOW
13464: # else
13465: # ifdef DL_NOW
13466: # define LT_DLLAZY_OR_NOW DL_NOW
13467: # else
13468: # define LT_DLLAZY_OR_NOW 0
13469: # endif
13470: # endif
13471: # endif
13472: # endif
13473: #endif
13474:
13475: /* When -fvisbility=hidden is used, assume the code has been annotated
13476: correspondingly for the symbols needed. */
13477: #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13478: int fnord () __attribute__((visibility("default")));
13479: #endif
13480:
13481: int fnord () { return 42; }
13482: int main ()
13483: {
13484: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13485: int status = $lt_dlunknown;
13486:
13487: if (self)
13488: {
13489: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13490: else
13491: {
13492: if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13493: else puts (dlerror ());
13494: }
13495: /* dlclose (self); */
13496: }
13497: else
13498: puts (dlerror ());
13499:
13500: return status;
13501: }
13502: _LT_EOF
13503: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13504: (eval $ac_link) 2>&5
13505: ac_status=$?
13506: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13507: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13508: (./conftest; exit; ) >&5 2>/dev/null
13509: lt_status=$?
13510: case x$lt_status in
13511: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13512: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13513: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13514: esac
13515: else :
13516: # compilation failed
13517: lt_cv_dlopen_self_static=no
13518: fi
13519: fi
13520: rm -fr conftest*
13521:
13522:
13523: fi
13524: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13525: $as_echo "$lt_cv_dlopen_self_static" >&6; }
13526: fi
13527:
13528: CPPFLAGS="$save_CPPFLAGS"
13529: LDFLAGS="$save_LDFLAGS"
13530: LIBS="$save_LIBS"
13531: ;;
13532: esac
13533:
13534: case $lt_cv_dlopen_self in
13535: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13536: *) enable_dlopen_self=unknown ;;
13537: esac
13538:
13539: case $lt_cv_dlopen_self_static in
13540: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13541: *) enable_dlopen_self_static=unknown ;;
13542: esac
13543: fi
13544:
13545:
13546:
13547:
13548:
13549:
13550:
13551:
13552:
13553:
13554:
13555:
13556:
13557:
13558:
13559:
13560:
13561: striplib=
13562: old_striplib=
13563: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13564: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13565: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13566: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13567: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13569: $as_echo "yes" >&6; }
13570: else
13571: # FIXME - insert some real tests, host_os isn't really good enough
13572: case $host_os in
13573: darwin*)
13574: if test -n "$STRIP" ; then
13575: striplib="$STRIP -x"
13576: old_striplib="$STRIP -S"
13577: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13578: $as_echo "yes" >&6; }
13579: else
13580: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13581: $as_echo "no" >&6; }
13582: fi
13583: ;;
13584: *)
13585: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13586: $as_echo "no" >&6; }
13587: ;;
13588: esac
13589: fi
13590:
13591:
13592:
13593:
13594:
13595:
13596:
13597:
13598:
13599:
13600:
13601:
13602: # Report which library types will actually be built
13603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13604: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13606: $as_echo "$can_build_shared" >&6; }
13607:
13608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13609: $as_echo_n "checking whether to build shared libraries... " >&6; }
13610: test "$can_build_shared" = "no" && enable_shared=no
13611:
13612: # On AIX, shared libraries and static libraries use the same namespace, and
13613: # are all built from PIC.
13614: case $host_os in
13615: aix3*)
13616: test "$enable_shared" = yes && enable_static=no
13617: if test -n "$RANLIB"; then
13618: archive_cmds="$archive_cmds~\$RANLIB \$lib"
13619: postinstall_cmds='$RANLIB $lib'
13620: fi
13621: ;;
13622:
13623: aix[4-9]*)
13624: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13625: test "$enable_shared" = yes && enable_static=no
13626: fi
13627: ;;
13628: esac
13629: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13630: $as_echo "$enable_shared" >&6; }
13631:
13632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13633: $as_echo_n "checking whether to build static libraries... " >&6; }
13634: # Make sure either enable_shared or enable_static is yes.
13635: test "$enable_shared" = yes || enable_static=yes
13636: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13637: $as_echo "$enable_static" >&6; }
13638:
13639:
13640:
13641:
13642: fi
13643: ac_ext=c
13644: ac_cpp='$CPP $CPPFLAGS'
13645: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13646: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13647: ac_compiler_gnu=$ac_cv_c_compiler_gnu
13648:
13649: CC="$lt_save_CC"
13650:
13651:
13652:
13653:
13654:
13655:
13656:
13657:
13658:
13659:
13660:
13661:
13662:
1.1.1.2 misho 13663:
13664:
1.1 misho 13665: ac_config_commands="$ac_config_commands libtool"
13666:
13667:
13668:
13669:
13670: # Only expand once:
13671:
13672:
13673:
1.1.1.4 misho 13674:
13675: # Check whether --with-libtool was given.
13676: if test "${with_libtool+set}" = set; then :
13677: withval=$with_libtool; case $with_libtool in
13678: yes|builtin) ;;
13679: no) as_fn_error $? "\"--without-libtool not supported.\"" "$LINENO" 5
13680: ;;
13681: system) LIBTOOL=libtool
13682: ;;
13683: *) LIBTOOL="$with_libtool"
13684: ;;
13685: esac
13686: fi
13687:
13688:
1.1 misho 13689: if test "$enable_shared" = "no"; then
13690: with_noexec=no
13691: enable_dlopen=no
13692: lt_cv_dlopen=none
13693: lt_cv_dlopen_libs=
1.1.1.2 misho 13694: ac_cv_func_dlopen=no
1.1.1.4 misho 13695: LT_LDFLAGS=-static
1.1 misho 13696: else
13697: eval _shrext="$shrext_cmds"
13698: # Darwin uses .dylib for libraries but .so for modules
13699: if test X"$_shrext" = X".dylib"; then
13700: SOEXT=".so"
1.1.1.5 ! misho 13701: SHLIB_EXT=".dylib"
1.1 misho 13702: else
13703: SOEXT="$_shrext"
1.1.1.5 ! misho 13704: SHLIB_EXT="$_shrext"
1.1 misho 13705: fi
13706: fi
13707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5
13708: $as_echo_n "checking path to sudo_noexec.so... " >&6; }
13709:
13710: # Check whether --with-noexec was given.
13711: if test "${with_noexec+set}" = set; then :
13712: withval=$with_noexec; case $with_noexec in
1.1.1.4 misho 13713: yes) with_noexec="$libexecdir/sudo/sudo_noexec.so"
1.1 misho 13714: ;;
13715: no) ;;
13716: *) ;;
13717: esac
13718: else
1.1.1.4 misho 13719: with_noexec="$libexecdir/sudo/sudo_noexec.so"
1.1 misho 13720: fi
13721:
13722: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5
13723: $as_echo "$with_noexec" >&6; }
1.1.1.4 misho 13724: NOEXECFILE="sudo_noexec.so"
1.1.1.3 misho 13725: NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`"
1.1 misho 13726:
13727: # Extract the first word of "uname", so it can be a program name with args.
13728: set dummy uname; ac_word=$2
13729: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13730: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3 misho 13731: if ${ac_cv_path_UNAMEPROG+:} false; then :
1.1 misho 13732: $as_echo_n "(cached) " >&6
13733: else
1.1.1.3 misho 13734: case $UNAMEPROG in
13735: [\\/]* | ?:[\\/]*)
13736: ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path.
13737: ;;
13738: *)
13739: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 13740: for as_dir in $PATH
13741: do
13742: IFS=$as_save_IFS
13743: test -z "$as_dir" && as_dir=.
13744: for ac_exec_ext in '' $ac_executable_extensions; do
13745: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.3 misho 13746: ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext"
1.1 misho 13747: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748: break 2
13749: fi
13750: done
13751: done
13752: IFS=$as_save_IFS
13753:
1.1.1.3 misho 13754: test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname"
13755: ;;
13756: esac
1.1 misho 13757: fi
1.1.1.3 misho 13758: UNAMEPROG=$ac_cv_path_UNAMEPROG
1.1 misho 13759: if test -n "$UNAMEPROG"; then
13760: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5
13761: $as_echo "$UNAMEPROG" >&6; }
13762: else
13763: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13764: $as_echo "no" >&6; }
13765: fi
13766:
13767:
13768: # Extract the first word of "tr", so it can be a program name with args.
13769: set dummy tr; ac_word=$2
13770: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13771: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3 misho 13772: if ${ac_cv_path_TRPROG+:} false; then :
1.1 misho 13773: $as_echo_n "(cached) " >&6
13774: else
1.1.1.3 misho 13775: case $TRPROG in
13776: [\\/]* | ?:[\\/]*)
13777: ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path.
13778: ;;
13779: *)
13780: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 13781: for as_dir in $PATH
13782: do
13783: IFS=$as_save_IFS
13784: test -z "$as_dir" && as_dir=.
13785: for ac_exec_ext in '' $ac_executable_extensions; do
13786: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.3 misho 13787: ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext"
1.1 misho 13788: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13789: break 2
13790: fi
13791: done
13792: done
13793: IFS=$as_save_IFS
13794:
1.1.1.3 misho 13795: test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr"
13796: ;;
13797: esac
1.1 misho 13798: fi
1.1.1.3 misho 13799: TRPROG=$ac_cv_path_TRPROG
1.1 misho 13800: if test -n "$TRPROG"; then
13801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5
13802: $as_echo "$TRPROG" >&6; }
13803: else
13804: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13805: $as_echo "no" >&6; }
13806: fi
13807:
13808:
1.1.1.3 misho 13809: # Extract the first word of "mandoc", so it can be a program name with args.
13810: set dummy mandoc; ac_word=$2
1.1 misho 13811: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13812: $as_echo_n "checking for $ac_word... " >&6; }
1.1.1.3 misho 13813: if ${ac_cv_path_MANDOCPROG+:} false; then :
1.1 misho 13814: $as_echo_n "(cached) " >&6
13815: else
1.1.1.3 misho 13816: case $MANDOCPROG in
13817: [\\/]* | ?:[\\/]*)
13818: ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path.
13819: ;;
13820: *)
13821: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1.1 misho 13822: for as_dir in $PATH
13823: do
13824: IFS=$as_save_IFS
13825: test -z "$as_dir" && as_dir=.
13826: for ac_exec_ext in '' $ac_executable_extensions; do
13827: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1.1.1.3 misho 13828: ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext"
1.1 misho 13829: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13830: break 2
13831: fi
13832: done
13833: done
13834: IFS=$as_save_IFS
13835:
1.1.1.3 misho 13836: test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc"
13837: ;;
13838: esac
1.1 misho 13839: fi
1.1.1.3 misho 13840: MANDOCPROG=$ac_cv_path_MANDOCPROG
13841: if test -n "$MANDOCPROG"; then
13842: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5
13843: $as_echo "$MANDOCPROG" >&6; }
1.1 misho 13844: else
13845: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846: $as_echo "no" >&6; }
13847: fi
13848:
13849:
1.1.1.3 misho 13850: if test "$MANDOCPROG" != "mandoc"; then
13851: : ${MANTYPE='mdoc'}
13852: else
13853: # Extract the first word of "nroff", so it can be a program name with args.
13854: set dummy nroff; ac_word=$2
13855: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13856: $as_echo_n "checking for $ac_word... " >&6; }
13857: if ${ac_cv_path_NROFFPROG+:} false; then :
13858: $as_echo_n "(cached) " >&6
13859: else
13860: case $NROFFPROG in
13861: [\\/]* | ?:[\\/]*)
13862: ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path.
13863: ;;
13864: *)
13865: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866: for as_dir in $PATH
13867: do
13868: IFS=$as_save_IFS
13869: test -z "$as_dir" && as_dir=.
13870: for ac_exec_ext in '' $ac_executable_extensions; do
13871: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13872: ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext"
13873: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13874: break 2
13875: fi
1.1 misho 13876: done
1.1.1.3 misho 13877: done
13878: IFS=$as_save_IFS
1.1 misho 13879:
1.1.1.3 misho 13880: ;;
13881: esac
13882: fi
13883: NROFFPROG=$ac_cv_path_NROFFPROG
1.1 misho 13884: if test -n "$NROFFPROG"; then
1.1.1.3 misho 13885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5
13886: $as_echo "$NROFFPROG" >&6; }
1.1 misho 13887: else
1.1.1.3 misho 13888: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13889: $as_echo "no" >&6; }
1.1 misho 13890: fi
1.1.1.3 misho 13891:
13892:
13893: if test -n "$NROFFPROG"; then
13894: test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE"
13895: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5
13896: $as_echo_n "checking which macro set to use for manual pages... " >&6; }
13897: if ${sudo_cv_var_mantype+:} false; then :
1.1 misho 13898: $as_echo_n "(cached) " >&6
13899: else
1.1.1.3 misho 13900:
13901: sudo_cv_var_mantype="man"
13902: echo ".Sh NAME" > conftest
13903: echo ".Nm sudo" >> conftest
13904: echo ".Nd sudo" >> conftest
13905: echo ".Sh DESCRIPTION" >> conftest
13906: echo "sudo" >> conftest
13907: if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then
13908: sudo_cv_var_mantype="mdoc"
13909: fi
13910: rm -f conftest
13911:
1.1 misho 13912:
13913: fi
1.1.1.3 misho 13914: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5
13915: $as_echo "$sudo_cv_var_mantype" >&6; }
13916: MANTYPE="$sudo_cv_var_mantype"
13917: else
13918: MANTYPE=cat
13919: MANDIRTYPE=cat
13920: mansrcdir='$(srcdir)'
13921: fi
1.1 misho 13922: fi
13923:
13924: if test -n "$sudo_cv_prev_host"; then
13925: if test "$sudo_cv_prev_host" != "$host"; then
13926: as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5
13927: else
13928: { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5
13929: $as_echo_n "checking previous host type... " >&6; }
13930: if ${sudo_cv_prev_host+:} false; then :
13931: $as_echo_n "(cached) " >&6
13932: else
13933: sudo_cv_prev_host="$host"
13934: fi
13935:
13936: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5
13937: $as_echo "$sudo_cv_prev_host" >&6; }
13938: fi
13939: else
13940: # this will produce no output since there is no cached value
13941: if ${sudo_cv_prev_host+:} false; then :
13942: $as_echo_n "(cached) " >&6
13943: else
13944: sudo_cv_prev_host="$host"
13945: fi
13946:
13947: fi
13948:
13949: if test -n "$host_os"; then
13950: OS=`echo $host_os | sed 's/[0-9].*//'`
13951: OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
13952: OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
13953: else
13954: OS="unknown"
13955: OSREV=0
13956: OSMAJOR=0
13957: fi
13958:
13959: case "$host" in
13960: *-*-sunos4*)
1.1.1.2 misho 13961: # LD_PRELOAD is space-delimited
13962: RTLD_PRELOAD_DELIM=" "
13963:
1.1 misho 13964: # getcwd(3) opens a pipe to getpwd(1)!?!
13965: BROKEN_GETCWD=1
13966:
13967: # system headers lack prototypes but gcc helps...
13968: if test -n "$GCC"; then
13969: OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
13970: fi
13971:
13972: shadow_funcs="getpwanam issecure"
13973: ;;
13974: *-*-solaris2*)
1.1.1.2 misho 13975: # LD_PRELOAD is space-delimited
13976: RTLD_PRELOAD_DELIM=" "
13977:
1.1.1.4 misho 13978: # Solaris-specific initialization
13979: OS_INIT=os_init_solaris
13980: SUDO_OBJS="${SUDO_OBJS} solaris.o"
13981:
1.1 misho 13982: # To get the crypt(3) prototype (so we pass -Wall)
13983: OSDEFS="${OSDEFS} -D__EXTENSIONS__"
13984: # AFS support needs -lucb
13985: if test "$with_AFS" = "yes"; then
13986: AFS_LIBS="-lc -lucb"
13987: fi
13988: : ${mansectsu='1m'}
13989: : ${mansectform='4'}
13990: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
13991: for ac_func in priv_set
13992: do :
13993: ac_fn_c_check_func "$LINENO" "priv_set" "ac_cv_func_priv_set"
13994: if test "x$ac_cv_func_priv_set" = xyes; then :
13995: cat >>confdefs.h <<_ACEOF
13996: #define HAVE_PRIV_SET 1
13997: _ACEOF
1.1.1.3 misho 13998: PSMAN=1
1.1 misho 13999: fi
14000: done
14001:
14002: ;;
14003: *-*-aix*)
14004: # To get all prototypes (so we pass -Wall)
14005: OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT"
14006: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
14007:
14008: # On AIX 6 and higher default to PAM, else default to LAM
14009: if test $OSMAJOR -ge 6; then
14010: if test X"$with_pam" = X""; then
14011: AUTH_EXCL_DEF="PAM"
14012: fi
14013: else
14014: if test X"$with_aixauth" = X""; then
14015: for ac_func in authenticate
14016: do :
14017: ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate"
14018: if test "x$ac_cv_func_authenticate" = xyes; then :
14019: cat >>confdefs.h <<_ACEOF
14020: #define HAVE_AUTHENTICATE 1
14021: _ACEOF
14022: AUTH_EXCL_DEF="AIX_AUTH"
14023: fi
14024: done
14025:
14026: fi
14027: fi
14028:
14029: # AIX analog of nsswitch.conf, enabled by default
14030:
14031: # Check whether --with-netsvc was given.
14032: if test "${with_netsvc+set}" = set; then :
14033: withval=$with_netsvc; case $with_netsvc in
14034: no) ;;
14035: yes) with_netsvc="/etc/netsvc.conf"
14036: ;;
14037: *) ;;
14038: esac
14039: fi
14040:
14041: if test -z "$with_nsswitch" -a -z "$with_netsvc"; then
14042: with_netsvc="/etc/netsvc.conf"
14043: fi
14044:
14045: # LDR_PRELOAD is only supported in AIX 5.3 and later
14046: if test $OSMAJOR -lt 5; then
14047: with_noexec=no
1.1.1.2 misho 14048: else
14049: RTLD_PRELOAD_VAR="LDR_PRELOAD"
1.1 misho 14050: fi
14051:
14052: # AIX-specific functions
1.1.1.4 misho 14053: for ac_func in getuserattr setauthdb setrlimit64
1.1 misho 14054: do :
14055: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14056: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14057: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14058: cat >>confdefs.h <<_ACEOF
14059: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14060: _ACEOF
14061:
14062: fi
14063: done
14064:
14065: COMMON_OBJS="$COMMON_OBJS aix.lo"
14066: ;;
14067: *-*-hiuxmpp*)
14068: : ${mansectsu='1m'}
14069: : ${mansectform='4'}
1.1.1.3 misho 14070:
14071: # HP-UX shared libs must be executable
14072: SHLIB_MODE=0755
1.1 misho 14073: ;;
14074: *-*-hpux*)
14075: # AFS support needs -lBSD
14076: if test "$with_AFS" = "yes"; then
14077: AFS_LIBS="-lc -lBSD"
14078: fi
14079: : ${mansectsu='1m'}
14080: : ${mansectform='4'}
14081:
1.1.1.3 misho 14082: # HP-UX shared libs must be executable
14083: SHLIB_MODE=0755
14084:
1.1 misho 14085: # The HP bundled compiler cannot generate shared libs
14086: if test -z "$GCC"; then
14087: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5
14088: $as_echo_n "checking for HP bundled C compiler... " >&6; }
14089: if ${sudo_cv_var_hpccbundled+:} false; then :
14090: $as_echo_n "(cached) " >&6
14091: else
14092: if $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then
14093: sudo_cv_var_hpccbundled=yes
14094: else
14095: sudo_cv_var_hpccbundled=no
14096: fi
14097:
14098: fi
14099: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5
14100: $as_echo "$sudo_cv_var_hpccbundled" >&6; }
14101: if test "$sudo_cv_var_hpccbundled" = "yes"; then
14102: as_fn_error $? "The HP bundled C compiler is unable to build Sudo, you must use gcc or the HP ANSI C compiler instead." "$LINENO" 5
14103: fi
14104: fi
14105:
14106: # Build PA-RISC1.1 objects for better portability
14107: case "$host_cpu" in
14108: hppa[2-9]*)
14109: _CFLAGS="$CFLAGS"
14110: if test -n "$GCC"; then
14111: portable_flag="-march=1.1"
14112: else
14113: portable_flag="+DAportable"
14114: fi
14115: CFLAGS="$CFLAGS $portable_flag"
14116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5
14117: $as_echo_n "checking whether $CC understands $portable_flag... " >&6; }
14118: if ${sudo_cv_var_daportable+:} false; then :
14119: $as_echo_n "(cached) " >&6
14120: else
14121: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122: /* end confdefs.h. */
14123:
14124: int
14125: main ()
14126: {
14127:
14128: ;
14129: return 0;
14130: }
14131: _ACEOF
14132: if ac_fn_c_try_link "$LINENO"; then :
14133: sudo_cv_var_daportable=yes
14134: else
14135: sudo_cv_var_daportable=no
14136:
14137: fi
14138: rm -f core conftest.err conftest.$ac_objext \
14139: conftest$ac_exeext conftest.$ac_ext
14140:
14141:
14142: fi
14143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5
14144: $as_echo "$sudo_cv_var_daportable" >&6; }
14145: if test X"$sudo_cv_var_daportable" != X"yes"; then
14146: CFLAGS="$_CFLAGS"
14147: fi
14148: ;;
14149: esac
14150:
1.1.1.4 misho 14151: case "$host_os" in
14152: hpux[1-8].*)
1.1 misho 14153: $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14154:
14155: ;;
1.1.1.4 misho 14156: hpux9.*)
1.1 misho 14157: $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h
14158:
14159:
14160: shadow_funcs="getspwuid"
14161:
14162: # DCE support (requires ANSI C compiler)
14163: if test "$with_DCE" = "yes"; then
14164: # order of libs in 9.X is important. -lc_r must be last
14165: SUDOERS_LIBS="${SUDOERS_LIBS} -ldce -lM -lc_r"
14166: LIBS="${LIBS} -ldce -lM -lc_r"
1.1.1.4 misho 14167:
14168: case "${CPPFLAGS}" in
14169: *"-D_REENTRANT"|*"-D_REENTRANT ")
14170: ;;
14171: *)
14172: if test X"${CPPFLAGS}" = X""; then
14173: CPPFLAGS="-D_REENTRANT"
14174: else
14175: CPPFLAGS="${CPPFLAGS} -D_REENTRANT"
14176: fi
14177: ;;
14178: esac
14179:
14180:
14181: case "${CPPFLAGS}" in
14182: *"-I/usr/include/reentrant"|*"-I/usr/include/reentrant ")
14183: ;;
14184: *)
14185: if test X"${CPPFLAGS}" = X""; then
14186: CPPFLAGS="-I/usr/include/reentrant"
14187: else
14188: CPPFLAGS="${CPPFLAGS} -I/usr/include/reentrant"
14189: fi
14190: ;;
14191: esac
14192:
1.1 misho 14193: fi
14194: ;;
1.1.1.4 misho 14195: hpux10.*)
1.1 misho 14196: shadow_funcs="getprpwnam iscomsec"
14197: shadow_libs="-lsec"
14198: # HP-UX 10.20 libc has an incompatible getline
14199: ac_cv_func_getline="no"
14200: ;;
14201: *)
14202: shadow_funcs="getspnam iscomsec"
14203: shadow_libs="-lsec"
14204: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14205: ;;
14206: esac
1.1.1.4 misho 14207: for ac_func in pstat_getproc
14208: do :
14209: ac_fn_c_check_func "$LINENO" "pstat_getproc" "ac_cv_func_pstat_getproc"
14210: if test "x$ac_cv_func_pstat_getproc" = xyes; then :
14211: cat >>confdefs.h <<_ACEOF
14212: #define HAVE_PSTAT_GETPROC 1
14213: _ACEOF
14214:
14215: fi
14216: done
14217:
1.1 misho 14218: ;;
14219: *-dec-osf*)
14220: # ignore envariables wrt dynamic lib path
1.1.1.3 misho 14221: # XXX - sudo LDFLAGS instead?
1.1 misho 14222: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
14223:
14224: : ${CHECKSIA='true'}
14225: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5
14226: $as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; }
14227: # Check whether --enable-sia was given.
14228: if test "${enable_sia+set}" = set; then :
14229: enableval=$enable_sia; case "$enableval" in
14230: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231: $as_echo "no" >&6; }
14232: CHECKSIA=true
14233: ;;
14234: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235: $as_echo "yes" >&6; }
14236: CHECKSIA=false
14237: ;;
14238: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14239: $as_echo "no" >&6; }
14240: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
14241: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
14242: ;;
14243: esac
14244:
14245: else
14246: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247: $as_echo "no" >&6; }
14248: fi
14249:
14250:
14251: shadow_funcs="getprpwnam dispcrypt"
14252: # OSF/1 4.x and higher need -ldb too
14253: if test $OSMAJOR -lt 4; then
14254: shadow_libs="-lsecurity -laud -lm"
14255: else
14256: shadow_libs="-lsecurity -ldb -laud -lm"
14257: fi
14258:
14259: # use SIA by default, if we have it
14260: test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
14261:
14262: #
14263: # Some versions of Digital Unix ship with a broken
14264: # copy of prot.h, which we need for shadow passwords.
14265: # XXX - make should remove this as part of distclean
14266: #
14267: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5
14268: $as_echo_n "checking for broken prot.h... " >&6; }
14269: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14270: /* end confdefs.h. */
14271:
14272: #include <sys/types.h>
14273: #include <sys/security.h>
14274: #include <prot.h>
14275:
14276: int
14277: main ()
14278: {
14279: exit(0);
14280: ;
14281: return 0;
14282: }
14283: _ACEOF
14284: if ac_fn_c_try_compile "$LINENO"; then :
14285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14286: $as_echo "no" >&6; }
14287: else
14288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5
14289: $as_echo "yes, fixing locally" >&6; }
14290: sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
14291:
14292: fi
14293: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1.1.2 misho 14294: # ":DEFAULT" must be appended to _RLD_LIST
14295: RTLD_PRELOAD_VAR="_RLD_LIST"
14296: RTLD_PRELOAD_DEFAULT="DEFAULT"
1.1 misho 14297: : ${mansectsu='8'}
14298: : ${mansectform='4'}
14299: ;;
14300: *-*-irix*)
14301: OSDEFS="${OSDEFS} -D_BSD_TYPES"
14302: if test -z "$NROFFPROG"; then
14303: if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14304: if test -d /usr/share/catman/local; then
14305: mandir="/usr/share/catman/local"
14306: else
14307: mandir="/usr/catman/local"
14308: fi
14309: fi
1.1.1.3 misho 14310: # Compress cat pages with pack
14311: MANCOMPRESS='pack'
14312: MANCOMPRESSEXT='.z'
1.1 misho 14313: else
14314: if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then
14315: if test -d "/usr/share/man/local"; then
14316: mandir="/usr/share/man/local"
14317: else
14318: mandir="/usr/man/local"
14319: fi
14320: fi
14321: fi
14322: # IRIX <= 4 needs -lsun
14323: if test "$OSMAJOR" -le 4; then
14324: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
14325: $as_echo_n "checking for getpwnam in -lsun... " >&6; }
14326: if ${ac_cv_lib_sun_getpwnam+:} false; then :
14327: $as_echo_n "(cached) " >&6
14328: else
14329: ac_check_lib_save_LIBS=$LIBS
14330: LIBS="-lsun $LIBS"
14331: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332: /* end confdefs.h. */
14333:
14334: /* Override any GCC internal prototype to avoid an error.
14335: Use char because int might match the return type of a GCC
14336: builtin and then its argument prototype would still apply. */
14337: #ifdef __cplusplus
14338: extern "C"
14339: #endif
14340: char getpwnam ();
14341: int
14342: main ()
14343: {
14344: return getpwnam ();
14345: ;
14346: return 0;
14347: }
14348: _ACEOF
14349: if ac_fn_c_try_link "$LINENO"; then :
14350: ac_cv_lib_sun_getpwnam=yes
14351: else
14352: ac_cv_lib_sun_getpwnam=no
14353: fi
14354: rm -f core conftest.err conftest.$ac_objext \
14355: conftest$ac_exeext conftest.$ac_ext
14356: LIBS=$ac_check_lib_save_LIBS
14357: fi
14358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
14359: $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
14360: if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
14361: LIBS="${LIBS} -lsun"
14362: fi
14363:
14364: fi
1.1.1.2 misho 14365: # ":DEFAULT" must be appended to _RLD_LIST
14366: RTLD_PRELOAD_VAR="_RLD_LIST"
14367: RTLD_PRELOAD_DEFAULT="DEFAULT"
1.1 misho 14368: : ${mansectsu='1m'}
14369: : ${mansectform='4'}
14370: ;;
14371: *-*-linux*|*-*-k*bsd*-gnu)
14372: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14373: # Some Linux versions need to link with -lshadow
14374: shadow_funcs="getspnam"
14375: shadow_libs_optional="-lshadow"
14376: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14377: ;;
14378: *-convex-bsd*)
14379: OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
14380: if test -z "$GCC"; then
14381: CFLAGS="${CFLAGS} -D__STDC__"
14382: fi
14383:
14384: shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
14385: shadow_funcs="getprpwnam"
14386: shadow_libs="-lprot"
14387: ;;
14388: *-*-ultrix*)
14389: OS="ultrix"
14390: shadow_funcs="getauthuid"
14391: shadow_libs="-lauth"
14392: ;;
14393: *-*-riscos*)
14394: LIBS="${LIBS} -lsun -lbsd"
1.1.1.4 misho 14395:
14396: case "${CPPFLAGS}" in
14397: *"-I/usr/include"|*"-I/usr/include ")
14398: ;;
14399: *)
14400: if test X"${CPPFLAGS}" = X""; then
14401: CPPFLAGS="-I/usr/include"
14402: else
14403: CPPFLAGS="${CPPFLAGS} -I/usr/include"
14404: fi
14405: ;;
14406: esac
14407:
14408:
14409: case "${CPPFLAGS}" in
14410: *"-I/usr/include/bsd"|*"-I/usr/include/bsd ")
14411: ;;
14412: *)
14413: if test X"${CPPFLAGS}" = X""; then
14414: CPPFLAGS="-I/usr/include/bsd"
14415: else
14416: CPPFLAGS="${CPPFLAGS} -I/usr/include/bsd"
14417: fi
14418: ;;
14419: esac
14420:
1.1 misho 14421: OSDEFS="${OSDEFS} -D_MIPS"
14422: : ${mansectsu='1m'}
14423: : ${mansectform='4'}
14424: ;;
14425: *-*-isc*)
14426: OSDEFS="${OSDEFS} -D_ISC"
14427: LIB_CRYPT=1
14428: SUDOERS_LIBS="${SUDOERS_LIBS} -lcrypt"
14429:
14430: shadow_funcs="getspnam"
14431: shadow_libs="-lsec"
14432:
14433: : ${mansectsu='1m'}
14434: : ${mansectform='4'}
14435: ;;
14436: *-*-sco*|*-sco-*)
14437: shadow_funcs="getprpwnam"
14438: shadow_libs="-lprot -lx"
14439: : ${mansectsu='1m'}
14440: : ${mansectform='4'}
14441: ;;
14442: m88k-motorola-sysv*)
14443: # motorolla's cc (a variant of gcc) does -O but not -O2
14444: CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
14445: : ${mansectsu='1m'}
14446: : ${mansectform='4'}
14447: ;;
14448: *-sequent-sysv*)
14449: shadow_funcs="getspnam"
14450: shadow_libs="-lsec"
14451: : ${mansectsu='1m'}
14452: : ${mansectform='4'}
14453: ;;
14454: *-ncr-sysv4*|*-ncr-sysvr4*)
14455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5
14456: $as_echo_n "checking for strcasecmp in -lc89... " >&6; }
14457: if ${ac_cv_lib_c89_strcasecmp+:} false; then :
14458: $as_echo_n "(cached) " >&6
14459: else
14460: ac_check_lib_save_LIBS=$LIBS
14461: LIBS="-lc89 $LIBS"
14462: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14463: /* end confdefs.h. */
14464:
14465: /* Override any GCC internal prototype to avoid an error.
14466: Use char because int might match the return type of a GCC
14467: builtin and then its argument prototype would still apply. */
14468: #ifdef __cplusplus
14469: extern "C"
14470: #endif
14471: char strcasecmp ();
14472: int
14473: main ()
14474: {
14475: return strcasecmp ();
14476: ;
14477: return 0;
14478: }
14479: _ACEOF
14480: if ac_fn_c_try_link "$LINENO"; then :
14481: ac_cv_lib_c89_strcasecmp=yes
14482: else
14483: ac_cv_lib_c89_strcasecmp=no
14484: fi
14485: rm -f core conftest.err conftest.$ac_objext \
14486: conftest$ac_exeext conftest.$ac_ext
14487: LIBS=$ac_check_lib_save_LIBS
14488: fi
14489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5
14490: $as_echo "$ac_cv_lib_c89_strcasecmp" >&6; }
14491: if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then :
14492: LIBS="${LIBS} -lc89"
14493: fi
14494:
14495: : ${mansectsu='1m'}
14496: : ${mansectform='4'}
14497: ;;
14498: *-ccur-sysv4*|*-ccur-sysvr4*)
14499: LIBS="${LIBS} -lgen"
14500: : ${mansectsu='1m'}
14501: : ${mansectform='4'}
14502: ;;
14503: *-*-bsdi*)
14504: SKIP_SETREUID=yes
14505: # Check for newer BSD auth API
14506: if test -z "$with_bsdauth"; then
14507: for ac_func in auth_challenge
14508: do :
14509: ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge"
14510: if test "x$ac_cv_func_auth_challenge" = xyes; then :
14511: cat >>confdefs.h <<_ACEOF
14512: #define HAVE_AUTH_CHALLENGE 1
14513: _ACEOF
14514: AUTH_EXCL_DEF="BSD_AUTH"
14515: fi
14516: done
14517:
14518: fi
14519: ;;
14520: *-*-freebsd*)
14521: # FreeBSD has a real setreuid(2) starting with 2.1 and
14522: # backported to 2.0.5. We just take 2.1 and above...
14523: case "$OSREV" in
14524: 0.*|1.*|2.0*)
14525: SKIP_SETREUID=yes
14526: ;;
14527: esac
14528: OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14529: if test "${with_skey-'no'}" = "yes"; then
14530: SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14531: fi
14532: CHECKSHADOW="false"
14533: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14534: : ${with_logincap='maybe'}
14535: ;;
14536: *-*-*openbsd*)
1.1.1.4 misho 14537: # OpenBSD-specific initialization
14538: OS_INIT=os_init_openbsd
14539: SUDO_OBJS="${SUDO_OBJS} openbsd.o"
14540:
1.1 misho 14541: # OpenBSD has a real setreuid(2) starting with 3.3 but
14542: # we will use setresuid(2) instead.
14543: SKIP_SETREUID=yes
14544: OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14545: CHECKSHADOW="false"
14546: # OpenBSD >= 3.0 supports BSD auth
14547: if test -z "$with_bsdauth"; then
14548: if test "$OSMAJOR" -ge 3; then
14549: AUTH_EXCL_DEF="BSD_AUTH"
14550: fi
14551: fi
14552: : ${with_logincap='maybe'}
14553: ;;
14554: *-*-*netbsd*)
14555: # NetBSD has a real setreuid(2) starting with 1.3.2
14556: case "$OSREV" in
14557: 0.9*|1.[012]*|1.3|1.3.1)
14558: SKIP_SETREUID=yes
14559: ;;
14560: esac
14561: CHECKSHADOW="false"
14562: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14563: : ${with_logincap='maybe'}
14564: ;;
14565: *-*-dragonfly*)
14566: OSDEFS="${OSDEFS} -D_BSD_SOURCE"
14567: if test "${with_skey-'no'}" = "yes"; then
14568: SUDOERS_LIBS="${SUDOERS_LIBS} -lmd"
14569: fi
14570: CHECKSHADOW="false"
14571: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14572: : ${with_logincap='yes'}
14573: ;;
14574: *-*-*bsd*)
14575: CHECKSHADOW="false"
14576: ;;
14577: *-*-darwin*)
14578: # Darwin has a real setreuid(2) starting with 9.0
14579: if test $OSMAJOR -lt 9; then
14580: SKIP_SETREUID=yes
14581: fi
14582: CHECKSHADOW="false"
14583: test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
14584: : ${with_logincap='yes'}
1.1.1.5 ! misho 14585: # Darwin 8 and above can interpose library symbols cleanly
! 14586: if test $OSMAJOR -ge 8; then
! 14587: $as_echo "#define HAVE___INTERPOSE 1" >>confdefs.h
! 14588:
! 14589: dlyld_interpose=yes
! 14590: else
! 14591: RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
! 14592: fi
1.1.1.2 misho 14593: RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
1.1 misho 14594: ;;
14595: *-*-nextstep*)
14596: # lockf() on is broken on the NeXT -- use flock instead
14597: ac_cv_func_lockf=no
14598: ac_cv_func_flock=yes
1.1.1.2 misho 14599: RTLD_PRELOAD_VAR="DYLD_INSERT_LIBRARIES"
14600: RTLD_PRELOAD_ENABLE_VAR="DYLD_FORCE_FLAT_NAMESPACE"
1.1 misho 14601: ;;
14602: *-*-*sysv4*)
14603: : ${mansectsu='1m'}
14604: : ${mansectform='4'}
14605: ;;
14606: *-*-sysv*)
14607: : ${mansectsu='1m'}
14608: : ${mansectform='4'}
14609: ;;
14610: *-gnu*)
14611: OSDEFS="${OSDEFS} -D_GNU_SOURCE"
14612: ;;
14613: esac
14614:
1.1.1.2 misho 14615: if test -n "$with_noexec"; then
14616: cat >>confdefs.h <<EOF
14617: #define RTLD_PRELOAD_VAR "$RTLD_PRELOAD_VAR"
14618: EOF
14619:
14620: cat >>confdefs.h <<EOF
14621: #define RTLD_PRELOAD_DELIM "$RTLD_PRELOAD_DELIM"
14622: EOF
14623:
14624: if test -n "$RTLD_PRELOAD_DEFAULT"; then
14625: cat >>confdefs.h <<EOF
14626: #define RTLD_PRELOAD_DEFAULT "$RTLD_PRELOAD_DEFAULT"
14627: EOF
14628:
14629: fi
14630: if test -n "$RTLD_PRELOAD_ENABLE_VAR"; then
14631: cat >>confdefs.h <<EOF
14632: #define RTLD_PRELOAD_ENABLE_VAR "$RTLD_PRELOAD_ENABLE_VAR"
14633: EOF
14634:
14635: fi
14636: fi
14637:
1.1 misho 14638: AUTH_REG=${AUTH_REG# }
14639: AUTH_EXCL=${AUTH_EXCL# }
14640: if test -n "$AUTH_EXCL"; then
14641: set -- $AUTH_EXCL
14642: if test $# != 1; then
14643: as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5
14644: fi
14645: if test -n "$AUTH_REG"; then
14646: as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5
14647: fi
14648: fi
14649: if test X"${with_skey}${with_opie}" = X"yesyes"; then
14650: as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5
14651: fi
14652:
14653: : ${mansectsu='8'}
14654: : ${mansectform='5'}
14655:
14656: if test -n "$with_libpath"; then
14657: for i in ${with_libpath}; do
14658:
1.1.1.4 misho 14659: case "${LDFLAGS}" in
14660: *"-L$i"|*"-L$i ")
14661: ;;
14662: *)
14663: LDFLAGS="${LDFLAGS} -L$i"
14664: if test X"$enable_rpath" = X"yes"; then
14665: LDFLAGS_R="${LDFLAGS_R} -R$i"
14666: fi
14667: ;;
14668: esac
1.1 misho 14669:
14670: done
14671: fi
14672: if test -n "$with_libraries"; then
14673: for i in ${with_libraries}; do
14674: case $i in
14675: -l*) ;;
14676: *.a) ;;
14677: *.o) ;;
14678: *) i="-l${i}";;
14679: esac
14680: LIBS="${LIBS} ${i}"
14681: done
14682: fi
14683:
14684: if test $ac_cv_c_compiler_gnu = yes; then
14685: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14686: $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14687: if ${ac_cv_prog_gcc_traditional+:} false; then :
14688: $as_echo_n "(cached) " >&6
14689: else
14690: ac_pattern="Autoconf.*'x'"
14691: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692: /* end confdefs.h. */
14693: #include <sgtty.h>
14694: Autoconf TIOCGETP
14695: _ACEOF
14696: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14697: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14698: ac_cv_prog_gcc_traditional=yes
14699: else
14700: ac_cv_prog_gcc_traditional=no
14701: fi
14702: rm -f conftest*
14703:
14704:
14705: if test $ac_cv_prog_gcc_traditional = no; then
14706: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14707: /* end confdefs.h. */
14708: #include <termio.h>
14709: Autoconf TCGETA
14710: _ACEOF
14711: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14712: $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14713: ac_cv_prog_gcc_traditional=yes
14714: fi
14715: rm -f conftest*
14716:
14717: fi
14718: fi
14719: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14720: $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14721: if test $ac_cv_prog_gcc_traditional = yes; then
14722: CC="$CC -traditional"
14723: fi
14724: fi
14725:
14726: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14727: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14728: if ${ac_cv_c_const+:} false; then :
14729: $as_echo_n "(cached) " >&6
14730: else
14731: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732: /* end confdefs.h. */
14733:
14734: int
14735: main ()
14736: {
14737: /* FIXME: Include the comments suggested by Paul. */
14738: #ifndef __cplusplus
14739: /* Ultrix mips cc rejects this. */
14740: typedef int charset[2];
14741: const charset cs;
14742: /* SunOS 4.1.1 cc rejects this. */
14743: char const *const *pcpcc;
14744: char **ppc;
14745: /* NEC SVR4.0.2 mips cc rejects this. */
14746: struct point {int x, y;};
14747: static struct point const zero = {0,0};
14748: /* AIX XL C 1.02.0.0 rejects this.
14749: It does not let you subtract one const X* pointer from another in
14750: an arm of an if-expression whose if-part is not a constant
14751: expression */
14752: const char *g = "string";
14753: pcpcc = &g + (g ? g-g : 0);
14754: /* HPUX 7.0 cc rejects these. */
14755: ++pcpcc;
14756: ppc = (char**) pcpcc;
14757: pcpcc = (char const *const *) ppc;
14758: { /* SCO 3.2v4 cc rejects this. */
14759: char *t;
14760: char const *s = 0 ? (char *) 0 : (char const *) 0;
14761:
14762: *t++ = 0;
14763: if (s) return 0;
14764: }
14765: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14766: int x[] = {25, 17};
14767: const int *foo = &x[0];
14768: ++foo;
14769: }
14770: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14771: typedef const int *iptr;
14772: iptr p = 0;
14773: ++p;
14774: }
14775: { /* AIX XL C 1.02.0.0 rejects this saying
14776: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14777: struct s { int j; const int *ap[3]; };
14778: struct s *b; b->j = 5;
14779: }
14780: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14781: const int foo = 10;
14782: if (!foo) return 0;
14783: }
14784: return !cs[0] && !zero.x;
14785: #endif
14786:
14787: ;
14788: return 0;
14789: }
14790: _ACEOF
14791: if ac_fn_c_try_compile "$LINENO"; then :
14792: ac_cv_c_const=yes
14793: else
14794: ac_cv_c_const=no
14795: fi
14796: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797: fi
14798: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14799: $as_echo "$ac_cv_c_const" >&6; }
14800: if test $ac_cv_c_const = no; then
14801:
14802: $as_echo "#define const /**/" >>confdefs.h
14803:
14804: fi
14805:
14806: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
14807: $as_echo_n "checking for working volatile... " >&6; }
14808: if ${ac_cv_c_volatile+:} false; then :
14809: $as_echo_n "(cached) " >&6
14810: else
14811: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14812: /* end confdefs.h. */
14813:
14814: int
14815: main ()
14816: {
14817:
14818: volatile int x;
14819: int * volatile y = (int *) 0;
14820: return !x && !y;
14821: ;
14822: return 0;
14823: }
14824: _ACEOF
14825: if ac_fn_c_try_compile "$LINENO"; then :
14826: ac_cv_c_volatile=yes
14827: else
14828: ac_cv_c_volatile=no
14829: fi
14830: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14831: fi
14832: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
14833: $as_echo "$ac_cv_c_volatile" >&6; }
14834: if test $ac_cv_c_volatile = no; then
14835:
14836: $as_echo "#define volatile /**/" >>confdefs.h
14837:
14838: fi
14839:
1.1.1.2 misho 14840: # Check for variadic macro support in cpp
14841: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14842: /* end confdefs.h. */
14843:
14844: $ac_includes_default
14845: #if defined(__GNUC__) && __GNUC__ == 2
14846: # define sudo_fprintf(fp, fmt...) fprintf((fp), (fmt))
14847: #else
14848: # define sudo_fprintf(fp, ...) fprintf((fp), __VA_ARGS__)
14849: #endif
14850:
14851: int
14852: main ()
14853: {
14854: sudo_fprintf(stderr, "a %s", "test");
14855: ;
14856: return 0;
14857: }
14858: _ACEOF
14859: if ac_fn_c_try_compile "$LINENO"; then :
14860:
14861: else
14862: as_fn_error $? "Your C compiler doesn't support variadic macros, try building with gcc instead" "$LINENO" 5
14863: fi
14864: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1.1 misho 14865:
14866: for ac_prog in 'bison -y' byacc
14867: do
14868: # Extract the first word of "$ac_prog", so it can be a program name with args.
14869: set dummy $ac_prog; ac_word=$2
14870: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14871: $as_echo_n "checking for $ac_word... " >&6; }
14872: if ${ac_cv_prog_YACC+:} false; then :
14873: $as_echo_n "(cached) " >&6
14874: else
14875: if test -n "$YACC"; then
14876: ac_cv_prog_YACC="$YACC" # Let the user override the test.
14877: else
14878: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14879: for as_dir in $PATH
14880: do
14881: IFS=$as_save_IFS
14882: test -z "$as_dir" && as_dir=.
14883: for ac_exec_ext in '' $ac_executable_extensions; do
14884: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14885: ac_cv_prog_YACC="$ac_prog"
14886: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14887: break 2
14888: fi
14889: done
14890: done
14891: IFS=$as_save_IFS
14892:
14893: fi
14894: fi
14895: YACC=$ac_cv_prog_YACC
14896: if test -n "$YACC"; then
14897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
14898: $as_echo "$YACC" >&6; }
14899: else
14900: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901: $as_echo "no" >&6; }
14902: fi
14903:
14904:
14905: test -n "$YACC" && break
14906: done
14907: test -n "$YACC" || YACC="yacc"
14908:
14909: # Extract the first word of "flex", so it can be a program name with args.
14910: set dummy flex; ac_word=$2
14911: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14912: $as_echo_n "checking for $ac_word... " >&6; }
14913: if ${ac_cv_path_FLEX+:} false; then :
14914: $as_echo_n "(cached) " >&6
14915: else
14916: case $FLEX in
14917: [\\/]* | ?:[\\/]*)
14918: ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
14919: ;;
14920: *)
14921: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922: for as_dir in $PATH
14923: do
14924: IFS=$as_save_IFS
14925: test -z "$as_dir" && as_dir=.
14926: for ac_exec_ext in '' $ac_executable_extensions; do
14927: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14928: ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
14929: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14930: break 2
14931: fi
14932: done
14933: done
14934: IFS=$as_save_IFS
14935:
14936: test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex"
14937: ;;
14938: esac
14939: fi
14940: FLEX=$ac_cv_path_FLEX
14941: if test -n "$FLEX"; then
14942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
14943: $as_echo "$FLEX" >&6; }
14944: else
14945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946: $as_echo "no" >&6; }
14947: fi
14948:
14949:
14950: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5
14951: $as_echo_n "checking for mv... " >&6; }
14952: found=no
14953: for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do
14954: if test -f "$p"; then
14955: found=yes
14956: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14957: $as_echo "$p" >&6; }
14958: cat >>confdefs.h <<EOF
14959: #define _PATH_MV "$p"
14960: EOF
14961:
14962: break
14963: fi
14964: done
14965: if test X"$found" != X"yes"; then
14966: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14967: $as_echo "not found" >&6; }
14968: fi
14969:
14970: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5
14971: $as_echo_n "checking for bourne shell... " >&6; }
14972: found=no
14973: for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do
14974: if test -f "$p"; then
14975: found=yes
14976: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14977: $as_echo "$p" >&6; }
14978: cat >>confdefs.h <<EOF
14979: #define _PATH_BSHELL "$p"
14980: EOF
14981:
14982: break
14983: fi
14984: done
14985: if test X"$found" != X"yes"; then
14986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14987: $as_echo "not found" >&6; }
14988: fi
14989:
14990: if test -z "$with_sendmail"; then
14991: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5
14992: $as_echo_n "checking for sendmail... " >&6; }
14993: found=no
14994: for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do
14995: if test -f "$p"; then
14996: found=yes
14997: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
14998: $as_echo "$p" >&6; }
14999: cat >>confdefs.h <<EOF
15000: #define _PATH_SUDO_SENDMAIL "$p"
15001: EOF
15002:
15003: break
15004: fi
15005: done
15006: if test X"$found" != X"yes"; then
15007: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15008: $as_echo "not found" >&6; }
15009: fi
15010:
15011: fi
15012: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5
15013: $as_echo_n "checking for vi... " >&6; }
15014: found=no
15015: for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do
15016: if test -f "$editor"; then
15017: found=yes
15018: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5
15019: $as_echo "$editor" >&6; }
15020: cat >>confdefs.h <<EOF
15021: #define _PATH_VI "$editor"
15022: EOF
15023:
15024: break
15025: fi
15026: done
15027: if test X"$found" != X"yes"; then
15028: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15029: $as_echo "not found" >&6; }
15030: fi
15031:
15032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5
15033: $as_echo_n "checking which syslog facility sudo should log with... " >&6; }
15034: if test X"$with_logfac" = X""; then
15035: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036: /* end confdefs.h. */
15037: #include <syslog.h>
15038: int
15039: main ()
15040: {
15041: int i = LOG_AUTHPRIV; (void)i;
15042: ;
15043: return 0;
15044: }
15045: _ACEOF
15046: if ac_fn_c_try_compile "$LINENO"; then :
15047: logfac=authpriv
15048: fi
15049: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15050: fi
15051:
15052: cat >>confdefs.h <<_ACEOF
15053: #define LOGFAC "$logfac"
15054: _ACEOF
15055:
15056: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5
15057: $as_echo "$logfac" >&6; }
15058: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15059: $as_echo_n "checking for ANSI C header files... " >&6; }
15060: if ${ac_cv_header_stdc+:} false; then :
15061: $as_echo_n "(cached) " >&6
15062: else
15063: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064: /* end confdefs.h. */
15065: #include <stdlib.h>
15066: #include <stdarg.h>
15067: #include <string.h>
15068: #include <float.h>
15069:
15070: int
15071: main ()
15072: {
15073:
15074: ;
15075: return 0;
15076: }
15077: _ACEOF
15078: if ac_fn_c_try_compile "$LINENO"; then :
15079: ac_cv_header_stdc=yes
15080: else
15081: ac_cv_header_stdc=no
15082: fi
15083: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15084:
15085: if test $ac_cv_header_stdc = yes; then
15086: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15087: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088: /* end confdefs.h. */
15089: #include <string.h>
15090:
15091: _ACEOF
15092: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15093: $EGREP "memchr" >/dev/null 2>&1; then :
15094:
15095: else
15096: ac_cv_header_stdc=no
15097: fi
15098: rm -f conftest*
15099:
15100: fi
15101:
15102: if test $ac_cv_header_stdc = yes; then
15103: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15104: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15105: /* end confdefs.h. */
15106: #include <stdlib.h>
15107:
15108: _ACEOF
15109: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15110: $EGREP "free" >/dev/null 2>&1; then :
15111:
15112: else
15113: ac_cv_header_stdc=no
15114: fi
15115: rm -f conftest*
15116:
15117: fi
15118:
15119: if test $ac_cv_header_stdc = yes; then
15120: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15121: if test "$cross_compiling" = yes; then :
15122: :
15123: else
15124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15125: /* end confdefs.h. */
15126: #include <ctype.h>
15127: #include <stdlib.h>
15128: #if ((' ' & 0x0FF) == 0x020)
15129: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15130: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15131: #else
15132: # define ISLOWER(c) \
15133: (('a' <= (c) && (c) <= 'i') \
15134: || ('j' <= (c) && (c) <= 'r') \
15135: || ('s' <= (c) && (c) <= 'z'))
15136: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15137: #endif
15138:
15139: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15140: int
15141: main ()
15142: {
15143: int i;
15144: for (i = 0; i < 256; i++)
15145: if (XOR (islower (i), ISLOWER (i))
15146: || toupper (i) != TOUPPER (i))
15147: return 2;
15148: return 0;
15149: }
15150: _ACEOF
15151: if ac_fn_c_try_run "$LINENO"; then :
15152:
15153: else
15154: ac_cv_header_stdc=no
15155: fi
15156: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15157: conftest.$ac_objext conftest.beam conftest.$ac_ext
15158: fi
15159:
15160: fi
15161: fi
15162: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15163: $as_echo "$ac_cv_header_stdc" >&6; }
15164: if test $ac_cv_header_stdc = yes; then
15165:
15166: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15167:
15168: fi
15169:
15170: ac_header_dirent=no
15171: for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15172: as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15173: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15174: $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15175: if eval \${$as_ac_Header+:} false; then :
15176: $as_echo_n "(cached) " >&6
15177: else
15178: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179: /* end confdefs.h. */
15180: #include <sys/types.h>
15181: #include <$ac_hdr>
15182:
15183: int
15184: main ()
15185: {
15186: if ((DIR *) 0)
15187: return 0;
15188: ;
15189: return 0;
15190: }
15191: _ACEOF
15192: if ac_fn_c_try_compile "$LINENO"; then :
15193: eval "$as_ac_Header=yes"
15194: else
15195: eval "$as_ac_Header=no"
15196: fi
15197: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198: fi
15199: eval ac_res=\$$as_ac_Header
15200: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15201: $as_echo "$ac_res" >&6; }
15202: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15203: cat >>confdefs.h <<_ACEOF
15204: #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15205: _ACEOF
15206:
15207: ac_header_dirent=$ac_hdr; break
15208: fi
15209:
15210: done
15211: # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15212: if test $ac_header_dirent = dirent.h; then
15213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15214: $as_echo_n "checking for library containing opendir... " >&6; }
15215: if ${ac_cv_search_opendir+:} false; then :
15216: $as_echo_n "(cached) " >&6
15217: else
15218: ac_func_search_save_LIBS=$LIBS
15219: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15220: /* end confdefs.h. */
15221:
15222: /* Override any GCC internal prototype to avoid an error.
15223: Use char because int might match the return type of a GCC
15224: builtin and then its argument prototype would still apply. */
15225: #ifdef __cplusplus
15226: extern "C"
15227: #endif
15228: char opendir ();
15229: int
15230: main ()
15231: {
15232: return opendir ();
15233: ;
15234: return 0;
15235: }
15236: _ACEOF
15237: for ac_lib in '' dir; do
15238: if test -z "$ac_lib"; then
15239: ac_res="none required"
15240: else
15241: ac_res=-l$ac_lib
15242: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15243: fi
15244: if ac_fn_c_try_link "$LINENO"; then :
15245: ac_cv_search_opendir=$ac_res
15246: fi
15247: rm -f core conftest.err conftest.$ac_objext \
15248: conftest$ac_exeext
15249: if ${ac_cv_search_opendir+:} false; then :
15250: break
15251: fi
15252: done
15253: if ${ac_cv_search_opendir+:} false; then :
15254:
15255: else
15256: ac_cv_search_opendir=no
15257: fi
15258: rm conftest.$ac_ext
15259: LIBS=$ac_func_search_save_LIBS
15260: fi
15261: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15262: $as_echo "$ac_cv_search_opendir" >&6; }
15263: ac_res=$ac_cv_search_opendir
15264: if test "$ac_res" != no; then :
15265: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15266:
15267: fi
15268:
15269: else
15270: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15271: $as_echo_n "checking for library containing opendir... " >&6; }
15272: if ${ac_cv_search_opendir+:} false; then :
15273: $as_echo_n "(cached) " >&6
15274: else
15275: ac_func_search_save_LIBS=$LIBS
15276: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15277: /* end confdefs.h. */
15278:
15279: /* Override any GCC internal prototype to avoid an error.
15280: Use char because int might match the return type of a GCC
15281: builtin and then its argument prototype would still apply. */
15282: #ifdef __cplusplus
15283: extern "C"
15284: #endif
15285: char opendir ();
15286: int
15287: main ()
15288: {
15289: return opendir ();
15290: ;
15291: return 0;
15292: }
15293: _ACEOF
15294: for ac_lib in '' x; do
15295: if test -z "$ac_lib"; then
15296: ac_res="none required"
15297: else
15298: ac_res=-l$ac_lib
15299: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15300: fi
15301: if ac_fn_c_try_link "$LINENO"; then :
15302: ac_cv_search_opendir=$ac_res
15303: fi
15304: rm -f core conftest.err conftest.$ac_objext \
15305: conftest$ac_exeext
15306: if ${ac_cv_search_opendir+:} false; then :
15307: break
15308: fi
15309: done
15310: if ${ac_cv_search_opendir+:} false; then :
15311:
15312: else
15313: ac_cv_search_opendir=no
15314: fi
15315: rm conftest.$ac_ext
15316: LIBS=$ac_func_search_save_LIBS
15317: fi
15318: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15319: $as_echo "$ac_cv_search_opendir" >&6; }
15320: ac_res=$ac_cv_search_opendir
15321: if test "$ac_res" != no; then :
15322: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15323:
15324: fi
15325:
15326: fi
15327:
15328: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15329: $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15330: if ${ac_cv_header_time+:} false; then :
15331: $as_echo_n "(cached) " >&6
15332: else
15333: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334: /* end confdefs.h. */
15335: #include <sys/types.h>
15336: #include <sys/time.h>
15337: #include <time.h>
15338:
15339: int
15340: main ()
15341: {
15342: if ((struct tm *) 0)
15343: return 0;
15344: ;
15345: return 0;
15346: }
15347: _ACEOF
15348: if ac_fn_c_try_compile "$LINENO"; then :
15349: ac_cv_header_time=yes
15350: else
15351: ac_cv_header_time=no
15352: fi
15353: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15354: fi
15355: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15356: $as_echo "$ac_cv_header_time" >&6; }
15357: if test $ac_cv_header_time = yes; then
15358:
15359: $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15360:
15361: fi
15362:
1.1.1.2 misho 15363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15364: $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15365: if ${ac_cv_header_stdbool_h+:} false; then :
15366: $as_echo_n "(cached) " >&6
15367: else
15368: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15369: /* end confdefs.h. */
15370:
15371: #include <stdbool.h>
15372: #ifndef bool
15373: "error: bool is not defined"
15374: #endif
15375: #ifndef false
15376: "error: false is not defined"
15377: #endif
15378: #if false
15379: "error: false is not 0"
15380: #endif
15381: #ifndef true
15382: "error: true is not defined"
15383: #endif
15384: #if true != 1
15385: "error: true is not 1"
15386: #endif
15387: #ifndef __bool_true_false_are_defined
15388: "error: __bool_true_false_are_defined is not defined"
15389: #endif
15390:
15391: struct s { _Bool s: 1; _Bool t; } s;
15392:
15393: char a[true == 1 ? 1 : -1];
15394: char b[false == 0 ? 1 : -1];
15395: char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15396: char d[(bool) 0.5 == true ? 1 : -1];
15397: /* See body of main program for 'e'. */
15398: char f[(_Bool) 0.0 == false ? 1 : -1];
15399: char g[true];
15400: char h[sizeof (_Bool)];
15401: char i[sizeof s.t];
15402: enum { j = false, k = true, l = false * true, m = true * 256 };
15403: /* The following fails for
15404: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15405: _Bool n[m];
15406: char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15407: char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15408: /* Catch a bug in an HP-UX C compiler. See
15409: http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15410: http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15411: */
15412: _Bool q = true;
15413: _Bool *pq = &q;
15414:
15415: int
15416: main ()
15417: {
15418:
15419: bool e = &s;
15420: *pq |= q;
15421: *pq |= ! q;
15422: /* Refer to every declared value, to avoid compiler optimizations. */
15423: return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15424: + !m + !n + !o + !p + !q + !pq);
15425:
15426: ;
15427: return 0;
15428: }
15429: _ACEOF
15430: if ac_fn_c_try_compile "$LINENO"; then :
15431: ac_cv_header_stdbool_h=yes
15432: else
15433: ac_cv_header_stdbool_h=no
15434: fi
15435: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15436: fi
15437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15438: $as_echo "$ac_cv_header_stdbool_h" >&6; }
15439: ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15440: if test "x$ac_cv_type__Bool" = xyes; then :
15441:
15442: cat >>confdefs.h <<_ACEOF
15443: #define HAVE__BOOL 1
15444: _ACEOF
15445:
15446:
15447: fi
15448:
15449: if test $ac_cv_header_stdbool_h = yes; then
15450:
15451: $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15452:
15453: fi
15454:
15455: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
15456: $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
15457: if ${ac_cv_header_sys_types_h_makedev+:} false; then :
15458: $as_echo_n "(cached) " >&6
15459: else
15460: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15461: /* end confdefs.h. */
15462: #include <sys/types.h>
15463: int
15464: main ()
15465: {
15466: return makedev(0, 0);
15467: ;
15468: return 0;
15469: }
15470: _ACEOF
15471: if ac_fn_c_try_link "$LINENO"; then :
15472: ac_cv_header_sys_types_h_makedev=yes
15473: else
15474: ac_cv_header_sys_types_h_makedev=no
15475: fi
15476: rm -f core conftest.err conftest.$ac_objext \
15477: conftest$ac_exeext conftest.$ac_ext
15478:
15479: fi
15480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
15481: $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
15482:
15483: if test $ac_cv_header_sys_types_h_makedev = no; then
15484: ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
15485: if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
15486:
15487: $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
15488:
15489: fi
15490:
15491:
15492:
15493: if test $ac_cv_header_sys_mkdev_h = no; then
15494: ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
15495: if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
15496:
15497: $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
15498:
15499: fi
15500:
15501:
15502: fi
15503: fi
15504:
15505: for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h utmpx.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h
15506: do :
15507: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15508: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15509: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15510: cat >>confdefs.h <<_ACEOF
15511: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15512: _ACEOF
15513:
15514: fi
15515:
15516: done
15517:
1.1.1.4 misho 15518: for ac_header in endian.h sys/endian.h machine/endian.h
15519: do :
15520: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15521: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15522: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15523: cat >>confdefs.h <<_ACEOF
15524: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525: _ACEOF
15526: break
15527: fi
15528:
15529: done
15530:
1.1.1.2 misho 15531: for ac_header in procfs.h sys/procfs.h
15532: do :
15533: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15534: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15535: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15536: cat >>confdefs.h <<_ACEOF
15537: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15538: _ACEOF
15539: ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default
15540: #ifdef HAVE_PROCFS_H
15541: #include <procfs.h>
15542: #endif
15543: #ifdef HAVE_SYS_PROCFS_H
15544: #include <sys/procfs.h>
15545: #endif
15546:
15547: "
15548: if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then :
15549:
15550: cat >>confdefs.h <<_ACEOF
15551: #define HAVE_STRUCT_PSINFO_PR_TTYDEV 1
15552: _ACEOF
15553:
15554: for ac_func in _ttyname_dev
15555: do :
15556: ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev"
15557: if test "x$ac_cv_func__ttyname_dev" = xyes; then :
15558: cat >>confdefs.h <<_ACEOF
15559: #define HAVE__TTYNAME_DEV 1
15560: _ACEOF
15561:
15562: fi
15563: done
15564:
15565: fi
15566:
15567: break
1.1 misho 15568: fi
15569:
15570: done
15571:
15572: # Check whether --enable-largefile was given.
15573: if test "${enable_largefile+set}" = set; then :
15574: enableval=$enable_largefile;
15575: fi
15576:
15577: if test "$enable_largefile" != no; then
15578:
15579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15580: $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15581: if ${ac_cv_sys_largefile_CC+:} false; then :
15582: $as_echo_n "(cached) " >&6
15583: else
15584: ac_cv_sys_largefile_CC=no
15585: if test "$GCC" != yes; then
15586: ac_save_CC=$CC
15587: while :; do
15588: # IRIX 6.2 and later do not support large files by default,
15589: # so use the C compiler's -n32 option if that helps.
15590: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591: /* end confdefs.h. */
15592: #include <sys/types.h>
15593: /* Check that off_t can represent 2**63 - 1 correctly.
15594: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15595: since some C++ compilers masquerading as C compilers
15596: incorrectly reject 9223372036854775807. */
15597: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15598: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15599: && LARGE_OFF_T % 2147483647 == 1)
15600: ? 1 : -1];
15601: int
15602: main ()
15603: {
15604:
15605: ;
15606: return 0;
15607: }
15608: _ACEOF
15609: if ac_fn_c_try_compile "$LINENO"; then :
15610: break
15611: fi
15612: rm -f core conftest.err conftest.$ac_objext
15613: CC="$CC -n32"
15614: if ac_fn_c_try_compile "$LINENO"; then :
15615: ac_cv_sys_largefile_CC=' -n32'; break
15616: fi
15617: rm -f core conftest.err conftest.$ac_objext
15618: break
15619: done
15620: CC=$ac_save_CC
15621: rm -f conftest.$ac_ext
15622: fi
15623: fi
15624: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15625: $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15626: if test "$ac_cv_sys_largefile_CC" != no; then
15627: CC=$CC$ac_cv_sys_largefile_CC
15628: fi
15629:
15630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15631: $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15632: if ${ac_cv_sys_file_offset_bits+:} false; then :
15633: $as_echo_n "(cached) " >&6
15634: else
15635: while :; do
15636: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637: /* end confdefs.h. */
15638: #include <sys/types.h>
15639: /* Check that off_t can represent 2**63 - 1 correctly.
15640: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15641: since some C++ compilers masquerading as C compilers
15642: incorrectly reject 9223372036854775807. */
15643: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15644: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15645: && LARGE_OFF_T % 2147483647 == 1)
15646: ? 1 : -1];
15647: int
15648: main ()
15649: {
15650:
15651: ;
15652: return 0;
15653: }
15654: _ACEOF
15655: if ac_fn_c_try_compile "$LINENO"; then :
15656: ac_cv_sys_file_offset_bits=no; break
15657: fi
15658: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15659: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15660: /* end confdefs.h. */
15661: #define _FILE_OFFSET_BITS 64
15662: #include <sys/types.h>
15663: /* Check that off_t can represent 2**63 - 1 correctly.
15664: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15665: since some C++ compilers masquerading as C compilers
15666: incorrectly reject 9223372036854775807. */
15667: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15668: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15669: && LARGE_OFF_T % 2147483647 == 1)
15670: ? 1 : -1];
15671: int
15672: main ()
15673: {
15674:
15675: ;
15676: return 0;
15677: }
15678: _ACEOF
15679: if ac_fn_c_try_compile "$LINENO"; then :
15680: ac_cv_sys_file_offset_bits=64; break
15681: fi
15682: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683: ac_cv_sys_file_offset_bits=unknown
15684: break
15685: done
15686: fi
15687: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15688: $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15689: case $ac_cv_sys_file_offset_bits in #(
15690: no | unknown) ;;
15691: *)
15692: cat >>confdefs.h <<_ACEOF
15693: #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15694: _ACEOF
15695: ;;
15696: esac
15697: rm -rf conftest*
15698: if test $ac_cv_sys_file_offset_bits = unknown; then
15699: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15700: $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15701: if ${ac_cv_sys_large_files+:} false; then :
15702: $as_echo_n "(cached) " >&6
15703: else
15704: while :; do
15705: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706: /* end confdefs.h. */
15707: #include <sys/types.h>
15708: /* Check that off_t can represent 2**63 - 1 correctly.
15709: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15710: since some C++ compilers masquerading as C compilers
15711: incorrectly reject 9223372036854775807. */
15712: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15713: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15714: && LARGE_OFF_T % 2147483647 == 1)
15715: ? 1 : -1];
15716: int
15717: main ()
15718: {
15719:
15720: ;
15721: return 0;
15722: }
15723: _ACEOF
15724: if ac_fn_c_try_compile "$LINENO"; then :
15725: ac_cv_sys_large_files=no; break
15726: fi
15727: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15729: /* end confdefs.h. */
15730: #define _LARGE_FILES 1
15731: #include <sys/types.h>
15732: /* Check that off_t can represent 2**63 - 1 correctly.
15733: We can't simply define LARGE_OFF_T to be 9223372036854775807,
15734: since some C++ compilers masquerading as C compilers
15735: incorrectly reject 9223372036854775807. */
15736: #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15737: int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15738: && LARGE_OFF_T % 2147483647 == 1)
15739: ? 1 : -1];
15740: int
15741: main ()
15742: {
15743:
15744: ;
15745: return 0;
15746: }
15747: _ACEOF
15748: if ac_fn_c_try_compile "$LINENO"; then :
15749: ac_cv_sys_large_files=1; break
15750: fi
15751: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15752: ac_cv_sys_large_files=unknown
15753: break
15754: done
15755: fi
15756: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15757: $as_echo "$ac_cv_sys_large_files" >&6; }
15758: case $ac_cv_sys_large_files in #(
15759: no | unknown) ;;
15760: *)
15761: cat >>confdefs.h <<_ACEOF
15762: #define _LARGE_FILES $ac_cv_sys_large_files
15763: _ACEOF
15764: ;;
15765: esac
15766: rm -rf conftest*
15767: fi
15768: fi
15769:
1.1.1.4 misho 15770: case "$host_os" in
15771: hpux11.*)
1.1 misho 15772: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5
15773: $as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; }
15774: if ${sudo_cv_xopen_source_extended+:} false; then :
15775: $as_echo_n "(cached) " >&6
15776: else
15777: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778: /* end confdefs.h. */
15779: $ac_includes_default
15780: #include <sys/socket.h>
15781: int
15782: main ()
15783: {
15784:
15785: ;
15786: return 0;
15787: }
15788: _ACEOF
15789: if ac_fn_c_try_compile "$LINENO"; then :
15790: sudo_cv_xopen_source_extended=no
15791: else
15792:
15793: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15794: /* end confdefs.h. */
15795: #define _XOPEN_SOURCE_EXTENDED
15796: $ac_includes_default
15797: #include <sys/socket.h>
15798: int
15799: main ()
15800: {
15801:
15802: ;
15803: return 0;
15804: }
15805: _ACEOF
15806: if ac_fn_c_try_compile "$LINENO"; then :
15807: sudo_cv_xopen_source_extended=yes
15808: else
15809: sudo_cv_xopen_source_extended=error
15810: fi
15811: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15812:
15813: fi
15814: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815: fi
15816: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5
15817: $as_echo "$sudo_cv_xopen_source_extended" >&6; }
15818: if test "$sudo_cv_xopen_source_extended" = "yes"; then
15819: OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED"
15820: cat >>confdefs.h <<\EOF
15821: #define _XOPEN_SOURCE_EXTENDED 1
15822: EOF
15823:
15824: fi
15825: ;;
15826: esac
15827: { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5
15828: $as_echo_n "checking POSIX termios... " >&6; }
15829: if ${ac_cv_sys_posix_termios+:} false; then :
15830: $as_echo_n "(cached) " >&6
15831: else
15832: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833: /* end confdefs.h. */
15834: #include <sys/types.h>
15835: #include <unistd.h>
15836: #include <termios.h>
15837:
15838: int
15839: main ()
15840: {
15841: /* SunOS 4.0.3 has termios.h but not the library calls. */
15842: tcgetattr(0, 0);
15843: ;
15844: return 0;
15845: }
15846: _ACEOF
15847: if ac_fn_c_try_link "$LINENO"; then :
15848: ac_cv_sys_posix_termios=yes
15849: else
15850: ac_cv_sys_posix_termios=no
15851: fi
15852: rm -f core conftest.err conftest.$ac_objext \
15853: conftest$ac_exeext conftest.$ac_ext
15854: fi
15855: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5
15856: $as_echo "$ac_cv_sys_posix_termios" >&6; }
15857:
15858: if test "$ac_cv_sys_posix_termios" != "yes"; then
15859: as_fn_error $? "Must have POSIX termios to build sudo" "$LINENO" 5
15860: fi
15861:
15862: maildir=no
15863: if test X"$ac_cv_header_paths_h" = X"yes"; then
15864: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15865: /* end confdefs.h. */
15866: $ac_includes_default
15867: #include <paths.h>
15868: int
15869: main ()
15870: {
15871: char *p = _PATH_MAILDIR;
15872: ;
15873: return 0;
15874: }
15875: _ACEOF
15876: if ac_fn_c_try_compile "$LINENO"; then :
15877: maildir=yes
15878: fi
15879: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880: fi
15881: if test $maildir = no; then
15882: # Solaris has maillock.h which defines MAILDIR
15883: for ac_header in maillock.h
15884: do :
15885: ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
15886: if test "x$ac_cv_header_maillock_h" = xyes; then :
15887: cat >>confdefs.h <<_ACEOF
15888: #define HAVE_MAILLOCK_H 1
15889: _ACEOF
15890:
15891: cat >>confdefs.h <<\EOF
15892: #define _PATH_MAILDIR MAILDIR
15893: EOF
15894:
15895: maildir=yes
15896:
15897: fi
15898:
15899: done
15900:
15901: if test $maildir = no; then
15902: for d in /var/mail /var/spool/mail /usr/spool/mail; do
15903: if test -d "$d"; then
15904: maildir=yes
15905: cat >>confdefs.h <<EOF
15906: #define _PATH_MAILDIR "$d"
15907: EOF
15908:
15909: break
15910: fi
15911: done
15912: if test $maildir = no; then
15913: # unable to find mail dir, hope for the best
15914: cat >>confdefs.h <<EOF
15915: #define _PATH_MAILDIR "/var/mail"
15916: EOF
15917:
15918: fi
15919: fi
15920: fi
15921:
15922: if test ${with_logincap-'no'} != "no"; then
15923: for ac_header in login_cap.h
15924: do :
15925: ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default"
15926: if test "x$ac_cv_header_login_cap_h" = xyes; then :
15927: cat >>confdefs.h <<_ACEOF
15928: #define HAVE_LOGIN_CAP_H 1
15929: _ACEOF
1.1.1.5 ! misho 15930: LOGINCAP_USAGE='[-c class] '; LCMAN=1
1.1 misho 15931: case "$OS" in
15932: freebsd|netbsd)
15933: SUDO_LIBS="${SUDO_LIBS} -lutil"
15934: SUDOERS_LIBS="${SUDOERS_LIBS} -lutil"
15935: ;;
15936: esac
15937:
15938: fi
15939:
15940: done
15941:
15942: fi
15943: if test ${with_project-'no'} != "no"; then
15944: ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default"
15945: if test "x$ac_cv_header_project_h" = xyes; then :
15946:
15947: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5
15948: $as_echo_n "checking for setproject in -lproject... " >&6; }
15949: if ${ac_cv_lib_project_setproject+:} false; then :
15950: $as_echo_n "(cached) " >&6
15951: else
15952: ac_check_lib_save_LIBS=$LIBS
15953: LIBS="-lproject $LIBS"
15954: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955: /* end confdefs.h. */
15956:
15957: /* Override any GCC internal prototype to avoid an error.
15958: Use char because int might match the return type of a GCC
15959: builtin and then its argument prototype would still apply. */
15960: #ifdef __cplusplus
15961: extern "C"
15962: #endif
15963: char setproject ();
15964: int
15965: main ()
15966: {
15967: return setproject ();
15968: ;
15969: return 0;
15970: }
15971: _ACEOF
15972: if ac_fn_c_try_link "$LINENO"; then :
15973: ac_cv_lib_project_setproject=yes
15974: else
15975: ac_cv_lib_project_setproject=no
15976: fi
15977: rm -f core conftest.err conftest.$ac_objext \
15978: conftest$ac_exeext conftest.$ac_ext
15979: LIBS=$ac_check_lib_save_LIBS
15980: fi
15981: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5
15982: $as_echo "$ac_cv_lib_project_setproject" >&6; }
15983: if test "x$ac_cv_lib_project_setproject" = xyes; then :
15984:
15985: $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h
15986:
15987: SUDO_LIBS="${SUDO_LIBS} -lproject"
15988:
15989: fi
15990:
15991:
15992: fi
15993:
15994:
15995: fi
1.1.1.5 ! misho 15996:
! 15997: case "${CPPFLAGS}" in
! 15998: *"-D__STDC_WANT_LIB_EXT1__=1"|*"-D__STDC_WANT_LIB_EXT1__=1 ")
! 15999: ;;
! 16000: *)
! 16001: if test X"${CPPFLAGS}" = X""; then
! 16002: CPPFLAGS="-D__STDC_WANT_LIB_EXT1__=1"
! 16003: else
! 16004: CPPFLAGS="${CPPFLAGS} -D__STDC_WANT_LIB_EXT1__=1"
! 16005: fi
! 16006: ;;
! 16007: esac
! 16008:
1.1 misho 16009: ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
16010: if test "x$ac_cv_type_mode_t" = xyes; then :
16011:
16012: else
16013:
16014: cat >>confdefs.h <<_ACEOF
16015: #define mode_t int
16016: _ACEOF
16017:
16018: fi
16019:
16020: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
16021: $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
16022: if ${ac_cv_type_uid_t+:} false; then :
16023: $as_echo_n "(cached) " >&6
16024: else
16025: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16026: /* end confdefs.h. */
16027: #include <sys/types.h>
16028:
16029: _ACEOF
16030: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16031: $EGREP "uid_t" >/dev/null 2>&1; then :
16032: ac_cv_type_uid_t=yes
16033: else
16034: ac_cv_type_uid_t=no
16035: fi
16036: rm -f conftest*
16037:
16038: fi
16039: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
16040: $as_echo "$ac_cv_type_uid_t" >&6; }
16041: if test $ac_cv_type_uid_t = no; then
16042:
16043: $as_echo "#define uid_t int" >>confdefs.h
16044:
16045:
16046: $as_echo "#define gid_t int" >>confdefs.h
16047:
16048: fi
16049:
16050: ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default"
16051: if test "x$ac_cv_type___signed_char" = xyes; then :
16052:
16053: else
16054: ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default"
16055: if test "x$ac_cv_type_signed_char" = xyes; then :
16056: $as_echo "#define __signed signed" >>confdefs.h
16057:
16058: else
16059: $as_echo "#define __signed /**/" >>confdefs.h
16060:
16061: fi
16062:
16063: fi
16064:
16065: ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h>
16066: #include <signal.h>
16067: "
16068: if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
16069:
16070: else
16071: $as_echo "#define sig_atomic_t int" >>confdefs.h
16072:
16073: fi
16074:
16075: ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h>
16076: #include <signal.h>
16077: "
16078: if test "x$ac_cv_type_sigaction_t" = xyes; then :
16079:
16080: cat >>confdefs.h <<_ACEOF
16081: #define HAVE_SIGACTION_T 1
16082: _ACEOF
16083:
16084:
16085: fi
16086:
16087: ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h>
16088: #if TIME_WITH_SYS_TIME
16089: # include <sys/time.h>
16090: #endif
16091: #include <time.h>
16092: "
16093: if test "x$ac_cv_type_struct_timespec" = xyes; then :
1.1.1.2 misho 16094:
16095: cat >>confdefs.h <<_ACEOF
16096: #define HAVE_STRUCT_TIMESPEC 1
16097: _ACEOF
16098:
1.1 misho 16099:
16100: fi
16101:
16102: ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h>
16103: #include <netinet/in.h>
16104: "
16105: if test "x$ac_cv_type_struct_in6_addr" = xyes; then :
16106:
16107: cat >>confdefs.h <<_ACEOF
16108: #define HAVE_STRUCT_IN6_ADDR 1
16109: _ACEOF
16110:
16111:
16112: fi
16113:
16114:
16115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
16116: $as_echo_n "checking for long long int... " >&6; }
16117: if ${ac_cv_type_long_long_int+:} false; then :
16118: $as_echo_n "(cached) " >&6
16119: else
16120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16121: /* end confdefs.h. */
16122:
16123: /* For now, do not test the preprocessor; as of 2007 there are too many
16124: implementations with broken preprocessors. Perhaps this can
16125: be revisited in 2012. In the meantime, code should not expect
16126: #if to work with literals wider than 32 bits. */
16127: /* Test literals. */
16128: long long int ll = 9223372036854775807ll;
16129: long long int nll = -9223372036854775807LL;
16130: unsigned long long int ull = 18446744073709551615ULL;
16131: /* Test constant expressions. */
16132: typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16133: ? 1 : -1)];
16134: typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16135: ? 1 : -1)];
16136: int i = 63;
16137: int
16138: main ()
16139: {
16140: /* Test availability of runtime routines for shift and division. */
16141: long long int llmax = 9223372036854775807ll;
16142: unsigned long long int ullmax = 18446744073709551615ull;
16143: return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16144: | (llmax / ll) | (llmax % ll)
16145: | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16146: | (ullmax / ull) | (ullmax % ull));
16147: ;
16148: return 0;
16149: }
16150:
16151: _ACEOF
16152: if ac_fn_c_try_link "$LINENO"; then :
16153: if test "$cross_compiling" = yes; then :
16154: ac_cv_type_long_long_int=yes
16155: else
16156: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157: /* end confdefs.h. */
16158: #include <limits.h>
16159: #ifndef LLONG_MAX
16160: # define HALF \
16161: (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16162: # define LLONG_MAX (HALF - 1 + HALF)
16163: #endif
16164: int
16165: main ()
16166: {
16167: long long int n = 1;
16168: int i;
16169: for (i = 0; ; i++)
16170: {
16171: long long int m = n << i;
16172: if (m >> i != n)
16173: return 1;
16174: if (LLONG_MAX / 2 < m)
16175: break;
16176: }
16177: return 0;
16178: ;
16179: return 0;
16180: }
16181: _ACEOF
16182: if ac_fn_c_try_run "$LINENO"; then :
16183: ac_cv_type_long_long_int=yes
16184: else
16185: ac_cv_type_long_long_int=no
16186: fi
16187: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16188: conftest.$ac_objext conftest.beam conftest.$ac_ext
16189: fi
16190:
16191: else
16192: ac_cv_type_long_long_int=no
16193: fi
16194: rm -f core conftest.err conftest.$ac_objext \
16195: conftest$ac_exeext conftest.$ac_ext
16196: fi
16197: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
16198: $as_echo "$ac_cv_type_long_long_int" >&6; }
16199: if test $ac_cv_type_long_long_int = yes; then
16200:
16201: $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
16202:
16203: fi
16204:
1.1.1.4 misho 16205: if test X"$ac_cv_type_long_long_int" != X"yes"; then
16206: as_fn_error $? "\"C compiler does not appear have required long long support\"" "$LINENO" 5
16207: fi
1.1 misho 16208: # The cast to long int works around a bug in the HP C Compiler
16209: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16210: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16211: # This bug is HP SR number 8606223364.
16212: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
16213: $as_echo_n "checking size of long int... " >&6; }
16214: if ${ac_cv_sizeof_long_int+:} false; then :
16215: $as_echo_n "(cached) " >&6
16216: else
16217: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then :
16218:
16219: else
16220: if test "$ac_cv_type_long_int" = yes; then
16221: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16222: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16223: as_fn_error 77 "cannot compute sizeof (long int)
16224: See \`config.log' for more details" "$LINENO" 5; }
16225: else
16226: ac_cv_sizeof_long_int=0
16227: fi
16228: fi
16229:
16230: fi
16231: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
16232: $as_echo "$ac_cv_sizeof_long_int" >&6; }
16233:
16234:
16235:
16236: cat >>confdefs.h <<_ACEOF
16237: #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16238: _ACEOF
16239:
16240:
1.1.1.5 ! misho 16241: ac_fn_c_check_type "$LINENO" "id_t" "ac_cv_type_id_t" "$ac_includes_default"
! 16242: if test "x$ac_cv_type_id_t" = xyes; then :
! 16243:
! 16244: else
! 16245:
! 16246: cat >>confdefs.h <<_ACEOF
! 16247: #define id_t unsigned int
! 16248: _ACEOF
! 16249:
! 16250: fi
! 16251:
1.1.1.2 misho 16252: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16253: if test "x$ac_cv_type_size_t" = xyes; then :
16254:
1.1 misho 16255: else
1.1.1.2 misho 16256:
16257: cat >>confdefs.h <<_ACEOF
16258: #define size_t unsigned int
1.1 misho 16259: _ACEOF
16260:
16261: fi
16262:
1.1.1.2 misho 16263: ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
16264: if test "x$ac_cv_type_ssize_t" = xyes; then :
1.1 misho 16265:
16266: else
1.1.1.2 misho 16267:
16268: cat >>confdefs.h <<_ACEOF
16269: #define ssize_t int
1.1 misho 16270: _ACEOF
16271:
16272: fi
16273:
1.1.1.2 misho 16274: ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
16275: if test "x$ac_cv_type_dev_t" = xyes; then :
1.1 misho 16276:
16277: else
1.1.1.2 misho 16278:
16279: cat >>confdefs.h <<_ACEOF
16280: #define dev_t int
1.1 misho 16281: _ACEOF
16282:
16283: fi
16284:
1.1.1.2 misho 16285: ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
16286: if test "x$ac_cv_type_ino_t" = xyes; then :
1.1 misho 16287:
16288: else
1.1.1.2 misho 16289:
16290: cat >>confdefs.h <<_ACEOF
16291: #define ino_t unsigned int
1.1 misho 16292: _ACEOF
16293:
16294: fi
16295:
1.1.1.4 misho 16296: ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
16297: if test "x$ac_cv_type_uint8_t" = xyes; then :
16298:
16299: else
16300:
16301: cat >>confdefs.h <<_ACEOF
16302: #define uint8_t unsigned char
16303: _ACEOF
16304:
16305: fi
16306:
16307: ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
16308: if test "x$ac_cv_type_uint32_t" = xyes; then :
16309:
16310: else
16311:
16312: cat >>confdefs.h <<_ACEOF
16313: #define uint32_t unsigned int
16314: _ACEOF
16315:
16316: fi
16317:
16318: ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
16319: if test "x$ac_cv_type_uint64_t" = xyes; then :
16320:
16321: else
16322:
16323: cat >>confdefs.h <<_ACEOF
16324: #define uint64_t unsigned long long
16325: _ACEOF
16326:
16327: fi
16328:
1.1.1.2 misho 16329: ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
16330: $ac_includes_default
16331: #include <sys/socket.h>
16332: "
16333: if test "x$ac_cv_type_socklen_t" = xyes; then :
16334:
16335: else
16336: $as_echo "#define socklen_t unsigned int" >>confdefs.h
1.1 misho 16337:
16338: fi
16339:
1.1.1.5 ! misho 16340: ac_fn_c_check_type "$LINENO" "rsize_t" "ac_cv_type_rsize_t" "$ac_includes_default"
! 16341: if test "x$ac_cv_type_rsize_t" = xyes; then :
! 16342:
! 16343: else
! 16344:
! 16345: cat >>confdefs.h <<_ACEOF
! 16346: #define rsize_t size_t
! 16347: _ACEOF
! 16348:
! 16349: fi
! 16350:
! 16351: ac_fn_c_check_type "$LINENO" "errno_t" "ac_cv_type_errno_t" "$ac_includes_default"
! 16352: if test "x$ac_cv_type_errno_t" = xyes; then :
! 16353:
! 16354: else
! 16355:
! 16356: cat >>confdefs.h <<_ACEOF
! 16357: #define errno_t int
! 16358: _ACEOF
! 16359:
! 16360: fi
! 16361:
1.1 misho 16362:
16363: { $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5
16364: $as_echo_n "checking max length of uid_t... " >&6; }
16365: if ${sudo_cv_uid_t_len+:} false; then :
16366: $as_echo_n "(cached) " >&6
16367: else
16368: rm -f conftestdata
16369: if test "$cross_compiling" = yes; then :
16370: sudo_cv_uid_t_len=10
16371: else
16372: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373: /* end confdefs.h. */
16374: #include <stdio.h>
16375: #include <pwd.h>
16376: #include <limits.h>
16377: #include <sys/types.h>
16378: #include <sys/param.h>
16379: main() {
16380: FILE *f;
16381: char b[1024];
16382: uid_t u = (uid_t) -1;
16383:
16384: if ((f = fopen("conftestdata", "w")) == NULL)
16385: exit(1);
16386:
16387: (void) sprintf(b, "%lu", (unsigned long) u);
16388: (void) fprintf(f, "%d\n", strlen(b));
16389: (void) fclose(f);
16390: exit(0);
16391: }
16392: _ACEOF
16393: if ac_fn_c_try_run "$LINENO"; then :
16394: sudo_cv_uid_t_len=`cat conftestdata`
16395: else
16396: sudo_cv_uid_t_len=10
16397: fi
16398: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16399: conftest.$ac_objext conftest.beam conftest.$ac_ext
16400: fi
16401:
16402:
16403: fi
16404:
16405: rm -f conftestdata
16406: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5
16407: $as_echo "$sudo_cv_uid_t_len" >&6; }
16408:
16409: cat >>confdefs.h <<_ACEOF
16410: #define MAX_UID_T_LEN $sudo_cv_uid_t_len
16411: _ACEOF
16412:
16413:
16414:
16415: ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h>
16416: #include <sys/socket.h>
16417:
16418: "
16419: if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
16420:
1.1.1.2 misho 16421: $as_echo "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
1.1 misho 16422:
16423: fi
16424:
16425:
16426: _CFLAGS="$CFLAGS"
16427: CFLAGS="$CFLAGS $OSDEFS"
16428: if test $ac_cv_header_utmpx_h = "yes"; then
16429: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_id" "ac_cv_member_struct_utmpx_ut_id" "
16430: #include <sys/types.h>
16431: #include <utmpx.h>
16432:
16433: "
16434: if test "x$ac_cv_member_struct_utmpx_ut_id" = xyes; then :
16435:
16436: cat >>confdefs.h <<_ACEOF
16437: #define HAVE_STRUCT_UTMPX_UT_ID 1
16438: _ACEOF
16439:
16440:
16441: fi
16442: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_pid" "ac_cv_member_struct_utmpx_ut_pid" "
16443: #include <sys/types.h>
16444: #include <utmpx.h>
16445:
16446: "
16447: if test "x$ac_cv_member_struct_utmpx_ut_pid" = xyes; then :
16448:
16449: cat >>confdefs.h <<_ACEOF
16450: #define HAVE_STRUCT_UTMPX_UT_PID 1
16451: _ACEOF
16452:
16453:
16454: fi
16455: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_tv" "ac_cv_member_struct_utmpx_ut_tv" "
16456: #include <sys/types.h>
16457: #include <utmpx.h>
16458:
16459: "
16460: if test "x$ac_cv_member_struct_utmpx_ut_tv" = xyes; then :
16461:
16462: cat >>confdefs.h <<_ACEOF
16463: #define HAVE_STRUCT_UTMPX_UT_TV 1
16464: _ACEOF
16465:
16466:
16467: fi
16468: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_type" "ac_cv_member_struct_utmpx_ut_type" "
16469: #include <sys/types.h>
16470: #include <utmpx.h>
16471:
16472: "
16473: if test "x$ac_cv_member_struct_utmpx_ut_type" = xyes; then :
16474:
16475: cat >>confdefs.h <<_ACEOF
16476: #define HAVE_STRUCT_UTMPX_UT_TYPE 1
16477: _ACEOF
16478:
16479:
16480: fi
16481:
16482: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.__e_termination" "ac_cv_member_struct_utmpx_ut_exit___e_termination" "
16483: #include <sys/types.h>
16484: #include <utmpx.h>
16485:
16486: "
16487: if test "x$ac_cv_member_struct_utmpx_ut_exit___e_termination" = xyes; then :
16488:
16489: cat >>confdefs.h <<_ACEOF
16490: #define HAVE_STRUCT_UTMPX_UT_EXIT___E_TERMINATION 1
16491: _ACEOF
16492:
16493: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16494:
16495: else
16496:
16497: ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_exit.e_termination" "ac_cv_member_struct_utmpx_ut_exit_e_termination" "
16498: #include <sys/types.h>
16499: #include <utmpx.h>
16500:
16501: "
16502: if test "x$ac_cv_member_struct_utmpx_ut_exit_e_termination" = xyes; then :
16503:
16504: cat >>confdefs.h <<_ACEOF
16505: #define HAVE_STRUCT_UTMPX_UT_EXIT_E_TERMINATION 1
16506: _ACEOF
16507:
16508: $as_echo "#define HAVE_STRUCT_UTMPX_UT_EXIT 1" >>confdefs.h
16509:
16510: fi
16511:
16512:
16513: fi
16514:
16515: else
16516: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
16517: #include <sys/types.h>
16518: #include <utmp.h>
16519:
16520: "
16521: if test "x$ac_cv_member_struct_utmp_ut_id" = xyes; then :
16522:
16523: cat >>confdefs.h <<_ACEOF
16524: #define HAVE_STRUCT_UTMP_UT_ID 1
16525: _ACEOF
16526:
16527:
16528: fi
16529: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
16530: #include <sys/types.h>
16531: #include <utmp.h>
16532:
16533: "
16534: if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
16535:
16536: cat >>confdefs.h <<_ACEOF
16537: #define HAVE_STRUCT_UTMP_UT_PID 1
16538: _ACEOF
16539:
16540:
16541: fi
16542: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_tv" "ac_cv_member_struct_utmp_ut_tv" "
16543: #include <sys/types.h>
16544: #include <utmp.h>
16545:
16546: "
16547: if test "x$ac_cv_member_struct_utmp_ut_tv" = xyes; then :
16548:
16549: cat >>confdefs.h <<_ACEOF
16550: #define HAVE_STRUCT_UTMP_UT_TV 1
16551: _ACEOF
16552:
16553:
16554: fi
16555: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
16556: #include <sys/types.h>
16557: #include <utmp.h>
16558:
16559: "
16560: if test "x$ac_cv_member_struct_utmp_ut_type" = xyes; then :
16561:
16562: cat >>confdefs.h <<_ACEOF
16563: #define HAVE_STRUCT_UTMP_UT_TYPE 1
16564: _ACEOF
16565:
16566:
16567: fi
16568: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_user" "ac_cv_member_struct_utmp_ut_user" "
16569: #include <sys/types.h>
16570: #include <utmp.h>
16571:
16572: "
16573: if test "x$ac_cv_member_struct_utmp_ut_user" = xyes; then :
16574:
16575: cat >>confdefs.h <<_ACEOF
16576: #define HAVE_STRUCT_UTMP_UT_USER 1
16577: _ACEOF
16578:
16579:
16580: fi
16581:
16582: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.__e_termination" "ac_cv_member_struct_utmp_ut_exit___e_termination" "
16583: #include <sys/types.h>
16584: #include <utmp.h>
16585:
16586: "
16587: if test "x$ac_cv_member_struct_utmp_ut_exit___e_termination" = xyes; then :
16588:
16589: cat >>confdefs.h <<_ACEOF
16590: #define HAVE_STRUCT_UTMP_UT_EXIT___E_TERMINATION 1
16591: _ACEOF
16592:
16593: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16594:
16595: else
16596:
16597: ac_fn_c_check_member "$LINENO" "struct utmp" "ut_exit.e_termination" "ac_cv_member_struct_utmp_ut_exit_e_termination" "
16598: #include <sys/types.h>
16599: #include <utmp.h>
16600:
16601: "
16602: if test "x$ac_cv_member_struct_utmp_ut_exit_e_termination" = xyes; then :
16603:
16604: cat >>confdefs.h <<_ACEOF
16605: #define HAVE_STRUCT_UTMP_UT_EXIT_E_TERMINATION 1
16606: _ACEOF
16607:
16608: $as_echo "#define HAVE_STRUCT_UTMP_UT_EXIT 1" >>confdefs.h
16609:
16610: fi
16611:
16612:
16613: fi
16614:
16615: fi
16616: CFLAGS="$_CFLAGS"
16617:
16618: { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
16619: $as_echo_n "checking type of array argument to getgroups... " >&6; }
16620: if ${ac_cv_type_getgroups+:} false; then :
16621: $as_echo_n "(cached) " >&6
16622: else
16623: if test "$cross_compiling" = yes; then :
16624: ac_cv_type_getgroups=cross
16625: else
16626: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16627: /* end confdefs.h. */
16628: /* Thanks to Mike Rendell for this test. */
16629: $ac_includes_default
16630: #define NGID 256
16631: #undef MAX
16632: #define MAX(x, y) ((x) > (y) ? (x) : (y))
16633:
16634: int
16635: main ()
16636: {
16637: gid_t gidset[NGID];
16638: int i, n;
16639: union { gid_t gval; long int lval; } val;
16640:
16641: val.lval = -1;
16642: for (i = 0; i < NGID; i++)
16643: gidset[i] = val.gval;
16644: n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
16645: gidset);
16646: /* Exit non-zero if getgroups seems to require an array of ints. This
16647: happens when gid_t is short int but getgroups modifies an array
16648: of ints. */
16649: return n > 0 && gidset[n] != val.gval;
16650: }
16651: _ACEOF
16652: if ac_fn_c_try_run "$LINENO"; then :
16653: ac_cv_type_getgroups=gid_t
16654: else
16655: ac_cv_type_getgroups=int
16656: fi
16657: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16658: conftest.$ac_objext conftest.beam conftest.$ac_ext
16659: fi
16660:
16661: if test $ac_cv_type_getgroups = cross; then
16662: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663: /* end confdefs.h. */
16664: #include <unistd.h>
16665:
16666: _ACEOF
16667: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668: $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
16669: ac_cv_type_getgroups=gid_t
16670: else
16671: ac_cv_type_getgroups=int
16672: fi
16673: rm -f conftest*
16674:
16675: fi
16676: fi
16677: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
16678: $as_echo "$ac_cv_type_getgroups" >&6; }
16679:
16680: cat >>confdefs.h <<_ACEOF
16681: #define GETGROUPS_T $ac_cv_type_getgroups
16682: _ACEOF
16683:
16684:
16685: ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16686: if test "x$ac_cv_type_size_t" = xyes; then :
16687:
16688: else
16689:
16690: cat >>confdefs.h <<_ACEOF
16691: #define size_t unsigned int
16692: _ACEOF
16693:
16694: fi
16695:
16696: ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups"
16697: if test "x$ac_cv_func_getgroups" = xyes; then :
16698:
16699: fi
16700:
16701:
16702: # If we don't yet have getgroups, see if it's in -lbsd.
16703: # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
16704: ac_save_LIBS=$LIBS
16705: if test $ac_cv_func_getgroups = no; then
16706: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5
16707: $as_echo_n "checking for getgroups in -lbsd... " >&6; }
16708: if ${ac_cv_lib_bsd_getgroups+:} false; then :
16709: $as_echo_n "(cached) " >&6
16710: else
16711: ac_check_lib_save_LIBS=$LIBS
16712: LIBS="-lbsd $LIBS"
16713: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16714: /* end confdefs.h. */
16715:
16716: /* Override any GCC internal prototype to avoid an error.
16717: Use char because int might match the return type of a GCC
16718: builtin and then its argument prototype would still apply. */
16719: #ifdef __cplusplus
16720: extern "C"
16721: #endif
16722: char getgroups ();
16723: int
16724: main ()
16725: {
16726: return getgroups ();
16727: ;
16728: return 0;
16729: }
16730: _ACEOF
16731: if ac_fn_c_try_link "$LINENO"; then :
16732: ac_cv_lib_bsd_getgroups=yes
16733: else
16734: ac_cv_lib_bsd_getgroups=no
16735: fi
16736: rm -f core conftest.err conftest.$ac_objext \
16737: conftest$ac_exeext conftest.$ac_ext
16738: LIBS=$ac_check_lib_save_LIBS
16739: fi
16740: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5
16741: $as_echo "$ac_cv_lib_bsd_getgroups" >&6; }
16742: if test "x$ac_cv_lib_bsd_getgroups" = xyes; then :
16743: GETGROUPS_LIB=-lbsd
16744: fi
16745:
16746: fi
16747:
16748: # Run the program to test the functionality of the system-supplied
16749: # getgroups function only if there is such a function.
16750: if test $ac_cv_func_getgroups = yes; then
16751: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5
16752: $as_echo_n "checking for working getgroups... " >&6; }
16753: if ${ac_cv_func_getgroups_works+:} false; then :
16754: $as_echo_n "(cached) " >&6
16755: else
16756: if test "$cross_compiling" = yes; then :
16757: ac_cv_func_getgroups_works=no
16758: else
16759: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760: /* end confdefs.h. */
16761: $ac_includes_default
16762: int
16763: main ()
16764: {
16765: /* On Ultrix 4.3, getgroups (0, 0) always fails. */
16766: return getgroups (0, 0) == -1;
16767: ;
16768: return 0;
16769: }
16770: _ACEOF
16771: if ac_fn_c_try_run "$LINENO"; then :
16772: ac_cv_func_getgroups_works=yes
16773: else
16774: ac_cv_func_getgroups_works=no
16775: fi
16776: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16777: conftest.$ac_objext conftest.beam conftest.$ac_ext
16778: fi
16779:
16780:
16781: fi
16782: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5
16783: $as_echo "$ac_cv_func_getgroups_works" >&6; }
16784: else
16785: ac_cv_func_getgroups_works=no
16786: fi
16787: if test $ac_cv_func_getgroups_works = yes; then
16788:
16789: $as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h
16790:
16791: fi
16792: LIBS=$ac_save_LIBS
16793:
1.1.1.4 misho 16794: for ac_func in glob nl_langinfo regcomp setenv strftime strrchr strtoll \
16795: sysconf tzset
1.1 misho 16796: do :
16797: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16798: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16799: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16800: cat >>confdefs.h <<_ACEOF
16801: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16802: _ACEOF
16803:
16804: fi
16805: done
16806:
1.1.1.4 misho 16807: for ac_func in getgrouplist
16808: do :
16809: ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
1.1 misho 16810: if test "x$ac_cv_func_getgrouplist" = xyes; then :
1.1.1.4 misho 16811: cat >>confdefs.h <<_ACEOF
16812: #define HAVE_GETGROUPLIST 1
16813: _ACEOF
1.1 misho 16814:
16815: else
1.1.1.4 misho 16816:
16817: case "$host_os" in
16818: aix*)
16819: for ac_func in getgrset
16820: do :
16821: ac_fn_c_check_func "$LINENO" "getgrset" "ac_cv_func_getgrset"
16822: if test "x$ac_cv_func_getgrset" = xyes; then :
16823: cat >>confdefs.h <<_ACEOF
16824: #define HAVE_GETGRSET 1
16825: _ACEOF
16826:
16827: fi
16828: done
16829:
16830: ;;
16831: *)
16832: ac_fn_c_check_func "$LINENO" "nss_search" "ac_cv_func_nss_search"
16833: if test "x$ac_cv_func_nss_search" = xyes; then :
16834:
16835: ac_fn_c_check_func "$LINENO" "_nss_XbyY_buf_alloc" "ac_cv_func__nss_XbyY_buf_alloc"
16836: if test "x$ac_cv_func__nss_XbyY_buf_alloc" = xyes; then :
16837:
16838: # Solaris
16839: ac_fn_c_check_func "$LINENO" "_nss_initf_group" "ac_cv_func__nss_initf_group"
16840: if test "x$ac_cv_func__nss_initf_group" = xyes; then :
16841:
16842: for ac_header in nss_dbdefs.h
16843: do :
16844: ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16845: if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16846: cat >>confdefs.h <<_ACEOF
16847: #define HAVE_NSS_DBDEFS_H 1
16848: _ACEOF
16849:
16850: fi
16851:
16852: done
16853:
16854: $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16855:
16856: $as_echo "#define HAVE__NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16857:
16858: $as_echo "#define HAVE__NSS_INITF_GROUP 1" >>confdefs.h
16859:
16860:
16861: fi
16862:
16863:
16864: else
16865:
16866: # HP-UX
16867: ac_fn_c_check_func "$LINENO" "__nss_XbyY_buf_alloc" "ac_cv_func___nss_XbyY_buf_alloc"
16868: if test "x$ac_cv_func___nss_XbyY_buf_alloc" = xyes; then :
16869:
16870: ac_fn_c_check_func "$LINENO" "__nss_initf_group" "ac_cv_func___nss_initf_group"
16871: if test "x$ac_cv_func___nss_initf_group" = xyes; then :
16872:
16873: for ac_header in nss_dbdefs.h
16874: do :
16875: ac_fn_c_check_header_mongrel "$LINENO" "nss_dbdefs.h" "ac_cv_header_nss_dbdefs_h" "$ac_includes_default"
16876: if test "x$ac_cv_header_nss_dbdefs_h" = xyes; then :
16877: cat >>confdefs.h <<_ACEOF
16878: #define HAVE_NSS_DBDEFS_H 1
16879: _ACEOF
16880:
16881: fi
16882:
16883: done
16884:
16885: $as_echo "#define HAVE_NSS_SEARCH 1" >>confdefs.h
16886:
16887: $as_echo "#define HAVE___NSS_XBYY_BUF_ALLOC 1" >>confdefs.h
16888:
16889: $as_echo "#define HAVE___NSS_INITF_GROUP 1" >>confdefs.h
16890:
16891:
16892: fi
16893:
16894:
16895: fi
16896:
16897:
16898: fi
16899:
16900:
16901: fi
16902:
16903: ;;
16904: esac
16905: case " $LIBOBJS " in
1.1 misho 16906: *" getgrouplist.$ac_objext "* ) ;;
16907: *) LIBOBJS="$LIBOBJS getgrouplist.$ac_objext"
16908: ;;
16909: esac
16910:
16911:
1.1.1.4 misho 16912: fi
16913: done
1.1 misho 16914:
16915: for ac_func in getline
16916: do :
16917: ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16918: if test "x$ac_cv_func_getline" = xyes; then :
16919: cat >>confdefs.h <<_ACEOF
16920: #define HAVE_GETLINE 1
16921: _ACEOF
16922:
16923: else
16924:
16925: case " $LIBOBJS " in
16926: *" getline.$ac_objext "* ) ;;
16927: *) LIBOBJS="$LIBOBJS getline.$ac_objext"
16928: ;;
16929: esac
16930:
16931: for ac_func in fgetln
16932: do :
16933: ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln"
16934: if test "x$ac_cv_func_fgetln" = xyes; then :
16935: cat >>confdefs.h <<_ACEOF
16936: #define HAVE_FGETLN 1
16937: _ACEOF
16938:
16939: fi
16940: done
16941:
16942:
16943: fi
16944: done
16945:
1.1.1.3 misho 16946: if test "$enable_hardening" != "no"; then
16947: O_CPPFLAGS="$CPPFLAGS"
16948: CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
16949: ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk"
1.1.1.2 misho 16950: if test "x$ac_cv_func___sprintf_chk" = xyes; then :
16951:
1.1.1.3 misho 16952: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1.1.2 misho 16953: /* end confdefs.h. */
16954:
16955: int
16956: main ()
16957: {
16958: char buf[4]; (void)sprintf(buf, "%s", "foo");
16959: ;
16960: return 0;
16961: }
16962: _ACEOF
16963: if ac_fn_c_try_link "$LINENO"; then :
16964: OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2"
16965: fi
16966: rm -f core conftest.err conftest.$ac_objext \
16967: conftest$ac_exeext conftest.$ac_ext
16968:
16969: fi
16970:
1.1.1.3 misho 16971: CPPFLAGS="$O_CPPFLAGS"
16972: fi
1.1.1.2 misho 16973:
1.1 misho 16974: utmp_style=LEGACY
16975: for ac_func in getutxid getutid
16976: do :
16977: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16978: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16979: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16980: cat >>confdefs.h <<_ACEOF
16981: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16982: _ACEOF
16983: utmp_style=POSIX; break
16984: fi
16985: done
16986:
16987: if test "$utmp_style" = "LEGACY"; then
16988: for ac_func in getttyent ttyslot
16989: do :
16990: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16991: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16992: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16993: cat >>confdefs.h <<_ACEOF
16994: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16995: _ACEOF
16996: break
16997: fi
16998: done
16999:
1.1.1.3 misho 17000: for ac_func in fseeko
17001: do :
17002: ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko"
17003: if test "x$ac_cv_func_fseeko" = xyes; then :
17004: cat >>confdefs.h <<_ACEOF
17005: #define HAVE_FSEEKO 1
17006: _ACEOF
17007:
17008: fi
17009: done
17010:
1.1 misho 17011: fi
17012:
1.1.1.2 misho 17013: for ac_func in sysctl
1.1 misho 17014: do :
1.1.1.2 misho 17015: ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
17016: if test "x$ac_cv_func_sysctl" = xyes; then :
1.1 misho 17017: cat >>confdefs.h <<_ACEOF
1.1.1.2 misho 17018: #define HAVE_SYSCTL 1
1.1 misho 17019: _ACEOF
1.1.1.2 misho 17020: ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" "
17021: #include <sys/param.h>
17022: #include <sys/sysctl.h>
17023: #include <sys/user.h>
17024:
17025: "
17026: if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then :
17027:
17028: cat >>confdefs.h <<_ACEOF
17029: #define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1
1.1 misho 17030: _ACEOF
17031:
17032:
17033: else
17034:
1.1.1.2 misho 17035: ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" "
17036: #include <sys/param.h>
17037: #include <sys/sysctl.h>
1.1 misho 17038:
1.1.1.2 misho 17039: "
17040: if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then :
17041:
17042: cat >>confdefs.h <<_ACEOF
17043: #define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1
1.1 misho 17044: _ACEOF
1.1.1.2 misho 17045:
17046:
1.1 misho 17047: else
1.1.1.2 misho 17048:
17049: ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" "
17050: #include <sys/param.h>
17051: #include <sys/sysctl.h>
17052:
17053: "
17054: if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then :
17055:
17056: cat >>confdefs.h <<_ACEOF
17057: #define HAVE_STRUCT_KINFO_PROC_P_TDEV 1
17058: _ACEOF
17059:
17060:
17061: else
17062:
17063: ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" "
17064: #include <sys/param.h>
17065: #include <sys/sysctl.h>
17066:
17067: "
17068: if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then :
17069:
17070: cat >>confdefs.h <<_ACEOF
17071: #define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1
17072: _ACEOF
17073:
17074:
17075: fi
17076:
17077:
17078: fi
17079:
17080:
17081: fi
17082:
17083:
17084: fi
17085:
17086:
17087: fi
17088: done
17089:
17090:
17091: for ac_func in openpty
17092: do :
17093: ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
17094: if test "x$ac_cv_func_openpty" = xyes; then :
17095: cat >>confdefs.h <<_ACEOF
17096: #define HAVE_OPENPTY 1
17097: _ACEOF
17098: for ac_header in libutil.h util.h pty.h
17099: do :
17100: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17101: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17102: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17103: cat >>confdefs.h <<_ACEOF
17104: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17105: _ACEOF
17106: break
17107: fi
17108:
17109: done
17110:
17111: else
17112:
17113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
17114: $as_echo_n "checking for openpty in -lutil... " >&6; }
17115: if ${ac_cv_lib_util_openpty+:} false; then :
17116: $as_echo_n "(cached) " >&6
17117: else
17118: ac_check_lib_save_LIBS=$LIBS
17119: LIBS="-lutil $LIBS"
17120: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121: /* end confdefs.h. */
17122:
17123: /* Override any GCC internal prototype to avoid an error.
17124: Use char because int might match the return type of a GCC
17125: builtin and then its argument prototype would still apply. */
17126: #ifdef __cplusplus
17127: extern "C"
17128: #endif
17129: char openpty ();
17130: int
17131: main ()
17132: {
17133: return openpty ();
17134: ;
17135: return 0;
17136: }
17137: _ACEOF
17138: if ac_fn_c_try_link "$LINENO"; then :
17139: ac_cv_lib_util_openpty=yes
17140: else
17141: ac_cv_lib_util_openpty=no
1.1 misho 17142: fi
17143: rm -f core conftest.err conftest.$ac_objext \
17144: conftest$ac_exeext conftest.$ac_ext
17145: LIBS=$ac_check_lib_save_LIBS
17146: fi
17147: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
17148: $as_echo "$ac_cv_lib_util_openpty" >&6; }
17149: if test "x$ac_cv_lib_util_openpty" = xyes; then :
17150:
17151: for ac_header in libutil.h util.h pty.h
17152: do :
17153: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17154: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17155: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17156: cat >>confdefs.h <<_ACEOF
17157: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17158: _ACEOF
17159: break
17160: fi
17161:
17162: done
17163:
17164: case "$SUDO_LIBS" in
17165: *-lutil*) ;;
17166: *) SUDO_LIBS="${SUDO_LIBS} -lutil";;
17167: esac
17168: $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
17169:
17170:
17171: else
17172:
17173: for ac_func in _getpty
17174: do :
17175: ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty"
17176: if test "x$ac_cv_func__getpty" = xyes; then :
17177: cat >>confdefs.h <<_ACEOF
17178: #define HAVE__GETPTY 1
17179: _ACEOF
17180:
17181: else
17182:
17183: for ac_func in grantpt
17184: do :
17185: ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
17186: if test "x$ac_cv_func_grantpt" = xyes; then :
17187: cat >>confdefs.h <<_ACEOF
17188: #define HAVE_GRANTPT 1
17189: _ACEOF
17190:
17191: for ac_func in posix_openpt
17192: do :
17193: ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
17194: if test "x$ac_cv_func_posix_openpt" = xyes; then :
17195: cat >>confdefs.h <<_ACEOF
17196: #define HAVE_POSIX_OPENPT 1
17197: _ACEOF
17198:
17199: fi
17200: done
17201:
17202:
17203: else
17204:
17205: for ac_func in revoke
17206: do :
17207: ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke"
17208: if test "x$ac_cv_func_revoke" = xyes; then :
17209: cat >>confdefs.h <<_ACEOF
17210: #define HAVE_REVOKE 1
17211: _ACEOF
17212:
17213: fi
17214: done
17215:
17216:
17217: fi
17218: done
17219:
17220:
17221: fi
17222: done
17223:
17224:
17225: fi
17226:
17227:
17228: fi
17229: done
17230:
17231: for ac_func in unsetenv
17232: do :
17233: ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
17234: if test "x$ac_cv_func_unsetenv" = xyes; then :
17235: cat >>confdefs.h <<_ACEOF
17236: #define HAVE_UNSETENV 1
17237: _ACEOF
17238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5
17239: $as_echo_n "checking whether unsetenv returns void... " >&6; }
17240: if ${sudo_cv_func_unsetenv_void+:} false; then :
17241: $as_echo_n "(cached) " >&6
17242: else
17243: if test "$cross_compiling" = yes; then :
17244: sudo_cv_func_unsetenv_void=no
17245: else
17246: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247: /* end confdefs.h. */
17248: $ac_includes_default
17249: int unsetenv();
17250:
17251: int
17252: main ()
17253: {
17254:
17255: return unsetenv("FOO") != 0;
17256:
17257: ;
17258: return 0;
17259: }
17260:
17261: _ACEOF
17262: if ac_fn_c_try_run "$LINENO"; then :
17263: sudo_cv_func_unsetenv_void=no
17264: else
17265: sudo_cv_func_unsetenv_void=yes
17266: fi
17267: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17268: conftest.$ac_objext conftest.beam conftest.$ac_ext
17269: fi
17270:
17271: fi
17272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5
17273: $as_echo "$sudo_cv_func_unsetenv_void" >&6; }
17274: if test $sudo_cv_func_unsetenv_void = yes; then
17275:
17276: $as_echo "#define UNSETENV_VOID 1" >>confdefs.h
17277:
17278: fi
17279:
1.1.1.2 misho 17280: fi
17281: done
17282:
17283: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv takes a const argument" >&5
17284: $as_echo_n "checking whether putenv takes a const argument... " >&6; }
17285: if ${sudo_cv_func_putenv_const+:} false; then :
17286: $as_echo_n "(cached) " >&6
1.1 misho 17287: else
1.1.1.2 misho 17288: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17289: /* end confdefs.h. */
17290: $ac_includes_default
17291: int putenv(const char *string) {return 0;}
17292: int
17293: main ()
17294: {
1.1 misho 17295:
1.1.1.2 misho 17296: ;
17297: return 0;
17298: }
17299: _ACEOF
17300: if ac_fn_c_try_compile "$LINENO"; then :
17301: sudo_cv_func_putenv_const=yes
17302: else
17303: sudo_cv_func_putenv_const=no
1.1 misho 17304: fi
1.1.1.2 misho 17305: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17306:
17307: fi
17308: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5
17309: $as_echo "$sudo_cv_func_putenv_const" >&6; }
17310: if test $sudo_cv_func_putenv_const = yes; then
17311:
17312: $as_echo "#define PUTENV_CONST const" >>confdefs.h
17313:
17314: else
17315: $as_echo "#define PUTENV_CONST /**/" >>confdefs.h
17316:
17317: fi
1.1 misho 17318:
17319: if test -z "$SKIP_SETRESUID"; then
17320: for ac_func in setresuid
17321: do :
17322: ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
17323: if test "x$ac_cv_func_setresuid" = xyes; then :
17324: cat >>confdefs.h <<_ACEOF
17325: #define HAVE_SETRESUID 1
17326: _ACEOF
17327:
17328: SKIP_SETREUID=yes
17329: for ac_func in getresuid
17330: do :
17331: ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid"
17332: if test "x$ac_cv_func_getresuid" = xyes; then :
17333: cat >>confdefs.h <<_ACEOF
17334: #define HAVE_GETRESUID 1
17335: _ACEOF
17336:
17337: fi
17338: done
17339:
17340:
17341: fi
17342: done
17343:
17344: fi
17345: if test -z "$SKIP_SETREUID"; then
17346: for ac_func in setreuid
17347: do :
17348: ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid"
17349: if test "x$ac_cv_func_setreuid" = xyes; then :
17350: cat >>confdefs.h <<_ACEOF
17351: #define HAVE_SETREUID 1
17352: _ACEOF
1.1.1.4 misho 17353:
1.1 misho 17354: fi
17355: done
17356:
17357: fi
1.1.1.4 misho 17358: for ac_func in seteuid
1.1 misho 17359: do :
17360: ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid"
17361: if test "x$ac_cv_func_seteuid" = xyes; then :
17362: cat >>confdefs.h <<_ACEOF
17363: #define HAVE_SETEUID 1
17364: _ACEOF
17365:
17366: fi
17367: done
17368:
17369: if test X"$with_interfaces" != X"no"; then
17370: for ac_func in getifaddrs
17371: do :
17372: ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17373: if test "x$ac_cv_func_getifaddrs" = xyes; then :
17374: cat >>confdefs.h <<_ACEOF
17375: #define HAVE_GETIFADDRS 1
17376: _ACEOF
17377: for ac_func in freeifaddrs
17378: do :
17379: ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs"
17380: if test "x$ac_cv_func_freeifaddrs" = xyes; then :
17381: cat >>confdefs.h <<_ACEOF
17382: #define HAVE_FREEIFADDRS 1
17383: _ACEOF
17384:
17385: fi
17386: done
17387:
17388: fi
17389: done
17390:
17391: fi
17392: if test -z "$BROKEN_GETCWD"; then
17393: ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
17394: if test "x$ac_cv_func_getcwd" = xyes; then :
17395: $as_echo "#define HAVE_GETCWD 1" >>confdefs.h
17396:
17397: else
17398: case " $LIBOBJS " in
17399: *" getcwd.$ac_objext "* ) ;;
17400: *) LIBOBJS="$LIBOBJS getcwd.$ac_objext"
17401: ;;
17402: esac
17403:
17404: fi
17405:
17406:
17407: fi
17408: for ac_func in lockf flock
17409: do :
17410: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17411: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17412: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17413: cat >>confdefs.h <<_ACEOF
17414: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17415: _ACEOF
17416: break
17417: fi
17418: done
17419:
17420: for ac_func in innetgr _innetgr
17421: do :
17422: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17423: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17424: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17425: cat >>confdefs.h <<_ACEOF
17426: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17427: _ACEOF
17428: for ac_func in getdomainname
17429: do :
17430: ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname"
17431: if test "x$ac_cv_func_getdomainname" = xyes; then :
17432: cat >>confdefs.h <<_ACEOF
17433: #define HAVE_GETDOMAINNAME 1
17434: _ACEOF
17435:
17436: fi
17437: done
17438: break
17439: fi
17440: done
17441:
17442: for ac_func in utimes
17443: do :
17444: ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
17445: if test "x$ac_cv_func_utimes" = xyes; then :
17446: cat >>confdefs.h <<_ACEOF
17447: #define HAVE_UTIMES 1
17448: _ACEOF
17449: for ac_func in futimes futimesat
17450: do :
17451: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17452: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17453: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17454: cat >>confdefs.h <<_ACEOF
17455: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17456: _ACEOF
17457: break
17458: fi
17459: done
17460:
17461: else
17462: for ac_func in futime
17463: do :
17464: ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime"
17465: if test "x$ac_cv_func_futime" = xyes; then :
17466: cat >>confdefs.h <<_ACEOF
17467: #define HAVE_FUTIME 1
17468: _ACEOF
17469:
17470: fi
17471: done
17472: case " $LIBOBJS " in
17473: *" utimes.$ac_objext "* ) ;;
17474: *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17475: ;;
17476: esac
17477:
17478: fi
17479: done
17480:
17481: for ac_func in killpg
17482: do :
17483: ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg"
17484: if test "x$ac_cv_func_killpg" = xyes; then :
17485: cat >>confdefs.h <<_ACEOF
17486: #define HAVE_KILLPG 1
17487: _ACEOF
17488:
17489: else
17490: case " $LIBOBJS " in
17491: *" killpg.$ac_objext "* ) ;;
17492: *) LIBOBJS="$LIBOBJS killpg.$ac_objext"
17493: ;;
17494: esac
17495:
17496: fi
17497: done
17498:
17499: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5
17500: $as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; }
17501: if ${sudo_cv_func_fnmatch+:} false; then :
17502: $as_echo_n "(cached) " >&6
17503: else
17504: rm -f conftestdata; > conftestdata
17505: if test "$cross_compiling" = yes; then :
17506: sudo_cv_func_fnmatch=no
17507: else
17508: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509: /* end confdefs.h. */
17510: #include <fnmatch.h>
17511: main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17512: _ACEOF
17513: if ac_fn_c_try_run "$LINENO"; then :
17514: sudo_cv_func_fnmatch=yes
17515: else
17516: sudo_cv_func_fnmatch=no
17517: fi
17518: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17519: conftest.$ac_objext conftest.beam conftest.$ac_ext
17520: fi
17521:
17522: rm -f core core.* *.core
17523: fi
17524:
17525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5
17526: $as_echo "$sudo_cv_func_fnmatch" >&6; }
17527: if test $sudo_cv_func_fnmatch = yes; then :
17528: $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h
17529:
17530: else
17531: case " $LIBOBJS " in
17532: *" fnmatch.$ac_objext "* ) ;;
17533: *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17534: ;;
17535: esac
17536:
1.1.1.2 misho 17537: COMPAT_TEST_PROGS="${COMPAT_TEST_PROGS}${COMPAT_TEST_PROGS+ }fnm_test"
17538:
1.1 misho 17539: fi
17540: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5
17541: $as_echo_n "checking for isblank... " >&6; }
17542: if ${sudo_cv_func_isblank+:} false; then :
17543: $as_echo_n "(cached) " >&6
17544: else
17545: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546: /* end confdefs.h. */
17547: #include <ctype.h>
17548: int
17549: main ()
17550: {
17551: return (isblank('a'));
17552: ;
17553: return 0;
17554: }
17555: _ACEOF
17556: if ac_fn_c_try_link "$LINENO"; then :
17557: sudo_cv_func_isblank=yes
17558: else
17559: sudo_cv_func_isblank=no
17560: fi
17561: rm -f core conftest.err conftest.$ac_objext \
17562: conftest$ac_exeext conftest.$ac_ext
17563: fi
17564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5
17565: $as_echo "$sudo_cv_func_isblank" >&6; }
17566:
17567: if test "$sudo_cv_func_isblank" = "yes"; then
17568:
17569: $as_echo "#define HAVE_ISBLANK 1" >>confdefs.h
17570:
17571: else
17572: case " $LIBOBJS " in
17573: *" isblank.$ac_objext "* ) ;;
17574: *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17575: ;;
17576: esac
17577:
17578: fi
17579:
17580: ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
17581: if test "x$ac_cv_func_memrchr" = xyes; then :
17582: $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h
17583:
17584: else
17585: case " $LIBOBJS " in
17586: *" memrchr.$ac_objext "* ) ;;
17587: *) LIBOBJS="$LIBOBJS memrchr.$ac_objext"
17588: ;;
17589: esac
17590:
17591: fi
17592:
1.1.1.5 ! misho 17593: ac_fn_c_check_func "$LINENO" "memset_s" "ac_cv_func_memset_s"
! 17594: if test "x$ac_cv_func_memset_s" = xyes; then :
! 17595: $as_echo "#define HAVE_MEMSET_S 1" >>confdefs.h
! 17596:
! 17597: else
! 17598: case " $LIBOBJS " in
! 17599: *" memset_s.$ac_objext "* ) ;;
! 17600: *) LIBOBJS="$LIBOBJS memset_s.$ac_objext"
! 17601: ;;
! 17602: esac
! 17603:
! 17604: fi
! 17605:
1.1.1.2 misho 17606: ac_fn_c_check_func "$LINENO" "pw_dup" "ac_cv_func_pw_dup"
17607: if test "x$ac_cv_func_pw_dup" = xyes; then :
17608: $as_echo "#define HAVE_PW_DUP 1" >>confdefs.h
17609:
17610: else
17611: case " $LIBOBJS " in
17612: *" pw_dup.$ac_objext "* ) ;;
17613: *) LIBOBJS="$LIBOBJS pw_dup.$ac_objext"
17614: ;;
17615: esac
17616:
17617: fi
17618:
1.1 misho 17619: ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
17620: if test "x$ac_cv_func_strlcpy" = xyes; then :
17621: $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
17622:
17623: else
17624: case " $LIBOBJS " in
17625: *" strlcpy.$ac_objext "* ) ;;
17626: *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
17627: ;;
17628: esac
17629:
17630: fi
17631:
17632: ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
17633: if test "x$ac_cv_func_strlcat" = xyes; then :
17634: $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
17635:
17636: else
17637: case " $LIBOBJS " in
17638: *" strlcat.$ac_objext "* ) ;;
17639: *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
17640: ;;
17641: esac
17642:
17643: fi
17644:
17645:
17646: for ac_func in nanosleep
17647: do :
17648: ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17649: if test "x$ac_cv_func_nanosleep" = xyes; then :
17650: cat >>confdefs.h <<_ACEOF
17651: #define HAVE_NANOSLEEP 1
17652: _ACEOF
17653:
17654: else
17655:
17656: # On Solaris, nanosleep is in librt
17657: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17658: $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17659: if ${ac_cv_lib_rt_nanosleep+:} false; then :
17660: $as_echo_n "(cached) " >&6
17661: else
17662: ac_check_lib_save_LIBS=$LIBS
17663: LIBS="-lrt $LIBS"
17664: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665: /* end confdefs.h. */
17666:
17667: /* Override any GCC internal prototype to avoid an error.
17668: Use char because int might match the return type of a GCC
17669: builtin and then its argument prototype would still apply. */
17670: #ifdef __cplusplus
17671: extern "C"
17672: #endif
17673: char nanosleep ();
17674: int
17675: main ()
17676: {
17677: return nanosleep ();
17678: ;
17679: return 0;
17680: }
17681: _ACEOF
17682: if ac_fn_c_try_link "$LINENO"; then :
17683: ac_cv_lib_rt_nanosleep=yes
17684: else
17685: ac_cv_lib_rt_nanosleep=no
17686: fi
17687: rm -f core conftest.err conftest.$ac_objext \
17688: conftest$ac_exeext conftest.$ac_ext
17689: LIBS=$ac_check_lib_save_LIBS
17690: fi
17691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17692: $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17693: if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17694: REPLAY_LIBS="${REPLAY_LIBS} -lrt"
17695: else
17696: case " $LIBOBJS " in
17697: *" nanosleep.$ac_objext "* ) ;;
17698: *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext"
17699: ;;
17700: esac
17701:
17702: fi
17703:
17704:
17705: fi
17706: done
17707:
1.1.1.5 ! misho 17708: for ac_func in getopt_long
! 17709: do :
! 17710: ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
! 17711: if test "x$ac_cv_func_getopt_long" = xyes; then :
! 17712: cat >>confdefs.h <<_ACEOF
! 17713: #define HAVE_GETOPT_LONG 1
! 17714: _ACEOF
! 17715:
! 17716: else
! 17717: case " $LIBOBJS " in
! 17718: *" getopt_long.$ac_objext "* ) ;;
! 17719: *) LIBOBJS="$LIBOBJS getopt_long.$ac_objext"
! 17720: ;;
! 17721: esac
! 17722:
! 17723: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
! 17724: $as_echo_n "checking for optreset... " >&6; }
! 17725: if ${sudo_cv_optreset+:} false; then :
! 17726: $as_echo_n "(cached) " >&6
! 17727: else
! 17728:
! 17729: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
! 17730: /* end confdefs.h. */
! 17731:
! 17732: int
! 17733: main ()
! 17734: {
! 17735: extern int optreset; optreset = 1; return optreset;
! 17736: ;
! 17737: return 0;
! 17738: }
! 17739: _ACEOF
! 17740: if ac_fn_c_try_link "$LINENO"; then :
! 17741: sudo_cv_optreset=yes
! 17742: else
! 17743: sudo_cv_optreset=no
! 17744: fi
! 17745: rm -f core conftest.err conftest.$ac_objext \
! 17746: conftest$ac_exeext conftest.$ac_ext
! 17747: fi
! 17748:
! 17749: if test "$sudo_cv_optreset" = "yes"; then
! 17750: $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
! 17751:
! 17752: fi
! 17753: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_optreset" >&5
! 17754: $as_echo "$sudo_cv_optreset" >&6; }
! 17755:
! 17756: fi
! 17757: done
! 17758:
1.1 misho 17759: for ac_func in closefrom
17760: do :
17761: ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
17762: if test "x$ac_cv_func_closefrom" = xyes; then :
17763: cat >>confdefs.h <<_ACEOF
17764: #define HAVE_CLOSEFROM 1
17765: _ACEOF
17766:
17767: else
17768: case " $LIBOBJS " in
17769: *" closefrom.$ac_objext "* ) ;;
17770: *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17771: ;;
17772: esac
17773:
17774: ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h>
17775: #include <fcntl.h>
17776: "
17777: if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
17778: $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h
17779:
17780: fi
17781:
17782:
17783: fi
17784: done
17785:
17786: for ac_func in mkstemps mkdtemp
17787: do :
17788: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17789: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17790: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17791: cat >>confdefs.h <<_ACEOF
17792: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17793: _ACEOF
17794:
17795: else
17796:
17797: for ac_func in random lrand48
17798: do :
17799: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17800: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17801: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17802: cat >>confdefs.h <<_ACEOF
17803: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17804: _ACEOF
17805: break
17806: fi
17807: done
17808:
17809: case " $LIBOBJS " in
17810: *" mktemp.$ac_objext "* ) ;;
17811: *) LIBOBJS="$LIBOBJS mktemp.$ac_objext"
17812: ;;
17813: esac
17814:
17815:
17816: fi
17817: done
17818:
17819: for ac_func in snprintf vsnprintf asprintf vasprintf
17820: do :
17821: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17822: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17823: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17824: cat >>confdefs.h <<_ACEOF
17825: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17826: _ACEOF
17827:
17828: else
17829: NEED_SNPRINTF=1
17830: fi
17831: done
17832:
17833: if test X"$ac_cv_type_struct_timespec" != X"no"; then
17834: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
17835: if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
17836: $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h
17837:
17838: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default"
17839: if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then :
17840: $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h
17841:
17842: fi
17843:
17844: else
17845: ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default"
17846: if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then :
17847: $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h
17848:
17849: fi
17850:
17851: fi
17852:
17853: fi
1.1.1.5 ! misho 17854: if test X"$with_noexec" != X"no"; then
! 17855: # Check for underscore versions of standard exec functions
! 17856: # unless we are using dyld symbole interposition
! 17857: if test X"$dlyld_interpose" != X"yes"; then
! 17858: for ac_func in _execl __execl
! 17859: do :
! 17860: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17861: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17862: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17863: cat >>confdefs.h <<_ACEOF
! 17864: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17865: _ACEOF
! 17866:
! 17867: fi
! 17868: done
! 17869:
! 17870: for ac_func in _execle __execle
! 17871: do :
! 17872: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17873: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17874: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17875: cat >>confdefs.h <<_ACEOF
! 17876: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17877: _ACEOF
! 17878:
! 17879: fi
! 17880: done
! 17881:
! 17882: for ac_func in _execlp __execlp
! 17883: do :
! 17884: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17885: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17886: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17887: cat >>confdefs.h <<_ACEOF
! 17888: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17889: _ACEOF
! 17890:
! 17891: fi
! 17892: done
! 17893:
! 17894: for ac_func in _execv __execv
! 17895: do :
! 17896: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17897: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17898: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17899: cat >>confdefs.h <<_ACEOF
! 17900: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17901: _ACEOF
! 17902:
! 17903: fi
! 17904: done
! 17905:
! 17906: for ac_func in _execve __execve
! 17907: do :
! 17908: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17909: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17910: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17911: cat >>confdefs.h <<_ACEOF
! 17912: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17913: _ACEOF
! 17914:
! 17915: fi
! 17916: done
! 17917:
! 17918: for ac_func in _execvp __execvp
! 17919: do :
! 17920: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17921: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17922: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17923: cat >>confdefs.h <<_ACEOF
! 17924: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17925: _ACEOF
! 17926:
! 17927: fi
! 17928: done
! 17929:
! 17930: fi
! 17931: # Check for non-standard exec functions including underscore versions
! 17932: for ac_func in exect
! 17933: do :
! 17934: ac_fn_c_check_func "$LINENO" "exect" "ac_cv_func_exect"
! 17935: if test "x$ac_cv_func_exect" = xyes; then :
! 17936: cat >>confdefs.h <<_ACEOF
! 17937: #define HAVE_EXECT 1
! 17938: _ACEOF
! 17939:
! 17940: if test X"$dlyld_interpose" != X"yes"; then
! 17941: for ac_func in _exect __exect
! 17942: do :
! 17943: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17944: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17945: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17946: cat >>confdefs.h <<_ACEOF
! 17947: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17948: _ACEOF
! 17949:
! 17950: fi
! 17951: done
! 17952:
! 17953: fi
! 17954:
! 17955: fi
! 17956: done
! 17957:
! 17958: for ac_func in execvP
! 17959: do :
! 17960: ac_fn_c_check_func "$LINENO" "execvP" "ac_cv_func_execvP"
! 17961: if test "x$ac_cv_func_execvP" = xyes; then :
! 17962: cat >>confdefs.h <<_ACEOF
! 17963: #define HAVE_EXECVP 1
! 17964: _ACEOF
! 17965:
! 17966: if test X"$dlyld_interpose" != X"yes"; then
! 17967: for ac_func in _execvP __execvP
! 17968: do :
! 17969: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17970: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17971: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17972: cat >>confdefs.h <<_ACEOF
! 17973: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 17974: _ACEOF
! 17975:
! 17976: fi
! 17977: done
! 17978:
! 17979: fi
! 17980:
! 17981: fi
! 17982: done
! 17983:
! 17984: for ac_func in execvpe
! 17985: do :
! 17986: ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe"
! 17987: if test "x$ac_cv_func_execvpe" = xyes; then :
! 17988: cat >>confdefs.h <<_ACEOF
! 17989: #define HAVE_EXECVPE 1
! 17990: _ACEOF
! 17991:
! 17992: if test X"$dlyld_interpose" != X"yes"; then
! 17993: for ac_func in _execvpe __execvpe
! 17994: do :
! 17995: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 17996: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 17997: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 17998: cat >>confdefs.h <<_ACEOF
! 17999: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18000: _ACEOF
! 18001:
! 18002: fi
! 18003: done
! 18004:
! 18005: fi
! 18006:
! 18007: fi
! 18008: done
! 18009:
! 18010: for ac_func in fexecve
! 18011: do :
! 18012: ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve"
! 18013: if test "x$ac_cv_func_fexecve" = xyes; then :
! 18014: cat >>confdefs.h <<_ACEOF
! 18015: #define HAVE_FEXECVE 1
! 18016: _ACEOF
! 18017:
! 18018: if test X"$dlyld_interpose" != X"yes"; then
! 18019: for ac_func in _fexecve __fexecve
! 18020: do :
! 18021: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18022: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 18023: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 18024: cat >>confdefs.h <<_ACEOF
! 18025: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18026: _ACEOF
! 18027:
! 18028: fi
! 18029: done
! 18030:
! 18031: fi
! 18032:
! 18033: fi
! 18034: done
! 18035:
! 18036: # Check for posix_spawn, posix_spawnp and any underscore versions
! 18037: for ac_func in posix_spawn
! 18038: do :
! 18039: ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
! 18040: if test "x$ac_cv_func_posix_spawn" = xyes; then :
! 18041: cat >>confdefs.h <<_ACEOF
! 18042: #define HAVE_POSIX_SPAWN 1
! 18043: _ACEOF
! 18044:
! 18045: if test X"$dlyld_interpose" != X"yes"; then
! 18046: for ac_func in _posix_spawn __posix_spawn
! 18047: do :
! 18048: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18049: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 18050: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 18051: cat >>confdefs.h <<_ACEOF
! 18052: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18053: _ACEOF
! 18054:
! 18055: fi
! 18056: done
! 18057:
! 18058: fi
! 18059:
! 18060: fi
! 18061: done
! 18062:
! 18063: for ac_func in posix_spawnp
! 18064: do :
! 18065: ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
! 18066: if test "x$ac_cv_func_posix_spawnp" = xyes; then :
! 18067: cat >>confdefs.h <<_ACEOF
! 18068: #define HAVE_POSIX_SPAWNP 1
! 18069: _ACEOF
! 18070:
! 18071: if test X"$dlyld_interpose" != X"yes"; then
! 18072: for ac_func in _posix_spawnp __posix_spawnp
! 18073: do :
! 18074: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
! 18075: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
! 18076: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
! 18077: cat >>confdefs.h <<_ACEOF
! 18078: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
! 18079: _ACEOF
! 18080:
! 18081: fi
! 18082: done
! 18083:
! 18084: fi
! 18085:
! 18086: fi
! 18087: done
! 18088:
! 18089: fi
! 18090:
1.1 misho 18091: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092: /* end confdefs.h. */
18093: #include <sys/types.h>
18094: #include <$ac_header_dirent>
18095: int
18096: main ()
18097: {
18098: DIR *d; (void)dirfd(d);
18099: ;
18100: return 0;
18101: }
18102: _ACEOF
18103: if ac_fn_c_try_link "$LINENO"; then :
18104: $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
18105:
18106: else
18107: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108: /* end confdefs.h. */
18109: #include <sys/types.h>
18110: #include <$ac_header_dirent>
18111: int
18112: main ()
18113: {
18114: DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18115: ;
18116: return 0;
18117: }
18118: _ACEOF
18119: if ac_fn_c_try_link "$LINENO"; then :
18120: $as_echo "#define HAVE_DD_FD 1" >>confdefs.h
18121:
18122: fi
18123: rm -f core conftest.err conftest.$ac_objext \
18124: conftest$ac_exeext conftest.$ac_ext
18125: fi
18126: rm -f core conftest.err conftest.$ac_objext \
18127: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 18128: ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
18129: $ac_includes_default
18130: #include <$ac_header_dirent>
18131:
18132: "
18133: if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
18134:
18135: cat >>confdefs.h <<_ACEOF
18136: #define HAVE_STRUCT_DIRENT_D_TYPE 1
18137: _ACEOF
18138:
18139:
18140: fi
18141:
1.1 misho 18142: if test -n "$NEED_SNPRINTF"; then
18143: case " $LIBOBJS " in
18144: *" snprintf.$ac_objext "* ) ;;
18145: *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18146: ;;
18147: esac
18148:
18149: fi
18150: ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
18151: if test "x$ac_cv_func_socket" = xyes; then :
18152:
18153: else
1.1.1.2 misho 18154:
18155: for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18156: _libs=
18157: for lib in $libs; do
18158: case "$NET_LIBS" in
18159: *"$lib"*) ;;
18160: *) _libs="$_libs $lib";;
18161: esac
18162: done
18163: libs="${_libs# }"
18164: test -z "$libs" && continue
18165: lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18166: extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
18167:
18168: _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
18169: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5
18170: $as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; }
18171: if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1 misho 18172: $as_echo_n "(cached) " >&6
18173: else
1.1.1.2 misho 18174:
18175: SUDO_CHECK_LIB_OLIBS="$LIBS"
18176: LIBS="$LIBS -l$lib${5+ }$extralibs"
18177: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 18178: /* end confdefs.h. */
18179:
18180: /* Override any GCC internal prototype to avoid an error.
18181: Use char because int might match the return type of a GCC
18182: builtin and then its argument prototype would still apply. */
18183: #ifdef __cplusplus
18184: extern "C"
18185: #endif
18186: char socket ();
18187: int
18188: main ()
18189: {
18190: return socket ();
18191: ;
18192: return 0;
18193: }
18194: _ACEOF
18195: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18196: eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes
1.1 misho 18197: else
1.1.1.2 misho 18198: eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no
18199:
1.1 misho 18200: fi
18201: rm -f core conftest.err conftest.$ac_objext \
18202: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 18203: LIBS="$SUDO_CHECK_LIB_OLIBS"
18204:
18205: fi
18206:
18207: if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then
18208: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18209: $as_echo "yes" >&6; }
18210: NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
18211: else
18212: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18213: $as_echo "no" >&6; }
18214:
18215: fi
18216:
18217: done
18218:
1.1 misho 18219: fi
1.1.1.2 misho 18220:
18221: ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr"
18222: if test "x$ac_cv_func_inet_addr" = xyes; then :
18223:
18224: else
18225:
18226: ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr"
18227: if test "x$ac_cv_func___inet_addr" = xyes; then :
18228:
18229: else
18230:
18231: for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18232: _libs=
18233: for lib in $libs; do
18234: case "$NET_LIBS" in
18235: *"$lib"*) ;;
18236: *) _libs="$_libs $lib";;
18237: esac
18238: done
18239: libs="${_libs# }"
18240: test -z "$libs" && continue
18241: lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18242: extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
18243:
18244: _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
18245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5
18246: $as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; }
18247: if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1 misho 18248: $as_echo_n "(cached) " >&6
18249: else
1.1.1.2 misho 18250:
18251: SUDO_CHECK_LIB_OLIBS="$LIBS"
18252: LIBS="$LIBS -l$lib${5+ }$extralibs"
18253: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 18254: /* end confdefs.h. */
18255:
18256: /* Override any GCC internal prototype to avoid an error.
18257: Use char because int might match the return type of a GCC
18258: builtin and then its argument prototype would still apply. */
18259: #ifdef __cplusplus
18260: extern "C"
18261: #endif
1.1.1.2 misho 18262: char inet_addr ();
1.1 misho 18263: int
18264: main ()
18265: {
1.1.1.2 misho 18266: return inet_addr ();
1.1 misho 18267: ;
18268: return 0;
18269: }
18270: _ACEOF
18271: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18272: eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes
1.1 misho 18273: else
1.1.1.2 misho 18274: eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no
18275:
1.1 misho 18276: fi
18277: rm -f core conftest.err conftest.$ac_objext \
18278: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 18279: LIBS="$SUDO_CHECK_LIB_OLIBS"
18280:
18281: fi
18282:
18283: if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then
18284: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18285: $as_echo "yes" >&6; }
18286: NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
18287: else
18288: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18289: $as_echo "no" >&6; }
18290:
18291: fi
18292:
18293: done
18294:
1.1 misho 18295: fi
1.1.1.2 misho 18296:
18297:
18298: fi
18299:
18300: ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
18301: if test "x$ac_cv_func_syslog" = xyes; then :
18302:
18303: else
18304:
18305: for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18306: _libs=
18307: for lib in $libs; do
18308: case "$NET_LIBS" in
18309: *"$lib"*) ;;
18310: *) _libs="$_libs $lib";;
18311: esac
18312: done
18313: libs="${_libs# }"
18314: test -z "$libs" && continue
18315: lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18316: extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
18317:
18318: _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
18319: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5
18320: $as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; }
18321: if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1 misho 18322: $as_echo_n "(cached) " >&6
18323: else
1.1.1.2 misho 18324:
18325: SUDO_CHECK_LIB_OLIBS="$LIBS"
18326: LIBS="$LIBS -l$lib${5+ }$extralibs"
18327: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 18328: /* end confdefs.h. */
18329:
18330: /* Override any GCC internal prototype to avoid an error.
18331: Use char because int might match the return type of a GCC
18332: builtin and then its argument prototype would still apply. */
18333: #ifdef __cplusplus
18334: extern "C"
18335: #endif
1.1.1.2 misho 18336: char syslog ();
1.1 misho 18337: int
18338: main ()
18339: {
1.1.1.2 misho 18340: return syslog ();
1.1 misho 18341: ;
18342: return 0;
18343: }
18344: _ACEOF
18345: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18346: eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes
1.1 misho 18347: else
1.1.1.2 misho 18348: eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no
18349:
1.1 misho 18350: fi
18351: rm -f core conftest.err conftest.$ac_objext \
18352: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 18353: LIBS="$SUDO_CHECK_LIB_OLIBS"
1.1 misho 18354:
18355: fi
18356:
1.1.1.2 misho 18357: if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then
18358: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359: $as_echo "yes" >&6; }
18360: NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break
18361: else
18362: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18363: $as_echo "no" >&6; }
18364:
18365: fi
18366:
18367: done
1.1 misho 18368:
18369: fi
18370:
1.1.1.2 misho 18371: for ac_func in getaddrinfo
18372: do :
18373: ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
18374: if test "x$ac_cv_func_getaddrinfo" = xyes; then :
18375: cat >>confdefs.h <<_ACEOF
18376: #define HAVE_GETADDRINFO 1
18377: _ACEOF
1.1 misho 18378:
18379: else
18380:
1.1.1.2 misho 18381: found=no
18382: for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do
18383: _libs=
18384: for lib in $libs; do
18385: case "$NET_LIBS" in
18386: *"$lib"*) ;;
18387: *) _libs="$_libs $lib";;
18388: esac
18389: done
18390: libs="${_libs# }"
18391: test -z "$libs" && continue
18392: lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`"
18393: extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`"
1.1 misho 18394:
1.1.1.2 misho 18395: _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'`
18396: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$lib${5+ }$extralibs" >&5
18397: $as_echo_n "checking for getaddrinfo in -l$lib${5+ }$extralibs... " >&6; }
18398: if { as_var=sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then :
1.1 misho 18399: $as_echo_n "(cached) " >&6
18400: else
18401:
1.1.1.2 misho 18402: SUDO_CHECK_LIB_OLIBS="$LIBS"
18403: LIBS="$LIBS -l$lib${5+ }$extralibs"
18404: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 18405: /* end confdefs.h. */
18406:
18407: /* Override any GCC internal prototype to avoid an error.
18408: Use char because int might match the return type of a GCC
18409: builtin and then its argument prototype would still apply. */
18410: #ifdef __cplusplus
18411: extern "C"
18412: #endif
1.1.1.2 misho 18413: char getaddrinfo ();
1.1 misho 18414: int
18415: main ()
18416: {
1.1.1.2 misho 18417: return getaddrinfo ();
1.1 misho 18418: ;
18419: return 0;
18420: }
18421: _ACEOF
18422: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18423: eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=yes
1.1 misho 18424: else
1.1.1.2 misho 18425: eval sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras=no
18426:
1.1 misho 18427: fi
18428: rm -f core conftest.err conftest.$ac_objext \
18429: conftest$ac_exeext conftest.$ac_ext
1.1.1.2 misho 18430: LIBS="$SUDO_CHECK_LIB_OLIBS"
1.1 misho 18431:
18432: fi
18433:
1.1.1.2 misho 18434: if eval test \$sudo_cv_lib_$lib''_getaddrinfo$_sudo_check_lib_extras = "yes"; then
18435: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18436: $as_echo "yes" >&6; }
18437: NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; found=yes; break
18438: else
18439: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18440: $as_echo "no" >&6; }
1.1 misho 18441:
1.1.1.2 misho 18442: fi
18443:
18444: done
18445: if test X"$found" != X"no"; then
18446: $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
18447:
18448: fi
1.1 misho 18449:
18450: fi
1.1.1.2 misho 18451: done
1.1 misho 18452:
1.1.1.2 misho 18453: for ac_func in getprogname
18454: do :
18455: ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18456: if test "x$ac_cv_func_getprogname" = xyes; then :
18457: cat >>confdefs.h <<_ACEOF
18458: #define HAVE_GETPROGNAME 1
18459: _ACEOF
1.1 misho 18460:
18461: else
1.1.1.2 misho 18462:
18463: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5
18464: $as_echo_n "checking for __progname... " >&6; }
18465: if ${sudo_cv___progname+:} false; then :
1.1 misho 18466: $as_echo_n "(cached) " >&6
18467: else
1.1.1.2 misho 18468:
18469: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 18470: /* end confdefs.h. */
18471:
18472: int
18473: main ()
18474: {
1.1.1.2 misho 18475: extern char *__progname; (void)puts(__progname);
1.1 misho 18476: ;
18477: return 0;
18478: }
18479: _ACEOF
18480: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18481: sudo_cv___progname=yes
1.1 misho 18482: else
1.1.1.2 misho 18483: sudo_cv___progname=no
1.1 misho 18484: fi
18485: rm -f core conftest.err conftest.$ac_objext \
18486: conftest$ac_exeext conftest.$ac_ext
18487: fi
18488:
1.1.1.2 misho 18489: if test "$sudo_cv___progname" = "yes"; then
18490: $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h
18491:
18492: else
18493: case " $LIBOBJS " in
18494: *" getprogname.$ac_objext "* ) ;;
18495: *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
18496: ;;
18497: esac
18498:
18499: fi
18500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5
18501: $as_echo "$sudo_cv___progname" >&6; }
18502:
1.1 misho 18503: fi
1.1.1.2 misho 18504: done
18505:
18506: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__" >&5
18507: $as_echo_n "checking for __func__... " >&6; }
18508: if ${sudo_cv___func__+:} false; then :
1.1 misho 18509: $as_echo_n "(cached) " >&6
18510: else
1.1.1.2 misho 18511:
1.1 misho 18512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513: /* end confdefs.h. */
18514:
18515: int
18516: main ()
18517: {
1.1.1.2 misho 18518: (void)puts(__func__);
1.1 misho 18519: ;
18520: return 0;
18521: }
18522: _ACEOF
18523: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18524: sudo_cv___func__=yes
1.1 misho 18525: else
1.1.1.2 misho 18526: sudo_cv___func__=no
1.1 misho 18527: fi
18528: rm -f core conftest.err conftest.$ac_objext \
18529: conftest$ac_exeext conftest.$ac_ext
18530: fi
18531:
1.1.1.2 misho 18532: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___func__" >&5
18533: $as_echo "$sudo_cv___func__" >&6; }
18534: if test "$sudo_cv___func__" = "yes"; then
18535: $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
18536:
18537: elif test -n "$GCC"; then
18538: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__" >&5
18539: $as_echo_n "checking for __FUNCTION__... " >&6; }
18540: if ${sudo_cv___FUNCTION__+:} false; then :
1.1 misho 18541: $as_echo_n "(cached) " >&6
18542: else
18543:
18544: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545: /* end confdefs.h. */
18546:
18547: int
18548: main ()
18549: {
1.1.1.2 misho 18550: (void)puts(__FUNCTION__);
1.1 misho 18551: ;
18552: return 0;
18553: }
18554: _ACEOF
18555: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.2 misho 18556: sudo_cv___FUNCTION__=yes
1.1 misho 18557: else
1.1.1.2 misho 18558: sudo_cv___FUNCTION__=no
1.1 misho 18559: fi
18560: rm -f core conftest.err conftest.$ac_objext \
18561: conftest$ac_exeext conftest.$ac_ext
18562: fi
18563:
1.1.1.2 misho 18564: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___FUNCTION__" >&5
18565: $as_echo "$sudo_cv___FUNCTION__" >&6; }
18566: if test "$sudo_cv___FUNCTION__" = "yes"; then
18567: $as_echo "#define HAVE___FUNC__ 1" >>confdefs.h
1.1 misho 18568:
18569:
1.1.1.2 misho 18570: $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
1.1 misho 18571:
1.1.1.2 misho 18572: fi
1.1 misho 18573: fi
18574:
18575: # gettext() and friends may be located in libc (Linux and Solaris)
18576: # or in libintl. However, it is possible to have libintl installed
18577: # even when gettext() is present in libc. In the case of GNU libintl,
18578: # gettext() will be defined to gettext_libintl in libintl.h.
18579: # Since gcc prefers /usr/local/include to /usr/include, we need to
18580: # make sure we use the gettext() that matches the include file.
18581: if test "$enable_nls" != "no"; then
18582: if test "$enable_nls" != "yes"; then
18583:
1.1.1.4 misho 18584: case "${CPPFLAGS}" in
18585: *"-I${enable_nls}/include"|*"-I${enable_nls}/include ")
18586: ;;
18587: *)
18588: if test X"${CPPFLAGS}" = X""; then
18589: CPPFLAGS="-I${enable_nls}/include"
18590: else
18591: CPPFLAGS="${CPPFLAGS} -I${enable_nls}/include"
18592: fi
18593: ;;
18594: esac
18595:
18596:
18597: case "${LDFLAGS}" in
18598: *"-L$enable_nls/lib"|*"-L$enable_nls/lib ")
18599: ;;
18600: *)
18601: LDFLAGS="${LDFLAGS} -L$enable_nls/lib"
18602: if test X"$enable_rpath" = X"yes"; then
18603: LDFLAGS_R="${LDFLAGS_R} -R$enable_nls/lib"
18604: fi
18605: ;;
18606: esac
1.1 misho 18607:
18608: fi
18609: OLIBS="$LIBS"
18610: for l in "libc" "-lintl" "-lintl -liconv"; do
18611: if test "$l" = "libc"; then
18612: # If user specified a dir for libintl ignore libc
18613: if test "$enable_nls" != "yes"; then
18614: continue
18615: fi
18616: gettext_name=sudo_cv_gettext
18617: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext" >&5
18618: $as_echo_n "checking for gettext... " >&6; }
18619: else
18620: LIBS="$OLIBS $l"
18621: gettext_name=sudo_cv_gettext"`echo $l|sed -e 's/ //g' -e 's/-/_/g'`"
18622: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in $l" >&5
18623: $as_echo_n "checking for gettext in $l... " >&6; }
18624: fi
18625: if eval \${$gettext_name+:} false; then :
18626: $as_echo_n "(cached) " >&6
18627: else
18628:
18629: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18630: /* end confdefs.h. */
18631:
18632: #include <libintl.h>
18633: int
18634: main ()
18635: {
18636: (void)gettext((char *)0);
18637: ;
18638: return 0;
18639: }
18640:
18641: _ACEOF
18642: if ac_fn_c_try_link "$LINENO"; then :
18643: eval $gettext_name=yes
18644: else
18645: eval $gettext_name=no
18646:
18647: fi
18648: rm -f core conftest.err conftest.$ac_objext \
18649: conftest$ac_exeext conftest.$ac_ext
18650:
18651: fi
18652:
18653: eval gettext_result="\$$gettext_name"
18654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gettext_result" >&5
18655: $as_echo "$gettext_result" >&6; }
1.1.1.3 misho 18656: if test "$gettext_result" = "yes"; then
18657: for ac_func in ngettext
18658: do :
18659: ac_fn_c_check_func "$LINENO" "ngettext" "ac_cv_func_ngettext"
18660: if test "x$ac_cv_func_ngettext" = xyes; then :
18661: cat >>confdefs.h <<_ACEOF
18662: #define HAVE_NGETTEXT 1
18663: _ACEOF
18664:
18665: fi
18666: done
18667:
18668: break
18669: fi
1.1 misho 18670: done
18671: LIBS="$OLIBS"
18672:
18673: if test "$sudo_cv_gettext" = "yes"; then
18674: $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18675:
18676: SUDO_NLS=enabled
1.1.1.4 misho 18677: # For Solaris we need links from lang to lang.UTF-8 in localedir
18678: case "$host_os" in
18679: solaris2*) LOCALEDIR_SUFFIX=".UTF-8";;
18680: esac
1.1 misho 18681: elif test "$sudo_cv_gettext_lintl" = "yes"; then
18682: $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18683:
18684: SUDO_NLS=enabled
18685: LIBINTL="-lintl"
18686: elif test "$sudo_cv_gettext_lintl_liconv" = "yes"; then
18687: $as_echo "#define HAVE_LIBINTL_H 1" >>confdefs.h
18688:
18689: SUDO_NLS=enabled
18690: LIBINTL="-lintl -liconv"
18691: fi
18692: fi
18693:
18694: case "$enable_zlib" in
18695: yes)
18696: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5
18697: $as_echo_n "checking for gzdopen in -lz... " >&6; }
18698: if ${ac_cv_lib_z_gzdopen+:} false; then :
18699: $as_echo_n "(cached) " >&6
18700: else
18701: ac_check_lib_save_LIBS=$LIBS
18702: LIBS="-lz $LIBS"
18703: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704: /* end confdefs.h. */
18705:
18706: /* Override any GCC internal prototype to avoid an error.
18707: Use char because int might match the return type of a GCC
18708: builtin and then its argument prototype would still apply. */
18709: #ifdef __cplusplus
18710: extern "C"
18711: #endif
18712: char gzdopen ();
18713: int
18714: main ()
18715: {
18716: return gzdopen ();
18717: ;
18718: return 0;
18719: }
18720: _ACEOF
18721: if ac_fn_c_try_link "$LINENO"; then :
18722: ac_cv_lib_z_gzdopen=yes
18723: else
18724: ac_cv_lib_z_gzdopen=no
18725: fi
18726: rm -f core conftest.err conftest.$ac_objext \
18727: conftest$ac_exeext conftest.$ac_ext
18728: LIBS=$ac_check_lib_save_LIBS
18729: fi
18730: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5
18731: $as_echo "$ac_cv_lib_z_gzdopen" >&6; }
18732: if test "x$ac_cv_lib_z_gzdopen" = xyes; then :
18733:
18734: for ac_header in zlib.h
18735: do :
18736: ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
18737: if test "x$ac_cv_header_zlib_h" = xyes; then :
18738: cat >>confdefs.h <<_ACEOF
18739: #define HAVE_ZLIB_H 1
18740: _ACEOF
18741: ZLIB="-lz"
18742: else
18743: enable_zlib=builtin
18744: fi
18745:
18746: done
18747:
18748:
18749: fi
18750:
18751: ;;
18752: no)
18753: ;;
18754: system)
18755: $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18756:
18757: ZLIB="-lz"
18758: ;;
18759: builtin)
18760: # handled below
18761: ;;
18762: *)
18763: $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18764:
18765:
1.1.1.4 misho 18766: case "${CPPFLAGS}" in
18767: *"-I${enable_zlib}/include"|*"-I${enable_zlib}/include ")
18768: ;;
18769: *)
18770: if test X"${CPPFLAGS}" = X""; then
18771: CPPFLAGS="-I${enable_zlib}/include"
18772: else
18773: CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include"
18774: fi
18775: ;;
18776: esac
18777:
18778:
18779: case "${ZLIB}" in
18780: *"-L$enable_zlib/lib"|*"-L$enable_zlib/lib ")
18781: ;;
18782: *)
18783: ZLIB="${ZLIB} -L$enable_zlib/lib"
18784: if test X"$enable_rpath" = X"yes"; then
18785: ZLIB_R="${ZLIB_R} -R$enable_zlib/lib"
18786: fi
18787: ;;
18788: esac
1.1 misho 18789:
18790: ZLIB="${ZLIB} -lz"
18791: ;;
18792: esac
18793: if test X"$enable_zlib" = X"builtin"; then
18794: $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
18795:
1.1.1.2 misho 18796: CPPFLAGS='-I$(top_builddir)/zlib -I$(top_srcdir)/zlib '"${CPPFLAGS}"
1.1 misho 18797: ZLIB="${ZLIB}"' $(top_builddir)/zlib/libz.la'
18798: ZLIB_SRC=zlib
18799: ac_config_headers="$ac_config_headers zlib/zconf.h"
18800:
18801: ac_config_files="$ac_config_files zlib/Makefile"
18802:
18803: fi
18804:
18805: ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" "
18806: $ac_includes_default
18807: #include <errno.h>
18808:
18809: "
18810: if test "x$ac_cv_have_decl_errno" = xyes; then :
18811: ac_have_decl=1
18812: else
18813: ac_have_decl=0
18814: fi
18815:
18816: cat >>confdefs.h <<_ACEOF
18817: #define HAVE_DECL_ERRNO $ac_have_decl
18818: _ACEOF
18819:
18820:
1.1.1.2 misho 18821: ac_fn_c_check_decl "$LINENO" "h_errno" "ac_cv_have_decl_h_errno" "
18822: $ac_includes_default
18823: #include <netdb.h>
18824:
18825: "
18826: if test "x$ac_cv_have_decl_h_errno" = xyes; then :
18827: ac_have_decl=1
18828: else
18829: ac_have_decl=0
18830: fi
18831:
18832: cat >>confdefs.h <<_ACEOF
18833: #define HAVE_DECL_H_ERRNO $ac_have_decl
18834: _ACEOF
18835:
18836:
1.1 misho 18837: for ac_func in strsignal
18838: do :
18839: ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
18840: if test "x$ac_cv_func_strsignal" = xyes; then :
18841: cat >>confdefs.h <<_ACEOF
18842: #define HAVE_STRSIGNAL 1
18843: _ACEOF
18844:
18845: else
18846:
18847: case " $LIBOBJS " in
18848: *" strsignal.$ac_objext "* ) ;;
18849: *) LIBOBJS="$LIBOBJS strsignal.$ac_objext"
18850: ;;
18851: esac
18852:
18853: HAVE_SIGLIST="false"
18854: ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "
18855: $ac_includes_default
18856: #include <signal.h>
18857:
18858: "
18859: if test "x$ac_cv_have_decl_sys_siglist" = xyes; then :
18860: ac_have_decl=1
18861: else
18862: ac_have_decl=0
18863: fi
18864:
18865: cat >>confdefs.h <<_ACEOF
18866: #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
18867: _ACEOF
18868: if test $ac_have_decl = 1; then :
18869:
18870: HAVE_SIGLIST="true"
18871: break
18872:
18873: fi
18874: ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" "
18875: $ac_includes_default
18876: #include <signal.h>
18877:
18878: "
18879: if test "x$ac_cv_have_decl__sys_siglist" = xyes; then :
18880: ac_have_decl=1
18881: else
18882: ac_have_decl=0
18883: fi
18884:
18885: cat >>confdefs.h <<_ACEOF
18886: #define HAVE_DECL__SYS_SIGLIST $ac_have_decl
18887: _ACEOF
18888: if test $ac_have_decl = 1; then :
18889:
18890: HAVE_SIGLIST="true"
18891: break
18892:
18893: fi
18894: ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "
18895: $ac_includes_default
18896: #include <signal.h>
18897:
18898: "
18899: if test "x$ac_cv_have_decl___sys_siglist" = xyes; then :
18900: ac_have_decl=1
18901: else
18902: ac_have_decl=0
18903: fi
18904:
18905: cat >>confdefs.h <<_ACEOF
18906: #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
18907: _ACEOF
18908: if test $ac_have_decl = 1; then :
18909:
18910: HAVE_SIGLIST="true"
18911: break
18912:
18913: fi
18914:
18915: if test "$HAVE_SIGLIST" != "true"; then
18916: case " $LIBOBJS " in
18917: *" siglist.$ac_objext "* ) ;;
18918: *) LIBOBJS="$LIBOBJS siglist.$ac_objext"
18919: ;;
1.1.1.2 misho 18920: esac
18921:
18922: fi
18923:
1.1 misho 18924: fi
1.1.1.2 misho 18925: done
1.1 misho 18926:
18927:
1.1.1.3 misho 18928: for ac_func in sig2str
18929: do :
18930: ac_fn_c_check_func "$LINENO" "sig2str" "ac_cv_func_sig2str"
18931: if test "x$ac_cv_func_sig2str" = xyes; then :
18932: cat >>confdefs.h <<_ACEOF
18933: #define HAVE_SIG2STR 1
18934: _ACEOF
1.1 misho 18935:
1.1.1.3 misho 18936: else
1.1.1.2 misho 18937:
1.1.1.3 misho 18938: case " $LIBOBJS " in
18939: *" sig2str.$ac_objext "* ) ;;
18940: *) LIBOBJS="$LIBOBJS sig2str.$ac_objext"
18941: ;;
18942: esac
18943:
18944: HAVE_SIGNAME="false"
18945: ac_fn_c_check_decl "$LINENO" "sys_signame" "ac_cv_have_decl_sys_signame" "
18946: $ac_includes_default
18947: #include <signal.h>
18948:
18949: "
18950: if test "x$ac_cv_have_decl_sys_signame" = xyes; then :
18951: ac_have_decl=1
18952: else
18953: ac_have_decl=0
1.1.1.2 misho 18954: fi
1.1 misho 18955:
1.1.1.3 misho 18956: cat >>confdefs.h <<_ACEOF
18957: #define HAVE_DECL_SYS_SIGNAME $ac_have_decl
18958: _ACEOF
18959: if test $ac_have_decl = 1; then :
18960:
18961: HAVE_SIGNAME="true"
18962: break
1.1 misho 18963:
18964: fi
1.1.1.3 misho 18965: ac_fn_c_check_decl "$LINENO" "_sys_signame" "ac_cv_have_decl__sys_signame" "
18966: $ac_includes_default
18967: #include <signal.h>
1.1.1.2 misho 18968:
1.1.1.3 misho 18969: "
18970: if test "x$ac_cv_have_decl__sys_signame" = xyes; then :
18971: ac_have_decl=1
1.1 misho 18972: else
1.1.1.3 misho 18973: ac_have_decl=0
18974: fi
1.1 misho 18975:
1.1.1.3 misho 18976: cat >>confdefs.h <<_ACEOF
18977: #define HAVE_DECL__SYS_SIGNAME $ac_have_decl
18978: _ACEOF
18979: if test $ac_have_decl = 1; then :
18980:
18981: HAVE_SIGNAME="true"
18982: break
18983:
18984: fi
18985: ac_fn_c_check_decl "$LINENO" "__sys_signame" "ac_cv_have_decl___sys_signame" "
18986: $ac_includes_default
18987: #include <signal.h>
18988:
18989: "
18990: if test "x$ac_cv_have_decl___sys_signame" = xyes; then :
18991: ac_have_decl=1
18992: else
18993: ac_have_decl=0
18994: fi
18995:
18996: cat >>confdefs.h <<_ACEOF
18997: #define HAVE_DECL___SYS_SIGNAME $ac_have_decl
18998: _ACEOF
18999: if test $ac_have_decl = 1; then :
19000:
19001: HAVE_SIGNAME="true"
19002: break
19003:
19004: fi
19005: ac_fn_c_check_decl "$LINENO" "sys_sigabbrev" "ac_cv_have_decl_sys_sigabbrev" "
19006: $ac_includes_default
19007: #include <signal.h>
19008:
19009: "
19010: if test "x$ac_cv_have_decl_sys_sigabbrev" = xyes; then :
19011: ac_have_decl=1
19012: else
19013: ac_have_decl=0
19014: fi
19015:
19016: cat >>confdefs.h <<_ACEOF
19017: #define HAVE_DECL_SYS_SIGABBREV $ac_have_decl
19018: _ACEOF
19019: if test $ac_have_decl = 1; then :
19020:
19021: HAVE_SIGNAME="true"
19022: break
19023:
19024: fi
19025:
19026: if test "$HAVE_SIGNAME" != "true"; then
19027: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for undeclared sys_sigabbrev" >&5
19028: $as_echo_n "checking for undeclared sys_sigabbrev... " >&6; }
19029: if ${sudo_cv_var_sys_sigabbrev+:} false; then :
19030: $as_echo_n "(cached) " >&6
19031: else
19032: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19033: /* end confdefs.h. */
19034: extern char **sys_sigabbrev;
19035: int
19036: main ()
19037: {
19038: return sys_sigabbrev[1];
19039: ;
19040: return 0;
19041: }
19042: _ACEOF
19043: if ac_fn_c_try_link "$LINENO"; then :
19044: sudo_cv_var_sys_sigabbrev=yes
19045: else
19046: sudo_cv_var_sys_sigabbrev=no
19047:
19048: fi
19049: rm -f core conftest.err conftest.$ac_objext \
19050: conftest$ac_exeext conftest.$ac_ext
19051:
19052:
19053: fi
19054: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_sys_sigabbrev" >&5
19055: $as_echo "$sudo_cv_var_sys_sigabbrev" >&6; }
19056: if test "$sudo_cv_var_sys_sigabbrev" = yes; then
19057: $as_echo "#define HAVE_SYS_SIGABBREV 1" >>confdefs.h
19058:
19059: else
19060: case " $LIBOBJS " in
19061: *" signame.$ac_objext "* ) ;;
19062: *) LIBOBJS="$LIBOBJS signame.$ac_objext"
19063: ;;
19064: esac
19065:
19066: fi
19067: fi
19068:
19069: fi
19070: done
19071:
19072:
19073: if test ${with_netsvc-"no"} != "no"; then
19074: cat >>confdefs.h <<EOF
19075: #define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}"
19076: EOF
19077:
19078: netsvc_conf=${with_netsvc-/etc/netsvc.conf}
19079: elif test ${with_nsswitch-"yes"} != "no"; then
19080: cat >>confdefs.h <<EOF
19081: #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
19082: EOF
19083:
19084: nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
19085: fi
19086:
19087:
19088: if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19089: for auth in $AUTH_EXCL_DEF; do
19090: case $auth in
19091: AIX_AUTH) with_aixauth=maybe;;
19092: BSD_AUTH) with_bsdauth=maybe;;
19093: PAM) with_pam=maybe;;
19094: SIA) CHECKSIA=true;;
19095: esac
19096: done
19097: fi
19098:
19099: if test ${with_pam-"no"} != "no"; then
19100: #
19101: # Check for pam_start() in libpam first, then for pam_appl.h.
19102: #
19103: found_pam_lib=no
19104: as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh`
19105: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
19106: $as_echo_n "checking for pam_start in -lpam... " >&6; }
19107: if eval \${$as_ac_Lib+:} false; then :
19108: $as_echo_n "(cached) " >&6
19109: else
19110: ac_check_lib_save_LIBS=$LIBS
19111: LIBS="-lpam $lt_cv_dlopen_libs $LIBS"
19112: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113: /* end confdefs.h. */
19114:
19115: /* Override any GCC internal prototype to avoid an error.
19116: Use char because int might match the return type of a GCC
19117: builtin and then its argument prototype would still apply. */
19118: #ifdef __cplusplus
19119: extern "C"
19120: #endif
19121: char pam_start ();
19122: int
19123: main ()
19124: {
19125: return pam_start ();
19126: ;
19127: return 0;
19128: }
1.1 misho 19129: _ACEOF
19130: if ac_fn_c_try_link "$LINENO"; then :
19131: eval "$as_ac_Lib=yes"
19132: else
19133: eval "$as_ac_Lib=no"
19134: fi
19135: rm -f core conftest.err conftest.$ac_objext \
19136: conftest$ac_exeext conftest.$ac_ext
19137: LIBS=$ac_check_lib_save_LIBS
19138: fi
19139: eval ac_res=\$$as_ac_Lib
19140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19141: $as_echo "$ac_res" >&6; }
19142: if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
1.1.1.2 misho 19143: found_pam_lib=yes
19144: fi
19145:
19146: #
19147: # Some PAM implementations (MacOS X for example) put the PAM headers
19148: # in /usr/include/pam instead of /usr/include/security...
19149: #
19150: found_pam_hdrs=no
19151: for ac_header in security/pam_appl.h pam/pam_appl.h
19152: do :
19153: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19154: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19155: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19156: cat >>confdefs.h <<_ACEOF
19157: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19158: _ACEOF
19159: found_pam_hdrs=yes; break
19160: fi
19161:
19162: done
19163:
19164: if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then
19165: # Found both PAM libs and headers
19166: with_pam=yes
19167: elif test "$with_pam" = "yes"; then
19168: if test "$found_pam_lib" = "no"; then
19169: as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5
19170: fi
19171: if test "$found_pam_hdrs" = "no"; then
19172: as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5
19173: fi
19174: elif test "$found_pam_lib" != "$found_pam_hdrs"; then
19175: if test "$found_pam_lib" = "no"; then
19176: as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5
19177: fi
19178: if test "$found_pam_hdrs" = "no"; then
19179: as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5
19180: fi
19181: fi
19182:
19183: if test "$with_pam" = "yes"; then
19184: # Older PAM implementations lack pam_getenvlist
19185: OLIBS="$LIBS"
19186: LIBS="$LIBS -lpam $lt_cv_dlopen_libs"
19187: for ac_func in pam_getenvlist
19188: do :
19189: ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist"
19190: if test "x$ac_cv_func_pam_getenvlist" = xyes; then :
19191: cat >>confdefs.h <<_ACEOF
19192: #define HAVE_PAM_GETENVLIST 1
19193: _ACEOF
19194:
19195: fi
19196: done
19197:
19198: LIBS="$OLIBS"
19199:
19200: # We already link with -ldl if needed (see LIBDL below)
19201: SUDOERS_LIBS="${SUDOERS_LIBS} -lpam"
19202: $as_echo "#define HAVE_PAM 1" >>confdefs.h
19203:
19204: AUTH_OBJS="$AUTH_OBJS pam.lo";
19205: AUTH_EXCL=PAM
19206:
19207:
19208: # Check whether --with-pam-login was given.
19209: if test "${with_pam_login+set}" = set; then :
19210: withval=$with_pam_login; case $with_pam_login in
19211: yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h
19212:
19213: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5
19214: $as_echo_n "checking whether to use PAM login... " >&6; }
19215: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19216: $as_echo "yes" >&6; }
1.1.1.5 ! misho 19217: pam_login_service="sudo-i"
1.1.1.2 misho 19218: ;;
19219: no) ;;
19220: *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5
19221: ;;
19222: esac
19223: fi
19224:
19225:
19226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5
19227: $as_echo_n "checking whether to use PAM session support... " >&6; }
19228: # Check whether --enable-pam_session was given.
19229: if test "${enable_pam_session+set}" = set; then :
19230: enableval=$enable_pam_session; case "$enableval" in
19231: yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232: $as_echo "yes" >&6; }
19233: ;;
1.1.1.4 misho 19234: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1.1.2 misho 19235: $as_echo "no" >&6; }
1.1.1.4 misho 19236: $as_echo "#define NO_PAM_SESSION 1" >>confdefs.h
1.1.1.2 misho 19237:
1.1.1.4 misho 19238: pam_session=off
19239: ;;
19240: *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1.1.1.2 misho 19241: $as_echo "no" >&6; }
1.1.1.4 misho 19242: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
1.1.1.2 misho 19243: $as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
1.1.1.4 misho 19244: ;;
1.1.1.2 misho 19245: esac
1.1 misho 19246: else
1.1.1.2 misho 19247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19248: $as_echo "yes" >&6; }
19249: fi
1.1 misho 19250:
1.1.1.2 misho 19251: fi
19252: fi
19253:
19254: if test ${with_aixauth-'no'} != "no"; then
19255: if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19256: { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5
19257: $as_echo "$as_me: using AIX general authentication" >&6;}
19258: $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h
19259:
19260: AUTH_OBJS="$AUTH_OBJS aix_auth.lo";
19261: SUDOERS_LIBS="${SUDOERS_LIBS} -ls"
19262: AUTH_EXCL=AIX_AUTH
19263: fi
19264: fi
19265:
19266: if test ${with_bsdauth-'no'} != "no"; then
19267: ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default"
19268: if test "x$ac_cv_header_bsd_auth_h" = xyes; then :
19269: $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h
19270:
19271: AUTH_OBJS="$AUTH_OBJS bsdauth.lo"
1.1.1.5 ! misho 19272: BSDAUTH_USAGE='[-a type] '
1.1.1.2 misho 19273: AUTH_EXCL=BSD_AUTH; BAMAN=1
1.1 misho 19274: else
1.1.1.2 misho 19275: as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5
19276: fi
1.1 misho 19277:
19278:
1.1.1.2 misho 19279: fi
19280:
19281: if test ${CHECKSIA-'false'} = "true"; then
19282: for ac_func in sia_ses_init
19283: do :
19284: ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init"
19285: if test "x$ac_cv_func_sia_ses_init" = xyes; then :
19286: cat >>confdefs.h <<_ACEOF
19287: #define HAVE_SIA_SES_INIT 1
1.1 misho 19288: _ACEOF
1.1.1.2 misho 19289: found=true
1.1 misho 19290: else
1.1.1.2 misho 19291: found=false
1.1 misho 19292: fi
1.1.1.2 misho 19293: done
19294:
19295: if test "$found" = "true"; then
19296: AUTH_EXCL=SIA
19297: AUTH_OBJS="$AUTH_OBJS sia.lo"
19298: fi
1.1 misho 19299: fi
19300:
1.1.1.2 misho 19301: if test ${with_fwtk-'no'} != "no"; then
19302: if test "$with_fwtk" != "yes"; then
19303:
1.1.1.4 misho 19304: case "${SUDOERS_LDFLAGS}" in
19305: *"-L${with_fwtk}"|*"-L${with_fwtk} ")
19306: ;;
19307: *)
19308: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_fwtk}"
19309: if test X"$enable_rpath" = X"yes"; then
19310: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_fwtk}"
19311: fi
19312: ;;
19313: esac
19314:
19315:
19316: case "${CPPFLAGS}" in
19317: *"-I${with_fwtk}"|*"-I${with_fwtk} ")
19318: ;;
19319: *)
19320: if test X"${CPPFLAGS}" = X""; then
19321: CPPFLAGS="-I${with_fwtk}"
19322: else
19323: CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
19324: fi
19325: ;;
19326: esac
1.1.1.2 misho 19327:
19328: with_fwtk=yes
19329: fi
19330: SUDOERS_LIBS="${SUDOERS_LIBS} -lauth -lfwall"
19331: AUTH_OBJS="$AUTH_OBJS fwtk.lo"
1.1 misho 19332: fi
19333:
1.1.1.2 misho 19334: if test ${with_SecurID-'no'} != "no"; then
19335: if test "$with_SecurID" != "yes"; then
19336: :
19337: elif test -d /usr/ace/examples; then
19338: with_SecurID=/usr/ace/examples
19339: else
19340: with_SecurID=/usr/ace
19341: fi
19342:
1.1.1.4 misho 19343: case "${CPPFLAGS}" in
19344: *"-I${with_SecurID}"|*"-I${with_SecurID} ")
19345: ;;
19346: *)
19347: if test X"${CPPFLAGS}" = X""; then
19348: CPPFLAGS="-I${with_SecurID}"
19349: else
19350: CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
19351: fi
19352: ;;
19353: esac
19354:
19355:
19356: case "${SUDOERS_LDFLAGS}" in
19357: *"-L${with_SecurID}"|*"-L${with_SecurID} ")
19358: ;;
19359: *)
19360: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_SecurID}"
19361: if test X"$enable_rpath" = X"yes"; then
19362: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_SecurID}"
19363: fi
19364: ;;
19365: esac
1.1 misho 19366:
1.1.1.2 misho 19367: SUDOERS_LIBS="${SUDOERS_LIBS} -laceclnt -lpthread"
19368: AUTH_OBJS="$AUTH_OBJS securid5.lo";
1.1 misho 19369: fi
19370:
1.1.1.2 misho 19371:
19372: if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
19373: for auth in $AUTH_DEF; do
19374: case $auth in
19375: passwd) : ${with_passwd='maybe'};;
19376: esac
19377: done
1.1 misho 19378: fi
19379:
19380: if test ${with_kerb5-'no'} != "no"; then
19381: # Extract the first word of "krb5-config", so it can be a program name with args.
19382: set dummy krb5-config; ac_word=$2
19383: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19384: $as_echo_n "checking for $ac_word... " >&6; }
19385: if ${ac_cv_prog_KRB5CONFIG+:} false; then :
19386: $as_echo_n "(cached) " >&6
19387: else
19388: if test -n "$KRB5CONFIG"; then
19389: ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
19390: else
19391: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19392: for as_dir in $PATH
19393: do
19394: IFS=$as_save_IFS
19395: test -z "$as_dir" && as_dir=.
19396: for ac_exec_ext in '' $ac_executable_extensions; do
19397: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19398: ac_cv_prog_KRB5CONFIG="yes"
19399: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19400: break 2
19401: fi
19402: done
19403: done
19404: IFS=$as_save_IFS
19405:
19406: test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
19407: fi
19408: fi
19409: KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
19410: if test -n "$KRB5CONFIG"; then
19411: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
19412: $as_echo "$KRB5CONFIG" >&6; }
19413: else
19414: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19415: $as_echo "no" >&6; }
19416: fi
19417:
19418:
19419: if test -n "$KRB5CONFIG"; then
19420: $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19421:
19422: AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19423: CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
19424: SUDOERS_LIBS="$SUDOERS_LIBS `krb5-config --libs`"
19425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19426: $as_echo_n "checking whether we are using Heimdal... " >&6; }
19427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428: /* end confdefs.h. */
19429: #include <krb5.h>
19430: int
19431: main ()
19432: {
19433: const char *tmp = heimdal_version;
19434: ;
19435: return 0;
19436: }
19437: _ACEOF
19438: if ac_fn_c_try_compile "$LINENO"; then :
19439:
19440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19441: $as_echo "yes" >&6; }
19442: $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19443:
19444:
19445: else
19446:
19447: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19448: $as_echo "no" >&6; }
19449:
19450:
19451: fi
19452: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453: else
19454: $as_echo "#define HAVE_KERB5 1" >>confdefs.h
19455:
19456: if test "$with_kerb5" = "yes"; then
19457: found=no
19458: O_CPPFLAGS="$CPPFLAGS"
19459: for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
19460: CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
19461: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462: /* end confdefs.h. */
19463: #include <krb5.h>
19464: int
19465: main ()
19466: {
19467:
19468: ;
19469: return 0;
19470: }
19471: _ACEOF
19472: if ac_fn_c_try_cpp "$LINENO"; then :
19473: found=yes; break
19474: fi
19475: rm -f conftest.err conftest.i conftest.$ac_ext
19476: done
19477: if test X"$found" = X"no"; then
19478: CPPFLAGS="$O_CPPFLAGS"
19479: { $as_echo "$as_me:${as_lineno-$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
19480: $as_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;}
19481: fi
19482: else
19483:
1.1.1.4 misho 19484: case "${SUDOERS_LDFLAGS}" in
19485: *"-L${with_kerb5}/lib"|*"-L${with_kerb5}/lib ")
19486: ;;
19487: *)
19488: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_kerb5}/lib"
19489: if test X"$enable_rpath" = X"yes"; then
19490: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_kerb5}/lib"
19491: fi
19492: ;;
19493: esac
19494:
19495:
19496: case "${CPPFLAGS}" in
19497: *"-I${with_kerb5}/include"|*"-I${with_kerb5}/include ")
19498: ;;
19499: *)
19500: if test X"${CPPFLAGS}" = X""; then
19501: CPPFLAGS="-I${with_kerb5}/include"
19502: else
19503: CPPFLAGS="${CPPFLAGS} -I${with_kerb5}/include"
19504: fi
19505: ;;
19506: esac
1.1 misho 19507:
19508: fi
19509:
19510: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5
19511: $as_echo_n "checking whether we are using Heimdal... " >&6; }
19512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19513: /* end confdefs.h. */
19514: #include <krb5.h>
19515: int
19516: main ()
19517: {
19518: const char *tmp = heimdal_version;
19519: ;
19520: return 0;
19521: }
19522: _ACEOF
19523: if ac_fn_c_try_compile "$LINENO"; then :
19524:
19525: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526: $as_echo "yes" >&6; }
19527: $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h
19528:
19529: # XXX - need to check whether -lcrypo is needed!
19530: SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
19531: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5
19532: $as_echo_n "checking for main in -lroken... " >&6; }
19533: if ${ac_cv_lib_roken_main+:} false; then :
19534: $as_echo_n "(cached) " >&6
19535: else
19536: ac_check_lib_save_LIBS=$LIBS
19537: LIBS="-lroken $LIBS"
19538: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19539: /* end confdefs.h. */
19540:
19541:
19542: int
19543: main ()
19544: {
19545: return main ();
19546: ;
19547: return 0;
19548: }
19549: _ACEOF
19550: if ac_fn_c_try_link "$LINENO"; then :
19551: ac_cv_lib_roken_main=yes
19552: else
19553: ac_cv_lib_roken_main=no
19554: fi
19555: rm -f core conftest.err conftest.$ac_objext \
19556: conftest$ac_exeext conftest.$ac_ext
19557: LIBS=$ac_check_lib_save_LIBS
19558: fi
19559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5
19560: $as_echo "$ac_cv_lib_roken_main" >&6; }
19561: if test "x$ac_cv_lib_roken_main" = xyes; then :
19562: SUDOERS_LIBS="${SUDOERS_LIBS} -lroken"
19563: fi
19564:
19565:
19566: else
19567:
19568: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19569: $as_echo "no" >&6; }
19570: SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5 -lk5crypto -lcom_err"
19571: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5
19572: $as_echo_n "checking for main in -lkrb5support... " >&6; }
19573: if ${ac_cv_lib_krb5support_main+:} false; then :
19574: $as_echo_n "(cached) " >&6
19575: else
19576: ac_check_lib_save_LIBS=$LIBS
19577: LIBS="-lkrb5support $LIBS"
19578: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579: /* end confdefs.h. */
19580:
19581:
19582: int
19583: main ()
19584: {
19585: return main ();
19586: ;
19587: return 0;
19588: }
19589: _ACEOF
19590: if ac_fn_c_try_link "$LINENO"; then :
19591: ac_cv_lib_krb5support_main=yes
19592: else
19593: ac_cv_lib_krb5support_main=no
19594: fi
19595: rm -f core conftest.err conftest.$ac_objext \
19596: conftest$ac_exeext conftest.$ac_ext
19597: LIBS=$ac_check_lib_save_LIBS
19598: fi
19599: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5
19600: $as_echo "$ac_cv_lib_krb5support_main" >&6; }
19601: if test "x$ac_cv_lib_krb5support_main" = xyes; then :
19602: SUDOERS_LIBS="${SUDOERS_LIBS} -lkrb5support"
19603: fi
19604:
19605:
19606: fi
19607: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19608: AUTH_OBJS="$AUTH_OBJS kerb5.lo"
19609: fi
19610: _LIBS="$LIBS"
19611: LIBS="${LIBS} ${SUDOERS_LIBS}"
19612: for ac_func in krb5_verify_user krb5_init_secure_context
19613: do :
19614: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19615: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19616: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19617: cat >>confdefs.h <<_ACEOF
19618: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19619: _ACEOF
19620:
19621: fi
19622: done
19623:
19624: for ac_func in krb5_get_init_creds_opt_alloc
19625: do :
19626: ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc"
19627: if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then :
19628: cat >>confdefs.h <<_ACEOF
19629: #define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1
19630: _ACEOF
19631:
19632: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5
19633: $as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; }
19634: if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then :
19635: $as_echo_n "(cached) " >&6
19636: else
19637:
19638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19639: /* end confdefs.h. */
19640: #include <krb5.h>
19641: int
19642: main ()
19643: {
19644: krb5_get_init_creds_opt_free(NULL, NULL);
19645:
19646: ;
19647: return 0;
19648: }
19649: _ACEOF
19650: if ac_fn_c_try_compile "$LINENO"; then :
19651: sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
19652: else
19653: sudo_cv_krb5_get_init_creds_opt_free_two_args=no
19654:
19655: fi
19656: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19657:
19658:
19659: fi
19660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
19661: $as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
19662:
19663: fi
19664: done
19665:
19666: if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
19667: $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h
19668:
19669: fi
19670: LIBS="$_LIBS"
1.1.1.2 misho 19671: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an instance name for Kerberos V" >&5
19672: $as_echo_n "checking whether to use an instance name for Kerberos V... " >&6; }
19673: # Check whether --enable-kerb5-instance was given.
19674: if test "${enable_kerb5_instance+set}" = set; then :
19675: enableval=$enable_kerb5_instance; case "$enableval" in
19676: yes) as_fn_error $? "\"must give --enable-kerb5-instance an argument.\"" "$LINENO" 5
19677: ;;
19678: no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19679: $as_echo "no" >&6; }
19680: ;;
19681: *) cat >>confdefs.h <<EOF
19682: #define SUDO_KRB5_INSTANCE "$enableval"
19683: EOF
19684:
19685: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
19686: $as_echo "$enableval" >&6; }
19687: ;;
19688: esac
19689: else
19690: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691: $as_echo "no" >&6; }
19692: fi
19693:
1.1 misho 19694: fi
19695:
19696: if test ${with_AFS-'no'} = "yes"; then
19697:
19698: # looks like the "standard" place for AFS libs is /usr/afsws/lib
19699: AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
19700: for i in $AFSLIBDIRS; do
19701: if test -d ${i}; then
19702:
1.1.1.4 misho 19703: case "${SUDOERS_LDFLAGS}" in
19704: *"-L$i"|*"-L$i ")
19705: ;;
19706: *)
19707: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L$i"
19708: if test X"$enable_rpath" = X"yes"; then
19709: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R$i"
19710: fi
19711: ;;
19712: esac
1.1 misho 19713:
19714: FOUND_AFSLIBDIR=true
19715: fi
19716: done
19717: if test -z "$FOUND_AFSLIBDIR"; then
19718: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&5
19719: $as_echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDOERS_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
19720: fi
19721:
19722: # Order is important here. Note that we build AFS_LIBS from right to left
19723: # since AFS_LIBS may be initialized with BSD compat libs that must go last
19724: AFS_LIBS="-laudit ${AFS_LIBS}"
19725: for i in $AFSLIBDIRS; do
19726: if test -f ${i}/util.a; then
19727: AFS_LIBS="${i}/util.a ${AFS_LIBS}"
19728: FOUND_UTIL_A=true
19729: break;
19730: fi
19731: done
19732: if test -z "$FOUND_UTIL_A"; then
19733: AFS_LIBS="-lutil ${AFS_LIBS}"
19734: fi
19735: AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
19736:
19737: # AFS includes may live in /usr/include on some machines...
19738: for i in /usr/afsws/include; do
19739: if test -d ${i}; then
1.1.1.4 misho 19740:
19741: case "${CPPFLAGS}" in
19742: *"-I${i}"|*"-I${i} ")
19743: ;;
19744: *)
19745: if test X"${CPPFLAGS}" = X""; then
19746: CPPFLAGS="-I${i}"
19747: else
19748: CPPFLAGS="${CPPFLAGS} -I${i}"
19749: fi
19750: ;;
19751: esac
19752:
1.1 misho 19753: FOUND_AFSINCDIR=true
19754: fi
19755: done
19756:
19757: if test -z "$FOUND_AFSLIBDIR"; then
19758: { $as_echo "$as_me:${as_lineno-$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
19759: $as_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;}
19760: fi
19761:
19762: AUTH_OBJS="$AUTH_OBJS afs.lo"
19763: fi
19764:
19765: if test ${with_DCE-'no'} = "yes"; then
19766: DCE_OBJS="${DCE_OBJS} dce_pwent.o"
19767: SUDOERS_LIBS="${SUDOERS_LIBS} -ldce"
19768: AUTH_OBJS="$AUTH_OBJS dce.lo"
19769: fi
19770:
19771: if test "${with_skey-'no'}" = "yes"; then
19772: O_LDFLAGS="$LDFLAGS"
19773: if test "$with_skey" != "yes"; then
19774:
1.1.1.4 misho 19775: case "${CPPFLAGS}" in
19776: *"-I${with_skey}/include"|*"-I${with_skey}/include ")
19777: ;;
19778: *)
19779: if test X"${CPPFLAGS}" = X""; then
19780: CPPFLAGS="-I${with_skey}/include"
19781: else
19782: CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
19783: fi
19784: ;;
19785: esac
1.1 misho 19786:
1.1.1.4 misho 19787: LDFLAGS="$LDFLAGS -L${with_skey}/lib"
1.1 misho 19788:
1.1.1.4 misho 19789: case "${SUDOERS_LDFLAGS}" in
19790: *"-L${with_skey}/lib"|*"-L${with_skey}/lib ")
19791: ;;
19792: *)
19793: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_skey}/lib"
19794: if test X"$enable_rpath" = X"yes"; then
19795: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_skey}/lib"
19796: fi
19797: ;;
19798: esac
1.1 misho 19799:
19800: ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19801: "
19802: if test "x$ac_cv_header_skey_h" = xyes; then :
19803: found=yes
19804: else
19805: found=no
19806: fi
19807:
19808:
19809: else
19810: found=no
19811: O_CPPFLAGS="$CPPFLAGS"
19812: for dir in "" "/usr/local" "/usr/contrib"; do
19813: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
19814: ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h>
19815: "
19816: if test "x$ac_cv_header_skey_h" = xyes; then :
19817: found=yes; break
19818: fi
19819:
19820:
19821: done
19822: if test "$found" = "no" -o -z "$dir"; then
19823: CPPFLAGS="$O_CPPFLAGS"
19824: else
1.1.1.4 misho 19825: LDFLAGS="$LDFLAGS -L${dir}/lib"
1.1 misho 19826:
1.1.1.4 misho 19827: case "${SUDOERS_LDFLAGS}" in
19828: *"-L${dir}/lib"|*"-L${dir}/lib ")
19829: ;;
19830: *)
19831: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
19832: if test X"$enable_rpath" = X"yes"; then
19833: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
19834: fi
19835: ;;
19836: esac
1.1 misho 19837:
19838: fi
19839: if test "$found" = "no"; then
19840: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
19841: $as_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;}
19842: fi
19843: fi
19844: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5
19845: $as_echo_n "checking for main in -lskey... " >&6; }
19846: if ${ac_cv_lib_skey_main+:} false; then :
19847: $as_echo_n "(cached) " >&6
19848: else
19849: ac_check_lib_save_LIBS=$LIBS
19850: LIBS="-lskey $LIBS"
19851: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852: /* end confdefs.h. */
19853:
19854:
19855: int
19856: main ()
19857: {
19858: return main ();
19859: ;
19860: return 0;
19861: }
19862: _ACEOF
19863: if ac_fn_c_try_link "$LINENO"; then :
19864: ac_cv_lib_skey_main=yes
19865: else
19866: ac_cv_lib_skey_main=no
19867: fi
19868: rm -f core conftest.err conftest.$ac_objext \
19869: conftest$ac_exeext conftest.$ac_ext
19870: LIBS=$ac_check_lib_save_LIBS
19871: fi
19872: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5
19873: $as_echo "$ac_cv_lib_skey_main" >&6; }
19874: if test "x$ac_cv_lib_skey_main" = xyes; then :
19875: found=yes
19876: else
19877: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&5
19878: $as_echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDOERS_LDFLAGS" >&2;}
19879: fi
19880:
19881: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5
19882: $as_echo_n "checking for skeyaccess in -lskey... " >&6; }
19883: if ${ac_cv_lib_skey_skeyaccess+:} false; then :
19884: $as_echo_n "(cached) " >&6
19885: else
19886: ac_check_lib_save_LIBS=$LIBS
19887: LIBS="-lskey $LIBS"
19888: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19889: /* end confdefs.h. */
19890:
19891: /* Override any GCC internal prototype to avoid an error.
19892: Use char because int might match the return type of a GCC
19893: builtin and then its argument prototype would still apply. */
19894: #ifdef __cplusplus
19895: extern "C"
19896: #endif
19897: char skeyaccess ();
19898: int
19899: main ()
19900: {
19901: return skeyaccess ();
19902: ;
19903: return 0;
19904: }
19905: _ACEOF
19906: if ac_fn_c_try_link "$LINENO"; then :
19907: ac_cv_lib_skey_skeyaccess=yes
19908: else
19909: ac_cv_lib_skey_skeyaccess=no
19910: fi
19911: rm -f core conftest.err conftest.$ac_objext \
19912: conftest$ac_exeext conftest.$ac_ext
19913: LIBS=$ac_check_lib_save_LIBS
19914: fi
19915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5
19916: $as_echo "$ac_cv_lib_skey_skeyaccess" >&6; }
19917: if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then :
19918: $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h
19919:
19920: fi
19921:
19922:
19923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5
19924: $as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; }
19925: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19926: /* end confdefs.h. */
19927: #include <stdio.h>
19928: #include <skey.h>
19929: int
19930: main ()
19931: {
19932: skeychallenge(NULL, NULL, NULL, 0);
19933:
19934: ;
19935: return 0;
19936: }
19937: _ACEOF
19938: if ac_fn_c_try_compile "$LINENO"; then :
19939:
19940: $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h
19941:
19942: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19943: $as_echo "yes" >&6; }
19944:
19945: else
19946:
19947: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19948: $as_echo "no" >&6; }
19949:
19950:
19951: fi
19952: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19953:
19954: LDFLAGS="$O_LDFLAGS"
19955: SUDOERS_LIBS="${SUDOERS_LIBS} -lskey"
19956: AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
19957: fi
19958:
19959: if test "${with_opie-'no'}" = "yes"; then
19960: O_LDFLAGS="$LDFLAGS"
19961: if test "$with_opie" != "yes"; then
19962:
1.1.1.4 misho 19963: case "${CPPFLAGS}" in
19964: *"-I${with_opie}/include"|*"-I${with_opie}/include ")
19965: ;;
19966: *)
19967: if test X"${CPPFLAGS}" = X""; then
19968: CPPFLAGS="-I${with_opie}/include"
19969: else
19970: CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
19971: fi
19972: ;;
19973: esac
1.1 misho 19974:
1.1.1.4 misho 19975: LDFLAGS="$LDFLAGS -L${with_opie}/lib"
1.1 misho 19976:
1.1.1.4 misho 19977: case "${SUDOERS_LDFLAGS}" in
19978: *"-L${with_opie}/lib"|*"-L${with_opie}/lib ")
19979: ;;
19980: *)
19981: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_opie}/lib"
19982: if test X"$enable_rpath" = X"yes"; then
19983: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_opie}/lib"
19984: fi
19985: ;;
19986: esac
1.1 misho 19987:
19988: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19989: /* end confdefs.h. */
19990: #include <opie.h>
19991: int
19992: main ()
19993: {
19994:
19995: ;
19996: return 0;
19997: }
19998: _ACEOF
19999: if ac_fn_c_try_cpp "$LINENO"; then :
20000: found=yes
20001: else
20002: found=no
20003: fi
20004: rm -f conftest.err conftest.i conftest.$ac_ext
20005: else
20006: found=no
20007: O_CPPFLAGS="$CPPFLAGS"
20008: for dir in "" "/usr/local" "/usr/contrib"; do
20009: test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
20010: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20011: /* end confdefs.h. */
20012: #include <opie.h>
20013: int
20014: main ()
20015: {
20016:
20017: ;
20018: return 0;
20019: }
20020: _ACEOF
20021: if ac_fn_c_try_cpp "$LINENO"; then :
20022: found=yes; break
20023: fi
20024: rm -f conftest.err conftest.i conftest.$ac_ext
20025: done
20026: if test "$found" = "no" -o -z "$dir"; then
20027: CPPFLAGS="$O_CPPFLAGS"
20028: else
1.1.1.4 misho 20029: LDFLAGS="$LDFLAGS -L${dir}/lib"
1.1 misho 20030:
1.1.1.4 misho 20031: case "${SUDOERS_LDFLAGS}" in
20032: *"-L${dir}/lib"|*"-L${dir}/lib ")
20033: ;;
20034: *)
20035: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${dir}/lib"
20036: if test X"$enable_rpath" = X"yes"; then
20037: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${dir}/lib"
20038: fi
20039: ;;
20040: esac
1.1 misho 20041:
20042: fi
20043: if test "$found" = "no"; then
20044: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
20045: $as_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;}
20046: fi
20047: fi
20048: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5
20049: $as_echo_n "checking for main in -lopie... " >&6; }
20050: if ${ac_cv_lib_opie_main+:} false; then :
20051: $as_echo_n "(cached) " >&6
20052: else
20053: ac_check_lib_save_LIBS=$LIBS
20054: LIBS="-lopie $LIBS"
20055: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20056: /* end confdefs.h. */
20057:
20058:
20059: int
20060: main ()
20061: {
20062: return main ();
20063: ;
20064: return 0;
20065: }
20066: _ACEOF
20067: if ac_fn_c_try_link "$LINENO"; then :
20068: ac_cv_lib_opie_main=yes
20069: else
20070: ac_cv_lib_opie_main=no
20071: fi
20072: rm -f core conftest.err conftest.$ac_objext \
20073: conftest$ac_exeext conftest.$ac_ext
20074: LIBS=$ac_check_lib_save_LIBS
20075: fi
20076: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5
20077: $as_echo "$ac_cv_lib_opie_main" >&6; }
20078: if test "x$ac_cv_lib_opie_main" = xyes; then :
20079: found=yes
20080: else
20081: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&5
20082: $as_echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDOERS_LDFLAGS" >&2;}
20083: fi
20084:
20085: LDFLAGS="$O_LDFLAGS"
20086: SUDOERS_LIBS="${SUDOERS_LIBS} -lopie"
20087: AUTH_OBJS="$AUTH_OBJS rfc1938.lo"
20088: fi
20089:
20090: if test ${with_passwd-'no'} != "no"; then
20091: if test -z "$LIB_CRYPT"; then
20092: _LIBS="$LIBS"
20093: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
20094: $as_echo_n "checking for library containing crypt... " >&6; }
20095: if ${ac_cv_search_crypt+:} false; then :
20096: $as_echo_n "(cached) " >&6
20097: else
20098: ac_func_search_save_LIBS=$LIBS
20099: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100: /* end confdefs.h. */
20101:
20102: /* Override any GCC internal prototype to avoid an error.
20103: Use char because int might match the return type of a GCC
20104: builtin and then its argument prototype would still apply. */
20105: #ifdef __cplusplus
20106: extern "C"
20107: #endif
20108: char crypt ();
20109: int
20110: main ()
20111: {
20112: return crypt ();
20113: ;
20114: return 0;
20115: }
20116: _ACEOF
20117: for ac_lib in '' crypt crypt_d ufc; do
20118: if test -z "$ac_lib"; then
20119: ac_res="none required"
20120: else
20121: ac_res=-l$ac_lib
20122: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20123: fi
20124: if ac_fn_c_try_link "$LINENO"; then :
20125: ac_cv_search_crypt=$ac_res
20126: fi
20127: rm -f core conftest.err conftest.$ac_objext \
20128: conftest$ac_exeext
20129: if ${ac_cv_search_crypt+:} false; then :
20130: break
20131: fi
20132: done
20133: if ${ac_cv_search_crypt+:} false; then :
20134:
20135: else
20136: ac_cv_search_crypt=no
20137: fi
20138: rm conftest.$ac_ext
20139: LIBS=$ac_func_search_save_LIBS
20140: fi
20141: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
20142: $as_echo "$ac_cv_search_crypt" >&6; }
20143: ac_res=$ac_cv_search_crypt
20144: if test "$ac_res" != no; then :
20145: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20146: test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
20147: fi
20148:
20149: LIBS="$_LIBS"
20150: fi
20151:
20152: if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
20153: _LIBS="$LIBS"
20154: LIBS="$LIBS $shadow_libs"
20155: found=no
20156: for ac_func in $shadow_funcs
20157: do :
20158: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20159: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20160: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20161: cat >>confdefs.h <<_ACEOF
20162: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20163: _ACEOF
20164: found=yes
20165: fi
20166: done
20167:
20168: if test "$found" = "yes"; then
20169: SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs"
20170: elif test -n "$shadow_libs_optional"; then
20171: LIBS="$LIBS $shadow_libs_optional"
20172: for ac_func in $shadow_funcs
20173: do :
20174: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20175: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20176: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20177: cat >>confdefs.h <<_ACEOF
20178: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20179: _ACEOF
20180: found=yes
20181: fi
20182: done
20183:
20184: if test "$found" = "yes"; then
20185: SUDOERS_LIBS="$SUDOERS_LIBS $shadow_libs $shadow_libs_optional"
20186: fi
20187: fi
20188: if test "$found" = "yes"; then
20189: case "$shadow_funcs" in
20190: *getprpwnam*) SECUREWARE=1;;
20191: esac
20192: test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
20193: else
20194: LIBS="$_LIBS"
20195: fi
20196: CHECKSHADOW=false
20197: fi
20198: if test "$CHECKSHADOW" = "true"; then
20199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5
20200: $as_echo_n "checking for library containing getspnam... " >&6; }
20201: if ${ac_cv_search_getspnam+:} false; then :
20202: $as_echo_n "(cached) " >&6
20203: else
20204: ac_func_search_save_LIBS=$LIBS
20205: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20206: /* end confdefs.h. */
20207:
20208: /* Override any GCC internal prototype to avoid an error.
20209: Use char because int might match the return type of a GCC
20210: builtin and then its argument prototype would still apply. */
20211: #ifdef __cplusplus
20212: extern "C"
20213: #endif
20214: char getspnam ();
20215: int
20216: main ()
20217: {
20218: return getspnam ();
20219: ;
20220: return 0;
20221: }
20222: _ACEOF
20223: for ac_lib in '' gen; do
20224: if test -z "$ac_lib"; then
20225: ac_res="none required"
20226: else
20227: ac_res=-l$ac_lib
20228: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20229: fi
20230: if ac_fn_c_try_link "$LINENO"; then :
20231: ac_cv_search_getspnam=$ac_res
20232: fi
20233: rm -f core conftest.err conftest.$ac_objext \
20234: conftest$ac_exeext
20235: if ${ac_cv_search_getspnam+:} false; then :
20236: break
20237: fi
20238: done
20239: if ${ac_cv_search_getspnam+:} false; then :
20240:
20241: else
20242: ac_cv_search_getspnam=no
20243: fi
20244: rm conftest.$ac_ext
20245: LIBS=$ac_func_search_save_LIBS
20246: fi
20247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5
20248: $as_echo "$ac_cv_search_getspnam" >&6; }
20249: ac_res=$ac_cv_search_getspnam
20250: if test "$ac_res" != no; then :
20251: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20252: $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h
20253: CHECKSHADOW=false; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
20254: fi
20255:
20256: fi
20257: if test "$CHECKSHADOW" = "true"; then
20258: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5
20259: $as_echo_n "checking for library containing getprpwnam... " >&6; }
20260: if ${ac_cv_search_getprpwnam+:} false; then :
20261: $as_echo_n "(cached) " >&6
20262: else
20263: ac_func_search_save_LIBS=$LIBS
20264: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265: /* end confdefs.h. */
20266:
20267: /* Override any GCC internal prototype to avoid an error.
20268: Use char because int might match the return type of a GCC
20269: builtin and then its argument prototype would still apply. */
20270: #ifdef __cplusplus
20271: extern "C"
20272: #endif
20273: char getprpwnam ();
20274: int
20275: main ()
20276: {
20277: return getprpwnam ();
20278: ;
20279: return 0;
20280: }
20281: _ACEOF
20282: for ac_lib in '' sec security prot; do
20283: if test -z "$ac_lib"; then
20284: ac_res="none required"
20285: else
20286: ac_res=-l$ac_lib
20287: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20288: fi
20289: if ac_fn_c_try_link "$LINENO"; then :
20290: ac_cv_search_getprpwnam=$ac_res
20291: fi
20292: rm -f core conftest.err conftest.$ac_objext \
20293: conftest$ac_exeext
20294: if ${ac_cv_search_getprpwnam+:} false; then :
20295: break
20296: fi
20297: done
20298: if ${ac_cv_search_getprpwnam+:} false; then :
20299:
20300: else
20301: ac_cv_search_getprpwnam=no
20302: fi
20303: rm conftest.$ac_ext
20304: LIBS=$ac_func_search_save_LIBS
20305: fi
20306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5
20307: $as_echo "$ac_cv_search_getprpwnam" >&6; }
20308: ac_res=$ac_cv_search_getprpwnam
20309: if test "$ac_res" != no; then :
20310: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20311: $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h
20312: CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDOERS_LIBS="${SUDOERS_LIBS} $ac_res"
20313: fi
20314:
20315: fi
20316: if test -n "$SECUREWARE"; then
20317: for ac_func in bigcrypt set_auth_parameters initprivs
20318: do :
20319: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20320: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20321: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20322: cat >>confdefs.h <<_ACEOF
20323: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20324: _ACEOF
20325:
20326: fi
20327: done
20328:
20329: AUTH_OBJS="$AUTH_OBJS secureware.lo"
20330: fi
20331: fi
20332:
20333: if test ${with_ldap-'no'} != "no"; then
1.1.1.4 misho 20334: O_LDFLAGS="$LDFLAGS"
1.1 misho 20335: if test "$with_ldap" != "yes"; then
20336:
1.1.1.4 misho 20337: case "${SUDOERS_LDFLAGS}" in
20338: *"-L${with_ldap}/lib"|*"-L${with_ldap}/lib ")
20339: ;;
20340: *)
20341: SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -L${with_ldap}/lib"
20342: if test X"$enable_rpath" = X"yes"; then
20343: SUDOERS_LDFLAGS_R="${SUDOERS_LDFLAGS_R} -R${with_ldap}/lib"
20344: fi
20345: ;;
20346: esac
1.1 misho 20347:
1.1.1.4 misho 20348: LDFLAGS="$LDFLAGS -L${with_ldap}/lib"
1.1 misho 20349:
1.1.1.4 misho 20350: case "${CPPFLAGS}" in
20351: *"-I${with_ldap}/include"|*"-I${with_ldap}/include ")
20352: ;;
20353: *)
20354: if test X"${CPPFLAGS}" = X""; then
20355: CPPFLAGS="-I${with_ldap}/include"
20356: else
20357: CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
20358: fi
20359: ;;
20360: esac
1.1 misho 20361:
20362: with_ldap=yes
20363: fi
20364: SUDOERS_OBJS="${SUDOERS_OBJS} ldap.lo"
20365: LDAP=""
20366:
20367: _LIBS="$LIBS"
1.1.1.4 misho 20368: LDAP_LIBS=""
20369: IBMLDAP_EXTRA=""
1.1 misho 20370: found=no
1.1.1.4 misho 20371: # On HP-UX, libibmldap has a hidden dependency on libCsup
20372: case "$host_os" in
20373: hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lCsup" >&5
20374: $as_echo_n "checking for main in -lCsup... " >&6; }
20375: if ${ac_cv_lib_Csup_main+:} false; then :
20376: $as_echo_n "(cached) " >&6
20377: else
20378: ac_check_lib_save_LIBS=$LIBS
20379: LIBS="-lCsup $LIBS"
20380: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 20381: /* end confdefs.h. */
1.1.1.4 misho 20382:
20383:
1.1 misho 20384: int
20385: main ()
20386: {
1.1.1.4 misho 20387: return main ();
1.1 misho 20388: ;
20389: return 0;
20390: }
20391: _ACEOF
20392: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4 misho 20393: ac_cv_lib_Csup_main=yes
20394: else
20395: ac_cv_lib_Csup_main=no
1.1 misho 20396: fi
20397: rm -f core conftest.err conftest.$ac_objext \
20398: conftest$ac_exeext conftest.$ac_ext
1.1.1.4 misho 20399: LIBS=$ac_check_lib_save_LIBS
20400: fi
20401: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Csup_main" >&5
20402: $as_echo "$ac_cv_lib_Csup_main" >&6; }
20403: if test "x$ac_cv_lib_Csup_main" = xyes; then :
20404: IBMLDAP_EXTRA=" -lCsup"
20405: fi
20406: ;;
20407: esac
20408: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ldap_init" >&5
20409: $as_echo_n "checking for library containing ldap_init... " >&6; }
20410: if ${ac_cv_search_ldap_init+:} false; then :
20411: $as_echo_n "(cached) " >&6
20412: else
20413: ac_func_search_save_LIBS=$LIBS
20414: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1.1 misho 20415: /* end confdefs.h. */
1.1.1.4 misho 20416:
20417: /* Override any GCC internal prototype to avoid an error.
20418: Use char because int might match the return type of a GCC
20419: builtin and then its argument prototype would still apply. */
20420: #ifdef __cplusplus
20421: extern "C"
20422: #endif
20423: char ldap_init ();
1.1 misho 20424: int
20425: main ()
20426: {
1.1.1.4 misho 20427: return ldap_init ();
1.1 misho 20428: ;
20429: return 0;
20430: }
20431: _ACEOF
1.1.1.4 misho 20432: for ac_lib in '' "ldap" "ldap -llber" "ldap -llber -lssl -lcrypto" "ibmldap${IBMLDAP_EXTRA}" "ibmldap -lidsldif${IBMLDAP_EXTRA}"; do
20433: if test -z "$ac_lib"; then
20434: ac_res="none required"
20435: else
20436: ac_res=-l$ac_lib
20437: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20438: fi
20439: if ac_fn_c_try_link "$LINENO"; then :
20440: ac_cv_search_ldap_init=$ac_res
1.1 misho 20441: fi
20442: rm -f core conftest.err conftest.$ac_objext \
1.1.1.4 misho 20443: conftest$ac_exeext
20444: if ${ac_cv_search_ldap_init+:} false; then :
20445: break
20446: fi
20447: done
20448: if ${ac_cv_search_ldap_init+:} false; then :
20449:
20450: else
20451: ac_cv_search_ldap_init=no
20452: fi
20453: rm conftest.$ac_ext
20454: LIBS=$ac_func_search_save_LIBS
20455: fi
20456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ldap_init" >&5
20457: $as_echo "$ac_cv_search_ldap_init" >&6; }
20458: ac_res=$ac_cv_search_ldap_init
20459: if test "$ac_res" != no; then :
20460: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20461:
20462: test "$ac_res" != "none required" && LDAP_LIBS="$ac_res"
20463: found=yes
20464:
20465: fi
20466:
20467: # If nothing linked, try -lldap and hope for the best
20468: if test "$found" = "no"; then
1.1 misho 20469: LDAP_LIBS="-lldap"
20470: fi
1.1.1.4 misho 20471: LIBS="${_LIBS} ${LDAP_LIBS}"
1.1 misho 20472: OLIBS="$LIBS"
20473: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5
20474: $as_echo_n "checking for library containing ber_set_option... " >&6; }
20475: if ${ac_cv_search_ber_set_option+:} false; then :
20476: $as_echo_n "(cached) " >&6
20477: else
20478: ac_func_search_save_LIBS=$LIBS
20479: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20480: /* end confdefs.h. */
20481:
20482: /* Override any GCC internal prototype to avoid an error.
20483: Use char because int might match the return type of a GCC
20484: builtin and then its argument prototype would still apply. */
20485: #ifdef __cplusplus
20486: extern "C"
20487: #endif
20488: char ber_set_option ();
20489: int
20490: main ()
20491: {
20492: return ber_set_option ();
20493: ;
20494: return 0;
20495: }
20496: _ACEOF
20497: for ac_lib in '' lber; do
20498: if test -z "$ac_lib"; then
20499: ac_res="none required"
20500: else
20501: ac_res=-l$ac_lib
20502: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20503: fi
20504: if ac_fn_c_try_link "$LINENO"; then :
20505: ac_cv_search_ber_set_option=$ac_res
20506: fi
20507: rm -f core conftest.err conftest.$ac_objext \
20508: conftest$ac_exeext
20509: if ${ac_cv_search_ber_set_option+:} false; then :
20510: break
20511: fi
20512: done
20513: if ${ac_cv_search_ber_set_option+:} false; then :
20514:
20515: else
20516: ac_cv_search_ber_set_option=no
20517: fi
20518: rm conftest.$ac_ext
20519: LIBS=$ac_func_search_save_LIBS
20520: fi
20521: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5
20522: $as_echo "$ac_cv_search_ber_set_option" >&6; }
20523: ac_res=$ac_cv_search_ber_set_option
20524: if test "$ac_res" != no; then :
20525: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20526: found=yes
20527: else
20528: found=no
20529: fi
20530:
20531: if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
20532: LDAP_LIBS="$LDAP_LIBS -llber"
20533: fi
20534: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5
20535: $as_echo_n "checking whether lber.h is needed... " >&6; }
20536: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20537: /* end confdefs.h. */
20538: #include <sys/types.h>
20539: #include <ldap.h>
20540: int
20541: main ()
20542: {
20543: (void)ldap_init(0, 0)
20544: ;
20545: return 0;
20546: }
20547: _ACEOF
20548: if ac_fn_c_try_link "$LINENO"; then :
20549: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20550: $as_echo "no" >&6; }
20551: else
20552:
20553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20554: $as_echo "yes" >&6; }
20555: $as_echo "#define HAVE_LBER_H 1" >>confdefs.h
20556:
20557: fi
20558: rm -f core conftest.err conftest.$ac_objext \
20559: conftest$ac_exeext conftest.$ac_ext
20560:
20561: for ac_header in sasl/sasl.h sasl.h
20562: do :
20563: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20564: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20565: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20566: cat >>confdefs.h <<_ACEOF
20567: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20568: _ACEOF
1.1.1.4 misho 20569:
20570: for ac_func in ldap_sasl_interactive_bind_s
1.1 misho 20571: do :
20572: ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s"
20573: if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then :
20574: cat >>confdefs.h <<_ACEOF
20575: #define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1
20576: _ACEOF
20577:
20578: fi
20579: done
20580:
1.1.1.4 misho 20581: break
20582:
1.1 misho 20583: fi
20584:
20585: done
20586:
20587: for ac_header in ldap_ssl.h mps/ldap_ssl.h
20588: do :
20589: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20590: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h>
20591: "
20592: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20593: cat >>confdefs.h <<_ACEOF
20594: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20595: _ACEOF
20596: break
20597: fi
20598:
20599: done
20600:
1.1.1.3 misho 20601: for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s ldap_ssl_init ldap_ssl_client_init ldap_start_tls_s_np
1.1 misho 20602: do :
20603: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20604: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20605: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20606: cat >>confdefs.h <<_ACEOF
20607: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20608: _ACEOF
20609:
20610: fi
20611: done
20612:
20613: for ac_func in ldap_search_ext_s ldap_search_st
20614: do :
20615: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20616: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20617: if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20618: cat >>confdefs.h <<_ACEOF
20619: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20620: _ACEOF
20621: break
20622: fi
20623: done
20624:
20625:
20626: if test X"$check_gss_krb5_ccache_name" = X"yes"; then
20627: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5
20628: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; }
20629: if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then :
20630: $as_echo_n "(cached) " >&6
20631: else
20632: ac_check_lib_save_LIBS=$LIBS
20633: LIBS="-lgssapi $LIBS"
20634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20635: /* end confdefs.h. */
20636:
20637: /* Override any GCC internal prototype to avoid an error.
20638: Use char because int might match the return type of a GCC
20639: builtin and then its argument prototype would still apply. */
20640: #ifdef __cplusplus
20641: extern "C"
20642: #endif
20643: char gss_krb5_ccache_name ();
20644: int
20645: main ()
20646: {
20647: return gss_krb5_ccache_name ();
20648: ;
20649: return 0;
20650: }
20651: _ACEOF
20652: if ac_fn_c_try_link "$LINENO"; then :
20653: ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
20654: else
20655: ac_cv_lib_gssapi_gss_krb5_ccache_name=no
20656: fi
20657: rm -f core conftest.err conftest.$ac_objext \
20658: conftest$ac_exeext conftest.$ac_ext
20659: LIBS=$ac_check_lib_save_LIBS
20660: fi
20661: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
20662: $as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
20663: if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then :
20664: $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20665:
20666: LDAP_LIBS="${LDAP_LIBS} -lgssapi"
20667: else
20668: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
20669: $as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; }
20670: if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then :
20671: $as_echo_n "(cached) " >&6
20672: else
20673: ac_check_lib_save_LIBS=$LIBS
20674: LIBS="-lgssapi_krb5 $LIBS"
20675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20676: /* end confdefs.h. */
20677:
20678: /* Override any GCC internal prototype to avoid an error.
20679: Use char because int might match the return type of a GCC
20680: builtin and then its argument prototype would still apply. */
20681: #ifdef __cplusplus
20682: extern "C"
20683: #endif
20684: char gss_krb5_ccache_name ();
20685: int
20686: main ()
20687: {
20688: return gss_krb5_ccache_name ();
20689: ;
20690: return 0;
20691: }
20692: _ACEOF
20693: if ac_fn_c_try_link "$LINENO"; then :
20694: ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
20695: else
20696: ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
20697: fi
20698: rm -f core conftest.err conftest.$ac_objext \
20699: conftest$ac_exeext conftest.$ac_ext
20700: LIBS=$ac_check_lib_save_LIBS
20701: fi
20702: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
20703: $as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
20704: if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then :
20705: $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h
20706:
20707: LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
20708: fi
20709:
20710:
20711: fi
20712:
20713:
20714: # gssapi headers may be separate or part of Kerberos V
20715: found=no
20716: O_CPPFLAGS="$CPPFLAGS"
20717: for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
20718: test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20720: /* end confdefs.h. */
20721: #include <gssapi/gssapi.h>
20722: int
20723: main ()
20724: {
20725:
20726: ;
20727: return 0;
20728: }
20729: _ACEOF
20730: if ac_fn_c_try_cpp "$LINENO"; then :
20731: found="gssapi/gssapi.h"; break
20732: else
20733: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20734: /* end confdefs.h. */
20735: #include <gssapi.h>
20736: int
20737: main ()
20738: {
20739:
20740: ;
20741: return 0;
20742: }
20743: _ACEOF
20744: if ac_fn_c_try_cpp "$LINENO"; then :
20745: found="gssapi.h"; break
20746: fi
20747: rm -f conftest.err conftest.i conftest.$ac_ext
20748: fi
20749: rm -f conftest.err conftest.i conftest.$ac_ext
20750: done
20751: if test X"$found" != X"no"; then
20752: for ac_header in $found
20753: do :
20754: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20755: ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20756: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20757: cat >>confdefs.h <<_ACEOF
20758: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20759: _ACEOF
20760:
20761: fi
20762:
20763: done
20764:
20765: if test X"$found" = X"gssapi/gssapi.h"; then
20766: for ac_header in gssapi/gssapi_krb5.h
20767: do :
20768: ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
20769: if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
20770: cat >>confdefs.h <<_ACEOF
20771: #define HAVE_GSSAPI_GSSAPI_KRB5_H 1
20772: _ACEOF
20773:
20774: fi
20775:
20776: done
20777:
20778: fi
20779: else
20780: CPPFLAGS="$O_CPPFLAGS"
20781: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
20782: $as_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;}
20783: fi
20784: fi
20785:
20786: SUDOERS_LIBS="${SUDOERS_LIBS} ${LDAP_LIBS}"
20787: LIBS="$_LIBS"
1.1.1.4 misho 20788: LDFLAGS="$O_LDFLAGS"
1.1 misho 20789: fi
20790:
20791: #
20792: # How to do dynamic object loading.
20793: # We support dlopen() and sh_load(), else fall back to static loading.
20794: #
20795: case "$lt_cv_dlopen" in
20796: dlopen)
20797: $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
20798:
1.1.1.4 misho 20799: SUDO_OBJS="$SUDO_OBJS locale_stub.o"
1.1 misho 20800: LT_STATIC="--tag=disable-static"
20801: ;;
20802: shl_load)
20803: $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20804:
1.1.1.4 misho 20805: SUDO_OBJS="$SUDO_OBJS locale_stub.o"
1.1 misho 20806: LT_STATIC="--tag=disable-static"
20807: case " $LIBOBJS " in
20808: *" dlopen.$ac_objext "* ) ;;
20809: *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20810: ;;
20811: esac
20812:
20813: ;;
20814: *)
20815: if test X"${ac_cv_func_dlopen}" = X"yes"; then
20816: as_fn_error $? "\"dlopen present but libtool doesn't appear to support your platform.\"" "$LINENO" 5
20817: fi
20818: # Preload sudoers module symbols
20819: SUDO_OBJS="${SUDO_OBJS} preload.o"
20820: SUDO_LIBS="${SUDO_LIBS} \$(top_builddir)/plugins/sudoers/sudoers.la"
20821: LT_STATIC=""
20822: case " $LIBOBJS " in
20823: *" dlopen.$ac_objext "* ) ;;
20824: *) LIBOBJS="$LIBOBJS dlopen.$ac_objext"
20825: ;;
20826: esac
20827:
20828: ;;
20829: esac
20830:
20831: #
20832: # Add library needed for dynamic loading, if any.
20833: #
20834: LIBDL="$lt_cv_dlopen_libs"
20835: if test X"$LIBDL" != X""; then
20836: SUDO_LIBS="${SUDO_LIBS} $LIBDL"
20837: SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
20838: fi
20839:
1.1.1.3 misho 20840: # On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
20841: # the main program is linked against -lpthread. We have no knowledge of
20842: # what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)
20843: # so always link against -lpthread on HP-UX if it is available.
1.1 misho 20844: # This check should go after all other libraries tests.
1.1.1.4 misho 20845: case "$host_os" in
20846: hpux*)
1.1 misho 20847: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpthread" >&5
20848: $as_echo_n "checking for main in -lpthread... " >&6; }
20849: if ${ac_cv_lib_pthread_main+:} false; then :
20850: $as_echo_n "(cached) " >&6
20851: else
20852: ac_check_lib_save_LIBS=$LIBS
20853: LIBS="-lpthread $LIBS"
20854: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20855: /* end confdefs.h. */
20856:
20857:
20858: int
20859: main ()
20860: {
20861: return main ();
20862: ;
20863: return 0;
20864: }
20865: _ACEOF
20866: if ac_fn_c_try_link "$LINENO"; then :
20867: ac_cv_lib_pthread_main=yes
20868: else
20869: ac_cv_lib_pthread_main=no
20870: fi
20871: rm -f core conftest.err conftest.$ac_objext \
20872: conftest$ac_exeext conftest.$ac_ext
20873: LIBS=$ac_check_lib_save_LIBS
20874: fi
20875: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_main" >&5
20876: $as_echo "$ac_cv_lib_pthread_main" >&6; }
20877: if test "x$ac_cv_lib_pthread_main" = xyes; then :
20878: SUDO_LIBS="${SUDO_LIBS} -lpthread"
20879: fi
20880:
1.1.1.4 misho 20881: OSDEFS="${OSDEFS} -D_REENTRANT"
1.1 misho 20882: ;;
20883: esac
20884:
20885: if test "$utmp_style" = "LEGACY"; then
20886: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utmp file path" >&5
20887: $as_echo_n "checking for utmp file path... " >&6; }
20888: found=no
20889: for p in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp"; do
20890: if test -r "$p"; then
20891: found=yes
20892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5
20893: $as_echo "$p" >&6; }
20894: cat >>confdefs.h <<EOF
20895: #define _PATH_UTMP "$p"
20896: EOF
20897:
20898: break
20899: fi
20900: done
20901: if test X"$found" != X"yes"; then
20902: { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
20903: $as_echo "not found" >&6; }
20904: fi
20905:
20906: fi
20907: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5
20908: $as_echo_n "checking for log file location... " >&6; }
20909: if test -n "$with_logpath"; then
20910: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5
20911: $as_echo "$with_logpath" >&6; }
20912: cat >>confdefs.h <<EOF
20913: #define _PATH_SUDO_LOGFILE "$with_logpath"
20914: EOF
20915:
20916: elif test -d "/var/log"; then
20917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5
20918: $as_echo "/var/log/sudo.log" >&6; }
20919: cat >>confdefs.h <<\EOF
20920: #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
20921: EOF
20922:
20923: elif test -d "/var/adm"; then
20924: { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5
20925: $as_echo "/var/adm/sudo.log" >&6; }
20926: cat >>confdefs.h <<\EOF
20927: #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
20928: EOF
20929:
20930: elif test -d "/usr/adm"; then
20931: { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5
20932: $as_echo "/usr/adm/sudo.log" >&6; }
20933: cat >>confdefs.h <<\EOF
20934: #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
20935: EOF
20936:
20937: else
20938: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
20939: $as_echo "unknown" >&6; }
20940: fi
20941:
20942: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5
20943: $as_echo_n "checking for timestamp file location... " >&6; }
20944: timedir="$with_timedir"
20945: if test -z "$timedir"; then
20946: for d in /var/db /var/lib /var/adm /usr/adm; do
20947: if test -d "$d"; then
20948: timedir="$d/sudo"
20949: break
20950: fi
20951: done
20952: fi
20953: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5
20954: $as_echo "$timedir" >&6; }
20955: cat >>confdefs.h <<EOF
20956: #define _PATH_SUDO_TIMEDIR "$timedir"
20957: EOF
20958:
20959:
20960:
20961: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5
20962: $as_echo_n "checking for I/O log dir location... " >&6; }
20963: if test "${with_iologdir-yes}" != "yes"; then
20964: iolog_dir="$with_iologdir"
20965: elif test -d "/var/log"; then
20966: iolog_dir="/var/log/sudo-io"
20967: elif test -d "/var/adm"; then
20968: iolog_dir="/var/adm/sudo-io"
20969: else
20970: iolog_dir="/usr/adm/sudo-io"
20971: fi
20972: if test "${with_iologdir}" != "no"; then
20973: cat >>confdefs.h <<EOF
20974: #define _PATH_SUDO_IO_LOGDIR "$iolog_dir"
20975: EOF
20976:
20977: fi
20978: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5
20979: $as_echo "$iolog_dir" >&6; }
20980:
20981:
1.1.1.3 misho 20982:
20983: ac_c_werror_flag=yes
20984:
20985: if test -n "$GCC" -a "$lt_cv_prog_gnu_ld" != "yes" -a -n "$GCC"; then
20986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -static-libgcc" >&5
20987: $as_echo_n "checking whether C compiler accepts -static-libgcc... " >&6; }
20988: if ${ax_cv_check_cflags___static_libgcc+:} false; then :
20989: $as_echo_n "(cached) " >&6
20990: else
20991:
20992: ax_check_save_flags=$CFLAGS
20993: CFLAGS="$CFLAGS -static-libgcc"
20994: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995: /* end confdefs.h. */
20996:
20997: int
20998: main ()
20999: {
21000:
21001: ;
21002: return 0;
21003: }
21004: _ACEOF
21005: if ac_fn_c_try_compile "$LINENO"; then :
21006: ax_cv_check_cflags___static_libgcc=yes
21007: else
21008: ax_cv_check_cflags___static_libgcc=no
21009: fi
21010: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011: CFLAGS=$ax_check_save_flags
21012: fi
21013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___static_libgcc" >&5
21014: $as_echo "$ax_cv_check_cflags___static_libgcc" >&6; }
21015: if test x"$ax_cv_check_cflags___static_libgcc" = xyes; then :
21016: LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
21017: else
21018: :
21019: fi
21020:
21021: fi
21022:
1.1.1.4 misho 21023: if test -n "$GCC"; then
21024: as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-fvisibility=hidden" | $as_tr_sh`
1.1.1.3 misho 21025: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fvisibility=hidden" >&5
21026: $as_echo_n "checking whether C compiler accepts -fvisibility=hidden... " >&6; }
21027: if eval \${$as_CACHEVAR+:} false; then :
21028: $as_echo_n "(cached) " >&6
21029: else
21030:
21031: ax_check_save_flags=$CFLAGS
21032: CFLAGS="$CFLAGS -fvisibility=hidden"
21033: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21034: /* end confdefs.h. */
21035:
21036: int
21037: main ()
21038: {
21039:
21040: ;
21041: return 0;
21042: }
21043: _ACEOF
21044: if ac_fn_c_try_compile "$LINENO"; then :
21045: eval "$as_CACHEVAR=yes"
21046: else
21047: eval "$as_CACHEVAR=no"
21048: fi
21049: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050: CFLAGS=$ax_check_save_flags
21051: fi
21052: eval ac_res=\$$as_CACHEVAR
21053: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21054: $as_echo "$ac_res" >&6; }
21055: if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21056:
1.1.1.4 misho 21057: $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3 misho 21058:
1.1.1.4 misho 21059: CFLAGS="${CFLAGS} -fvisibility=hidden"
21060: LT_LDEXPORTS=
21061: LT_LDDEP=
21062: NO_VIZ=
1.1.1.3 misho 21063:
21064: else
1.1.1.4 misho 21065: :
21066: fi
1.1.1.3 misho 21067:
1.1.1.4 misho 21068: else
21069: case "$host_os" in
21070: hpux*)
21071: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Bhidden_def" >&5
1.1.1.3 misho 21072: $as_echo_n "checking whether C compiler accepts -Bhidden_def... " >&6; }
21073: if ${ax_cv_check_cflags___Bhidden_def+:} false; then :
21074: $as_echo_n "(cached) " >&6
21075: else
21076:
21077: ax_check_save_flags=$CFLAGS
21078: CFLAGS="$CFLAGS -Bhidden_def"
21079: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080: /* end confdefs.h. */
21081:
21082: int
21083: main ()
21084: {
21085:
21086: ;
21087: return 0;
21088: }
21089: _ACEOF
21090: if ac_fn_c_try_compile "$LINENO"; then :
21091: ax_cv_check_cflags___Bhidden_def=yes
21092: else
21093: ax_cv_check_cflags___Bhidden_def=no
21094: fi
21095: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096: CFLAGS=$ax_check_save_flags
21097: fi
21098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Bhidden_def" >&5
21099: $as_echo "$ax_cv_check_cflags___Bhidden_def" >&6; }
21100: if test x"$ax_cv_check_cflags___Bhidden_def" = xyes; then :
21101:
1.1.1.4 misho 21102: $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3 misho 21103:
1.1.1.4 misho 21104: CFLAGS="${CFLAGS} -Bhidden_def"
21105: LT_LDEXPORTS=
21106: LT_LDDEP=
1.1.1.3 misho 21107:
21108: else
21109: :
21110: fi
21111:
1.1.1.4 misho 21112: ;;
21113: solaris2*)
21114: as_CACHEVAR=`$as_echo "ax_cv_check_cflags__-xldscope=hidden" | $as_tr_sh`
1.1.1.3 misho 21115: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -xldscope=hidden" >&5
21116: $as_echo_n "checking whether C compiler accepts -xldscope=hidden... " >&6; }
21117: if eval \${$as_CACHEVAR+:} false; then :
21118: $as_echo_n "(cached) " >&6
21119: else
21120:
21121: ax_check_save_flags=$CFLAGS
21122: CFLAGS="$CFLAGS -xldscope=hidden"
21123: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124: /* end confdefs.h. */
21125:
21126: int
21127: main ()
21128: {
21129:
21130: ;
21131: return 0;
21132: }
21133: _ACEOF
21134: if ac_fn_c_try_compile "$LINENO"; then :
21135: eval "$as_CACHEVAR=yes"
21136: else
21137: eval "$as_CACHEVAR=no"
21138: fi
21139: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21140: CFLAGS=$ax_check_save_flags
21141: fi
21142: eval ac_res=\$$as_CACHEVAR
21143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21144: $as_echo "$ac_res" >&6; }
21145: if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
21146:
1.1.1.4 misho 21147: $as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
1.1.1.3 misho 21148:
1.1.1.4 misho 21149: CFLAGS="${CFLAGS} -xldscope=hidden"
21150: LT_LDEXPORTS=
21151: LT_LDDEP=
1.1.1.3 misho 21152:
21153: else
21154: :
21155: fi
21156:
1.1.1.4 misho 21157: ;;
21158: esac
1.1.1.3 misho 21159: fi
21160:
21161: if test -n "$LT_LDEXPORTS"; then
21162: if test "$lt_cv_prog_gnu_ld" = "yes"; then
21163: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
21164: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
21165: if ${sudo_cv_var_gnu_ld_anon_map+:} false; then :
21166: $as_echo_n "(cached) " >&6
21167: else
21168:
1.1.1.4 misho 21169: sudo_cv_var_gnu_ld_anon_map=no
1.1.1.3 misho 21170: cat > conftest.map <<-EOF
21171: {
21172: global: foo;
21173: local: *;
21174: };
21175: EOF
21176: _CFLAGS="$CFLAGS"
21177: CFLAGS="$CFLAGS $lt_prog_compiler_pic"
21178: _LDFLAGS="$LDFLAGS"
21179: LDFLAGS="$LDFLAGS -fpic -shared -Wl,--version-script,./conftest.map"
21180: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21181: /* end confdefs.h. */
21182: int foo;
21183: int
21184: main ()
21185: {
21186:
21187: ;
21188: return 0;
21189: }
21190: _ACEOF
21191: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4 misho 21192: sudo_cv_var_gnu_ld_anon_map=yes
1.1.1.3 misho 21193: fi
21194: rm -f core conftest.err conftest.$ac_objext \
21195: conftest$ac_exeext conftest.$ac_ext
21196: CFLAGS="$_CFLAGS"
21197: LDFLAGS="$_LDFLAGS"
21198:
21199:
21200: fi
21201: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_gnu_ld_anon_map" >&5
21202: $as_echo "$sudo_cv_var_gnu_ld_anon_map" >&6; }
21203: if test "$sudo_cv_var_gnu_ld_anon_map" = "yes"; then
21204: LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,--version-script,\$(shlib_map)"
21205: fi
21206: else
1.1.1.4 misho 21207: case "$host_os" in
21208: solaris2*)
1.1.1.3 misho 21209: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous map files" >&5
21210: $as_echo_n "checking whether ld supports anonymous map files... " >&6; }
21211: if ${sudo_cv_var_solaris_ld_anon_map+:} false; then :
21212: $as_echo_n "(cached) " >&6
21213: else
21214:
1.1.1.4 misho 21215: sudo_cv_var_solaris_ld_anon_map=no
1.1.1.3 misho 21216: cat > conftest.map <<-EOF
21217: {
21218: global: foo;
21219: local: *;
21220: };
21221: EOF
21222: _CFLAGS="$CFLAGS"
21223: CFLAGS="$CFLAGS $lt_prog_compiler_pic"
21224: _LDFLAGS="$LDFLAGS"
21225: LDFLAGS="$LDFLAGS -shared -Wl,-M,./conftest.map"
21226: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21227: /* end confdefs.h. */
21228: int foo;
21229: int
21230: main ()
21231: {
21232:
21233: ;
21234: return 0;
21235: }
21236: _ACEOF
21237: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4 misho 21238: sudo_cv_var_solaris_ld_anon_map=yes
1.1.1.3 misho 21239: fi
21240: rm -f core conftest.err conftest.$ac_objext \
21241: conftest$ac_exeext conftest.$ac_ext
21242: CFLAGS="$_CFLAGS"
21243: LDFLAGS="$_LDFLAGS"
21244:
21245:
21246: fi
21247: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_solaris_ld_anon_map" >&5
21248: $as_echo "$sudo_cv_var_solaris_ld_anon_map" >&6; }
21249: if test "$sudo_cv_var_solaris_ld_anon_map" = "yes"; then
21250: LT_LDEXPORTS=; LT_LDDEP="\$(shlib_map)"; LT_LDMAP="-Wl,-M,\$(shlib_map)"
21251: fi
21252: ;;
1.1.1.4 misho 21253: hpux*)
1.1.1.3 misho 21254: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports controlling exported symbols" >&5
21255: $as_echo_n "checking whether ld supports controlling exported symbols... " >&6; }
21256: if ${sudo_cv_var_hpux_ld_symbol_export+:} false; then :
21257: $as_echo_n "(cached) " >&6
21258: else
21259:
1.1.1.4 misho 21260: sudo_cv_var_hpux_ld_symbol_export=no
1.1.1.3 misho 21261: echo "+e foo" > conftest.opt
21262: _CFLAGS="$CFLAGS"
21263: CFLAGS="$CFLAGS $lt_prog_compiler_pic"
21264: _LDFLAGS="$LDFLAGS"
21265: if test -n "$GCC"; then
21266: LDFLAGS="$LDFLAGS -shared -Wl,-c,./conftest.opt"
21267: else
21268: LDFLAGS="$LDFLAGS -Wl,-b -Wl,-c,./conftest.opt"
21269: fi
21270: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271: /* end confdefs.h. */
21272: int foo;
21273: int
21274: main ()
21275: {
21276:
21277: ;
21278: return 0;
21279: }
21280: _ACEOF
21281: if ac_fn_c_try_link "$LINENO"; then :
1.1.1.4 misho 21282: sudo_cv_var_hpux_ld_symbol_export=yes
1.1.1.3 misho 21283: fi
21284: rm -f core conftest.err conftest.$ac_objext \
21285: conftest$ac_exeext conftest.$ac_ext
21286: CFLAGS="$_CFLAGS"
21287: LDFLAGS="$_LDFLAGS"
1.1.1.4 misho 21288: rm -f conftest.opt
1.1.1.3 misho 21289:
21290:
21291: fi
21292: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpux_ld_symbol_export" >&5
21293: $as_echo "$sudo_cv_var_hpux_ld_symbol_export" >&6; }
21294: if test "$sudo_cv_var_hpux_ld_symbol_export" = "yes"; then
21295: LT_LDEXPORTS=; LT_LDDEP="\$(shlib_opt)"; LT_LDOPT="-Wl,-c,\$(shlib_opt)"
21296: fi
21297: ;;
21298: esac
21299: fi
21300: fi
21301:
1.1.1.4 misho 21302: if test -n "$GCC"; then
21303: if test -z "$enable_pie"; then
21304: case "$host_os" in
21305: linux*)
21306: # Attempt to build with PIE support
21307: enable_pie="maybe"
21308: ;;
21309: esac
21310: fi
21311: if test -n "$enable_pie"; then
21312: if test "$enable_pie" = "no"; then
21313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-pie" >&5
21314: $as_echo_n "checking whether C compiler accepts -fno-pie... " >&6; }
21315: if ${ax_cv_check_cflags___fno_pie+:} false; then :
21316: $as_echo_n "(cached) " >&6
21317: else
21318:
21319: ax_check_save_flags=$CFLAGS
21320: CFLAGS="$CFLAGS -fno-pie"
21321: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21322: /* end confdefs.h. */
21323:
21324: int
21325: main ()
21326: {
21327:
21328: ;
21329: return 0;
21330: }
21331: _ACEOF
21332: if ac_fn_c_try_compile "$LINENO"; then :
21333: ax_cv_check_cflags___fno_pie=yes
21334: else
21335: ax_cv_check_cflags___fno_pie=no
21336: fi
21337: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21338: CFLAGS=$ax_check_save_flags
21339: fi
21340: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_pie" >&5
21341: $as_echo "$ax_cv_check_cflags___fno_pie" >&6; }
21342: if test x"$ax_cv_check_cflags___fno_pie" = xyes; then :
21343:
21344: _CFLAGS="$CFLAGS"
21345: CFLAGS="$CFLAGS -fno-pie"
21346: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -nopie" >&5
21347: $as_echo_n "checking whether the linker accepts -nopie... " >&6; }
21348: if ${ax_cv_check_ldflags___nopie+:} false; then :
21349: $as_echo_n "(cached) " >&6
21350: else
21351:
21352: ax_check_save_flags=$LDFLAGS
21353: LDFLAGS="$LDFLAGS -nopie"
21354: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355: /* end confdefs.h. */
21356:
21357: int
21358: main ()
21359: {
21360:
21361: ;
21362: return 0;
21363: }
21364: _ACEOF
21365: if ac_fn_c_try_link "$LINENO"; then :
21366: ax_cv_check_ldflags___nopie=yes
21367: else
21368: ax_cv_check_ldflags___nopie=no
21369: fi
21370: rm -f core conftest.err conftest.$ac_objext \
21371: conftest$ac_exeext conftest.$ac_ext
21372: LDFLAGS=$ax_check_save_flags
21373: fi
21374: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___nopie" >&5
21375: $as_echo "$ax_cv_check_ldflags___nopie" >&6; }
21376: if test x"$ax_cv_check_ldflags___nopie" = xyes; then :
21377:
21378: PIE_CFLAGS="-fno-pie"
21379: PIE_LDFLAGS="-nopie"
21380:
21381: else
21382: :
21383: fi
21384:
21385: CFLAGS="$_CFLAGS"
21386:
21387: else
21388: :
21389: fi
21390:
21391: else
21392: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5
1.1.1.3 misho 21393: $as_echo_n "checking whether C compiler accepts -fPIE... " >&6; }
21394: if ${ax_cv_check_cflags___fPIE+:} false; then :
21395: $as_echo_n "(cached) " >&6
21396: else
21397:
21398: ax_check_save_flags=$CFLAGS
21399: CFLAGS="$CFLAGS -fPIE"
21400: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21401: /* end confdefs.h. */
21402:
21403: int
21404: main ()
21405: {
21406:
21407: ;
21408: return 0;
21409: }
21410: _ACEOF
21411: if ac_fn_c_try_compile "$LINENO"; then :
21412: ax_cv_check_cflags___fPIE=yes
21413: else
21414: ax_cv_check_cflags___fPIE=no
21415: fi
21416: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417: CFLAGS=$ax_check_save_flags
21418: fi
21419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5
21420: $as_echo "$ax_cv_check_cflags___fPIE" >&6; }
21421: if test x"$ax_cv_check_cflags___fPIE" = xyes; then :
21422:
1.1.1.4 misho 21423: _CFLAGS="$CFLAGS"
21424: CFLAGS="$CFLAGS -fPIE"
21425: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5
1.1.1.3 misho 21426: $as_echo_n "checking whether the linker accepts -pie... " >&6; }
21427: if ${ax_cv_check_ldflags___pie+:} false; then :
21428: $as_echo_n "(cached) " >&6
21429: else
21430:
21431: ax_check_save_flags=$LDFLAGS
21432: LDFLAGS="$LDFLAGS -pie"
21433: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21434: /* end confdefs.h. */
21435:
21436: int
21437: main ()
21438: {
21439:
21440: ;
21441: return 0;
21442: }
21443: _ACEOF
21444: if ac_fn_c_try_link "$LINENO"; then :
21445: ax_cv_check_ldflags___pie=yes
21446: else
21447: ax_cv_check_ldflags___pie=no
21448: fi
21449: rm -f core conftest.err conftest.$ac_objext \
21450: conftest$ac_exeext conftest.$ac_ext
21451: LDFLAGS=$ax_check_save_flags
21452: fi
21453: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5
21454: $as_echo "$ax_cv_check_ldflags___pie" >&6; }
21455: if test x"$ax_cv_check_ldflags___pie" = xyes; then :
21456:
1.1.1.4 misho 21457: if test "$enable_pie" = "maybe"; then
21458: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working PIE support" >&5
21459: $as_echo_n "checking for working PIE support... " >&6; }
21460: if ${sudo_cv_working_pie+:} false; then :
21461: $as_echo_n "(cached) " >&6
21462: else
21463: rm -f conftestdata; > conftestdata
21464: if test "$cross_compiling" = yes; then :
21465: sudo_cv_working_pie=no
21466: else
21467: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21468: /* end confdefs.h. */
21469: $ac_includes_default
21470: main() { char *p = malloc(1024); if (p == NULL) return 1; memset(p, 0, 1024); return 0; }
21471: _ACEOF
21472: if ac_fn_c_try_run "$LINENO"; then :
21473: sudo_cv_working_pie=yes
21474: else
21475: sudo_cv_working_pie=no
21476: fi
21477: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21478: conftest.$ac_objext conftest.beam conftest.$ac_ext
21479: fi
21480:
21481: rm -f core core.* *.core
21482: fi
21483:
21484: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_working_pie" >&5
21485: $as_echo "$sudo_cv_working_pie" >&6; }
21486: if test $sudo_cv_working_pie = yes; then :
21487: enable_pie=yes
21488: fi
21489: fi
21490: if test "$enable_pie" = "yes"; then
21491: PIE_CFLAGS="-fPIE"
21492: PIE_LDFLAGS="-Wc,-fPIE -pie"
21493: fi
21494:
21495: else
21496: :
21497: fi
21498:
21499: CFLAGS="$_CFLAGS"
1.1.1.3 misho 21500:
21501: else
21502: :
21503: fi
21504:
1.1.1.4 misho 21505: fi
21506: fi
21507: fi
21508: if test "$enable_pie" != "yes"; then
21509: # Solaris 11.1 and higher supports tagging binaries to use ASLR
21510: case "$host_os" in
21511: solaris2.1[1-9]|solaris2.[2-9][0-9])
21512: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,aslr" >&5
21513: $as_echo_n "checking whether the linker accepts -Wl,-z,aslr... " >&6; }
21514: if ${ax_cv_check_ldflags___Wl__z_aslr+:} false; then :
21515: $as_echo_n "(cached) " >&6
21516: else
21517:
21518: ax_check_save_flags=$LDFLAGS
21519: LDFLAGS="$LDFLAGS -Wl,-z,aslr"
21520: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21521: /* end confdefs.h. */
21522:
21523: int
21524: main ()
21525: {
1.1.1.3 misho 21526:
1.1.1.4 misho 21527: ;
21528: return 0;
21529: }
21530: _ACEOF
21531: if ac_fn_c_try_link "$LINENO"; then :
21532: ax_cv_check_ldflags___Wl__z_aslr=yes
21533: else
21534: ax_cv_check_ldflags___Wl__z_aslr=no
21535: fi
21536: rm -f core conftest.err conftest.$ac_objext \
21537: conftest$ac_exeext conftest.$ac_ext
21538: LDFLAGS=$ax_check_save_flags
21539: fi
21540: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_aslr" >&5
21541: $as_echo "$ax_cv_check_ldflags___Wl__z_aslr" >&6; }
21542: if test x"$ax_cv_check_ldflags___Wl__z_aslr" = xyes; then :
21543: PIE_LDFLAGS="${PIE_LDFLAGS}${PIE_LDFLAGS+ }-Wl,-z,aslr"
1.1.1.3 misho 21544: else
21545: :
21546: fi
21547:
1.1.1.4 misho 21548: ;;
21549: esac
1.1.1.3 misho 21550: fi
21551:
21552: if test "$enable_hardening" != "no"; then
1.1.1.4 misho 21553: if test -n "$GCC"; then
21554: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5
21555: $as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; }
21556: if ${ax_cv_check_cflags___fstack_protector_all+:} false; then :
21557: $as_echo_n "(cached) " >&6
21558: else
21559:
21560: ax_check_save_flags=$CFLAGS
21561: CFLAGS="$CFLAGS -fstack-protector-all"
21562: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21563: /* end confdefs.h. */
21564:
21565: int
21566: main ()
21567: {
21568:
21569: ;
21570: return 0;
21571: }
21572: _ACEOF
21573: if ac_fn_c_try_compile "$LINENO"; then :
21574: ax_cv_check_cflags___fstack_protector_all=yes
21575: else
21576: ax_cv_check_cflags___fstack_protector_all=no
21577: fi
21578: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21579: CFLAGS=$ax_check_save_flags
21580: fi
21581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5
21582: $as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; }
21583: if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then :
21584:
21585: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5
21586: $as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; }
21587: if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then :
21588: $as_echo_n "(cached) " >&6
21589: else
21590:
21591: ax_check_save_flags=$LDFLAGS
21592: LDFLAGS="$LDFLAGS -fstack-protector-all"
21593: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21594: /* end confdefs.h. */
21595:
21596: int
21597: main ()
21598: {
21599:
21600: ;
21601: return 0;
21602: }
21603: _ACEOF
21604: if ac_fn_c_try_link "$LINENO"; then :
21605: ax_cv_check_ldflags___fstack_protector_all=yes
21606: else
21607: ax_cv_check_ldflags___fstack_protector_all=no
21608: fi
21609: rm -f core conftest.err conftest.$ac_objext \
21610: conftest$ac_exeext conftest.$ac_ext
21611: LDFLAGS=$ax_check_save_flags
21612: fi
21613: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5
21614: $as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; }
21615: if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then :
21616:
21617: SSP_CFLAGS="-fstack-protector-all"
21618: SSP_LDFLAGS="-Wc,-fstack-protector-all"
21619:
21620: else
21621: :
21622: fi
21623:
21624:
21625: else
21626: :
21627: fi
21628:
21629: if test -z "$SSP_CFLAGS"; then
21630: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5
1.1.1.3 misho 21631: $as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; }
21632: if ${ax_cv_check_cflags___fstack_protector+:} false; then :
21633: $as_echo_n "(cached) " >&6
21634: else
21635:
21636: ax_check_save_flags=$CFLAGS
21637: CFLAGS="$CFLAGS -fstack-protector"
21638: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21639: /* end confdefs.h. */
21640:
21641: int
21642: main ()
21643: {
21644:
21645: ;
21646: return 0;
21647: }
21648: _ACEOF
21649: if ac_fn_c_try_compile "$LINENO"; then :
21650: ax_cv_check_cflags___fstack_protector=yes
21651: else
21652: ax_cv_check_cflags___fstack_protector=no
21653: fi
21654: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21655: CFLAGS=$ax_check_save_flags
21656: fi
21657: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5
21658: $as_echo "$ax_cv_check_cflags___fstack_protector" >&6; }
21659: if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then :
21660:
1.1.1.4 misho 21661: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5
1.1.1.3 misho 21662: $as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; }
21663: if ${ax_cv_check_ldflags___fstack_protector+:} false; then :
21664: $as_echo_n "(cached) " >&6
21665: else
21666:
21667: ax_check_save_flags=$LDFLAGS
21668: LDFLAGS="$LDFLAGS -fstack-protector"
21669: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21670: /* end confdefs.h. */
21671:
21672: int
21673: main ()
21674: {
21675:
21676: ;
21677: return 0;
21678: }
21679: _ACEOF
21680: if ac_fn_c_try_link "$LINENO"; then :
21681: ax_cv_check_ldflags___fstack_protector=yes
21682: else
21683: ax_cv_check_ldflags___fstack_protector=no
21684: fi
21685: rm -f core conftest.err conftest.$ac_objext \
21686: conftest$ac_exeext conftest.$ac_ext
21687: LDFLAGS=$ax_check_save_flags
21688: fi
21689: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5
21690: $as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; }
21691: if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then :
21692:
1.1.1.4 misho 21693: SSP_CFLAGS="-fstack-protector"
21694: SSP_LDFLAGS="-Wc,-fstack-protector"
1.1.1.3 misho 21695:
21696: else
21697: :
21698: fi
21699:
21700:
21701: else
21702: :
21703: fi
21704:
1.1.1.4 misho 21705: fi
21706: fi
1.1.1.3 misho 21707: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5
21708: $as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; }
21709: if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then :
21710: $as_echo_n "(cached) " >&6
21711: else
21712:
21713: ax_check_save_flags=$LDFLAGS
21714: LDFLAGS="$LDFLAGS -Wl,-z,relro"
21715: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21716: /* end confdefs.h. */
21717:
21718: int
21719: main ()
21720: {
21721:
21722: ;
21723: return 0;
21724: }
21725: _ACEOF
21726: if ac_fn_c_try_link "$LINENO"; then :
21727: ax_cv_check_ldflags___Wl__z_relro=yes
21728: else
21729: ax_cv_check_ldflags___Wl__z_relro=no
21730: fi
21731: rm -f core conftest.err conftest.$ac_objext \
21732: conftest$ac_exeext conftest.$ac_ext
21733: LDFLAGS=$ax_check_save_flags
21734: fi
21735: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5
21736: $as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; }
21737: if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then :
21738: LDFLAGS="${LDFLAGS} -Wl,-z,relro"
21739: else
21740: :
21741: fi
21742:
21743: fi
21744:
1.1 misho 21745: case "$with_passwd" in
21746: yes|maybe)
21747: AUTH_OBJS="$AUTH_OBJS getspwuid.lo passwd.lo"
21748: ;;
21749: *)
21750: $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h
21751:
21752: if test -z "$AUTH_OBJS"; then
21753: as_fn_error $? "no authentication methods defined." "$LINENO" 5
21754: fi
21755: ;;
21756: esac
21757: AUTH_OBJS=${AUTH_OBJS# }
21758: _AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.lo//g' -e 's/getspwuid *//'`
21759: { $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5
21760: $as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
21761:
21762: if test -n "$LIBS"; then
21763: L="$LIBS"
21764: LIBS=
21765: for l in ${L}; do
21766: dupe=0
21767: for sl in ${SUDO_LIBS} ${SUDOERS_LIBS} ${NET_LIBS}; do
21768: test $l = $sl && dupe=1
21769: done
21770: test $dupe = 0 && LIBS="${LIBS} $l"
21771: done
21772: fi
21773:
1.1.1.4 misho 21774:
21775: cat >>confdefs.h <<_ACEOF
21776: #define os_init $OS_INIT
21777: _ACEOF
21778:
21779:
1.1 misho 21780: if test -n "$GCC"; then
21781: if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then
21782: CFLAGS="${CFLAGS} -Wall"
21783: fi
21784: if test X"$enable_werror" = X"yes"; then
21785: CFLAGS="${CFLAGS} -Werror"
21786: fi
21787: fi
21788:
1.1.1.3 misho 21789: CROSS_COMPILING="$cross_compiling"
21790:
1.1 misho 21791: test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
21792:
1.1.1.4 misho 21793: if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no" -o "$enabled_shared" != X"no"; then
1.1 misho 21794: oexec_prefix="$exec_prefix"
21795: if test "$exec_prefix" = '$(prefix)'; then
21796: if test "$prefix" = "NONE"; then
21797: exec_prefix="$ac_default_prefix"
21798: else
21799: exec_prefix="$prefix"
21800: fi
21801: fi
21802: if test X"$with_noexec" != X"no"; then
21803: PROGS="${PROGS} libsudo_noexec.la"
21804: INSTALL_NOEXEC="install-noexec"
21805:
1.1.1.2 misho 21806: noexec_file="$with_noexec"
21807: _noexec_file=
21808: while test X"$noexec_file" != X"$_noexec_file"; do
21809: _noexec_file="$noexec_file"
21810: eval noexec_file="$_noexec_file"
21811: done
1.1 misho 21812: cat >>confdefs.h <<EOF
21813: #define _PATH_SUDO_NOEXEC "$noexec_file"
21814: EOF
21815:
21816: fi
21817: if test X"$with_selinux" != X"no"; then
1.1.1.4 misho 21818: sesh_file="$libexecdir/sudo/sesh"
1.1.1.2 misho 21819: _sesh_file=
21820: while test X"$sesh_file" != X"$_sesh_file"; do
21821: _sesh_file="$sesh_file"
21822: eval sesh_file="$_sesh_file"
21823: done
1.1 misho 21824: cat >>confdefs.h <<EOF
21825: #define _PATH_SUDO_SESH "$sesh_file"
21826: EOF
21827:
21828: fi
1.1.1.4 misho 21829: if test X"$enable_shared" != X"no"; then
21830: PLUGINDIR="$with_plugindir"
21831: _PLUGINDIR=
21832: while test X"$PLUGINDIR" != X"$_PLUGINDIR"; do
21833: _PLUGINDIR="$PLUGINDIR"
21834: eval PLUGINDIR="$_PLUGINDIR"
21835: done
21836: cat >>confdefs.h <<EOF
1.1 misho 21837: #define _PATH_SUDO_PLUGIN_DIR "$PLUGINDIR/"
21838: EOF
21839:
1.1.1.4 misho 21840: cat >>confdefs.h <<EOF
21841: #define SUDOERS_PLUGIN "sudoers.so"
1.1 misho 21842: EOF
21843:
1.1.1.4 misho 21844: fi
1.1 misho 21845: exec_prefix="$oexec_prefix"
21846: fi
1.1.1.4 misho 21847: if test X"$with_selinux" = X"no"; then
21848: cat >>confdefs.h <<EOF
21849: #define _PATH_SUDO_SESH NULL
21850: EOF
21851:
21852: fi
21853:
21854: if test X"$LDFLAGS_R" != X""; then
21855: LDFLAGS="$LDFLAGS $LDFLAGS_R"
21856: fi
21857: if test X"$SUDOERS_LDFLAGS_R" != X""; then
21858: SUDOERS_LDFLAGS="$SUDOERS_LDFLAGS $SUDOERS_LDFLAGS_R"
21859: fi
21860: if test X"$ZLIB_R" != X""; then
21861: ZLIB="$ZLIB_R $ZLIB"
21862: fi
1.1 misho 21863:
21864: if test X"$prefix" = X"NONE"; then
21865: test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
21866: else
21867: test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
21868: fi
21869: test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
21870: test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
21871: test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec'
21872: test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include'
21873: test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share'
21874: test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)'
1.1.1.3 misho 21875: test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale'
21876: test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var'
1.1 misho 21877: test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
21878:
1.1.1.4 misho 21879: ac_config_files="$ac_config_files Makefile common/Makefile compat/Makefile doc/Makefile include/Makefile src/sudo_usage.h src/Makefile plugins/sample/Makefile plugins/group_file/Makefile plugins/system_group/Makefile plugins/sudoers/Makefile plugins/sudoers/sudoers"
1.1 misho 21880:
21881: cat >confcache <<\_ACEOF
21882: # This file is a shell script that caches the results of configure
21883: # tests run on this system so they can be shared between configure
21884: # scripts and configure runs, see configure's option --config-cache.
21885: # It is not useful on other systems. If it contains results you don't
21886: # want to keep, you may remove or edit it.
21887: #
21888: # config.status only pays attention to the cache file if you give it
21889: # the --recheck option to rerun configure.
21890: #
21891: # `ac_cv_env_foo' variables (set or unset) will be overridden when
21892: # loading this file, other *unset* `ac_cv_foo' will be assigned the
21893: # following values.
21894:
21895: _ACEOF
21896:
21897: # The following way of writing the cache mishandles newlines in values,
21898: # but we know of no workaround that is simple, portable, and efficient.
21899: # So, we kill variables containing newlines.
21900: # Ultrix sh set writes to stderr and can't be redirected directly,
21901: # and sets the high bit in the cache file unless we assign to the vars.
21902: (
21903: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21904: eval ac_val=\$$ac_var
21905: case $ac_val in #(
21906: *${as_nl}*)
21907: case $ac_var in #(
21908: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21909: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21910: esac
21911: case $ac_var in #(
21912: _ | IFS | as_nl) ;; #(
21913: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21914: *) { eval $ac_var=; unset $ac_var;} ;;
21915: esac ;;
21916: esac
21917: done
21918:
21919: (set) 2>&1 |
21920: case $as_nl`(ac_space=' '; set) 2>&1` in #(
21921: *${as_nl}ac_space=\ *)
21922: # `set' does not quote correctly, so add quotes: double-quote
21923: # substitution turns \\\\ into \\, and sed turns \\ into \.
21924: sed -n \
21925: "s/'/'\\\\''/g;
21926: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21927: ;; #(
21928: *)
21929: # `set' quotes correctly as required by POSIX, so do not add quotes.
21930: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21931: ;;
21932: esac |
21933: sort
21934: ) |
21935: sed '
21936: /^ac_cv_env_/b end
21937: t clear
21938: :clear
21939: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21940: t end
21941: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21942: :end' >>confcache
21943: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21944: if test -w "$cache_file"; then
21945: if test "x$cache_file" != "x/dev/null"; then
21946: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21947: $as_echo "$as_me: updating cache $cache_file" >&6;}
21948: if test ! -f "$cache_file" || test -h "$cache_file"; then
21949: cat confcache >"$cache_file"
21950: else
21951: case $cache_file in #(
21952: */* | ?:*)
21953: mv -f confcache "$cache_file"$$ &&
21954: mv -f "$cache_file"$$ "$cache_file" ;; #(
21955: *)
21956: mv -f confcache "$cache_file" ;;
21957: esac
21958: fi
21959: fi
21960: else
21961: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21962: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21963: fi
21964: fi
21965: rm -f confcache
21966:
21967: test "x$prefix" = xNONE && prefix=$ac_default_prefix
21968: # Let make expand exec_prefix.
21969: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21970:
21971: DEFS=-DHAVE_CONFIG_H
21972:
21973: ac_libobjs=
21974: ac_ltlibobjs=
21975: U=
21976: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21977: # 1. Remove the extension, and $U if already installed.
21978: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21979: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
21980: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21981: # will be set to the directory where LIBOBJS objects are built.
21982: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21983: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21984: done
21985: LIBOBJS=$ac_libobjs
21986:
21987: LTLIBOBJS=$ac_ltlibobjs
21988:
21989:
21990:
21991: : "${CONFIG_STATUS=./config.status}"
21992: ac_write_fail=0
21993: ac_clean_files_save=$ac_clean_files
21994: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21995: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21996: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21997: as_write_fail=0
21998: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21999: #! $SHELL
22000: # Generated by $as_me.
22001: # Run this file to recreate the current configuration.
22002: # Compiler output produced by configure, useful for debugging
22003: # configure, is in config.log if it exists.
22004:
22005: debug=false
22006: ac_cs_recheck=false
22007: ac_cs_silent=false
22008:
22009: SHELL=\${CONFIG_SHELL-$SHELL}
22010: export SHELL
22011: _ASEOF
22012: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22013: ## -------------------- ##
22014: ## M4sh Initialization. ##
22015: ## -------------------- ##
22016:
22017: # Be more Bourne compatible
22018: DUALCASE=1; export DUALCASE # for MKS sh
22019: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22020: emulate sh
22021: NULLCMD=:
22022: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22023: # is contrary to our usage. Disable this feature.
22024: alias -g '${1+"$@"}'='"$@"'
22025: setopt NO_GLOB_SUBST
22026: else
22027: case `(set -o) 2>/dev/null` in #(
22028: *posix*) :
22029: set -o posix ;; #(
22030: *) :
22031: ;;
22032: esac
22033: fi
22034:
22035:
22036: as_nl='
22037: '
22038: export as_nl
22039: # Printing a long string crashes Solaris 7 /usr/bin/printf.
22040: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22041: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22042: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22043: # Prefer a ksh shell builtin over an external printf program on Solaris,
22044: # but without wasting forks for bash or zsh.
22045: if test -z "$BASH_VERSION$ZSH_VERSION" \
22046: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22047: as_echo='print -r --'
22048: as_echo_n='print -rn --'
22049: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22050: as_echo='printf %s\n'
22051: as_echo_n='printf %s'
22052: else
22053: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22054: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22055: as_echo_n='/usr/ucb/echo -n'
22056: else
22057: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22058: as_echo_n_body='eval
22059: arg=$1;
22060: case $arg in #(
22061: *"$as_nl"*)
22062: expr "X$arg" : "X\\(.*\\)$as_nl";
22063: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22064: esac;
22065: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22066: '
22067: export as_echo_n_body
22068: as_echo_n='sh -c $as_echo_n_body as_echo'
22069: fi
22070: export as_echo_body
22071: as_echo='sh -c $as_echo_body as_echo'
22072: fi
22073:
22074: # The user is always right.
22075: if test "${PATH_SEPARATOR+set}" != set; then
22076: PATH_SEPARATOR=:
22077: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22078: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22079: PATH_SEPARATOR=';'
22080: }
22081: fi
22082:
22083:
22084: # IFS
22085: # We need space, tab and new line, in precisely that order. Quoting is
22086: # there to prevent editors from complaining about space-tab.
22087: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22088: # splitting by setting IFS to empty value.)
22089: IFS=" "" $as_nl"
22090:
22091: # Find who we are. Look in the path if we contain no directory separator.
22092: as_myself=
22093: case $0 in #((
22094: *[\\/]* ) as_myself=$0 ;;
22095: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22096: for as_dir in $PATH
22097: do
22098: IFS=$as_save_IFS
22099: test -z "$as_dir" && as_dir=.
22100: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22101: done
22102: IFS=$as_save_IFS
22103:
22104: ;;
22105: esac
22106: # We did not find ourselves, most probably we were run as `sh COMMAND'
22107: # in which case we are not to be found in the path.
22108: if test "x$as_myself" = x; then
22109: as_myself=$0
22110: fi
22111: if test ! -f "$as_myself"; then
22112: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22113: exit 1
22114: fi
22115:
22116: # Unset variables that we do not need and which cause bugs (e.g. in
22117: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22118: # suppresses any "Segmentation fault" message there. '((' could
22119: # trigger a bug in pdksh 5.2.14.
22120: for as_var in BASH_ENV ENV MAIL MAILPATH
22121: do eval test x\${$as_var+set} = xset \
22122: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22123: done
22124: PS1='$ '
22125: PS2='> '
22126: PS4='+ '
22127:
22128: # NLS nuisances.
22129: LC_ALL=C
22130: export LC_ALL
22131: LANGUAGE=C
22132: export LANGUAGE
22133:
22134: # CDPATH.
22135: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22136:
22137:
22138: # as_fn_error STATUS ERROR [LINENO LOG_FD]
22139: # ----------------------------------------
22140: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22141: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22142: # script with STATUS, using 1 if that was 0.
22143: as_fn_error ()
22144: {
22145: as_status=$1; test $as_status -eq 0 && as_status=1
22146: if test "$4"; then
22147: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22148: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22149: fi
22150: $as_echo "$as_me: error: $2" >&2
22151: as_fn_exit $as_status
22152: } # as_fn_error
22153:
22154:
22155: # as_fn_set_status STATUS
22156: # -----------------------
22157: # Set $? to STATUS, without forking.
22158: as_fn_set_status ()
22159: {
22160: return $1
22161: } # as_fn_set_status
22162:
22163: # as_fn_exit STATUS
22164: # -----------------
22165: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22166: as_fn_exit ()
22167: {
22168: set +e
22169: as_fn_set_status $1
22170: exit $1
22171: } # as_fn_exit
22172:
22173: # as_fn_unset VAR
22174: # ---------------
22175: # Portably unset VAR.
22176: as_fn_unset ()
22177: {
22178: { eval $1=; unset $1;}
22179: }
22180: as_unset=as_fn_unset
22181: # as_fn_append VAR VALUE
22182: # ----------------------
22183: # Append the text in VALUE to the end of the definition contained in VAR. Take
22184: # advantage of any shell optimizations that allow amortized linear growth over
22185: # repeated appends, instead of the typical quadratic growth present in naive
22186: # implementations.
22187: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22188: eval 'as_fn_append ()
22189: {
22190: eval $1+=\$2
22191: }'
22192: else
22193: as_fn_append ()
22194: {
22195: eval $1=\$$1\$2
22196: }
22197: fi # as_fn_append
22198:
22199: # as_fn_arith ARG...
22200: # ------------------
22201: # Perform arithmetic evaluation on the ARGs, and store the result in the
22202: # global $as_val. Take advantage of shells that can avoid forks. The arguments
22203: # must be portable across $(()) and expr.
22204: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22205: eval 'as_fn_arith ()
22206: {
22207: as_val=$(( $* ))
22208: }'
22209: else
22210: as_fn_arith ()
22211: {
22212: as_val=`expr "$@" || test $? -eq 1`
22213: }
22214: fi # as_fn_arith
22215:
22216:
22217: if expr a : '\(a\)' >/dev/null 2>&1 &&
22218: test "X`expr 00001 : '.*\(...\)'`" = X001; then
22219: as_expr=expr
22220: else
22221: as_expr=false
22222: fi
22223:
22224: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22225: as_basename=basename
22226: else
22227: as_basename=false
22228: fi
22229:
22230: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22231: as_dirname=dirname
22232: else
22233: as_dirname=false
22234: fi
22235:
22236: as_me=`$as_basename -- "$0" ||
22237: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22238: X"$0" : 'X\(//\)$' \| \
22239: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22240: $as_echo X/"$0" |
22241: sed '/^.*\/\([^/][^/]*\)\/*$/{
22242: s//\1/
22243: q
22244: }
22245: /^X\/\(\/\/\)$/{
22246: s//\1/
22247: q
22248: }
22249: /^X\/\(\/\).*/{
22250: s//\1/
22251: q
22252: }
22253: s/.*/./; q'`
22254:
22255: # Avoid depending upon Character Ranges.
22256: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22257: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22258: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22259: as_cr_digits='0123456789'
22260: as_cr_alnum=$as_cr_Letters$as_cr_digits
22261:
22262: ECHO_C= ECHO_N= ECHO_T=
22263: case `echo -n x` in #(((((
22264: -n*)
22265: case `echo 'xy\c'` in
22266: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22267: xy) ECHO_C='\c';;
22268: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22269: ECHO_T=' ';;
22270: esac;;
22271: *)
22272: ECHO_N='-n';;
22273: esac
22274:
22275: rm -f conf$$ conf$$.exe conf$$.file
22276: if test -d conf$$.dir; then
22277: rm -f conf$$.dir/conf$$.file
22278: else
22279: rm -f conf$$.dir
22280: mkdir conf$$.dir 2>/dev/null
22281: fi
22282: if (echo >conf$$.file) 2>/dev/null; then
22283: if ln -s conf$$.file conf$$ 2>/dev/null; then
22284: as_ln_s='ln -s'
22285: # ... but there are two gotchas:
22286: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22287: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22288: # In both cases, we have to default to `cp -p'.
22289: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22290: as_ln_s='cp -p'
22291: elif ln conf$$.file conf$$ 2>/dev/null; then
22292: as_ln_s=ln
22293: else
22294: as_ln_s='cp -p'
22295: fi
22296: else
22297: as_ln_s='cp -p'
22298: fi
22299: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22300: rmdir conf$$.dir 2>/dev/null
22301:
22302:
22303: # as_fn_mkdir_p
22304: # -------------
22305: # Create "$as_dir" as a directory, including parents if necessary.
22306: as_fn_mkdir_p ()
22307: {
22308:
22309: case $as_dir in #(
22310: -*) as_dir=./$as_dir;;
22311: esac
22312: test -d "$as_dir" || eval $as_mkdir_p || {
22313: as_dirs=
22314: while :; do
22315: case $as_dir in #(
22316: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22317: *) as_qdir=$as_dir;;
22318: esac
22319: as_dirs="'$as_qdir' $as_dirs"
22320: as_dir=`$as_dirname -- "$as_dir" ||
22321: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22322: X"$as_dir" : 'X\(//\)[^/]' \| \
22323: X"$as_dir" : 'X\(//\)$' \| \
22324: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22325: $as_echo X"$as_dir" |
22326: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22327: s//\1/
22328: q
22329: }
22330: /^X\(\/\/\)[^/].*/{
22331: s//\1/
22332: q
22333: }
22334: /^X\(\/\/\)$/{
22335: s//\1/
22336: q
22337: }
22338: /^X\(\/\).*/{
22339: s//\1/
22340: q
22341: }
22342: s/.*/./; q'`
22343: test -d "$as_dir" && break
22344: done
22345: test -z "$as_dirs" || eval "mkdir $as_dirs"
22346: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22347:
22348:
22349: } # as_fn_mkdir_p
22350: if mkdir -p . 2>/dev/null; then
22351: as_mkdir_p='mkdir -p "$as_dir"'
22352: else
22353: test -d ./-p && rmdir ./-p
22354: as_mkdir_p=false
22355: fi
22356:
22357: if test -x / >/dev/null 2>&1; then
22358: as_test_x='test -x'
22359: else
22360: if ls -dL / >/dev/null 2>&1; then
22361: as_ls_L_option=L
22362: else
22363: as_ls_L_option=
22364: fi
22365: as_test_x='
22366: eval sh -c '\''
22367: if test -d "$1"; then
22368: test -d "$1/.";
22369: else
22370: case $1 in #(
22371: -*)set "./$1";;
22372: esac;
22373: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
22374: ???[sx]*):;;*)false;;esac;fi
22375: '\'' sh
22376: '
22377: fi
22378: as_executable_p=$as_test_x
22379:
22380: # Sed expression to map a string onto a valid CPP name.
22381: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22382:
22383: # Sed expression to map a string onto a valid variable name.
22384: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22385:
22386:
22387: exec 6>&1
22388: ## ----------------------------------- ##
22389: ## Main body of $CONFIG_STATUS script. ##
22390: ## ----------------------------------- ##
22391: _ASEOF
22392: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22393:
22394: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22395: # Save the log message, to keep $0 and so on meaningful, and to
22396: # report actual input values of CONFIG_FILES etc. instead of their
22397: # values after options handling.
22398: ac_log="
1.1.1.5 ! misho 22399: This file was extended by sudo $as_me 1.8.8, which was
1.1 misho 22400: generated by GNU Autoconf 2.68. Invocation command line was
22401:
22402: CONFIG_FILES = $CONFIG_FILES
22403: CONFIG_HEADERS = $CONFIG_HEADERS
22404: CONFIG_LINKS = $CONFIG_LINKS
22405: CONFIG_COMMANDS = $CONFIG_COMMANDS
22406: $ $0 $@
22407:
22408: on `(hostname || uname -n) 2>/dev/null | sed 1q`
22409: "
22410:
22411: _ACEOF
22412:
22413: case $ac_config_files in *"
22414: "*) set x $ac_config_files; shift; ac_config_files=$*;;
22415: esac
22416:
22417: case $ac_config_headers in *"
22418: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22419: esac
22420:
22421:
22422: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22423: # Files that config.status was made for.
22424: config_files="$ac_config_files"
22425: config_headers="$ac_config_headers"
22426: config_commands="$ac_config_commands"
22427:
22428: _ACEOF
22429:
22430: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22431: ac_cs_usage="\
22432: \`$as_me' instantiates files and other configuration actions
22433: from templates according to the current configuration. Unless the files
22434: and actions are specified as TAGs, all are instantiated by default.
22435:
22436: Usage: $0 [OPTION]... [TAG]...
22437:
22438: -h, --help print this help, then exit
22439: -V, --version print version number and configuration settings, then exit
22440: --config print configuration, then exit
22441: -q, --quiet, --silent
22442: do not print progress messages
22443: -d, --debug don't remove temporary files
22444: --recheck update $as_me by reconfiguring in the same conditions
22445: --file=FILE[:TEMPLATE]
22446: instantiate the configuration file FILE
22447: --header=FILE[:TEMPLATE]
22448: instantiate the configuration header FILE
22449:
22450: Configuration files:
22451: $config_files
22452:
22453: Configuration headers:
22454: $config_headers
22455:
22456: Configuration commands:
22457: $config_commands
22458:
22459: Report bugs to <http://www.sudo.ws/bugs/>."
22460:
22461: _ACEOF
22462: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22463: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22464: ac_cs_version="\\
1.1.1.5 ! misho 22465: sudo config.status 1.8.8
1.1 misho 22466: configured by $0, generated by GNU Autoconf 2.68,
22467: with options \\"\$ac_cs_config\\"
22468:
22469: Copyright (C) 2010 Free Software Foundation, Inc.
22470: This config.status script is free software; the Free Software Foundation
22471: gives unlimited permission to copy, distribute and modify it."
22472:
22473: ac_pwd='$ac_pwd'
22474: srcdir='$srcdir'
22475: AWK='$AWK'
22476: test -n "\$AWK" || AWK=awk
22477: _ACEOF
22478:
22479: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22480: # The default lists apply if the user does not specify any file.
22481: ac_need_defaults=:
22482: while test $# != 0
22483: do
22484: case $1 in
22485: --*=?*)
22486: ac_option=`expr "X$1" : 'X\([^=]*\)='`
22487: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22488: ac_shift=:
22489: ;;
22490: --*=)
22491: ac_option=`expr "X$1" : 'X\([^=]*\)='`
22492: ac_optarg=
22493: ac_shift=:
22494: ;;
22495: *)
22496: ac_option=$1
22497: ac_optarg=$2
22498: ac_shift=shift
22499: ;;
22500: esac
22501:
22502: case $ac_option in
22503: # Handling of the options.
22504: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22505: ac_cs_recheck=: ;;
22506: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22507: $as_echo "$ac_cs_version"; exit ;;
22508: --config | --confi | --conf | --con | --co | --c )
22509: $as_echo "$ac_cs_config"; exit ;;
22510: --debug | --debu | --deb | --de | --d | -d )
22511: debug=: ;;
22512: --file | --fil | --fi | --f )
22513: $ac_shift
22514: case $ac_optarg in
22515: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22516: '') as_fn_error $? "missing file argument" ;;
22517: esac
22518: as_fn_append CONFIG_FILES " '$ac_optarg'"
22519: ac_need_defaults=false;;
22520: --header | --heade | --head | --hea )
22521: $ac_shift
22522: case $ac_optarg in
22523: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22524: esac
22525: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22526: ac_need_defaults=false;;
22527: --he | --h)
22528: # Conflict between --help and --header
22529: as_fn_error $? "ambiguous option: \`$1'
22530: Try \`$0 --help' for more information.";;
22531: --help | --hel | -h )
22532: $as_echo "$ac_cs_usage"; exit ;;
22533: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22534: | -silent | --silent | --silen | --sile | --sil | --si | --s)
22535: ac_cs_silent=: ;;
22536:
22537: # This is an error.
22538: -*) as_fn_error $? "unrecognized option: \`$1'
22539: Try \`$0 --help' for more information." ;;
22540:
22541: *) as_fn_append ac_config_targets " $1"
22542: ac_need_defaults=false ;;
22543:
22544: esac
22545: shift
22546: done
22547:
22548: ac_configure_extra_args=
22549:
22550: if $ac_cs_silent; then
22551: exec 6>/dev/null
22552: ac_configure_extra_args="$ac_configure_extra_args --silent"
22553: fi
22554:
22555: _ACEOF
22556: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22557: if \$ac_cs_recheck; then
22558: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22559: shift
22560: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22561: CONFIG_SHELL='$SHELL'
22562: export CONFIG_SHELL
22563: exec "\$@"
22564: fi
22565:
22566: _ACEOF
22567: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22568: exec 5>>config.log
22569: {
22570: echo
22571: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22572: ## Running $as_me. ##
22573: _ASBOX
22574: $as_echo "$ac_log"
22575: } >&5
22576:
22577: _ACEOF
22578: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22579: #
22580: # INIT-COMMANDS
22581: #
22582:
22583:
22584: # The HP-UX ksh and POSIX shell print the target directory to stdout
22585: # if CDPATH is set.
22586: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22587:
22588: sed_quote_subst='$sed_quote_subst'
22589: double_quote_subst='$double_quote_subst'
22590: delay_variable_subst='$delay_variable_subst'
22591: macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22592: macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22593: enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22594: enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22595: pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22596: enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22597: SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22598: ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
1.1.1.2 misho 22599: PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
1.1 misho 22600: host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22601: host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22602: host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22603: build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22604: build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22605: build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22606: SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22607: Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22608: GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22609: EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22610: FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22611: LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22612: NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22613: LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22614: max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22615: ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22616: exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22617: lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22618: lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22619: lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22620: lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22621: lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22622: reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22623: reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22624: OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22625: deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22626: file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22627: file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22628: want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22629: DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22630: sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22631: AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22632: AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22633: archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22634: STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22635: RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22636: old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22637: old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22638: old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22639: lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22640: CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22641: CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22642: compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22643: GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22644: lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22645: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22646: lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22647: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
22648: nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22649: lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22650: objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22651: MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22652: lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22653: lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22654: lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22655: lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22656: lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22657: need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22658: MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22659: DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22660: NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22661: LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22662: OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22663: OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22664: libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22665: shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22666: extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22667: archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22668: enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22669: export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22670: whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22671: compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22672: old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22673: old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22674: archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22675: archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22676: module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22677: module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22678: with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22679: allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22680: no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22681: hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22682: hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22683: hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22684: hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22685: hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22686: hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22687: hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22688: inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22689: link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22690: always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22691: export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22692: exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22693: include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22694: prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22695: postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22696: file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22697: variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22698: need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22699: need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22700: version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22701: runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22702: shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22703: shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22704: libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22705: library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22706: soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22707: install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22708: postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22709: postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22710: finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22711: finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22712: hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22713: sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22714: sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22715: hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22716: enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22717: enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22718: enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22719: old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22720: striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22721:
22722: LTCC='$LTCC'
22723: LTCFLAGS='$LTCFLAGS'
22724: compiler='$compiler_DEFAULT'
22725:
22726: # A function that is used when there is no print builtin or printf.
22727: func_fallback_echo ()
22728: {
22729: eval 'cat <<_LTECHO_EOF
22730: \$1
22731: _LTECHO_EOF'
22732: }
22733:
22734: # Quote evaled strings.
22735: for var in SHELL \
22736: ECHO \
1.1.1.2 misho 22737: PATH_SEPARATOR \
1.1 misho 22738: SED \
22739: GREP \
22740: EGREP \
22741: FGREP \
22742: LD \
22743: NM \
22744: LN_S \
22745: lt_SP2NL \
22746: lt_NL2SP \
22747: reload_flag \
22748: OBJDUMP \
22749: deplibs_check_method \
22750: file_magic_cmd \
22751: file_magic_glob \
22752: want_nocaseglob \
22753: DLLTOOL \
22754: sharedlib_from_linklib_cmd \
22755: AR \
22756: AR_FLAGS \
22757: archiver_list_spec \
22758: STRIP \
22759: RANLIB \
22760: CC \
22761: CFLAGS \
22762: compiler \
22763: lt_cv_sys_global_symbol_pipe \
22764: lt_cv_sys_global_symbol_to_cdecl \
22765: lt_cv_sys_global_symbol_to_c_name_address \
22766: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22767: nm_file_list_spec \
22768: lt_prog_compiler_no_builtin_flag \
22769: lt_prog_compiler_pic \
22770: lt_prog_compiler_wl \
22771: lt_prog_compiler_static \
22772: lt_cv_prog_compiler_c_o \
22773: need_locks \
22774: MANIFEST_TOOL \
22775: DSYMUTIL \
22776: NMEDIT \
22777: LIPO \
22778: OTOOL \
22779: OTOOL64 \
22780: shrext_cmds \
22781: export_dynamic_flag_spec \
22782: whole_archive_flag_spec \
22783: compiler_needs_object \
22784: with_gnu_ld \
22785: allow_undefined_flag \
22786: no_undefined_flag \
22787: hardcode_libdir_flag_spec \
22788: hardcode_libdir_separator \
22789: exclude_expsyms \
22790: include_expsyms \
22791: file_list_spec \
22792: variables_saved_for_relink \
22793: libname_spec \
22794: library_names_spec \
22795: soname_spec \
22796: install_override_mode \
22797: finish_eval \
22798: old_striplib \
22799: striplib; do
22800: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22801: *[\\\\\\\`\\"\\\$]*)
22802: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
22803: ;;
22804: *)
22805: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22806: ;;
22807: esac
22808: done
22809:
22810: # Double-quote double-evaled strings.
22811: for var in reload_cmds \
22812: old_postinstall_cmds \
22813: old_postuninstall_cmds \
22814: old_archive_cmds \
22815: extract_expsyms_cmds \
22816: old_archive_from_new_cmds \
22817: old_archive_from_expsyms_cmds \
22818: archive_cmds \
22819: archive_expsym_cmds \
22820: module_cmds \
22821: module_expsym_cmds \
22822: export_symbols_cmds \
22823: prelink_cmds \
22824: postlink_cmds \
22825: postinstall_cmds \
22826: postuninstall_cmds \
22827: finish_cmds \
22828: sys_lib_search_path_spec \
22829: sys_lib_dlsearch_path_spec; do
22830: case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22831: *[\\\\\\\`\\"\\\$]*)
22832: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
22833: ;;
22834: *)
22835: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22836: ;;
22837: esac
22838: done
22839:
22840: ac_aux_dir='$ac_aux_dir'
22841: xsi_shell='$xsi_shell'
22842: lt_shell_append='$lt_shell_append'
22843:
22844: # See if we are running on zsh, and set the options which allow our
22845: # commands through without removal of \ escapes INIT.
22846: if test -n "\${ZSH_VERSION+set}" ; then
22847: setopt NO_GLOB_SUBST
22848: fi
22849:
22850:
22851: PACKAGE='$PACKAGE'
22852: VERSION='$VERSION'
22853: TIMESTAMP='$TIMESTAMP'
22854: RM='$RM'
22855: ofile='$ofile'
22856:
22857:
22858:
22859:
22860: _ACEOF
22861:
22862: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22863:
22864: # Handling of arguments.
22865: for ac_config_target in $ac_config_targets
22866: do
22867: case $ac_config_target in
22868: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22869: "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
22870: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22871: "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;;
22872: "zlib/Makefile") CONFIG_FILES="$CONFIG_FILES zlib/Makefile" ;;
22873: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22874: "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
22875: "compat/Makefile") CONFIG_FILES="$CONFIG_FILES compat/Makefile" ;;
22876: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22877: "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
22878: "src/sudo_usage.h") CONFIG_FILES="$CONFIG_FILES src/sudo_usage.h" ;;
22879: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22880: "plugins/sample/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sample/Makefile" ;;
1.1.1.4 misho 22881: "plugins/group_file/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/group_file/Makefile" ;;
1.1.1.2 misho 22882: "plugins/system_group/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/system_group/Makefile" ;;
1.1 misho 22883: "plugins/sudoers/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/Makefile" ;;
22884: "plugins/sudoers/sudoers") CONFIG_FILES="$CONFIG_FILES plugins/sudoers/sudoers" ;;
22885:
22886: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22887: esac
22888: done
22889:
22890:
22891: # If the user did not use the arguments to specify the items to instantiate,
22892: # then the envvar interface is used. Set only those that are not.
22893: # We use the long form for the default assignment because of an extremely
22894: # bizarre bug on SunOS 4.1.3.
22895: if $ac_need_defaults; then
22896: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22897: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22898: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22899: fi
22900:
22901: # Have a temporary directory for convenience. Make it in the build tree
22902: # simply because there is no reason against having it here, and in addition,
22903: # creating and moving files from /tmp can sometimes cause problems.
22904: # Hook for its removal unless debugging.
22905: # Note that there is a small window in which the directory will not be cleaned:
22906: # after its creation but before its name has been assigned to `$tmp'.
22907: $debug ||
22908: {
22909: tmp= ac_tmp=
22910: trap 'exit_status=$?
22911: : "${ac_tmp:=$tmp}"
22912: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22913: ' 0
22914: trap 'as_fn_exit 1' 1 2 13 15
22915: }
22916: # Create a (secure) tmp directory for tmp files.
22917:
22918: {
22919: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22920: test -d "$tmp"
22921: } ||
22922: {
22923: tmp=./conf$$-$RANDOM
22924: (umask 077 && mkdir "$tmp")
22925: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22926: ac_tmp=$tmp
22927:
22928: # Set up the scripts for CONFIG_FILES section.
22929: # No need to generate them if there are no CONFIG_FILES.
22930: # This happens for instance with `./config.status config.h'.
22931: if test -n "$CONFIG_FILES"; then
22932:
22933:
22934: ac_cr=`echo X | tr X '\015'`
22935: # On cygwin, bash can eat \r inside `` if the user requested igncr.
22936: # But we know of no other shell where ac_cr would be empty at this
22937: # point, so we can use a bashism as a fallback.
22938: if test "x$ac_cr" = x; then
22939: eval ac_cr=\$\'\\r\'
22940: fi
22941: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22942: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22943: ac_cs_awk_cr='\\r'
22944: else
22945: ac_cs_awk_cr=$ac_cr
22946: fi
22947:
22948: echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22949: _ACEOF
22950:
22951:
22952: {
22953: echo "cat >conf$$subs.awk <<_ACEOF" &&
22954: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22955: echo "_ACEOF"
22956: } >conf$$subs.sh ||
22957: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22958: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22959: ac_delim='%!_!# '
22960: for ac_last_try in false false false false false :; do
22961: . ./conf$$subs.sh ||
22962: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22963:
22964: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22965: if test $ac_delim_n = $ac_delim_num; then
22966: break
22967: elif $ac_last_try; then
22968: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22969: else
22970: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22971: fi
22972: done
22973: rm -f conf$$subs.sh
22974:
22975: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22976: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22977: _ACEOF
22978: sed -n '
22979: h
22980: s/^/S["/; s/!.*/"]=/
22981: p
22982: g
22983: s/^[^!]*!//
22984: :repl
22985: t repl
22986: s/'"$ac_delim"'$//
22987: t delim
22988: :nl
22989: h
22990: s/\(.\{148\}\)..*/\1/
22991: t more1
22992: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22993: p
22994: n
22995: b repl
22996: :more1
22997: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22998: p
22999: g
23000: s/.\{148\}//
23001: t nl
23002: :delim
23003: h
23004: s/\(.\{148\}\)..*/\1/
23005: t more2
23006: s/["\\]/\\&/g; s/^/"/; s/$/"/
23007: p
23008: b
23009: :more2
23010: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23011: p
23012: g
23013: s/.\{148\}//
23014: t delim
23015: ' <conf$$subs.awk | sed '
23016: /^[^""]/{
23017: N
23018: s/\n//
23019: }
23020: ' >>$CONFIG_STATUS || ac_write_fail=1
23021: rm -f conf$$subs.awk
23022: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23023: _ACAWK
23024: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23025: for (key in S) S_is_set[key] = 1
23026: FS = ""
23027:
23028: }
23029: {
23030: line = $ 0
23031: nfields = split(line, field, "@")
23032: substed = 0
23033: len = length(field[1])
23034: for (i = 2; i < nfields; i++) {
23035: key = field[i]
23036: keylen = length(key)
23037: if (S_is_set[key]) {
23038: value = S[key]
23039: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23040: len += length(value) + length(field[++i])
23041: substed = 1
23042: } else
23043: len += 1 + keylen
23044: }
23045:
23046: print line
23047: }
23048:
23049: _ACAWK
23050: _ACEOF
23051: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23052: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23053: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23054: else
23055: cat
23056: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23057: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23058: _ACEOF
23059:
23060: # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23061: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23062: # trailing colons and then remove the whole line if VPATH becomes empty
23063: # (actually we leave an empty line to preserve line numbers).
23064: if test "x$srcdir" = x.; then
23065: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23066: h
23067: s///
23068: s/^/:/
23069: s/[ ]*$/:/
23070: s/:\$(srcdir):/:/g
23071: s/:\${srcdir}:/:/g
23072: s/:@srcdir@:/:/g
23073: s/^:*//
23074: s/:*$//
23075: x
23076: s/\(=[ ]*\).*/\1/
23077: G
23078: s/\n//
23079: s/^[^=]*=[ ]*$//
23080: }'
23081: fi
23082:
23083: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23084: fi # test -n "$CONFIG_FILES"
23085:
23086: # Set up the scripts for CONFIG_HEADERS section.
23087: # No need to generate them if there are no CONFIG_HEADERS.
23088: # This happens for instance with `./config.status Makefile'.
23089: if test -n "$CONFIG_HEADERS"; then
23090: cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23091: BEGIN {
23092: _ACEOF
23093:
23094: # Transform confdefs.h into an awk script `defines.awk', embedded as
23095: # here-document in config.status, that substitutes the proper values into
23096: # config.h.in to produce config.h.
23097:
23098: # Create a delimiter string that does not exist in confdefs.h, to ease
23099: # handling of long lines.
23100: ac_delim='%!_!# '
23101: for ac_last_try in false false :; do
23102: ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23103: if test -z "$ac_tt"; then
23104: break
23105: elif $ac_last_try; then
23106: as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23107: else
23108: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23109: fi
23110: done
23111:
23112: # For the awk script, D is an array of macro values keyed by name,
23113: # likewise P contains macro parameters if any. Preserve backslash
23114: # newline sequences.
23115:
23116: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23117: sed -n '
23118: s/.\{148\}/&'"$ac_delim"'/g
23119: t rset
23120: :rset
23121: s/^[ ]*#[ ]*define[ ][ ]*/ /
23122: t def
23123: d
23124: :def
23125: s/\\$//
23126: t bsnl
23127: s/["\\]/\\&/g
23128: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23129: D["\1"]=" \3"/p
23130: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23131: d
23132: :bsnl
23133: s/["\\]/\\&/g
23134: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23135: D["\1"]=" \3\\\\\\n"\\/p
23136: t cont
23137: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23138: t cont
23139: d
23140: :cont
23141: n
23142: s/.\{148\}/&'"$ac_delim"'/g
23143: t clear
23144: :clear
23145: s/\\$//
23146: t bsnlc
23147: s/["\\]/\\&/g; s/^/"/; s/$/"/p
23148: d
23149: :bsnlc
23150: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23151: b cont
23152: ' <confdefs.h | sed '
23153: s/'"$ac_delim"'/"\\\
23154: "/g' >>$CONFIG_STATUS || ac_write_fail=1
23155:
23156: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23157: for (key in D) D_is_set[key] = 1
23158: FS = ""
23159: }
23160: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23161: line = \$ 0
23162: split(line, arg, " ")
23163: if (arg[1] == "#") {
23164: defundef = arg[2]
23165: mac1 = arg[3]
23166: } else {
23167: defundef = substr(arg[1], 2)
23168: mac1 = arg[2]
23169: }
23170: split(mac1, mac2, "(") #)
23171: macro = mac2[1]
23172: prefix = substr(line, 1, index(line, defundef) - 1)
23173: if (D_is_set[macro]) {
23174: # Preserve the white space surrounding the "#".
23175: print prefix "define", macro P[macro] D[macro]
23176: next
23177: } else {
23178: # Replace #undef with comments. This is necessary, for example,
23179: # in the case of _POSIX_SOURCE, which is predefined and required
23180: # on some systems where configure will not decide to define it.
23181: if (defundef == "undef") {
23182: print "/*", prefix defundef, macro, "*/"
23183: next
23184: }
23185: }
23186: }
23187: { print }
23188: _ACAWK
23189: _ACEOF
23190: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23191: as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23192: fi # test -n "$CONFIG_HEADERS"
23193:
23194:
23195: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23196: shift
23197: for ac_tag
23198: do
23199: case $ac_tag in
23200: :[FHLC]) ac_mode=$ac_tag; continue;;
23201: esac
23202: case $ac_mode$ac_tag in
23203: :[FHL]*:*);;
23204: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23205: :[FH]-) ac_tag=-:-;;
23206: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23207: esac
23208: ac_save_IFS=$IFS
23209: IFS=:
23210: set x $ac_tag
23211: IFS=$ac_save_IFS
23212: shift
23213: ac_file=$1
23214: shift
23215:
23216: case $ac_mode in
23217: :L) ac_source=$1;;
23218: :[FH])
23219: ac_file_inputs=
23220: for ac_f
23221: do
23222: case $ac_f in
23223: -) ac_f="$ac_tmp/stdin";;
23224: *) # Look for the file first in the build tree, then in the source tree
23225: # (if the path is not absolute). The absolute path cannot be DOS-style,
23226: # because $ac_f cannot contain `:'.
23227: test -f "$ac_f" ||
23228: case $ac_f in
23229: [\\/$]*) false;;
23230: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23231: esac ||
23232: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23233: esac
23234: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23235: as_fn_append ac_file_inputs " '$ac_f'"
23236: done
23237:
23238: # Let's still pretend it is `configure' which instantiates (i.e., don't
23239: # use $as_me), people would be surprised to read:
23240: # /* config.h. Generated by config.status. */
23241: configure_input='Generated from '`
23242: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23243: `' by configure.'
23244: if test x"$ac_file" != x-; then
23245: configure_input="$ac_file. $configure_input"
23246: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23247: $as_echo "$as_me: creating $ac_file" >&6;}
23248: fi
23249: # Neutralize special characters interpreted by sed in replacement strings.
23250: case $configure_input in #(
23251: *\&* | *\|* | *\\* )
23252: ac_sed_conf_input=`$as_echo "$configure_input" |
23253: sed 's/[\\\\&|]/\\\\&/g'`;; #(
23254: *) ac_sed_conf_input=$configure_input;;
23255: esac
23256:
23257: case $ac_tag in
23258: *:-:* | *:-) cat >"$ac_tmp/stdin" \
23259: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23260: esac
23261: ;;
23262: esac
23263:
23264: ac_dir=`$as_dirname -- "$ac_file" ||
23265: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23266: X"$ac_file" : 'X\(//\)[^/]' \| \
23267: X"$ac_file" : 'X\(//\)$' \| \
23268: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23269: $as_echo X"$ac_file" |
23270: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23271: s//\1/
23272: q
23273: }
23274: /^X\(\/\/\)[^/].*/{
23275: s//\1/
23276: q
23277: }
23278: /^X\(\/\/\)$/{
23279: s//\1/
23280: q
23281: }
23282: /^X\(\/\).*/{
23283: s//\1/
23284: q
23285: }
23286: s/.*/./; q'`
23287: as_dir="$ac_dir"; as_fn_mkdir_p
23288: ac_builddir=.
23289:
23290: case "$ac_dir" in
23291: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23292: *)
23293: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23294: # A ".." for each directory in $ac_dir_suffix.
23295: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23296: case $ac_top_builddir_sub in
23297: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23298: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23299: esac ;;
23300: esac
23301: ac_abs_top_builddir=$ac_pwd
23302: ac_abs_builddir=$ac_pwd$ac_dir_suffix
23303: # for backward compatibility:
23304: ac_top_builddir=$ac_top_build_prefix
23305:
23306: case $srcdir in
23307: .) # We are building in place.
23308: ac_srcdir=.
23309: ac_top_srcdir=$ac_top_builddir_sub
23310: ac_abs_top_srcdir=$ac_pwd ;;
23311: [\\/]* | ?:[\\/]* ) # Absolute name.
23312: ac_srcdir=$srcdir$ac_dir_suffix;
23313: ac_top_srcdir=$srcdir
23314: ac_abs_top_srcdir=$srcdir ;;
23315: *) # Relative name.
23316: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23317: ac_top_srcdir=$ac_top_build_prefix$srcdir
23318: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23319: esac
23320: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23321:
23322:
23323: case $ac_mode in
23324: :F)
23325: #
23326: # CONFIG_FILE
23327: #
23328:
23329: _ACEOF
23330:
23331: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23332: # If the template does not know about datarootdir, expand it.
23333: # FIXME: This hack should be removed a few years after 2.60.
23334: ac_datarootdir_hack=; ac_datarootdir_seen=
23335: ac_sed_dataroot='
23336: /datarootdir/ {
23337: p
23338: q
23339: }
23340: /@datadir@/p
23341: /@docdir@/p
23342: /@infodir@/p
23343: /@localedir@/p
23344: /@mandir@/p'
23345: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23346: *datarootdir*) ac_datarootdir_seen=yes;;
23347: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23348: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23349: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23350: _ACEOF
23351: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23352: ac_datarootdir_hack='
23353: s&@datadir@&$datadir&g
23354: s&@docdir@&$docdir&g
23355: s&@infodir@&$infodir&g
23356: s&@localedir@&$localedir&g
23357: s&@mandir@&$mandir&g
23358: s&\\\${datarootdir}&$datarootdir&g' ;;
23359: esac
23360: _ACEOF
23361:
23362: # Neutralize VPATH when `$srcdir' = `.'.
23363: # Shell code in configure.ac might set extrasub.
23364: # FIXME: do we really want to maintain this feature?
23365: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23366: ac_sed_extra="$ac_vpsub
23367: $extrasub
23368: _ACEOF
23369: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23370: :t
23371: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23372: s|@configure_input@|$ac_sed_conf_input|;t t
23373: s&@top_builddir@&$ac_top_builddir_sub&;t t
23374: s&@top_build_prefix@&$ac_top_build_prefix&;t t
23375: s&@srcdir@&$ac_srcdir&;t t
23376: s&@abs_srcdir@&$ac_abs_srcdir&;t t
23377: s&@top_srcdir@&$ac_top_srcdir&;t t
23378: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23379: s&@builddir@&$ac_builddir&;t t
23380: s&@abs_builddir@&$ac_abs_builddir&;t t
23381: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23382: $ac_datarootdir_hack
23383: "
23384: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23385: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23386:
23387: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23388: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23389: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23390: "$ac_tmp/out"`; test -z "$ac_out"; } &&
23391: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23392: which seems to be undefined. Please make sure it is defined" >&5
23393: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23394: which seems to be undefined. Please make sure it is defined" >&2;}
23395:
23396: rm -f "$ac_tmp/stdin"
23397: case $ac_file in
23398: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23399: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23400: esac \
23401: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23402: ;;
23403: :H)
23404: #
23405: # CONFIG_HEADER
23406: #
23407: if test x"$ac_file" != x-; then
23408: {
23409: $as_echo "/* $configure_input */" \
23410: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23411: } >"$ac_tmp/config.h" \
23412: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23413: if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23414: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23415: $as_echo "$as_me: $ac_file is unchanged" >&6;}
23416: else
23417: rm -f "$ac_file"
23418: mv "$ac_tmp/config.h" "$ac_file" \
23419: || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23420: fi
23421: else
23422: $as_echo "/* $configure_input */" \
23423: && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23424: || as_fn_error $? "could not create -" "$LINENO" 5
23425: fi
23426: ;;
23427:
23428: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23429: $as_echo "$as_me: executing $ac_file commands" >&6;}
23430: ;;
23431: esac
23432:
23433:
23434: case $ac_file$ac_mode in
23435: "libtool":C)
23436:
23437: # See if we are running on zsh, and set the options which allow our
23438: # commands through without removal of \ escapes.
23439: if test -n "${ZSH_VERSION+set}" ; then
23440: setopt NO_GLOB_SUBST
23441: fi
23442:
23443: cfgfile="${ofile}T"
23444: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23445: $RM "$cfgfile"
23446:
23447: cat <<_LT_EOF >> "$cfgfile"
23448: #! $SHELL
23449:
23450: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23451: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23452: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23453: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23454: #
23455: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1.1.1.2 misho 23456: # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
23457: # Foundation, Inc.
1.1 misho 23458: # Written by Gordon Matzigkeit, 1996
23459: #
23460: # This file is part of GNU Libtool.
23461: #
23462: # GNU Libtool is free software; you can redistribute it and/or
23463: # modify it under the terms of the GNU General Public License as
23464: # published by the Free Software Foundation; either version 2 of
23465: # the License, or (at your option) any later version.
23466: #
23467: # As a special exception to the GNU General Public License,
23468: # if you distribute this file as part of a program or library that
23469: # is built using GNU Libtool, you may include this file under the
23470: # same distribution terms that you use for the rest of that program.
23471: #
23472: # GNU Libtool is distributed in the hope that it will be useful,
23473: # but WITHOUT ANY WARRANTY; without even the implied warranty of
23474: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23475: # GNU General Public License for more details.
23476: #
23477: # You should have received a copy of the GNU General Public License
23478: # along with GNU Libtool; see the file COPYING. If not, a copy
23479: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
23480: # obtained by writing to the Free Software Foundation, Inc.,
23481: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23482:
23483:
23484: # The names of the tagged configurations supported by this script.
23485: available_tags=""
23486:
23487: # ### BEGIN LIBTOOL CONFIG
23488:
23489: # Which release of libtool.m4 was used?
23490: macro_version=$macro_version
23491: macro_revision=$macro_revision
23492:
23493: # Whether or not to build shared libraries.
23494: build_libtool_libs=$enable_shared
23495:
23496: # Whether or not to build static libraries.
23497: build_old_libs=$enable_static
23498:
23499: # What type of objects to build.
23500: pic_mode=$pic_mode
23501:
23502: # Whether or not to optimize for fast installation.
23503: fast_install=$enable_fast_install
23504:
23505: # Shell to use when invoking shell scripts.
23506: SHELL=$lt_SHELL
23507:
23508: # An echo program that protects backslashes.
23509: ECHO=$lt_ECHO
23510:
1.1.1.2 misho 23511: # The PATH separator for the build system.
23512: PATH_SEPARATOR=$lt_PATH_SEPARATOR
23513:
1.1 misho 23514: # The host system.
23515: host_alias=$host_alias
23516: host=$host
23517: host_os=$host_os
23518:
23519: # The build system.
23520: build_alias=$build_alias
23521: build=$build
23522: build_os=$build_os
23523:
23524: # A sed program that does not truncate output.
23525: SED=$lt_SED
23526:
23527: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23528: Xsed="\$SED -e 1s/^X//"
23529:
23530: # A grep program that handles long lines.
23531: GREP=$lt_GREP
23532:
23533: # An ERE matcher.
23534: EGREP=$lt_EGREP
23535:
23536: # A literal string matcher.
23537: FGREP=$lt_FGREP
23538:
23539: # A BSD- or MS-compatible name lister.
23540: NM=$lt_NM
23541:
23542: # Whether we need soft or hard links.
23543: LN_S=$lt_LN_S
23544:
23545: # What is the maximum length of a command?
23546: max_cmd_len=$max_cmd_len
23547:
23548: # Object file suffix (normally "o").
23549: objext=$ac_objext
23550:
23551: # Executable file suffix (normally "").
23552: exeext=$exeext
23553:
23554: # whether the shell understands "unset".
23555: lt_unset=$lt_unset
23556:
23557: # turn spaces into newlines.
23558: SP2NL=$lt_lt_SP2NL
23559:
23560: # turn newlines into spaces.
23561: NL2SP=$lt_lt_NL2SP
23562:
23563: # convert \$build file names to \$host format.
23564: to_host_file_cmd=$lt_cv_to_host_file_cmd
23565:
23566: # convert \$build files to toolchain format.
23567: to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23568:
23569: # An object symbol dumper.
23570: OBJDUMP=$lt_OBJDUMP
23571:
23572: # Method to check whether dependent libraries are shared objects.
23573: deplibs_check_method=$lt_deplibs_check_method
23574:
23575: # Command to use when deplibs_check_method = "file_magic".
23576: file_magic_cmd=$lt_file_magic_cmd
23577:
23578: # How to find potential files when deplibs_check_method = "file_magic".
23579: file_magic_glob=$lt_file_magic_glob
23580:
23581: # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23582: want_nocaseglob=$lt_want_nocaseglob
23583:
23584: # DLL creation program.
23585: DLLTOOL=$lt_DLLTOOL
23586:
23587: # Command to associate shared and link libraries.
23588: sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23589:
23590: # The archiver.
23591: AR=$lt_AR
23592:
23593: # Flags to create an archive.
23594: AR_FLAGS=$lt_AR_FLAGS
23595:
23596: # How to feed a file listing to the archiver.
23597: archiver_list_spec=$lt_archiver_list_spec
23598:
23599: # A symbol stripping program.
23600: STRIP=$lt_STRIP
23601:
23602: # Commands used to install an old-style archive.
23603: RANLIB=$lt_RANLIB
23604: old_postinstall_cmds=$lt_old_postinstall_cmds
23605: old_postuninstall_cmds=$lt_old_postuninstall_cmds
23606:
23607: # Whether to use a lock for old archive extraction.
23608: lock_old_archive_extraction=$lock_old_archive_extraction
23609:
23610: # A C compiler.
23611: LTCC=$lt_CC
23612:
23613: # LTCC compiler flags.
23614: LTCFLAGS=$lt_CFLAGS
23615:
23616: # Take the output of nm and produce a listing of raw symbols and C names.
23617: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23618:
23619: # Transform the output of nm in a proper C declaration.
23620: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23621:
23622: # Transform the output of nm in a C name address pair.
23623: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23624:
23625: # Transform the output of nm in a C name address pair when lib prefix is needed.
23626: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23627:
23628: # Specify filename containing input files for \$NM.
23629: nm_file_list_spec=$lt_nm_file_list_spec
23630:
23631: # The root where to search for dependent libraries,and in which our libraries should be installed.
23632: lt_sysroot=$lt_sysroot
23633:
23634: # The name of the directory that contains temporary libtool files.
23635: objdir=$objdir
23636:
23637: # Used to examine libraries when file_magic_cmd begins with "file".
23638: MAGIC_CMD=$MAGIC_CMD
23639:
23640: # Must we lock files when doing compilation?
23641: need_locks=$lt_need_locks
23642:
23643: # Manifest tool.
23644: MANIFEST_TOOL=$lt_MANIFEST_TOOL
23645:
23646: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23647: DSYMUTIL=$lt_DSYMUTIL
23648:
23649: # Tool to change global to local symbols on Mac OS X.
23650: NMEDIT=$lt_NMEDIT
23651:
23652: # Tool to manipulate fat objects and archives on Mac OS X.
23653: LIPO=$lt_LIPO
23654:
23655: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23656: OTOOL=$lt_OTOOL
23657:
23658: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23659: OTOOL64=$lt_OTOOL64
23660:
23661: # Old archive suffix (normally "a").
23662: libext=$libext
23663:
23664: # Shared library suffix (normally ".so").
23665: shrext_cmds=$lt_shrext_cmds
23666:
23667: # The commands to extract the exported symbol list from a shared archive.
23668: extract_expsyms_cmds=$lt_extract_expsyms_cmds
23669:
23670: # Variables whose values should be saved in libtool wrapper scripts and
23671: # restored at link time.
23672: variables_saved_for_relink=$lt_variables_saved_for_relink
23673:
23674: # Do we need the "lib" prefix for modules?
23675: need_lib_prefix=$need_lib_prefix
23676:
23677: # Do we need a version for libraries?
23678: need_version=$need_version
23679:
23680: # Library versioning type.
23681: version_type=$version_type
23682:
23683: # Shared library runtime path variable.
23684: runpath_var=$runpath_var
23685:
23686: # Shared library path variable.
23687: shlibpath_var=$shlibpath_var
23688:
23689: # Is shlibpath searched before the hard-coded library search path?
23690: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23691:
23692: # Format of library name prefix.
23693: libname_spec=$lt_libname_spec
23694:
23695: # List of archive names. First name is the real one, the rest are links.
23696: # The last name is the one that the linker finds with -lNAME
23697: library_names_spec=$lt_library_names_spec
23698:
23699: # The coded name of the library, if different from the real name.
23700: soname_spec=$lt_soname_spec
23701:
23702: # Permission mode override for installation of shared libraries.
23703: install_override_mode=$lt_install_override_mode
23704:
23705: # Command to use after installation of a shared archive.
23706: postinstall_cmds=$lt_postinstall_cmds
23707:
23708: # Command to use after uninstallation of a shared archive.
23709: postuninstall_cmds=$lt_postuninstall_cmds
23710:
23711: # Commands used to finish a libtool library installation in a directory.
23712: finish_cmds=$lt_finish_cmds
23713:
23714: # As "finish_cmds", except a single script fragment to be evaled but
23715: # not shown.
23716: finish_eval=$lt_finish_eval
23717:
23718: # Whether we should hardcode library paths into libraries.
23719: hardcode_into_libs=$hardcode_into_libs
23720:
23721: # Compile-time system search path for libraries.
23722: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23723:
23724: # Run-time system search path for libraries.
23725: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23726:
23727: # Whether dlopen is supported.
23728: dlopen_support=$enable_dlopen
23729:
23730: # Whether dlopen of programs is supported.
23731: dlopen_self=$enable_dlopen_self
23732:
23733: # Whether dlopen of statically linked programs is supported.
23734: dlopen_self_static=$enable_dlopen_self_static
23735:
23736: # Commands to strip libraries.
23737: old_striplib=$lt_old_striplib
23738: striplib=$lt_striplib
23739:
23740:
23741: # The linker used to build libraries.
23742: LD=$lt_LD
23743:
23744: # How to create reloadable object files.
23745: reload_flag=$lt_reload_flag
23746: reload_cmds=$lt_reload_cmds
23747:
23748: # Commands used to build an old-style archive.
23749: old_archive_cmds=$lt_old_archive_cmds
23750:
23751: # A language specific compiler.
23752: CC=$lt_compiler
23753:
23754: # Is the compiler the GNU compiler?
23755: with_gcc=$GCC
23756:
23757: # Compiler flag to turn off builtin functions.
23758: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23759:
23760: # Additional compiler flags for building library objects.
23761: pic_flag=$lt_lt_prog_compiler_pic
23762:
23763: # How to pass a linker flag through the compiler.
23764: wl=$lt_lt_prog_compiler_wl
23765:
23766: # Compiler flag to prevent dynamic linking.
23767: link_static_flag=$lt_lt_prog_compiler_static
23768:
23769: # Does compiler simultaneously support -c and -o options?
23770: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23771:
23772: # Whether or not to add -lc for building shared libraries.
23773: build_libtool_need_lc=$archive_cmds_need_lc
23774:
23775: # Whether or not to disallow shared libs when runtime libs are static.
23776: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23777:
23778: # Compiler flag to allow reflexive dlopens.
23779: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23780:
23781: # Compiler flag to generate shared objects directly from archives.
23782: whole_archive_flag_spec=$lt_whole_archive_flag_spec
23783:
23784: # Whether the compiler copes with passing no objects directly.
23785: compiler_needs_object=$lt_compiler_needs_object
23786:
23787: # Create an old-style archive from a shared archive.
23788: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23789:
23790: # Create a temporary old-style archive to link instead of a shared archive.
23791: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23792:
23793: # Commands used to build a shared archive.
23794: archive_cmds=$lt_archive_cmds
23795: archive_expsym_cmds=$lt_archive_expsym_cmds
23796:
23797: # Commands used to build a loadable module if different from building
23798: # a shared archive.
23799: module_cmds=$lt_module_cmds
23800: module_expsym_cmds=$lt_module_expsym_cmds
23801:
23802: # Whether we are building with GNU ld or not.
23803: with_gnu_ld=$lt_with_gnu_ld
23804:
23805: # Flag that allows shared libraries with undefined symbols to be built.
23806: allow_undefined_flag=$lt_allow_undefined_flag
23807:
23808: # Flag that enforces no undefined symbols.
23809: no_undefined_flag=$lt_no_undefined_flag
23810:
23811: # Flag to hardcode \$libdir into a binary during linking.
23812: # This must work even if \$libdir does not exist
23813: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23814:
23815: # Whether we need a single "-rpath" flag with a separated argument.
23816: hardcode_libdir_separator=$lt_hardcode_libdir_separator
23817:
23818: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23819: # DIR into the resulting binary.
23820: hardcode_direct=$hardcode_direct
23821:
23822: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23823: # DIR into the resulting binary and the resulting library dependency is
23824: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23825: # library is relocated.
23826: hardcode_direct_absolute=$hardcode_direct_absolute
23827:
23828: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23829: # into the resulting binary.
23830: hardcode_minus_L=$hardcode_minus_L
23831:
23832: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23833: # into the resulting binary.
23834: hardcode_shlibpath_var=$hardcode_shlibpath_var
23835:
23836: # Set to "yes" if building a shared library automatically hardcodes DIR
23837: # into the library and all subsequent libraries and executables linked
23838: # against it.
23839: hardcode_automatic=$hardcode_automatic
23840:
23841: # Set to yes if linker adds runtime paths of dependent libraries
23842: # to runtime path list.
23843: inherit_rpath=$inherit_rpath
23844:
23845: # Whether libtool must link a program against all its dependency libraries.
23846: link_all_deplibs=$link_all_deplibs
23847:
23848: # Set to "yes" if exported symbols are required.
23849: always_export_symbols=$always_export_symbols
23850:
23851: # The commands to list exported symbols.
23852: export_symbols_cmds=$lt_export_symbols_cmds
23853:
23854: # Symbols that should not be listed in the preloaded symbols.
23855: exclude_expsyms=$lt_exclude_expsyms
23856:
23857: # Symbols that must always be exported.
23858: include_expsyms=$lt_include_expsyms
23859:
23860: # Commands necessary for linking programs (against libraries) with templates.
23861: prelink_cmds=$lt_prelink_cmds
23862:
23863: # Commands necessary for finishing linking programs.
23864: postlink_cmds=$lt_postlink_cmds
23865:
23866: # Specify filename containing input files.
23867: file_list_spec=$lt_file_list_spec
23868:
23869: # How to hardcode a shared library path into an executable.
23870: hardcode_action=$hardcode_action
23871:
23872: # ### END LIBTOOL CONFIG
23873:
23874: _LT_EOF
23875:
23876: case $host_os in
23877: aix3*)
23878: cat <<\_LT_EOF >> "$cfgfile"
23879: # AIX sometimes has problems with the GCC collect2 program. For some
23880: # reason, if we set the COLLECT_NAMES environment variable, the problems
23881: # vanish in a puff of smoke.
23882: if test "X${COLLECT_NAMES+set}" != Xset; then
23883: COLLECT_NAMES=
23884: export COLLECT_NAMES
23885: fi
23886: _LT_EOF
23887: ;;
23888: esac
23889:
23890:
23891: ltmain="$ac_aux_dir/ltmain.sh"
23892:
23893:
23894: # We use sed instead of cat because bash on DJGPP gets confused if
23895: # if finds mixed CR/LF and LF-only lines. Since sed operates in
23896: # text mode, it properly converts lines to CR/LF. This bash problem
23897: # is reportedly fixed, but why not run on old versions too?
23898: sed '$q' "$ltmain" >> "$cfgfile" \
23899: || (rm -f "$cfgfile"; exit 1)
23900:
23901: if test x"$xsi_shell" = xyes; then
23902: sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
23903: func_dirname ()\
23904: {\
23905: \ case ${1} in\
23906: \ */*) func_dirname_result="${1%/*}${2}" ;;\
23907: \ * ) func_dirname_result="${3}" ;;\
23908: \ esac\
23909: } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
23910: && mv -f "$cfgfile.tmp" "$cfgfile" \
23911: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23912: test 0 -eq $? || _lt_function_replace_fail=:
23913:
23914:
23915: sed -e '/^func_basename ()$/,/^} # func_basename /c\
23916: func_basename ()\
23917: {\
23918: \ func_basename_result="${1##*/}"\
23919: } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
23920: && mv -f "$cfgfile.tmp" "$cfgfile" \
23921: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23922: test 0 -eq $? || _lt_function_replace_fail=:
23923:
23924:
23925: sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
23926: func_dirname_and_basename ()\
23927: {\
23928: \ case ${1} in\
23929: \ */*) func_dirname_result="${1%/*}${2}" ;;\
23930: \ * ) func_dirname_result="${3}" ;;\
23931: \ esac\
23932: \ func_basename_result="${1##*/}"\
23933: } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
23934: && mv -f "$cfgfile.tmp" "$cfgfile" \
23935: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23936: test 0 -eq $? || _lt_function_replace_fail=:
23937:
23938:
23939: sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
23940: func_stripname ()\
23941: {\
23942: \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
23943: \ # positional parameters, so assign one to ordinary parameter first.\
23944: \ func_stripname_result=${3}\
23945: \ func_stripname_result=${func_stripname_result#"${1}"}\
23946: \ func_stripname_result=${func_stripname_result%"${2}"}\
23947: } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
23948: && mv -f "$cfgfile.tmp" "$cfgfile" \
23949: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23950: test 0 -eq $? || _lt_function_replace_fail=:
23951:
23952:
23953: sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
23954: func_split_long_opt ()\
23955: {\
23956: \ func_split_long_opt_name=${1%%=*}\
23957: \ func_split_long_opt_arg=${1#*=}\
23958: } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
23959: && mv -f "$cfgfile.tmp" "$cfgfile" \
23960: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23961: test 0 -eq $? || _lt_function_replace_fail=:
23962:
23963:
23964: sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
23965: func_split_short_opt ()\
23966: {\
23967: \ func_split_short_opt_arg=${1#??}\
23968: \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
23969: } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
23970: && mv -f "$cfgfile.tmp" "$cfgfile" \
23971: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23972: test 0 -eq $? || _lt_function_replace_fail=:
23973:
23974:
23975: sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
23976: func_lo2o ()\
23977: {\
23978: \ case ${1} in\
23979: \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
23980: \ *) func_lo2o_result=${1} ;;\
23981: \ esac\
23982: } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
23983: && mv -f "$cfgfile.tmp" "$cfgfile" \
23984: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23985: test 0 -eq $? || _lt_function_replace_fail=:
23986:
23987:
23988: sed -e '/^func_xform ()$/,/^} # func_xform /c\
23989: func_xform ()\
23990: {\
23991: func_xform_result=${1%.*}.lo\
23992: } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
23993: && mv -f "$cfgfile.tmp" "$cfgfile" \
23994: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
23995: test 0 -eq $? || _lt_function_replace_fail=:
23996:
23997:
23998: sed -e '/^func_arith ()$/,/^} # func_arith /c\
23999: func_arith ()\
24000: {\
24001: func_arith_result=$(( $* ))\
24002: } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24003: && mv -f "$cfgfile.tmp" "$cfgfile" \
24004: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24005: test 0 -eq $? || _lt_function_replace_fail=:
24006:
24007:
24008: sed -e '/^func_len ()$/,/^} # func_len /c\
24009: func_len ()\
24010: {\
24011: func_len_result=${#1}\
24012: } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24013: && mv -f "$cfgfile.tmp" "$cfgfile" \
24014: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24015: test 0 -eq $? || _lt_function_replace_fail=:
24016:
24017: fi
24018:
24019: if test x"$lt_shell_append" = xyes; then
24020: sed -e '/^func_append ()$/,/^} # func_append /c\
24021: func_append ()\
24022: {\
24023: eval "${1}+=\\${2}"\
24024: } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24025: && mv -f "$cfgfile.tmp" "$cfgfile" \
24026: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24027: test 0 -eq $? || _lt_function_replace_fail=:
24028:
24029:
24030: sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24031: func_append_quoted ()\
24032: {\
24033: \ func_quote_for_eval "${2}"\
24034: \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24035: } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24036: && mv -f "$cfgfile.tmp" "$cfgfile" \
24037: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24038: test 0 -eq $? || _lt_function_replace_fail=:
24039:
24040:
24041: # Save a `func_append' function call where possible by direct use of '+='
24042: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24043: && mv -f "$cfgfile.tmp" "$cfgfile" \
24044: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24045: test 0 -eq $? || _lt_function_replace_fail=:
24046: else
24047: # Save a `func_append' function call even when '+=' is not available
24048: sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24049: && mv -f "$cfgfile.tmp" "$cfgfile" \
24050: || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24051: test 0 -eq $? || _lt_function_replace_fail=:
24052: fi
24053:
24054: if test x"$_lt_function_replace_fail" = x":"; then
24055: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24056: $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24057: fi
24058:
24059:
24060: mv -f "$cfgfile" "$ofile" ||
24061: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24062: chmod +x "$ofile"
24063:
24064: ;;
24065:
24066: esac
24067: done # for ac_tag
24068:
24069:
24070: as_fn_exit 0
24071: _ACEOF
24072: ac_clean_files=$ac_clean_files_save
24073:
24074: test $ac_write_fail = 0 ||
24075: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24076:
24077:
24078: # configure is writing to config.log, and then calls config.status.
24079: # config.status does its own redirection, appending to config.log.
24080: # Unfortunately, on DOS this fails, as config.log is still kept open
24081: # by configure, so config.status won't be able to write to it; its
24082: # output is simply discarded. So we exec the FD to /dev/null,
24083: # effectively closing config.log, so it can be properly (re)opened and
24084: # appended to by config.status. When coming back to configure, we
24085: # need to make the FD available again.
24086: if test "$no_create" != yes; then
24087: ac_cs_success=:
24088: ac_config_status_args=
24089: test "$silent" = yes &&
24090: ac_config_status_args="$ac_config_status_args --quiet"
24091: exec 5>/dev/null
24092: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24093: exec 5>>config.log
24094: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24095: # would make configure fail if this is the last instruction.
24096: $ac_cs_success || as_fn_exit 1
24097: fi
24098: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24099: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24100: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24101: fi
24102:
24103:
24104: if test "$with_pam" = "yes"; then
1.1.1.4 misho 24105: case $host_os in
24106: hpux*)
1.1.1.2 misho 24107: if test -f /usr/lib/security/libpam_hpsec.so.1; then
24108: { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5
24109: $as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;}
24110: { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5
24111: $as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;}
24112: fi
24113: ;;
1.1.1.4 misho 24114: linux*)
1.1 misho 24115: { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24116: $as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24117: ;;
24118: esac
24119: fi
24120:
24121:
24122:
24123:
24124:
24125:
24126:
24127:
24128:
24129:
24130:
24131:
24132:
24133:
24134:
24135:
24136:
24137:
24138:
24139:
24140:
24141:
24142:
24143:
24144:
24145:
24146:
24147:
24148:
24149:
24150:
24151:
24152:
24153:
24154:
24155:
24156:
24157:
24158:
24159:
24160:
24161:
24162:
24163:
24164:
24165:
24166:
24167:
24168:
24169:
24170:
24171:
24172:
24173:
24174:
24175:
24176:
24177:
24178:
24179:
24180:
24181:
24182:
24183:
24184:
24185:
24186:
24187:
24188:
24189:
24190:
24191:
24192:
24193:
24194:
24195:
24196:
24197:
24198:
24199:
24200:
24201:
24202:
24203:
24204:
24205:
24206:
24207:
24208:
24209:
24210:
24211:
24212:
1.1.1.2 misho 24213:
24214:
1.1.1.3 misho 24215:
24216:
24217:
1.1.1.4 misho 24218:
24219:
24220:
24221:
24222:
1.1.1.5 ! misho 24223:
! 24224:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>