1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for sudo 1.7.10p7. 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 20DUALCASE=1; export DUALCASE # for MKS sh 21if 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 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_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. 47if 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 --' 51elif (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' 54else 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' 74fi 75 76# The user is always right. 77if 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 } 83fi 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.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 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 104IFS=$as_save_IFS 105 106 ;; 107esac 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. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 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. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if 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 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test 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 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 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 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 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 220fi; } 221IFS=$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+"$@"} 240fi 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 256fi 257fi 258fi 259SHELL=${CONFIG_SHELL-/bin/sh} 260export SHELL 261# Unset more variables known to interfere with behavior of common tools. 262CLICOLOR_FORCE= GREP_OPTIONS= 263unset CLICOLOR_FORCE GREP_OPTIONS 264 265## --------------------- ## 266## M4sh Shell Functions. ## 267## --------------------- ## 268# as_fn_unset VAR 269# --------------- 270# Portably unset VAR. 271as_fn_unset () 272{ 273 { eval $1=; unset $1;} 274} 275as_unset=as_fn_unset 276 277# as_fn_set_status STATUS 278# ----------------------- 279# Set $? to STATUS, without forking. 280as_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. 288as_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. 298as_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. 348if (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 }' 353else 354 as_fn_append () 355 { 356 eval $1=\$$1\$2 357 } 358fi # 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. 365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 366 eval 'as_fn_arith () 367 { 368 as_val=$(( $* )) 369 }' 370else 371 as_fn_arith () 372 { 373 as_val=`expr "$@" || test $? -eq 1` 374 } 375fi # 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. 383as_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 394if expr a : '\(a\)' >/dev/null 2>&1 && 395 test "X`expr 00001 : '.*\(...\)'`" = X001; then 396 as_expr=expr 397else 398 as_expr=false 399fi 400 401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 402 as_basename=basename 403else 404 as_basename=false 405fi 406 407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 408 as_dirname=dirname 409else 410 as_dirname=false 411fi 412 413as_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. 433as_cr_letters='abcdefghijklmnopqrstuvwxyz' 434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 435as_cr_Letters=$as_cr_letters$as_cr_LETTERS 436as_cr_digits='0123456789' 437as_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 471ECHO_C= ECHO_N= ECHO_T= 472case `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';; 482esac 483 484rm -f conf$$ conf$$.exe conf$$.file 485if test -d conf$$.dir; then 486 rm -f conf$$.dir/conf$$.file 487else 488 rm -f conf$$.dir 489 mkdir conf$$.dir 2>/dev/null 490fi 491if (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 505else 506 as_ln_s='cp -p' 507fi 508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 509rmdir conf$$.dir 2>/dev/null 510 511if mkdir -p . 2>/dev/null; then 512 as_mkdir_p='mkdir -p "$as_dir"' 513else 514 test -d ./-p && rmdir ./-p 515 as_mkdir_p=false 516fi 517 518if test -x / >/dev/null 2>&1; then 519 as_test_x='test -x' 520else 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 ' 538fi 539as_executable_p=$as_test_x 540 541# Sed expression to map a string onto a valid CPP name. 542as_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. 545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 546 547SHELL=${CONFIG_SHELL-/bin/sh} 548 549 550test -n "$DJDIR" || exec 7<&0 </dev/null 551exec 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. 556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 557 558# 559# Initializations. 560# 561ac_default_prefix=/usr/local 562ac_clean_files= 563ac_config_libobj_dir=. 564LIBOBJS= 565cross_compiling=no 566subdirs= 567MFLAGS= 568MAKEFLAGS= 569 570# Identity of this package. 571PACKAGE_NAME='sudo' 572PACKAGE_TARNAME='sudo' 573PACKAGE_VERSION='1.7.10p7' 574PACKAGE_STRING='sudo 1.7.10p7' 575PACKAGE_BUGREPORT='http://www.sudo.ws/bugs/' 576PACKAGE_URL='' 577 578# Factoring default headers for most tests. 579ac_includes_default="\ 580#include <stdio.h> 581#ifdef HAVE_SYS_TYPES_H 582# include <sys/types.h> 583#endif 584#ifdef HAVE_SYS_STAT_H 585# include <sys/stat.h> 586#endif 587#ifdef STDC_HEADERS 588# include <stdlib.h> 589# include <stddef.h> 590#else 591# ifdef HAVE_STDLIB_H 592# include <stdlib.h> 593# endif 594#endif 595#ifdef HAVE_STRING_H 596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 597# include <memory.h> 598# endif 599# include <string.h> 600#endif 601#ifdef HAVE_STRINGS_H 602# include <strings.h> 603#endif 604#ifdef HAVE_INTTYPES_H 605# include <inttypes.h> 606#endif 607#ifdef HAVE_STDINT_H 608# include <stdint.h> 609#endif 610#ifdef HAVE_UNISTD_H 611# include <unistd.h> 612#endif" 613 614ac_c_werror_flag= 615ac_subst_vars='LTLIBOBJS 616KRB5CONFIG 617LIBOBJS 618FLEX 619YFLAGS 620YACC 621NROFFPROG 622MANDOCPROG 623TRPROG 624UNAMEPROG 625OTOOL64 626OTOOL 627LIPO 628NMEDIT 629DSYMUTIL 630MANIFEST_TOOL 631AWK 632STRIP 633ac_ct_AR 634DLLTOOL 635OBJDUMP 636LN_S 637NM 638ac_ct_DUMPBIN 639DUMPBIN 640LD 641FGREP 642EGREP 643GREP 644SED 645host_os 646host_vendor 647host_cpu 648host 649build_os 650build_vendor 651build_cpu 652build 653RANLIB 654AR 655CPP 656OBJEXT 657EXEEXT 658ac_ct_CC 659CC 660editor 661secure_path 662netsvc_conf 663nsswitch_conf 664ldap_secret 665ldap_conf 666path_info 667root_sudo 668insults 669tty_tickets 670passwd_tries 671env_reset 672env_editor 673runas_default 674fqdn 675badpass_message 676mailsub 677mailto 678mail_no_perms 679mail_no_host 680mail_no_user 681ignore_dot 682loglen 683badpri 684goodpri 685logfac 686lecture 687long_otp_prompt 688passprompt 689umask_override 690sudo_umask 691password_timeout 692timeout 693timedir 694iolog_dir 695SSP_CFLAGS 696SSP_LDFLAGS 697PIE_CFLAGS 698PIE_LDFLAGS 699CONFIGURE_ARGS 700ZLIB_DEP 701ZLIB 702LOGINCAP_USAGE 703REPLAY 704LDAP 705SELINUX_USAGE 706BSDAUTH_USAGE 707DONT_LEAK_PATH_INFO 708INSTALL_NOEXEC 709noexec_file 710NOEXECDIR 711NOEXECFILE 712mansrcdir 713mansectform 714mansectsu 715devdir 716SEMAN 717LCMAN 718BAMAN 719DEVEL 720SUDOERS_GID 721SUDOERS_UID 722SUDOERS_MODE 723SHLIB_MODE 724MANCOMPRESSEXT 725MANCOMPRESS 726MANDIRTYPE 727MANTYPE 728AUTH_OBJS 729OSDEFS 730GETGROUPS_LIB 731AFS_LIBS 732NET_LIBS 733SUDO_LIBS 734SUDO_OBJS 735SUDO_LDFLAGS 736COMMON_OBJS 737LDFLAGS 738CPPFLAGS 739PROGS 740CFLAGS 741LIBTOOL 742HAVE_BSM_AUDIT 743target_alias 744host_alias 745build_alias 746LIBS 747ECHO_T 748ECHO_N 749ECHO_C 750DEFS 751mandir 752localedir 753libdir 754psdir 755pdfdir 756dvidir 757htmldir 758infodir 759docdir 760oldincludedir 761includedir 762localstatedir 763sharedstatedir 764sysconfdir 765datadir 766datarootdir 767libexecdir 768sbindir 769bindir 770program_transform_name 771prefix 772exec_prefix 773PACKAGE_URL 774PACKAGE_BUGREPORT 775PACKAGE_STRING 776PACKAGE_VERSION 777PACKAGE_TARNAME 778PACKAGE_NAME 779PATH_SEPARATOR 780SHELL' 781ac_subst_files='' 782ac_user_opts=' 783enable_option_checking 784with_otp_only 785with_alertmail 786with_devel 787with_CC 788with_rpath 789with_blibpath 790with_bsm_audit 791with_linux_audit 792with_incpath 793with_libpath 794with_libraries 795with_efence 796with_csops 797with_passwd 798with_skey 799with_opie 800with_long_otp_prompt 801with_SecurID 802with_fwtk 803with_kerb4 804with_kerb5 805with_aixauth 806with_pam 807with_AFS 808with_DCE 809with_logincap 810with_bsdauth 811with_project 812with_lecture 813with_logging 814with_logfac 815with_goodpri 816with_badpri 817with_logpath 818with_loglen 819with_ignore_dot 820with_mail_if_no_user 821with_mail_if_no_host 822with_mail_if_noperms 823with_mailto 824with_mailsubject 825with_passprompt 826with_badpass_message 827with_fqdn 828with_timedir 829with_iologdir 830with_sendmail 831with_sudoers_mode 832with_sudoers_uid 833with_sudoers_gid 834with_umask 835with_umask_override 836with_runas_default 837with_exempt 838with_editor 839with_env_editor 840with_passwd_tries 841with_timeout 842with_password_timeout 843with_tty_tickets 844with_insults 845with_all_insults 846with_classic_insults 847with_csops_insults 848with_hal_insults 849with_goons_insults 850with_nsswitch 851with_ldap 852with_ldap_conf_file 853with_ldap_secret_file 854with_pc_insults 855with_secure_path 856with_interfaces 857with_stow 858with_askpass 859with_libvas 860with_libvas_rpath 861with_man 862with_mdoc 863enable_authentication 864enable_root_mailer 865enable_setreuid 866enable_setresuid 867enable_shadow 868enable_root_sudo 869enable_log_host 870enable_noargs_shell 871enable_shell_sets_home 872enable_path_info 873enable_env_debug 874enable_env_reset 875enable_warnings 876enable_werror 877enable_hardening 878enable_pie 879enable_admin_flag 880with_selinux 881enable_gss_krb5_ccache_name 882enable_shared 883enable_static 884with_pic 885enable_fast_install 886with_gnu_ld 887with_sysroot 888enable_libtool_lock 889with_noexec 890with_netsvc 891enable_sia 892enable_largefile 893with_pam_login 894enable_pam_session 895enable_zlib 896' 897 ac_precious_vars='build_alias 898host_alias 899target_alias 900CC 901CFLAGS 902LDFLAGS 903LIBS 904CPPFLAGS 905CPP 906YACC 907YFLAGS' 908 909 910# Initialize some variables set by options. 911ac_init_help= 912ac_init_version=false 913ac_unrecognized_opts= 914ac_unrecognized_sep= 915# The variables have the same names as the options, with 916# dashes changed to underlines. 917cache_file=/dev/null 918exec_prefix=NONE 919no_create= 920no_recursion= 921prefix=NONE 922program_prefix=NONE 923program_suffix=NONE 924program_transform_name=s,x,x, 925silent= 926site= 927srcdir= 928verbose= 929x_includes=NONE 930x_libraries=NONE 931 932# Installation directory options. 933# These are left unexpanded so users can "make install exec_prefix=/foo" 934# and all the variables that are supposed to be based on exec_prefix 935# by default will actually change. 936# Use braces instead of parens because sh, perl, etc. also accept them. 937# (The list follows the same order as the GNU Coding Standards.) 938bindir='${exec_prefix}/bin' 939sbindir='${exec_prefix}/sbin' 940libexecdir='${exec_prefix}/libexec' 941datarootdir='${prefix}/share' 942datadir='${datarootdir}' 943sysconfdir='${prefix}/etc' 944sharedstatedir='${prefix}/com' 945localstatedir='${prefix}/var' 946includedir='${prefix}/include' 947oldincludedir='/usr/include' 948docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 949infodir='${datarootdir}/info' 950htmldir='${docdir}' 951dvidir='${docdir}' 952pdfdir='${docdir}' 953psdir='${docdir}' 954libdir='${exec_prefix}/lib' 955localedir='${datarootdir}/locale' 956mandir='${datarootdir}/man' 957 958ac_prev= 959ac_dashdash= 960for ac_option 961do 962 # If the previous option needs an argument, assign it. 963 if test -n "$ac_prev"; then 964 eval $ac_prev=\$ac_option 965 ac_prev= 966 continue 967 fi 968 969 case $ac_option in 970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 971 *=) ac_optarg= ;; 972 *) ac_optarg=yes ;; 973 esac 974 975 # Accept the important Cygnus configure options, so we can diagnose typos. 976 977 case $ac_dashdash$ac_option in 978 --) 979 ac_dashdash=yes ;; 980 981 -bindir | --bindir | --bindi | --bind | --bin | --bi) 982 ac_prev=bindir ;; 983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 984 bindir=$ac_optarg ;; 985 986 -build | --build | --buil | --bui | --bu) 987 ac_prev=build_alias ;; 988 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 989 build_alias=$ac_optarg ;; 990 991 -cache-file | --cache-file | --cache-fil | --cache-fi \ 992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 993 ac_prev=cache_file ;; 994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 996 cache_file=$ac_optarg ;; 997 998 --config-cache | -C) 999 cache_file=config.cache ;; 1000 1001 -datadir | --datadir | --datadi | --datad) 1002 ac_prev=datadir ;; 1003 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1004 datadir=$ac_optarg ;; 1005 1006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1007 | --dataroo | --dataro | --datar) 1008 ac_prev=datarootdir ;; 1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1011 datarootdir=$ac_optarg ;; 1012 1013 -disable-* | --disable-*) 1014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1015 # Reject names that are not valid shell variable names. 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1017 as_fn_error $? "invalid feature name: $ac_useropt" 1018 ac_useropt_orig=$ac_useropt 1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1020 case $ac_user_opts in 1021 *" 1022"enable_$ac_useropt" 1023"*) ;; 1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1025 ac_unrecognized_sep=', ';; 1026 esac 1027 eval enable_$ac_useropt=no ;; 1028 1029 -docdir | --docdir | --docdi | --doc | --do) 1030 ac_prev=docdir ;; 1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1032 docdir=$ac_optarg ;; 1033 1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1035 ac_prev=dvidir ;; 1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1037 dvidir=$ac_optarg ;; 1038 1039 -enable-* | --enable-*) 1040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1041 # Reject names that are not valid shell variable names. 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1043 as_fn_error $? "invalid feature name: $ac_useropt" 1044 ac_useropt_orig=$ac_useropt 1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1046 case $ac_user_opts in 1047 *" 1048"enable_$ac_useropt" 1049"*) ;; 1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1051 ac_unrecognized_sep=', ';; 1052 esac 1053 eval enable_$ac_useropt=\$ac_optarg ;; 1054 1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1057 | --exec | --exe | --ex) 1058 ac_prev=exec_prefix ;; 1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1061 | --exec=* | --exe=* | --ex=*) 1062 exec_prefix=$ac_optarg ;; 1063 1064 -gas | --gas | --ga | --g) 1065 # Obsolete; use --with-gas. 1066 with_gas=yes ;; 1067 1068 -help | --help | --hel | --he | -h) 1069 ac_init_help=long ;; 1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1071 ac_init_help=recursive ;; 1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1073 ac_init_help=short ;; 1074 1075 -host | --host | --hos | --ho) 1076 ac_prev=host_alias ;; 1077 -host=* | --host=* | --hos=* | --ho=*) 1078 host_alias=$ac_optarg ;; 1079 1080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1081 ac_prev=htmldir ;; 1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1083 | --ht=*) 1084 htmldir=$ac_optarg ;; 1085 1086 -includedir | --includedir | --includedi | --included | --include \ 1087 | --includ | --inclu | --incl | --inc) 1088 ac_prev=includedir ;; 1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1090 | --includ=* | --inclu=* | --incl=* | --inc=*) 1091 includedir=$ac_optarg ;; 1092 1093 -infodir | --infodir | --infodi | --infod | --info | --inf) 1094 ac_prev=infodir ;; 1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1096 infodir=$ac_optarg ;; 1097 1098 -libdir | --libdir | --libdi | --libd) 1099 ac_prev=libdir ;; 1100 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1101 libdir=$ac_optarg ;; 1102 1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1104 | --libexe | --libex | --libe) 1105 ac_prev=libexecdir ;; 1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1107 | --libexe=* | --libex=* | --libe=*) 1108 libexecdir=$ac_optarg ;; 1109 1110 -localedir | --localedir | --localedi | --localed | --locale) 1111 ac_prev=localedir ;; 1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1113 localedir=$ac_optarg ;; 1114 1115 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1116 | --localstate | --localstat | --localsta | --localst | --locals) 1117 ac_prev=localstatedir ;; 1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1120 localstatedir=$ac_optarg ;; 1121 1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1123 ac_prev=mandir ;; 1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1125 mandir=$ac_optarg ;; 1126 1127 -nfp | --nfp | --nf) 1128 # Obsolete; use --without-fp. 1129 with_fp=no ;; 1130 1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1132 | --no-cr | --no-c | -n) 1133 no_create=yes ;; 1134 1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1137 no_recursion=yes ;; 1138 1139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1141 | --oldin | --oldi | --old | --ol | --o) 1142 ac_prev=oldincludedir ;; 1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1146 oldincludedir=$ac_optarg ;; 1147 1148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1149 ac_prev=prefix ;; 1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1151 prefix=$ac_optarg ;; 1152 1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1154 | --program-pre | --program-pr | --program-p) 1155 ac_prev=program_prefix ;; 1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1158 program_prefix=$ac_optarg ;; 1159 1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1161 | --program-suf | --program-su | --program-s) 1162 ac_prev=program_suffix ;; 1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1165 program_suffix=$ac_optarg ;; 1166 1167 -program-transform-name | --program-transform-name \ 1168 | --program-transform-nam | --program-transform-na \ 1169 | --program-transform-n | --program-transform- \ 1170 | --program-transform | --program-transfor \ 1171 | --program-transfo | --program-transf \ 1172 | --program-trans | --program-tran \ 1173 | --progr-tra | --program-tr | --program-t) 1174 ac_prev=program_transform_name ;; 1175 -program-transform-name=* | --program-transform-name=* \ 1176 | --program-transform-nam=* | --program-transform-na=* \ 1177 | --program-transform-n=* | --program-transform-=* \ 1178 | --program-transform=* | --program-transfor=* \ 1179 | --program-transfo=* | --program-transf=* \ 1180 | --program-trans=* | --program-tran=* \ 1181 | --progr-tra=* | --program-tr=* | --program-t=*) 1182 program_transform_name=$ac_optarg ;; 1183 1184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1185 ac_prev=pdfdir ;; 1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1187 pdfdir=$ac_optarg ;; 1188 1189 -psdir | --psdir | --psdi | --psd | --ps) 1190 ac_prev=psdir ;; 1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1192 psdir=$ac_optarg ;; 1193 1194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1195 | -silent | --silent | --silen | --sile | --sil) 1196 silent=yes ;; 1197 1198 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1199 ac_prev=sbindir ;; 1200 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1201 | --sbi=* | --sb=*) 1202 sbindir=$ac_optarg ;; 1203 1204 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1205 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1206 | --sharedst | --shareds | --shared | --share | --shar \ 1207 | --sha | --sh) 1208 ac_prev=sharedstatedir ;; 1209 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1210 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1211 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1212 | --sha=* | --sh=*) 1213 sharedstatedir=$ac_optarg ;; 1214 1215 -site | --site | --sit) 1216 ac_prev=site ;; 1217 -site=* | --site=* | --sit=*) 1218 site=$ac_optarg ;; 1219 1220 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1221 ac_prev=srcdir ;; 1222 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1223 srcdir=$ac_optarg ;; 1224 1225 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1226 | --syscon | --sysco | --sysc | --sys | --sy) 1227 ac_prev=sysconfdir ;; 1228 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1229 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1230 sysconfdir=$ac_optarg ;; 1231 1232 -target | --target | --targe | --targ | --tar | --ta | --t) 1233 ac_prev=target_alias ;; 1234 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1235 target_alias=$ac_optarg ;; 1236 1237 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1238 verbose=yes ;; 1239 1240 -version | --version | --versio | --versi | --vers | -V) 1241 ac_init_version=: ;; 1242 1243 -with-* | --with-*) 1244 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1245 # Reject names that are not valid shell variable names. 1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1247 as_fn_error $? "invalid package name: $ac_useropt" 1248 ac_useropt_orig=$ac_useropt 1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1250 case $ac_user_opts in 1251 *" 1252"with_$ac_useropt" 1253"*) ;; 1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1255 ac_unrecognized_sep=', ';; 1256 esac 1257 eval with_$ac_useropt=\$ac_optarg ;; 1258 1259 -without-* | --without-*) 1260 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1261 # Reject names that are not valid shell variable names. 1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1263 as_fn_error $? "invalid package name: $ac_useropt" 1264 ac_useropt_orig=$ac_useropt 1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1266 case $ac_user_opts in 1267 *" 1268"with_$ac_useropt" 1269"*) ;; 1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1271 ac_unrecognized_sep=', ';; 1272 esac 1273 eval with_$ac_useropt=no ;; 1274 1275 --x) 1276 # Obsolete; use --with-x. 1277 with_x=yes ;; 1278 1279 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1280 | --x-incl | --x-inc | --x-in | --x-i) 1281 ac_prev=x_includes ;; 1282 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1283 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1284 x_includes=$ac_optarg ;; 1285 1286 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1287 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1288 ac_prev=x_libraries ;; 1289 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1290 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1291 x_libraries=$ac_optarg ;; 1292 1293 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1294Try \`$0 --help' for more information" 1295 ;; 1296 1297 *=*) 1298 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1299 # Reject names that are not valid shell variable names. 1300 case $ac_envvar in #( 1301 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1302 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1303 esac 1304 eval $ac_envvar=\$ac_optarg 1305 export $ac_envvar ;; 1306 1307 *) 1308 # FIXME: should be removed in autoconf 3.0. 1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1313 ;; 1314 1315 esac 1316done 1317 1318if test -n "$ac_prev"; then 1319 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1320 as_fn_error $? "missing argument to $ac_option" 1321fi 1322 1323if test -n "$ac_unrecognized_opts"; then 1324 case $enable_option_checking in 1325 no) ;; 1326 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1328 esac 1329fi 1330 1331# Check all directory arguments for consistency. 1332for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1333 datadir sysconfdir sharedstatedir localstatedir includedir \ 1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1335 libdir localedir mandir 1336do 1337 eval ac_val=\$$ac_var 1338 # Remove trailing slashes. 1339 case $ac_val in 1340 */ ) 1341 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1342 eval $ac_var=\$ac_val;; 1343 esac 1344 # Be sure to have absolute directory names. 1345 case $ac_val in 1346 [\\/$]* | ?:[\\/]* ) continue;; 1347 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1348 esac 1349 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1350done 1351 1352# There might be people who depend on the old broken behavior: `$host' 1353# used to hold the argument of --host etc. 1354# FIXME: To remove some day. 1355build=$build_alias 1356host=$host_alias 1357target=$target_alias 1358 1359# FIXME: To remove some day. 1360if test "x$host_alias" != x; then 1361 if test "x$build_alias" = x; then 1362 cross_compiling=maybe 1363 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1364 If a cross compiler is detected then cross compile mode will be used" >&2 1365 elif test "x$build_alias" != "x$host_alias"; then 1366 cross_compiling=yes 1367 fi 1368fi 1369 1370ac_tool_prefix= 1371test -n "$host_alias" && ac_tool_prefix=$host_alias- 1372 1373test "$silent" = yes && exec 6>/dev/null 1374 1375 1376ac_pwd=`pwd` && test -n "$ac_pwd" && 1377ac_ls_di=`ls -di .` && 1378ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1379 as_fn_error $? "working directory cannot be determined" 1380test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1381 as_fn_error $? "pwd does not report name of working directory" 1382 1383 1384# Find the source files, if location was not specified. 1385if test -z "$srcdir"; then 1386 ac_srcdir_defaulted=yes 1387 # Try the directory containing this script, then the parent directory. 1388 ac_confdir=`$as_dirname -- "$as_myself" || 1389$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1390 X"$as_myself" : 'X\(//\)[^/]' \| \ 1391 X"$as_myself" : 'X\(//\)$' \| \ 1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1393$as_echo X"$as_myself" | 1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1395 s//\1/ 1396 q 1397 } 1398 /^X\(\/\/\)[^/].*/{ 1399 s//\1/ 1400 q 1401 } 1402 /^X\(\/\/\)$/{ 1403 s//\1/ 1404 q 1405 } 1406 /^X\(\/\).*/{ 1407 s//\1/ 1408 q 1409 } 1410 s/.*/./; q'` 1411 srcdir=$ac_confdir 1412 if test ! -r "$srcdir/$ac_unique_file"; then 1413 srcdir=.. 1414 fi 1415else 1416 ac_srcdir_defaulted=no 1417fi 1418if test ! -r "$srcdir/$ac_unique_file"; then 1419 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1420 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1421fi 1422ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1423ac_abs_confdir=`( 1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1425 pwd)` 1426# When building in place, set srcdir=. 1427if test "$ac_abs_confdir" = "$ac_pwd"; then 1428 srcdir=. 1429fi 1430# Remove unnecessary trailing slashes from srcdir. 1431# Double slashes in file names in object file debugging info 1432# mess up M-x gdb in Emacs. 1433case $srcdir in 1434*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1435esac 1436for ac_var in $ac_precious_vars; do 1437 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1438 eval ac_env_${ac_var}_value=\$${ac_var} 1439 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1440 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1441done 1442 1443# 1444# Report the --help message. 1445# 1446if test "$ac_init_help" = "long"; then 1447 # Omit some internal or obsolete options to make the list less imposing. 1448 # This message is too long to be a string in the A/UX 3.1 sh. 1449 cat <<_ACEOF 1450\`configure' configures sudo 1.7.10p7 to adapt to many kinds of systems. 1451 1452Usage: $0 [OPTION]... [VAR=VALUE]... 1453 1454To assign environment variables (e.g., CC, CFLAGS...), specify them as 1455VAR=VALUE. See below for descriptions of some of the useful variables. 1456 1457Defaults for the options are specified in brackets. 1458 1459Configuration: 1460 -h, --help display this help and exit 1461 --help=short display options specific to this package 1462 --help=recursive display the short help of all the included packages 1463 -V, --version display version information and exit 1464 -q, --quiet, --silent do not print \`checking ...' messages 1465 --cache-file=FILE cache test results in FILE [disabled] 1466 -C, --config-cache alias for \`--cache-file=config.cache' 1467 -n, --no-create do not create output files 1468 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1469 1470Installation directories: 1471 --prefix=PREFIX install architecture-independent files in PREFIX 1472 [$ac_default_prefix] 1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1474 [PREFIX] 1475 1476By default, \`make install' will install all the files in 1477\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1478an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1479for instance \`--prefix=\$HOME'. 1480 1481For better control, use the options below. 1482 1483Fine tuning of the installation directories: 1484 --bindir=DIR user executables [EPREFIX/bin] 1485 --sbindir=DIR system admin executables [EPREFIX/sbin] 1486 --libexecdir=DIR program executables [EPREFIX/libexec] 1487 --sysconfdir=DIR read-only single-machine data [/etc] 1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1490 --libdir=DIR object code libraries [EPREFIX/lib] 1491 --includedir=DIR C header files [PREFIX/include] 1492 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1495 --infodir=DIR info documentation [DATAROOTDIR/info] 1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1497 --mandir=DIR man documentation [DATAROOTDIR/man] 1498 --docdir=DIR documentation root [DATAROOTDIR/doc/sudo] 1499 --htmldir=DIR html documentation [DOCDIR] 1500 --dvidir=DIR dvi documentation [DOCDIR] 1501 --pdfdir=DIR pdf documentation [DOCDIR] 1502 --psdir=DIR ps documentation [DOCDIR] 1503_ACEOF 1504 1505 cat <<\_ACEOF 1506 1507System types: 1508 --build=BUILD configure for building on BUILD [guessed] 1509 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1510_ACEOF 1511fi 1512 1513if test -n "$ac_init_help"; then 1514 case $ac_init_help in 1515 short | recursive ) echo "Configuration of sudo 1.7.10p7:";; 1516 esac 1517 cat <<\_ACEOF 1518 1519Optional Features: 1520 --disable-option-checking ignore unrecognized --enable/--with options 1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1523 --disable-authentication 1524 Do not require authentication by default 1525 --disable-root-mailer Don't run the mailer as root, run as the user 1526 --disable-setreuid Don't try to use the setreuid() function 1527 --disable-setresuid Don't try to use the setresuid() function 1528 --disable-shadow Never use shadow passwords 1529 --disable-root-sudo Don't allow root to run sudo 1530 --enable-log-host Log the hostname in the log file 1531 --enable-noargs-shell If sudo is given no arguments run a shell 1532 --enable-shell-sets-home 1533 Set $HOME to target user in shell mode 1534 --disable-path-info Print 'command not allowed' not 'command not found' 1535 --enable-env-debug Whether to enable environment debugging. 1536 --enable-env-reset Whether to enable environment resetting by default. 1537 --enable-warnings Whether to enable compiler warnings 1538 --enable-werror Whether to enable the -Werror compiler option 1539 --disable-hardening Do not use compiler/linker exploit mitigation 1540 options 1541 --disable-pie Do not build position independent executables, even 1542 if the compiler/linker supports them 1543 --enable-admin-flag Whether to create a Ubuntu-style admin flag file 1544 --enable-gss-krb5-ccache-name 1545 Use GSS-API to set the Kerberos V cred cache name 1546 --enable-shared[=PKGS] build shared libraries [default=yes] 1547 --enable-static[=PKGS] build static libraries [default=yes] 1548 --enable-fast-install[=PKGS] 1549 optimize for fast installation [default=yes] 1550 --disable-libtool-lock avoid locking (might break parallel builds) 1551 --disable-sia Disable SIA on Digital UNIX 1552 --disable-largefile omit support for large files 1553 --disable-pam-session Disable PAM session support 1554 --enable-zlib[=PATH] Whether to enable or disable zlib 1555 1556Optional Packages: 1557 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1558 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1559 --with-otp-only deprecated 1560 --with-alertmail deprecated 1561 --with-devel add development options 1562 --with-CC C compiler to use 1563 --with-rpath pass -R flag in addition to -L for lib paths 1564 --with-blibpath=PATH pass -blibpath flag to ld for additional lib paths 1565 --with-bsm-audit enable BSM audit support 1566 --with-linux-audit enable Linux audit support 1567 --with-incpath additional places to look for include files 1568 --with-libpath additional places to look for libraries 1569 --with-libraries additional libraries to link with 1570 --with-efence link with -lefence for malloc() debugging 1571 --with-csops add CSOps standard options 1572 --without-passwd don't use passwd/shadow file for authentication 1573 --with-skey=DIR enable S/Key support 1574 --with-opie=DIR enable OPIE support 1575 --with-long-otp-prompt use a two line OTP (skey/opie) prompt 1576 --with-SecurID[=DIR] enable SecurID support 1577 --with-fwtk[=DIR] enable FWTK AuthSRV support 1578 --with-kerb4[=DIR] enable Kerberos IV support 1579 --with-kerb5[=DIR] enable Kerberos V support 1580 --with-aixauth enable AIX general authentication support 1581 --with-pam enable PAM support 1582 --with-AFS enable AFS support 1583 --with-DCE enable DCE support 1584 --with-logincap enable BSD login class support 1585 --with-bsdauth enable BSD authentication support 1586 --with-project enable Solaris project support 1587 --without-lecture don't print lecture for first-time sudoer 1588 --with-logging log via syslog, file, or both 1589 --with-logfac syslog facility to log with (default is "auth") 1590 --with-goodpri syslog priority for commands (def is "notice") 1591 --with-badpri syslog priority for failures (def is "alert") 1592 --with-logpath path to the sudo log file 1593 --with-loglen maximum length of a log file line (default is 80) 1594 --with-ignore-dot ignore '.' in the PATH 1595 --without-mail-if-no-user 1596 do not send mail if user not in sudoers 1597 --with-mail-if-no-host send mail if user in sudoers but not for this host 1598 --with-mail-if-noperms send mail if user not allowed to run command 1599 --with-mailto who should get sudo mail (default is "root") 1600 --with-mailsubject subject of sudo mail 1601 --with-passprompt default password prompt 1602 --with-badpass-message message the user sees when the password is wrong 1603 --with-fqdn expect fully qualified hosts in sudoers 1604 --with-timedir path to the sudo timestamp dir 1605 --with-iologdir=DIR directory to store sudo I/O log files in 1606 --with-sendmail set path to sendmail 1607 --without-sendmail do not send mail at all 1608 --with-sudoers-mode mode of sudoers file (defaults to 0440) 1609 --with-sudoers-uid uid that owns sudoers file (defaults to 0) 1610 --with-sudoers-gid gid that owns sudoers file (defaults to 0) 1611 --with-umask umask with which the prog should run (default is 1612 022) 1613 --without-umask Preserves the umask of the user invoking sudo. 1614 --with-umask-override Use the umask specified in sudoers even if it is 1615 less restrictive than the user's. 1616 --with-runas-default User to run commands as (default is "root") 1617 --with-exempt=group no passwd needed for users in this group 1618 --with-editor=path Default editor for visudo (defaults to vi) 1619 --with-env-editor Use the environment variable EDITOR for visudo 1620 --with-passwd-tries number of tries to enter password (default is 3) 1621 --with-timeout minutes before sudo asks for passwd again (def is 5 1622 minutes) 1623 --with-password-timeout passwd prompt timeout in minutes (default is 5 1624 minutes) 1625 --with-tty-tickets use a different ticket file for each tty 1626 --with-insults insult the user for entering an incorrect password 1627 --with-all-insults include all the sudo insult sets 1628 --with-classic-insults include the insults from the "classic" sudo 1629 --with-csops-insults include CSOps insults 1630 --with-hal-insults include 2001-like insults 1631 --with-goons-insults include the insults from the "Goon Show" 1632 --with-nsswitch[=PATH] path to nsswitch.conf 1633 --with-ldap[=DIR] enable LDAP support 1634 --with-ldap-conf-file path to LDAP configuration file 1635 --with-ldap-secret-file path to LDAP secret password file 1636 --with-pc-insults replace politically incorrect insults with less 1637 offensive ones 1638 --with-secure-path override the user's path with a built-in one 1639 --without-interfaces don't try to read the ip addr of ether interfaces 1640 --with-stow deprecated 1641 --with-askpass=PATH Fully qualified pathname of askpass helper 1642 --with-libvas=NAME Name of the libvas shared library 1643 (default=libvas.so) 1644 --with-libvas-rpath=PATH 1645 Path to look for libvas in [default=/opt/quest/lib] 1646 --with-man manual pages use man macros 1647 --with-mdoc manual pages use mdoc macros 1648 --with-selinux enable SELinux support 1649 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1650 both] 1651 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1652 --with-sysroot=DIR Search for dependent libraries within DIR 1653 (or the compiler's sysroot if not specified). 1654 --with-noexec=PATH fully qualified pathname of sudo_noexec.so 1655 --with-netsvc[=PATH] path to netsvc.conf 1656 --with-pam-login enable specific PAM session for sudo -i 1657 1658Some influential environment variables: 1659 CC C compiler command 1660 CFLAGS C compiler flags 1661 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1662 nonstandard directory <lib dir> 1663 LIBS libraries to pass to the linker, e.g. -l<library> 1664 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1665 you have headers in a nonstandard directory <include dir> 1666 CPP C preprocessor 1667 YACC The `Yet Another Compiler Compiler' implementation to use. 1668 Defaults to the first program found out of: `bison -y', `byacc', 1669 `yacc'. 1670 YFLAGS The list of arguments that will be passed by default to $YACC. 1671 This script will default YFLAGS to the empty string to avoid a 1672 default value of `-d' given by some make applications. 1673 1674Use these variables to override the choices made by `configure' or to help 1675it to find libraries and programs with nonstandard names/locations. 1676 1677Report bugs to <http://www.sudo.ws/bugs/>. 1678_ACEOF 1679ac_status=$? 1680fi 1681 1682if test "$ac_init_help" = "recursive"; then 1683 # If there are subdirs, report their specific --help. 1684 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1685 test -d "$ac_dir" || 1686 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1687 continue 1688 ac_builddir=. 1689 1690case "$ac_dir" in 1691.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1692*) 1693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1694 # A ".." for each directory in $ac_dir_suffix. 1695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1696 case $ac_top_builddir_sub in 1697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1699 esac ;; 1700esac 1701ac_abs_top_builddir=$ac_pwd 1702ac_abs_builddir=$ac_pwd$ac_dir_suffix 1703# for backward compatibility: 1704ac_top_builddir=$ac_top_build_prefix 1705 1706case $srcdir in 1707 .) # We are building in place. 1708 ac_srcdir=. 1709 ac_top_srcdir=$ac_top_builddir_sub 1710 ac_abs_top_srcdir=$ac_pwd ;; 1711 [\\/]* | ?:[\\/]* ) # Absolute name. 1712 ac_srcdir=$srcdir$ac_dir_suffix; 1713 ac_top_srcdir=$srcdir 1714 ac_abs_top_srcdir=$srcdir ;; 1715 *) # Relative name. 1716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1717 ac_top_srcdir=$ac_top_build_prefix$srcdir 1718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1719esac 1720ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1721 1722 cd "$ac_dir" || { ac_status=$?; continue; } 1723 # Check for guested configure. 1724 if test -f "$ac_srcdir/configure.gnu"; then 1725 echo && 1726 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1727 elif test -f "$ac_srcdir/configure"; then 1728 echo && 1729 $SHELL "$ac_srcdir/configure" --help=recursive 1730 else 1731 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1732 fi || ac_status=$? 1733 cd "$ac_pwd" || { ac_status=$?; break; } 1734 done 1735fi 1736 1737test -n "$ac_init_help" && exit $ac_status 1738if $ac_init_version; then 1739 cat <<\_ACEOF 1740sudo configure 1.7.10p7 1741generated by GNU Autoconf 2.68 1742 1743Copyright (C) 2010 Free Software Foundation, Inc. 1744This configure script is free software; the Free Software Foundation 1745gives unlimited permission to copy, distribute and modify it. 1746_ACEOF 1747 exit 1748fi 1749 1750## ------------------------ ## 1751## Autoconf initialization. ## 1752## ------------------------ ## 1753 1754# ac_fn_c_try_compile LINENO 1755# -------------------------- 1756# Try to compile conftest.$ac_ext, and return whether this succeeded. 1757ac_fn_c_try_compile () 1758{ 1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1760 rm -f conftest.$ac_objext 1761 if { { ac_try="$ac_compile" 1762case "(($ac_try" in 1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1764 *) ac_try_echo=$ac_try;; 1765esac 1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1767$as_echo "$ac_try_echo"; } >&5 1768 (eval "$ac_compile") 2>conftest.err 1769 ac_status=$? 1770 if test -s conftest.err; then 1771 grep -v '^ *+' conftest.err >conftest.er1 1772 cat conftest.er1 >&5 1773 mv -f conftest.er1 conftest.err 1774 fi 1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1776 test $ac_status = 0; } && { 1777 test -z "$ac_c_werror_flag" || 1778 test ! -s conftest.err 1779 } && test -s conftest.$ac_objext; then : 1780 ac_retval=0 1781else 1782 $as_echo "$as_me: failed program was:" >&5 1783sed 's/^/| /' conftest.$ac_ext >&5 1784 1785 ac_retval=1 1786fi 1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1788 as_fn_set_status $ac_retval 1789 1790} # ac_fn_c_try_compile 1791 1792# ac_fn_c_try_link LINENO 1793# ----------------------- 1794# Try to link conftest.$ac_ext, and return whether this succeeded. 1795ac_fn_c_try_link () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 rm -f conftest.$ac_objext conftest$ac_exeext 1799 if { { ac_try="$ac_link" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_link") 2>conftest.err 1807 ac_status=$? 1808 if test -s conftest.err; then 1809 grep -v '^ *+' conftest.err >conftest.er1 1810 cat conftest.er1 >&5 1811 mv -f conftest.er1 conftest.err 1812 fi 1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1814 test $ac_status = 0; } && { 1815 test -z "$ac_c_werror_flag" || 1816 test ! -s conftest.err 1817 } && test -s conftest$ac_exeext && { 1818 test "$cross_compiling" = yes || 1819 $as_test_x conftest$ac_exeext 1820 }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=1 1827fi 1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1830 # interfere with the next link command; also delete a directory that is 1831 # left behind by Apple's compiler. We do this before executing the actions. 1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_link 1837 1838# ac_fn_c_try_cpp LINENO 1839# ---------------------- 1840# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1841ac_fn_c_try_cpp () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 if { { ac_try="$ac_cpp conftest.$ac_ext" 1845case "(($ac_try" in 1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1847 *) ac_try_echo=$ac_try;; 1848esac 1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1850$as_echo "$ac_try_echo"; } >&5 1851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1852 ac_status=$? 1853 if test -s conftest.err; then 1854 grep -v '^ *+' conftest.err >conftest.er1 1855 cat conftest.er1 >&5 1856 mv -f conftest.er1 conftest.err 1857 fi 1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; } > conftest.i && { 1860 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1861 test ! -s conftest.err 1862 }; then : 1863 ac_retval=0 1864else 1865 $as_echo "$as_me: failed program was:" >&5 1866sed 's/^/| /' conftest.$ac_ext >&5 1867 1868 ac_retval=1 1869fi 1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1871 as_fn_set_status $ac_retval 1872 1873} # ac_fn_c_try_cpp 1874 1875# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1876# ------------------------------------------------------- 1877# Tests whether HEADER exists and can be compiled using the include files in 1878# INCLUDES, setting the cache variable VAR accordingly. 1879ac_fn_c_check_header_compile () 1880{ 1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if eval \${$3+:} false; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890#include <$2> 1891_ACEOF 1892if ac_fn_c_try_compile "$LINENO"; then : 1893 eval "$3=yes" 1894else 1895 eval "$3=no" 1896fi 1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1898fi 1899eval ac_res=\$$3 1900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1901$as_echo "$ac_res" >&6; } 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1903 1904} # ac_fn_c_check_header_compile 1905 1906# ac_fn_c_try_run LINENO 1907# ---------------------- 1908# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1909# that executables *can* be run. 1910ac_fn_c_try_run () 1911{ 1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1913 if { { ac_try="$ac_link" 1914case "(($ac_try" in 1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1916 *) ac_try_echo=$ac_try;; 1917esac 1918eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1919$as_echo "$ac_try_echo"; } >&5 1920 (eval "$ac_link") 2>&5 1921 ac_status=$? 1922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1923 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1924 { { case "(($ac_try" in 1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1926 *) ac_try_echo=$ac_try;; 1927esac 1928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1929$as_echo "$ac_try_echo"; } >&5 1930 (eval "$ac_try") 2>&5 1931 ac_status=$? 1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1933 test $ac_status = 0; }; }; then : 1934 ac_retval=0 1935else 1936 $as_echo "$as_me: program exited with status $ac_status" >&5 1937 $as_echo "$as_me: failed program was:" >&5 1938sed 's/^/| /' conftest.$ac_ext >&5 1939 1940 ac_retval=$ac_status 1941fi 1942 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1944 as_fn_set_status $ac_retval 1945 1946} # ac_fn_c_try_run 1947 1948# ac_fn_c_check_func LINENO FUNC VAR 1949# ---------------------------------- 1950# Tests whether FUNC exists, setting the cache variable VAR accordingly 1951ac_fn_c_check_func () 1952{ 1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1955$as_echo_n "checking for $2... " >&6; } 1956if eval \${$3+:} false; then : 1957 $as_echo_n "(cached) " >&6 1958else 1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1960/* end confdefs.h. */ 1961/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1962 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1963#define $2 innocuous_$2 1964 1965/* System header to define __stub macros and hopefully few prototypes, 1966 which can conflict with char $2 (); below. 1967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1968 <limits.h> exists even on freestanding compilers. */ 1969 1970#ifdef __STDC__ 1971# include <limits.h> 1972#else 1973# include <assert.h> 1974#endif 1975 1976#undef $2 1977 1978/* Override any GCC internal prototype to avoid an error. 1979 Use char because int might match the return type of a GCC 1980 builtin and then its argument prototype would still apply. */ 1981#ifdef __cplusplus 1982extern "C" 1983#endif 1984char $2 (); 1985/* The GNU C library defines this for functions which it implements 1986 to always fail with ENOSYS. Some functions are actually named 1987 something starting with __ and the normal name is an alias. */ 1988#if defined __stub_$2 || defined __stub___$2 1989choke me 1990#endif 1991 1992int 1993main () 1994{ 1995return $2 (); 1996 ; 1997 return 0; 1998} 1999_ACEOF 2000if ac_fn_c_try_link "$LINENO"; then : 2001 eval "$3=yes" 2002else 2003 eval "$3=no" 2004fi 2005rm -f core conftest.err conftest.$ac_objext \ 2006 conftest$ac_exeext conftest.$ac_ext 2007fi 2008eval ac_res=\$$3 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010$as_echo "$ac_res" >&6; } 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 2013} # ac_fn_c_check_func 2014 2015# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 2016# ------------------------------------------------------- 2017# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2018# the include files in INCLUDES and setting the cache variable VAR 2019# accordingly. 2020ac_fn_c_check_header_mongrel () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 if eval \${$3+:} false; then : 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2025$as_echo_n "checking for $2... " >&6; } 2026if eval \${$3+:} false; then : 2027 $as_echo_n "(cached) " >&6 2028fi 2029eval ac_res=\$$3 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2031$as_echo "$ac_res" >&6; } 2032else 2033 # Is the header compilable? 2034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2035$as_echo_n "checking $2 usability... " >&6; } 2036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2037/* end confdefs.h. */ 2038$4 2039#include <$2> 2040_ACEOF 2041if ac_fn_c_try_compile "$LINENO"; then : 2042 ac_header_compiler=yes 2043else 2044 ac_header_compiler=no 2045fi 2046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2048$as_echo "$ac_header_compiler" >&6; } 2049 2050# Is the header present? 2051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2052$as_echo_n "checking $2 presence... " >&6; } 2053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2054/* end confdefs.h. */ 2055#include <$2> 2056_ACEOF 2057if ac_fn_c_try_cpp "$LINENO"; then : 2058 ac_header_preproc=yes 2059else 2060 ac_header_preproc=no 2061fi 2062rm -f conftest.err conftest.i conftest.$ac_ext 2063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2064$as_echo "$ac_header_preproc" >&6; } 2065 2066# So? What about this header? 2067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2068 yes:no: ) 2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2070$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2072$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2073 ;; 2074 no:yes:* ) 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2076$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2078$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2080$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2082$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2084$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2085( $as_echo "## --------------------------------------- ## 2086## Report this to http://www.sudo.ws/bugs/ ## 2087## --------------------------------------- ##" 2088 ) | sed "s/^/$as_me: WARNING: /" >&2 2089 ;; 2090esac 2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2092$as_echo_n "checking for $2... " >&6; } 2093if eval \${$3+:} false; then : 2094 $as_echo_n "(cached) " >&6 2095else 2096 eval "$3=\$ac_header_compiler" 2097fi 2098eval ac_res=\$$3 2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2100$as_echo "$ac_res" >&6; } 2101fi 2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2103 2104} # ac_fn_c_check_header_mongrel 2105 2106# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2107# ---------------------------------------------------- 2108# Tries to find if the field MEMBER exists in type AGGR, after including 2109# INCLUDES, setting cache variable VAR accordingly. 2110ac_fn_c_check_member () 2111{ 2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2114$as_echo_n "checking for $2.$3... " >&6; } 2115if eval \${$4+:} false; then : 2116 $as_echo_n "(cached) " >&6 2117else 2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$5 2121int 2122main () 2123{ 2124static $2 ac_aggr; 2125if (ac_aggr.$3) 2126return 0; 2127 ; 2128 return 0; 2129} 2130_ACEOF 2131if ac_fn_c_try_compile "$LINENO"; then : 2132 eval "$4=yes" 2133else 2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2135/* end confdefs.h. */ 2136$5 2137int 2138main () 2139{ 2140static $2 ac_aggr; 2141if (sizeof ac_aggr.$3) 2142return 0; 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_c_try_compile "$LINENO"; then : 2148 eval "$4=yes" 2149else 2150 eval "$4=no" 2151fi 2152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2153fi 2154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2155fi 2156eval ac_res=\$$4 2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2158$as_echo "$ac_res" >&6; } 2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2160 2161} # ac_fn_c_check_member 2162 2163# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2164# ------------------------------------------- 2165# Tests whether TYPE exists after having included INCLUDES, setting cache 2166# variable VAR accordingly. 2167ac_fn_c_check_type () 2168{ 2169 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2171$as_echo_n "checking for $2... " >&6; } 2172if eval \${$3+:} false; then : 2173 $as_echo_n "(cached) " >&6 2174else 2175 eval "$3=no" 2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2177/* end confdefs.h. */ 2178$4 2179int 2180main () 2181{ 2182if (sizeof ($2)) 2183 return 0; 2184 ; 2185 return 0; 2186} 2187_ACEOF 2188if ac_fn_c_try_compile "$LINENO"; then : 2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2190/* end confdefs.h. */ 2191$4 2192int 2193main () 2194{ 2195if (sizeof (($2))) 2196 return 0; 2197 ; 2198 return 0; 2199} 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO"; then : 2202 2203else 2204 eval "$3=yes" 2205fi 2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2207fi 2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2209fi 2210eval ac_res=\$$3 2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2212$as_echo "$ac_res" >&6; } 2213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2214 2215} # ac_fn_c_check_type 2216 2217# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2218# -------------------------------------------- 2219# Tries to find the compile-time value of EXPR in a program that includes 2220# INCLUDES, setting VAR accordingly. Returns whether the value could be 2221# computed 2222ac_fn_c_compute_int () 2223{ 2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2225 if test "$cross_compiling" = yes; then 2226 # Depending upon the size, compute the lo and hi bounds. 2227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2228/* end confdefs.h. */ 2229$4 2230int 2231main () 2232{ 2233static int test_array [1 - 2 * !(($2) >= 0)]; 2234test_array [0] = 0 2235 2236 ; 2237 return 0; 2238} 2239_ACEOF 2240if ac_fn_c_try_compile "$LINENO"; then : 2241 ac_lo=0 ac_mid=0 2242 while :; do 2243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2244/* end confdefs.h. */ 2245$4 2246int 2247main () 2248{ 2249static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2250test_array [0] = 0 2251 2252 ; 2253 return 0; 2254} 2255_ACEOF 2256if ac_fn_c_try_compile "$LINENO"; then : 2257 ac_hi=$ac_mid; break 2258else 2259 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2260 if test $ac_lo -le $ac_mid; then 2261 ac_lo= ac_hi= 2262 break 2263 fi 2264 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2265fi 2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2267 done 2268else 2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2270/* end confdefs.h. */ 2271$4 2272int 2273main () 2274{ 2275static int test_array [1 - 2 * !(($2) < 0)]; 2276test_array [0] = 0 2277 2278 ; 2279 return 0; 2280} 2281_ACEOF 2282if ac_fn_c_try_compile "$LINENO"; then : 2283 ac_hi=-1 ac_mid=-1 2284 while :; do 2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2286/* end confdefs.h. */ 2287$4 2288int 2289main () 2290{ 2291static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2292test_array [0] = 0 2293 2294 ; 2295 return 0; 2296} 2297_ACEOF 2298if ac_fn_c_try_compile "$LINENO"; then : 2299 ac_lo=$ac_mid; break 2300else 2301 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2302 if test $ac_mid -le $ac_hi; then 2303 ac_lo= ac_hi= 2304 break 2305 fi 2306 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2307fi 2308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2309 done 2310else 2311 ac_lo= ac_hi= 2312fi 2313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2314fi 2315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2316# Binary search between lo and hi bounds. 2317while test "x$ac_lo" != "x$ac_hi"; do 2318 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2320/* end confdefs.h. */ 2321$4 2322int 2323main () 2324{ 2325static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2326test_array [0] = 0 2327 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_compile "$LINENO"; then : 2333 ac_hi=$ac_mid 2334else 2335 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2336fi 2337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2338done 2339case $ac_lo in #(( 2340?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2341'') ac_retval=1 ;; 2342esac 2343 else 2344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2345/* end confdefs.h. */ 2346$4 2347static long int longval () { return $2; } 2348static unsigned long int ulongval () { return $2; } 2349#include <stdio.h> 2350#include <stdlib.h> 2351int 2352main () 2353{ 2354 2355 FILE *f = fopen ("conftest.val", "w"); 2356 if (! f) 2357 return 1; 2358 if (($2) < 0) 2359 { 2360 long int i = longval (); 2361 if (i != ($2)) 2362 return 1; 2363 fprintf (f, "%ld", i); 2364 } 2365 else 2366 { 2367 unsigned long int i = ulongval (); 2368 if (i != ($2)) 2369 return 1; 2370 fprintf (f, "%lu", i); 2371 } 2372 /* Do not output a trailing newline, as this causes \r\n confusion 2373 on some platforms. */ 2374 return ferror (f) || fclose (f) != 0; 2375 2376 ; 2377 return 0; 2378} 2379_ACEOF 2380if ac_fn_c_try_run "$LINENO"; then : 2381 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2382else 2383 ac_retval=1 2384fi 2385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2386 conftest.$ac_objext conftest.beam conftest.$ac_ext 2387rm -f conftest.val 2388 2389 fi 2390 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2391 as_fn_set_status $ac_retval 2392 2393} # ac_fn_c_compute_int 2394 2395# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2396# --------------------------------------------- 2397# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2398# accordingly. 2399ac_fn_c_check_decl () 2400{ 2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2402 as_decl_name=`echo $2|sed 's/ *(.*//'` 2403 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2405$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2406if eval \${$3+:} false; then : 2407 $as_echo_n "(cached) " >&6 2408else 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410/* end confdefs.h. */ 2411$4 2412int 2413main () 2414{ 2415#ifndef $as_decl_name 2416#ifdef __cplusplus 2417 (void) $as_decl_use; 2418#else 2419 (void) $as_decl_name; 2420#endif 2421#endif 2422 2423 ; 2424 return 0; 2425} 2426_ACEOF 2427if ac_fn_c_try_compile "$LINENO"; then : 2428 eval "$3=yes" 2429else 2430 eval "$3=no" 2431fi 2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2433fi 2434eval ac_res=\$$3 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2436$as_echo "$ac_res" >&6; } 2437 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2438 2439} # ac_fn_c_check_decl 2440cat >config.log <<_ACEOF 2441This file contains any messages produced by compilers while 2442running configure, to aid debugging if configure makes a mistake. 2443 2444It was created by sudo $as_me 1.7.10p7, which was 2445generated by GNU Autoconf 2.68. Invocation command line was 2446 2447 $ $0 $@ 2448 2449_ACEOF 2450exec 5>>config.log 2451{ 2452cat <<_ASUNAME 2453## --------- ## 2454## Platform. ## 2455## --------- ## 2456 2457hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2458uname -m = `(uname -m) 2>/dev/null || echo unknown` 2459uname -r = `(uname -r) 2>/dev/null || echo unknown` 2460uname -s = `(uname -s) 2>/dev/null || echo unknown` 2461uname -v = `(uname -v) 2>/dev/null || echo unknown` 2462 2463/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2464/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2465 2466/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2467/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2468/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2469/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2470/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2471/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2472/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2473 2474_ASUNAME 2475 2476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2477for as_dir in $PATH 2478do 2479 IFS=$as_save_IFS 2480 test -z "$as_dir" && as_dir=. 2481 $as_echo "PATH: $as_dir" 2482 done 2483IFS=$as_save_IFS 2484 2485} >&5 2486 2487cat >&5 <<_ACEOF 2488 2489 2490## ----------- ## 2491## Core tests. ## 2492## ----------- ## 2493 2494_ACEOF 2495 2496 2497# Keep a trace of the command line. 2498# Strip out --no-create and --no-recursion so they do not pile up. 2499# Strip out --silent because we don't want to record it for future runs. 2500# Also quote any args containing shell meta-characters. 2501# Make two passes to allow for proper duplicate-argument suppression. 2502ac_configure_args= 2503ac_configure_args0= 2504ac_configure_args1= 2505ac_must_keep_next=false 2506for ac_pass in 1 2 2507do 2508 for ac_arg 2509 do 2510 case $ac_arg in 2511 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2512 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2513 | -silent | --silent | --silen | --sile | --sil) 2514 continue ;; 2515 *\'*) 2516 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2517 esac 2518 case $ac_pass in 2519 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2520 2) 2521 as_fn_append ac_configure_args1 " '$ac_arg'" 2522 if test $ac_must_keep_next = true; then 2523 ac_must_keep_next=false # Got value, back to normal. 2524 else 2525 case $ac_arg in 2526 *=* | --config-cache | -C | -disable-* | --disable-* \ 2527 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2528 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2529 | -with-* | --with-* | -without-* | --without-* | --x) 2530 case "$ac_configure_args0 " in 2531 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2532 esac 2533 ;; 2534 -* ) ac_must_keep_next=true ;; 2535 esac 2536 fi 2537 as_fn_append ac_configure_args " '$ac_arg'" 2538 ;; 2539 esac 2540 done 2541done 2542{ ac_configure_args0=; unset ac_configure_args0;} 2543{ ac_configure_args1=; unset ac_configure_args1;} 2544 2545# When interrupted or exit'd, cleanup temporary files, and complete 2546# config.log. We remove comments because anyway the quotes in there 2547# would cause problems or look ugly. 2548# WARNING: Use '\'' to represent an apostrophe within the trap. 2549# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2550trap 'exit_status=$? 2551 # Save into config.log some information that might help in debugging. 2552 { 2553 echo 2554 2555 $as_echo "## ---------------- ## 2556## Cache variables. ## 2557## ---------------- ##" 2558 echo 2559 # The following way of writing the cache mishandles newlines in values, 2560( 2561 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2562 eval ac_val=\$$ac_var 2563 case $ac_val in #( 2564 *${as_nl}*) 2565 case $ac_var in #( 2566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2567$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2568 esac 2569 case $ac_var in #( 2570 _ | IFS | as_nl) ;; #( 2571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2572 *) { eval $ac_var=; unset $ac_var;} ;; 2573 esac ;; 2574 esac 2575 done 2576 (set) 2>&1 | 2577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2578 *${as_nl}ac_space=\ *) 2579 sed -n \ 2580 "s/'\''/'\''\\\\'\'''\''/g; 2581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2582 ;; #( 2583 *) 2584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2585 ;; 2586 esac | 2587 sort 2588) 2589 echo 2590 2591 $as_echo "## ----------------- ## 2592## Output variables. ## 2593## ----------------- ##" 2594 echo 2595 for ac_var in $ac_subst_vars 2596 do 2597 eval ac_val=\$$ac_var 2598 case $ac_val in 2599 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2600 esac 2601 $as_echo "$ac_var='\''$ac_val'\''" 2602 done | sort 2603 echo 2604 2605 if test -n "$ac_subst_files"; then 2606 $as_echo "## ------------------- ## 2607## File substitutions. ## 2608## ------------------- ##" 2609 echo 2610 for ac_var in $ac_subst_files 2611 do 2612 eval ac_val=\$$ac_var 2613 case $ac_val in 2614 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2615 esac 2616 $as_echo "$ac_var='\''$ac_val'\''" 2617 done | sort 2618 echo 2619 fi 2620 2621 if test -s confdefs.h; then 2622 $as_echo "## ----------- ## 2623## confdefs.h. ## 2624## ----------- ##" 2625 echo 2626 cat confdefs.h 2627 echo 2628 fi 2629 test "$ac_signal" != 0 && 2630 $as_echo "$as_me: caught signal $ac_signal" 2631 $as_echo "$as_me: exit $exit_status" 2632 } >&5 2633 rm -f core *.core core.conftest.* && 2634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2635 exit $exit_status 2636' 0 2637for ac_signal in 1 2 13 15; do 2638 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2639done 2640ac_signal=0 2641 2642# confdefs.h avoids OS command line length limits that DEFS can exceed. 2643rm -f -r conftest* confdefs.h 2644 2645$as_echo "/* confdefs.h */" > confdefs.h 2646 2647# Predefined preprocessor variables. 2648 2649cat >>confdefs.h <<_ACEOF 2650#define PACKAGE_NAME "$PACKAGE_NAME" 2651_ACEOF 2652 2653cat >>confdefs.h <<_ACEOF 2654#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2655_ACEOF 2656 2657cat >>confdefs.h <<_ACEOF 2658#define PACKAGE_VERSION "$PACKAGE_VERSION" 2659_ACEOF 2660 2661cat >>confdefs.h <<_ACEOF 2662#define PACKAGE_STRING "$PACKAGE_STRING" 2663_ACEOF 2664 2665cat >>confdefs.h <<_ACEOF 2666#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2667_ACEOF 2668 2669cat >>confdefs.h <<_ACEOF 2670#define PACKAGE_URL "$PACKAGE_URL" 2671_ACEOF 2672 2673 2674# Let the site file select an alternate cache file if it wants to. 2675# Prefer an explicitly selected file to automatically selected ones. 2676ac_site_file1=NONE 2677ac_site_file2=NONE 2678if test -n "$CONFIG_SITE"; then 2679 # We do not want a PATH search for config.site. 2680 case $CONFIG_SITE in #(( 2681 -*) ac_site_file1=./$CONFIG_SITE;; 2682 */*) ac_site_file1=$CONFIG_SITE;; 2683 *) ac_site_file1=./$CONFIG_SITE;; 2684 esac 2685elif test "x$prefix" != xNONE; then 2686 ac_site_file1=$prefix/share/config.site 2687 ac_site_file2=$prefix/etc/config.site 2688else 2689 ac_site_file1=$ac_default_prefix/share/config.site 2690 ac_site_file2=$ac_default_prefix/etc/config.site 2691fi 2692for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2693do 2694 test "x$ac_site_file" = xNONE && continue 2695 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2696 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2697$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2698 sed 's/^/| /' "$ac_site_file" >&5 2699 . "$ac_site_file" \ 2700 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2702as_fn_error $? "failed to load site script $ac_site_file 2703See \`config.log' for more details" "$LINENO" 5; } 2704 fi 2705done 2706 2707if test -r "$cache_file"; then 2708 # Some versions of bash will fail to source /dev/null (special files 2709 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2710 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2712$as_echo "$as_me: loading cache $cache_file" >&6;} 2713 case $cache_file in 2714 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2715 *) . "./$cache_file";; 2716 esac 2717 fi 2718else 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2720$as_echo "$as_me: creating cache $cache_file" >&6;} 2721 >$cache_file 2722fi 2723 2724# Check that the precious variables saved in the cache have kept the same 2725# value. 2726ac_cache_corrupted=false 2727for ac_var in $ac_precious_vars; do 2728 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2729 eval ac_new_set=\$ac_env_${ac_var}_set 2730 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2731 eval ac_new_val=\$ac_env_${ac_var}_value 2732 case $ac_old_set,$ac_new_set in 2733 set,) 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2735$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2736 ac_cache_corrupted=: ;; 2737 ,set) 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2739$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2740 ac_cache_corrupted=: ;; 2741 ,);; 2742 *) 2743 if test "x$ac_old_val" != "x$ac_new_val"; then 2744 # differences in whitespace do not lead to failure. 2745 ac_old_val_w=`echo x $ac_old_val` 2746 ac_new_val_w=`echo x $ac_new_val` 2747 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2749$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2750 ac_cache_corrupted=: 2751 else 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2753$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2754 eval $ac_var=\$ac_old_val 2755 fi 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2757$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2758 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2759$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2760 fi;; 2761 esac 2762 # Pass precious variables to config.status. 2763 if test "$ac_new_set" = set; then 2764 case $ac_new_val in 2765 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2766 *) ac_arg=$ac_var=$ac_new_val ;; 2767 esac 2768 case " $ac_configure_args " in 2769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2770 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2771 esac 2772 fi 2773done 2774if $ac_cache_corrupted; then 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2778$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2779 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2780fi 2781## -------------------- ## 2782## Main body of script. ## 2783## -------------------- ## 2784 2785ac_ext=c 2786ac_cpp='$CPP $CPPFLAGS' 2787ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2788ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2789ac_compiler_gnu=$ac_cv_c_compiler_gnu 2790 2791 2792ac_config_headers="$ac_config_headers config.h pathnames.h zlib/zconf.h" 2793 2794{ $as_echo "$as_me:${as_lineno-$LINENO}: Configuring Sudo version $PACKAGE_VERSION" >&5 2795$as_echo "$as_me: Configuring Sudo version $PACKAGE_VERSION" >&6;} 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 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# Begin initial values for man page substitution 2881# 2882iolog_dir=/var/log/sudo-io 2883timedir=/var/adm/sudo 2884timeout=5 2885password_timeout=5 2886sudo_umask=0022 2887umask_override=off 2888passprompt="Password:" 2889long_otp_prompt=off 2890lecture=once 2891logfac=auth 2892goodpri=notice 2893badpri=alert 2894loglen=80 2895ignore_dot=off 2896mail_no_user=on 2897mail_no_host=off 2898mail_no_perms=off 2899mailto=root 2900mailsub="*** SECURITY information for %h ***" 2901badpass_message="Sorry, try again." 2902fqdn=off 2903runas_default=root 2904env_editor=off 2905env_reset=on 2906editor=vi 2907passwd_tries=3 2908tty_tickets=on 2909insults=off 2910root_sudo=on 2911path_info=on 2912ldap_conf=/etc/ldap.conf 2913ldap_secret=/etc/ldap.secret 2914netsvc_conf=/etc/netsvc.conf 2915noexec_file=/usr/local/libexec/sudo_noexec.so 2916nsswitch_conf=/etc/nsswitch.conf 2917secure_path="not set" 2918# 2919# End initial values for man page substitution 2920# 2921INSTALL_NOEXEC= 2922devdir='$(srcdir)' 2923PROGS="sudo visudo" 2924: ${MANDIRTYPE='man'} 2925: ${mansrcdir='.'} 2926: ${SHLIB_MODE='0644'} 2927: ${SUDOERS_MODE='0440'} 2928: ${SUDOERS_UID='0'} 2929: ${SUDOERS_GID='0'} 2930DEVEL= 2931LDAP="#" 2932REPLAY="#" 2933BAMAN=0 2934LCMAN=0 2935SEMAN=0 2936ZLIB= 2937ZLIB_DEP= 2938AUTH_OBJS= 2939AUTH_REG= 2940AUTH_EXCL= 2941AUTH_EXCL_DEF= 2942AUTH_DEF=passwd 2943 2944CHECKSHADOW=true 2945shadow_defs= 2946shadow_funcs= 2947shadow_libs= 2948shadow_libs_optional= 2949 2950CONFIGURE_ARGS="$@" 2951 2952 2953 2954# Check whether --with-otp-only was given. 2955if test "${with_otp_only+set}" = set; then : 2956 withval=$with_otp_only; case $with_otp_only in 2957 yes) with_passwd="no" 2958 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-otp-only option deprecated, treating as --without-passwd" >&5 2959$as_echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;} 2960 ;; 2961esac 2962fi 2963 2964 2965 2966# Check whether --with-alertmail was given. 2967if test "${with_alertmail+set}" = set; then : 2968 withval=$with_alertmail; case $with_alertmail in 2969 *) with_mailto="$with_alertmail" 2970 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-alertmail option deprecated, treating as --mailto" >&5 2971$as_echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;} 2972 ;; 2973esac 2974fi 2975 2976 2977 2978 2979# Check whether --with-devel was given. 2980if test "${with_devel+set}" = set; then : 2981 withval=$with_devel; case $with_devel in 2982 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Setting up for development: -Wall, flex, yacc" >&5 2983$as_echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;} 2984 PROGS="${PROGS} testsudoers" 2985 OSDEFS="${OSDEFS} -DSUDO_DEVEL" 2986 DEVEL="true" 2987 devdir=. 2988 ;; 2989 no) ;; 2990 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5 2991$as_echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;} 2992 ;; 2993esac 2994fi 2995 2996 2997 2998# Check whether --with-CC was given. 2999if test "${with_CC+set}" = set; then : 3000 withval=$with_CC; case $with_CC in 3001 *) as_fn_error $? "the --with-CC option is no longer supported, please set the CC environment variable instead." "$LINENO" 5 3002 ;; 3003esac 3004fi 3005 3006 3007 3008# Check whether --with-rpath was given. 3009if test "${with_rpath+set}" = set; then : 3010 withval=$with_rpath; case $with_rpath in 3011 yes|no) ;; 3012 *) as_fn_error $? "\"--with-rpath does not take an argument.\"" "$LINENO" 5 3013 ;; 3014esac 3015fi 3016 3017 3018 3019# Check whether --with-blibpath was given. 3020if test "${with_blibpath+set}" = set; then : 3021 withval=$with_blibpath; case $with_blibpath in 3022 yes|no) ;; 3023 *) { $as_echo "$as_me:${as_lineno-$LINENO}: will pass -blibpath:${with_blibpath} to the loader." >&5 3024$as_echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;} 3025 ;; 3026esac 3027fi 3028 3029 3030 3031# Check whether --with-bsm-audit was given. 3032if test "${with_bsm_audit+set}" = set; then : 3033 withval=$with_bsm_audit; case $with_bsm_audit in 3034 yes) $as_echo "#define HAVE_BSM_AUDIT 1" >>confdefs.h 3035 3036 SUDO_LIBS="${SUDO_LIBS} -lbsm" 3037 SUDO_OBJS="${SUDO_OBJS} bsm_audit.o" 3038 ;; 3039 no) ;; 3040 *) as_fn_error $? "\"--with-bsm-audit does not take an argument.\"" "$LINENO" 5 3041 ;; 3042esac 3043fi 3044 3045 3046ac_ext=c 3047ac_cpp='$CPP $CPPFLAGS' 3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3050ac_compiler_gnu=$ac_cv_c_compiler_gnu 3051if test -n "$ac_tool_prefix"; then 3052 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3053set dummy ${ac_tool_prefix}gcc; ac_word=$2 3054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3055$as_echo_n "checking for $ac_word... " >&6; } 3056if ${ac_cv_prog_CC+:} false; then : 3057 $as_echo_n "(cached) " >&6 3058else 3059 if test -n "$CC"; then 3060 ac_cv_prog_CC="$CC" # Let the user override the test. 3061else 3062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3063for as_dir in $PATH 3064do 3065 IFS=$as_save_IFS 3066 test -z "$as_dir" && as_dir=. 3067 for ac_exec_ext in '' $ac_executable_extensions; do 3068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3069 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3071 break 2 3072 fi 3073done 3074 done 3075IFS=$as_save_IFS 3076 3077fi 3078fi 3079CC=$ac_cv_prog_CC 3080if test -n "$CC"; then 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3082$as_echo "$CC" >&6; } 3083else 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3085$as_echo "no" >&6; } 3086fi 3087 3088 3089fi 3090if test -z "$ac_cv_prog_CC"; then 3091 ac_ct_CC=$CC 3092 # Extract the first word of "gcc", so it can be a program name with args. 3093set dummy gcc; ac_word=$2 3094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3095$as_echo_n "checking for $ac_word... " >&6; } 3096if ${ac_cv_prog_ac_ct_CC+:} false; then : 3097 $as_echo_n "(cached) " >&6 3098else 3099 if test -n "$ac_ct_CC"; then 3100 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3101else 3102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3103for as_dir in $PATH 3104do 3105 IFS=$as_save_IFS 3106 test -z "$as_dir" && as_dir=. 3107 for ac_exec_ext in '' $ac_executable_extensions; do 3108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3109 ac_cv_prog_ac_ct_CC="gcc" 3110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3111 break 2 3112 fi 3113done 3114 done 3115IFS=$as_save_IFS 3116 3117fi 3118fi 3119ac_ct_CC=$ac_cv_prog_ac_ct_CC 3120if test -n "$ac_ct_CC"; then 3121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3122$as_echo "$ac_ct_CC" >&6; } 3123else 3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3125$as_echo "no" >&6; } 3126fi 3127 3128 if test "x$ac_ct_CC" = x; then 3129 CC="" 3130 else 3131 case $cross_compiling:$ac_tool_warned in 3132yes:) 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3134$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3135ac_tool_warned=yes ;; 3136esac 3137 CC=$ac_ct_CC 3138 fi 3139else 3140 CC="$ac_cv_prog_CC" 3141fi 3142 3143if test -z "$CC"; then 3144 if test -n "$ac_tool_prefix"; then 3145 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3146set dummy ${ac_tool_prefix}cc; ac_word=$2 3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3148$as_echo_n "checking for $ac_word... " >&6; } 3149if ${ac_cv_prog_CC+:} false; then : 3150 $as_echo_n "(cached) " >&6 3151else 3152 if test -n "$CC"; then 3153 ac_cv_prog_CC="$CC" # Let the user override the test. 3154else 3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3156for as_dir in $PATH 3157do 3158 IFS=$as_save_IFS 3159 test -z "$as_dir" && as_dir=. 3160 for ac_exec_ext in '' $ac_executable_extensions; do 3161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3162 ac_cv_prog_CC="${ac_tool_prefix}cc" 3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3164 break 2 3165 fi 3166done 3167 done 3168IFS=$as_save_IFS 3169 3170fi 3171fi 3172CC=$ac_cv_prog_CC 3173if test -n "$CC"; then 3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3175$as_echo "$CC" >&6; } 3176else 3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3178$as_echo "no" >&6; } 3179fi 3180 3181 3182 fi 3183fi 3184if test -z "$CC"; then 3185 # Extract the first word of "cc", so it can be a program name with args. 3186set dummy cc; ac_word=$2 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3188$as_echo_n "checking for $ac_word... " >&6; } 3189if ${ac_cv_prog_CC+:} false; then : 3190 $as_echo_n "(cached) " >&6 3191else 3192 if test -n "$CC"; then 3193 ac_cv_prog_CC="$CC" # Let the user override the test. 3194else 3195 ac_prog_rejected=no 3196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3197for as_dir in $PATH 3198do 3199 IFS=$as_save_IFS 3200 test -z "$as_dir" && as_dir=. 3201 for ac_exec_ext in '' $ac_executable_extensions; do 3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3203 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3204 ac_prog_rejected=yes 3205 continue 3206 fi 3207 ac_cv_prog_CC="cc" 3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3209 break 2 3210 fi 3211done 3212 done 3213IFS=$as_save_IFS 3214 3215if test $ac_prog_rejected = yes; then 3216 # We found a bogon in the path, so make sure we never use it. 3217 set dummy $ac_cv_prog_CC 3218 shift 3219 if test $# != 0; then 3220 # We chose a different compiler from the bogus one. 3221 # However, it has the same basename, so the bogon will be chosen 3222 # first if we set CC to just the basename; use the full file name. 3223 shift 3224 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3225 fi 3226fi 3227fi 3228fi 3229CC=$ac_cv_prog_CC 3230if test -n "$CC"; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3232$as_echo "$CC" >&6; } 3233else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235$as_echo "no" >&6; } 3236fi 3237 3238 3239fi 3240if test -z "$CC"; then 3241 if test -n "$ac_tool_prefix"; then 3242 for ac_prog in cl.exe 3243 do 3244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3245set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3247$as_echo_n "checking for $ac_word... " >&6; } 3248if ${ac_cv_prog_CC+:} false; then : 3249 $as_echo_n "(cached) " >&6 3250else 3251 if test -n "$CC"; then 3252 ac_cv_prog_CC="$CC" # Let the user override the test. 3253else 3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3255for as_dir in $PATH 3256do 3257 IFS=$as_save_IFS 3258 test -z "$as_dir" && as_dir=. 3259 for ac_exec_ext in '' $ac_executable_extensions; do 3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3261 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3263 break 2 3264 fi 3265done 3266 done 3267IFS=$as_save_IFS 3268 3269fi 3270fi 3271CC=$ac_cv_prog_CC 3272if test -n "$CC"; then 3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3274$as_echo "$CC" >&6; } 3275else 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3277$as_echo "no" >&6; } 3278fi 3279 3280 3281 test -n "$CC" && break 3282 done 3283fi 3284if test -z "$CC"; then 3285 ac_ct_CC=$CC 3286 for ac_prog in cl.exe 3287do 3288 # Extract the first word of "$ac_prog", so it can be a program name with args. 3289set dummy $ac_prog; ac_word=$2 3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3291$as_echo_n "checking for $ac_word... " >&6; } 3292if ${ac_cv_prog_ac_ct_CC+:} false; then : 3293 $as_echo_n "(cached) " >&6 3294else 3295 if test -n "$ac_ct_CC"; then 3296 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3297else 3298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3299for as_dir in $PATH 3300do 3301 IFS=$as_save_IFS 3302 test -z "$as_dir" && as_dir=. 3303 for ac_exec_ext in '' $ac_executable_extensions; do 3304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3305 ac_cv_prog_ac_ct_CC="$ac_prog" 3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3307 break 2 3308 fi 3309done 3310 done 3311IFS=$as_save_IFS 3312 3313fi 3314fi 3315ac_ct_CC=$ac_cv_prog_ac_ct_CC 3316if test -n "$ac_ct_CC"; then 3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3318$as_echo "$ac_ct_CC" >&6; } 3319else 3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3321$as_echo "no" >&6; } 3322fi 3323 3324 3325 test -n "$ac_ct_CC" && break 3326done 3327 3328 if test "x$ac_ct_CC" = x; then 3329 CC="" 3330 else 3331 case $cross_compiling:$ac_tool_warned in 3332yes:) 3333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3335ac_tool_warned=yes ;; 3336esac 3337 CC=$ac_ct_CC 3338 fi 3339fi 3340 3341fi 3342 3343 3344test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3346as_fn_error $? "no acceptable C compiler found in \$PATH 3347See \`config.log' for more details" "$LINENO" 5; } 3348 3349# Provide some information about the compiler. 3350$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3351set X $ac_compile 3352ac_compiler=$2 3353for ac_option in --version -v -V -qversion; do 3354 { { ac_try="$ac_compiler $ac_option >&5" 3355case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3360$as_echo "$ac_try_echo"; } >&5 3361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3362 ac_status=$? 3363 if test -s conftest.err; then 3364 sed '10a\ 3365... rest of stderr output deleted ... 3366 10q' conftest.err >conftest.er1 3367 cat conftest.er1 >&5 3368 fi 3369 rm -f conftest.er1 conftest.err 3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3371 test $ac_status = 0; } 3372done 3373 3374cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3375/* end confdefs.h. */ 3376 3377int 3378main () 3379{ 3380 3381 ; 3382 return 0; 3383} 3384_ACEOF 3385ac_clean_files_save=$ac_clean_files 3386ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3387# Try to create an executable without -o first, disregard a.out. 3388# It will help us diagnose broken compilers, and finding out an intuition 3389# of exeext. 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3391$as_echo_n "checking whether the C compiler works... " >&6; } 3392ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3393 3394# The possible output files: 3395ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3396 3397ac_rmfiles= 3398for ac_file in $ac_files 3399do 3400 case $ac_file in 3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3402 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3403 esac 3404done 3405rm -f $ac_rmfiles 3406 3407if { { ac_try="$ac_link_default" 3408case "(($ac_try" in 3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3410 *) ac_try_echo=$ac_try;; 3411esac 3412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3413$as_echo "$ac_try_echo"; } >&5 3414 (eval "$ac_link_default") 2>&5 3415 ac_status=$? 3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3417 test $ac_status = 0; }; then : 3418 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3419# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3420# in a Makefile. We should not override ac_cv_exeext if it was cached, 3421# so that the user can short-circuit this test for compilers unknown to 3422# Autoconf. 3423for ac_file in $ac_files '' 3424do 3425 test -f "$ac_file" || continue 3426 case $ac_file in 3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3428 ;; 3429 [ab].out ) 3430 # We found the default executable, but exeext='' is most 3431 # certainly right. 3432 break;; 3433 *.* ) 3434 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3435 then :; else 3436 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3437 fi 3438 # We set ac_cv_exeext here because the later test for it is not 3439 # safe: cross compilers may not add the suffix if given an `-o' 3440 # argument, so we may need to know it at that point already. 3441 # Even if this section looks crufty: it has the advantage of 3442 # actually working. 3443 break;; 3444 * ) 3445 break;; 3446 esac 3447done 3448test "$ac_cv_exeext" = no && ac_cv_exeext= 3449 3450else 3451 ac_file='' 3452fi 3453if test -z "$ac_file"; then : 3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3455$as_echo "no" >&6; } 3456$as_echo "$as_me: failed program was:" >&5 3457sed 's/^/| /' conftest.$ac_ext >&5 3458 3459{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3461as_fn_error 77 "C compiler cannot create executables 3462See \`config.log' for more details" "$LINENO" 5; } 3463else 3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3465$as_echo "yes" >&6; } 3466fi 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3468$as_echo_n "checking for C compiler default output file name... " >&6; } 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3470$as_echo "$ac_file" >&6; } 3471ac_exeext=$ac_cv_exeext 3472 3473rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3474ac_clean_files=$ac_clean_files_save 3475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3476$as_echo_n "checking for suffix of executables... " >&6; } 3477if { { ac_try="$ac_link" 3478case "(($ac_try" in 3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3480 *) ac_try_echo=$ac_try;; 3481esac 3482eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3483$as_echo "$ac_try_echo"; } >&5 3484 (eval "$ac_link") 2>&5 3485 ac_status=$? 3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3487 test $ac_status = 0; }; then : 3488 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3489# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3490# work properly (i.e., refer to `conftest.exe'), while it won't with 3491# `rm'. 3492for ac_file in conftest.exe conftest conftest.*; do 3493 test -f "$ac_file" || continue 3494 case $ac_file in 3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3496 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3497 break;; 3498 * ) break;; 3499 esac 3500done 3501else 3502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3504as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3505See \`config.log' for more details" "$LINENO" 5; } 3506fi 3507rm -f conftest conftest$ac_cv_exeext 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3509$as_echo "$ac_cv_exeext" >&6; } 3510 3511rm -f conftest.$ac_ext 3512EXEEXT=$ac_cv_exeext 3513ac_exeext=$EXEEXT 3514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3515/* end confdefs.h. */ 3516#include <stdio.h> 3517int 3518main () 3519{ 3520FILE *f = fopen ("conftest.out", "w"); 3521 return ferror (f) || fclose (f) != 0; 3522 3523 ; 3524 return 0; 3525} 3526_ACEOF 3527ac_clean_files="$ac_clean_files conftest.out" 3528# Check that the compiler produces executables we can run. If not, either 3529# the compiler is broken, or we cross compile. 3530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3531$as_echo_n "checking whether we are cross compiling... " >&6; } 3532if test "$cross_compiling" != yes; then 3533 { { ac_try="$ac_link" 3534case "(($ac_try" in 3535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3536 *) ac_try_echo=$ac_try;; 3537esac 3538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3539$as_echo "$ac_try_echo"; } >&5 3540 (eval "$ac_link") 2>&5 3541 ac_status=$? 3542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3543 test $ac_status = 0; } 3544 if { ac_try='./conftest$ac_cv_exeext' 3545 { { case "(($ac_try" in 3546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3547 *) ac_try_echo=$ac_try;; 3548esac 3549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3550$as_echo "$ac_try_echo"; } >&5 3551 (eval "$ac_try") 2>&5 3552 ac_status=$? 3553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3554 test $ac_status = 0; }; }; then 3555 cross_compiling=no 3556 else 3557 if test "$cross_compiling" = maybe; then 3558 cross_compiling=yes 3559 else 3560 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3561$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3562as_fn_error $? "cannot run C compiled programs. 3563If you meant to cross compile, use \`--host'. 3564See \`config.log' for more details" "$LINENO" 5; } 3565 fi 3566 fi 3567fi 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3569$as_echo "$cross_compiling" >&6; } 3570 3571rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3572ac_clean_files=$ac_clean_files_save 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3574$as_echo_n "checking for suffix of object files... " >&6; } 3575if ${ac_cv_objext+:} false; then : 3576 $as_echo_n "(cached) " >&6 3577else 3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3579/* end confdefs.h. */ 3580 3581int 3582main () 3583{ 3584 3585 ; 3586 return 0; 3587} 3588_ACEOF 3589rm -f conftest.o conftest.obj 3590if { { ac_try="$ac_compile" 3591case "(($ac_try" in 3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3593 *) ac_try_echo=$ac_try;; 3594esac 3595eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3596$as_echo "$ac_try_echo"; } >&5 3597 (eval "$ac_compile") 2>&5 3598 ac_status=$? 3599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3600 test $ac_status = 0; }; then : 3601 for ac_file in conftest.o conftest.obj conftest.*; do 3602 test -f "$ac_file" || continue; 3603 case $ac_file in 3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3605 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3606 break;; 3607 esac 3608done 3609else 3610 $as_echo "$as_me: failed program was:" >&5 3611sed 's/^/| /' conftest.$ac_ext >&5 3612 3613{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3614$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3615as_fn_error $? "cannot compute suffix of object files: cannot compile 3616See \`config.log' for more details" "$LINENO" 5; } 3617fi 3618rm -f conftest.$ac_cv_objext conftest.$ac_ext 3619fi 3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3621$as_echo "$ac_cv_objext" >&6; } 3622OBJEXT=$ac_cv_objext 3623ac_objext=$OBJEXT 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3625$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3626if ${ac_cv_c_compiler_gnu+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3630/* end confdefs.h. */ 3631 3632int 3633main () 3634{ 3635#ifndef __GNUC__ 3636 choke me 3637#endif 3638 3639 ; 3640 return 0; 3641} 3642_ACEOF 3643if ac_fn_c_try_compile "$LINENO"; then : 3644 ac_compiler_gnu=yes 3645else 3646 ac_compiler_gnu=no 3647fi 3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3649ac_cv_c_compiler_gnu=$ac_compiler_gnu 3650 3651fi 3652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3653$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3654if test $ac_compiler_gnu = yes; then 3655 GCC=yes 3656else 3657 GCC= 3658fi 3659ac_test_CFLAGS=${CFLAGS+set} 3660ac_save_CFLAGS=$CFLAGS 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3662$as_echo_n "checking whether $CC accepts -g... " >&6; } 3663if ${ac_cv_prog_cc_g+:} false; then : 3664 $as_echo_n "(cached) " >&6 3665else 3666 ac_save_c_werror_flag=$ac_c_werror_flag 3667 ac_c_werror_flag=yes 3668 ac_cv_prog_cc_g=no 3669 CFLAGS="-g" 3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3671/* end confdefs.h. */ 3672 3673int 3674main () 3675{ 3676 3677 ; 3678 return 0; 3679} 3680_ACEOF 3681if ac_fn_c_try_compile "$LINENO"; then : 3682 ac_cv_prog_cc_g=yes 3683else 3684 CFLAGS="" 3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3686/* end confdefs.h. */ 3687 3688int 3689main () 3690{ 3691 3692 ; 3693 return 0; 3694} 3695_ACEOF 3696if ac_fn_c_try_compile "$LINENO"; then : 3697 3698else 3699 ac_c_werror_flag=$ac_save_c_werror_flag 3700 CFLAGS="-g" 3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3702/* end confdefs.h. */ 3703 3704int 3705main () 3706{ 3707 3708 ; 3709 return 0; 3710} 3711_ACEOF 3712if ac_fn_c_try_compile "$LINENO"; then : 3713 ac_cv_prog_cc_g=yes 3714fi 3715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3716fi 3717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3718fi 3719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3720 ac_c_werror_flag=$ac_save_c_werror_flag 3721fi 3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3723$as_echo "$ac_cv_prog_cc_g" >&6; } 3724if test "$ac_test_CFLAGS" = set; then 3725 CFLAGS=$ac_save_CFLAGS 3726elif test $ac_cv_prog_cc_g = yes; then 3727 if test "$GCC" = yes; then 3728 CFLAGS="-g -O2" 3729 else 3730 CFLAGS="-g" 3731 fi 3732else 3733 if test "$GCC" = yes; then 3734 CFLAGS="-O2" 3735 else 3736 CFLAGS= 3737 fi 3738fi 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3740$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3741if ${ac_cv_prog_cc_c89+:} false; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 ac_cv_prog_cc_c89=no 3745ac_save_CC=$CC 3746cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3747/* end confdefs.h. */ 3748#include <stdarg.h> 3749#include <stdio.h> 3750#include <sys/types.h> 3751#include <sys/stat.h> 3752/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3753struct buf { int x; }; 3754FILE * (*rcsopen) (struct buf *, struct stat *, int); 3755static char *e (p, i) 3756 char **p; 3757 int i; 3758{ 3759 return p[i]; 3760} 3761static char *f (char * (*g) (char **, int), char **p, ...) 3762{ 3763 char *s; 3764 va_list v; 3765 va_start (v,p); 3766 s = g (p, va_arg (v,int)); 3767 va_end (v); 3768 return s; 3769} 3770 3771/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3772 function prototypes and stuff, but not '\xHH' hex character constants. 3773 These don't provoke an error unfortunately, instead are silently treated 3774 as 'x'. The following induces an error, until -std is added to get 3775 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3776 array size at least. It's necessary to write '\x00'==0 to get something 3777 that's true only with -std. */ 3778int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3779 3780/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3781 inside strings and character constants. */ 3782#define FOO(x) 'x' 3783int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3784 3785int test (int i, double x); 3786struct s1 {int (*f) (int a);}; 3787struct s2 {int (*f) (double a);}; 3788int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3789int argc; 3790char **argv; 3791int 3792main () 3793{ 3794return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3795 ; 3796 return 0; 3797} 3798_ACEOF 3799for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3800 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3801do 3802 CC="$ac_save_CC $ac_arg" 3803 if ac_fn_c_try_compile "$LINENO"; then : 3804 ac_cv_prog_cc_c89=$ac_arg 3805fi 3806rm -f core conftest.err conftest.$ac_objext 3807 test "x$ac_cv_prog_cc_c89" != "xno" && break 3808done 3809rm -f conftest.$ac_ext 3810CC=$ac_save_CC 3811 3812fi 3813# AC_CACHE_VAL 3814case "x$ac_cv_prog_cc_c89" in 3815 x) 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3817$as_echo "none needed" >&6; } ;; 3818 xno) 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3820$as_echo "unsupported" >&6; } ;; 3821 *) 3822 CC="$CC $ac_cv_prog_cc_c89" 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3824$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3825esac 3826if test "x$ac_cv_prog_cc_c89" != xno; then : 3827 3828fi 3829 3830ac_ext=c 3831ac_cpp='$CPP $CPPFLAGS' 3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3834ac_compiler_gnu=$ac_cv_c_compiler_gnu 3835 3836 3837 3838# Check whether --with-linux-audit was given. 3839if test "${with_linux_audit+set}" = set; then : 3840 withval=$with_linux_audit; case $with_linux_audit in 3841 yes) cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3842/* end confdefs.h. */ 3843#include <libaudit.h> 3844int 3845main () 3846{ 3847int i = AUDIT_USER_CMD; (void)i; 3848 ; 3849 return 0; 3850} 3851_ACEOF 3852if ac_fn_c_try_compile "$LINENO"; then : 3853 3854 $as_echo "#define HAVE_LINUX_AUDIT 1" >>confdefs.h 3855 3856 SUDO_LIBS="${SUDO_LIBS} -laudit" 3857 SUDO_OBJS="${SUDO_OBJS} linux_audit.o" 3858 3859else 3860 3861 as_fn_error $? "unable to find AUDIT_USER_CMD in libaudit.h for --with-linux-audit" "$LINENO" 5 3862 3863fi 3864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3865 ;; 3866 no) ;; 3867 *) as_fn_error $? "\"--with-linux-audit does not take an argument.\"" "$LINENO" 5 3868 ;; 3869esac 3870fi 3871 3872 3873 3874# Check whether --with-incpath was given. 3875if test "${with_incpath+set}" = set; then : 3876 withval=$with_incpath; case $with_incpath in 3877 yes) as_fn_error $? "\"must give --with-incpath an argument.\"" "$LINENO" 5 3878 ;; 3879 no) as_fn_error $? "\"--without-incpath not supported.\"" "$LINENO" 5 3880 ;; 3881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_incpath} to CPPFLAGS" >&5 3882$as_echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;} 3883 for i in ${with_incpath}; do 3884 CPPFLAGS="${CPPFLAGS} -I${i}" 3885 done 3886 ;; 3887esac 3888fi 3889 3890 3891 3892# Check whether --with-libpath was given. 3893if test "${with_libpath+set}" = set; then : 3894 withval=$with_libpath; case $with_libpath in 3895 yes) as_fn_error $? "\"must give --with-libpath an argument.\"" "$LINENO" 5 3896 ;; 3897 no) as_fn_error $? "\"--without-libpath not supported.\"" "$LINENO" 5 3898 ;; 3899 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libpath} to LDFLAGS" >&5 3900$as_echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;} 3901 ;; 3902esac 3903fi 3904 3905 3906 3907# Check whether --with-libraries was given. 3908if test "${with_libraries+set}" = set; then : 3909 withval=$with_libraries; case $with_libraries in 3910 yes) as_fn_error $? "\"must give --with-libraries an argument.\"" "$LINENO" 5 3911 ;; 3912 no) as_fn_error $? "\"--without-libraries not supported.\"" "$LINENO" 5 3913 ;; 3914 *) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding ${with_libraries} to LIBS" >&5 3915$as_echo "$as_me: Adding ${with_libraries} to LIBS" >&6;} 3916 ;; 3917esac 3918fi 3919 3920 3921 3922# Check whether --with-efence was given. 3923if test "${with_efence+set}" = set; then : 3924 withval=$with_efence; case $with_efence in 3925 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Sudo will link with -lefence (Electric Fence)" >&5 3926$as_echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;} 3927 LIBS="${LIBS} -lefence" 3928 if test -f /usr/local/lib/libefence.a; then 3929 with_libpath="${with_libpath} /usr/local/lib" 3930 fi 3931 ;; 3932 no) ;; 3933 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5 3934$as_echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;} 3935 ;; 3936esac 3937fi 3938 3939 3940 3941# Check whether --with-csops was given. 3942if test "${with_csops+set}" = set; then : 3943 withval=$with_csops; case $with_csops in 3944 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CSOps standard options" >&5 3945$as_echo "$as_me: Adding CSOps standard options" >&6;} 3946 CHECKSIA=false 3947 with_ignore_dot=yes 3948 insults=on 3949 with_classic_insults=yes 3950 with_csops_insults=yes 3951 with_env_editor=yes 3952 : ${mansectsu='8'} 3953 : ${mansectform='5'} 3954 ;; 3955 no) ;; 3956 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5 3957$as_echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;} 3958 ;; 3959esac 3960fi 3961 3962 3963 3964# Check whether --with-passwd was given. 3965if test "${with_passwd+set}" = set; then : 3966 withval=$with_passwd; case $with_passwd in 3967 yes|no) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shadow/passwd file authentication" >&5 3968$as_echo_n "checking whether to use shadow/passwd file authentication... " >&6; } 3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_passwd" >&5 3970$as_echo "$with_passwd" >&6; } 3971 AUTH_DEF="" 3972 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd" 3973 ;; 3974 *) as_fn_error $? "\"Sorry, --with-passwd does not take an argument.\"" "$LINENO" 5 3975 ;; 3976esac 3977fi 3978 3979 3980 3981# Check whether --with-skey was given. 3982if test "${with_skey+set}" = set; then : 3983 withval=$with_skey; case $with_skey in 3984 no) ;; 3985 *) $as_echo "#define HAVE_SKEY 1" >>confdefs.h 3986 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try S/Key authentication" >&5 3988$as_echo_n "checking whether to try S/Key authentication... " >&6; } 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3990$as_echo "yes" >&6; } 3991 AUTH_REG="$AUTH_REG S/Key" 3992 ;; 3993esac 3994fi 3995 3996 3997 3998# Check whether --with-opie was given. 3999if test "${with_opie+set}" = set; then : 4000 withval=$with_opie; case $with_opie in 4001 no) ;; 4002 *) $as_echo "#define HAVE_OPIE 1" >>confdefs.h 4003 4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try NRL OPIE authentication" >&5 4005$as_echo_n "checking whether to try NRL OPIE authentication... " >&6; } 4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4007$as_echo "yes" >&6; } 4008 AUTH_REG="$AUTH_REG NRL_OPIE" 4009 ;; 4010esac 4011fi 4012 4013 4014 4015# Check whether --with-long-otp-prompt was given. 4016if test "${with_long_otp_prompt+set}" = set; then : 4017 withval=$with_long_otp_prompt; case $with_long_otp_prompt in 4018 yes) $as_echo "#define LONG_OTP_PROMPT 1" >>confdefs.h 4019 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use a two line prompt for OTP authentication" >&5 4021$as_echo_n "checking whether to use a two line prompt for OTP authentication... " >&6; } 4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4023$as_echo "yes" >&6; } 4024 long_otp_prompt=on 4025 ;; 4026 no) long_otp_prompt=off 4027 ;; 4028 *) as_fn_error $? "\"--with-long-otp-prompt does not take an argument.\"" "$LINENO" 5 4029 ;; 4030esac 4031fi 4032 4033 4034 4035# Check whether --with-SecurID was given. 4036if test "${with_SecurID+set}" = set; then : 4037 withval=$with_SecurID; case $with_SecurID in 4038 no) ;; 4039 *) $as_echo "#define HAVE_SECURID 1" >>confdefs.h 4040 4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use SecurID for authentication" >&5 4042$as_echo_n "checking whether to use SecurID for authentication... " >&6; } 4043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4044$as_echo "yes" >&6; } 4045 AUTH_EXCL="$AUTH_EXCL SecurID" 4046 ;; 4047esac 4048fi 4049 4050 4051 4052# Check whether --with-fwtk was given. 4053if test "${with_fwtk+set}" = set; then : 4054 withval=$with_fwtk; case $with_fwtk in 4055 no) ;; 4056 *) $as_echo "#define HAVE_FWTK 1" >>confdefs.h 4057 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use FWTK AuthSRV for authentication" >&5 4059$as_echo_n "checking whether to use FWTK AuthSRV for authentication... " >&6; } 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4061$as_echo "yes" >&6; } 4062 AUTH_EXCL="$AUTH_EXCL FWTK" 4063 ;; 4064esac 4065fi 4066 4067 4068 4069# Check whether --with-kerb4 was given. 4070if test "${with_kerb4+set}" = set; then : 4071 withval=$with_kerb4; case $with_kerb4 in 4072 no) ;; 4073 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try kerberos IV authentication" >&5 4074$as_echo_n "checking whether to try kerberos IV authentication... " >&6; } 4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4076$as_echo "yes" >&6; } 4077 AUTH_REG="$AUTH_REG kerb4" 4078 ;; 4079esac 4080fi 4081 4082 4083 4084# Check whether --with-kerb5 was given. 4085if test "${with_kerb5+set}" = set; then : 4086 withval=$with_kerb5; case $with_kerb5 in 4087 no) ;; 4088 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try Kerberos V authentication" >&5 4089$as_echo_n "checking whether to try Kerberos V authentication... " >&6; } 4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4091$as_echo "yes" >&6; } 4092 AUTH_REG="$AUTH_REG kerb5" 4093 ;; 4094esac 4095fi 4096 4097 4098 4099# Check whether --with-aixauth was given. 4100if test "${with_aixauth+set}" = set; then : 4101 withval=$with_aixauth; case $with_aixauth in 4102 yes) AUTH_EXCL="$AUTH_EXCL AIX_AUTH";; 4103 no) ;; 4104 *) as_fn_error $? "\"--with-aixauth does not take an argument.\"" "$LINENO" 5 4105 ;; 4106esac 4107fi 4108 4109 4110 4111# Check whether --with-pam was given. 4112if test "${with_pam+set}" = set; then : 4113 withval=$with_pam; case $with_pam in 4114 yes) AUTH_EXCL="$AUTH_EXCL PAM";; 4115 no) ;; 4116 *) as_fn_error $? "\"--with-pam does not take an argument.\"" "$LINENO" 5 4117 ;; 4118esac 4119fi 4120 4121 4122 4123# Check whether --with-AFS was given. 4124if test "${with_AFS+set}" = set; then : 4125 withval=$with_AFS; case $with_AFS in 4126 yes) $as_echo "#define HAVE_AFS 1" >>confdefs.h 4127 4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try AFS (kerberos) authentication" >&5 4129$as_echo_n "checking whether to try AFS (kerberos) authentication... " >&6; } 4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4131$as_echo "yes" >&6; } 4132 AUTH_REG="$AUTH_REG AFS" 4133 ;; 4134 no) ;; 4135 *) as_fn_error $? "\"--with-AFS does not take an argument.\"" "$LINENO" 5 4136 ;; 4137esac 4138fi 4139 4140 4141 4142# Check whether --with-DCE was given. 4143if test "${with_DCE+set}" = set; then : 4144 withval=$with_DCE; case $with_DCE in 4145 yes) $as_echo "#define HAVE_DCE 1" >>confdefs.h 4146 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to try DCE (kerberos) authentication" >&5 4148$as_echo_n "checking whether to try DCE (kerberos) authentication... " >&6; } 4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4150$as_echo "yes" >&6; } 4151 AUTH_REG="$AUTH_REG DCE" 4152 ;; 4153 no) ;; 4154 *) as_fn_error $? "\"--with-DCE does not take an argument.\"" "$LINENO" 5 4155 ;; 4156esac 4157fi 4158 4159 4160 4161# Check whether --with-logincap was given. 4162if test "${with_logincap+set}" = set; then : 4163 withval=$with_logincap; case $with_logincap in 4164 yes|no) ;; 4165 *) as_fn_error $? "\"--with-logincap does not take an argument.\"" "$LINENO" 5 4166 ;; 4167esac 4168fi 4169 4170 4171 4172# Check whether --with-bsdauth was given. 4173if test "${with_bsdauth+set}" = set; then : 4174 withval=$with_bsdauth; case $with_bsdauth in 4175 yes) AUTH_EXCL="$AUTH_EXCL BSD_AUTH";; 4176 no) ;; 4177 *) as_fn_error $? "\"--with-bsdauth does not take an argument.\"" "$LINENO" 5 4178 ;; 4179esac 4180fi 4181 4182 4183 4184# Check whether --with-project was given. 4185if test "${with_project+set}" = set; then : 4186 withval=$with_project; case $with_project in 4187 yes|no) ;; 4188 no) ;; 4189 *) as_fn_error $? "\"--with-project does not take an argument.\"" "$LINENO" 5 4190 ;; 4191esac 4192fi 4193 4194 4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to lecture users the first time they run sudo" >&5 4196$as_echo_n "checking whether to lecture users the first time they run sudo... " >&6; } 4197 4198# Check whether --with-lecture was given. 4199if test "${with_lecture+set}" = set; then : 4200 withval=$with_lecture; case $with_lecture in 4201 yes|short|always) lecture=once 4202 ;; 4203 no|none|never) lecture=never 4204 ;; 4205 *) as_fn_error $? "\"unknown argument to --with-lecture: $with_lecture\"" "$LINENO" 5 4206 ;; 4207esac 4208fi 4209 4210if test "$lecture" = "once"; then 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4212$as_echo "yes" >&6; } 4213else 4214 $as_echo "#define NO_LECTURE 1" >>confdefs.h 4215 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4217$as_echo "no" >&6; } 4218fi 4219 4220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should log via syslog or to a file by default" >&5 4221$as_echo_n "checking whether sudo should log via syslog or to a file by default... " >&6; } 4222 4223# Check whether --with-logging was given. 4224if test "${with_logging+set}" = set; then : 4225 withval=$with_logging; case $with_logging in 4226 yes) as_fn_error $? "\"must give --with-logging an argument.\"" "$LINENO" 5 4227 ;; 4228 no) as_fn_error $? "\"--without-logging not supported.\"" "$LINENO" 5 4229 ;; 4230 syslog) $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h 4231 4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5 4233$as_echo "syslog" >&6; } 4234 ;; 4235 file) $as_echo "#define LOGGING SLOG_FILE" >>confdefs.h 4236 4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file" >&5 4238$as_echo "file" >&6; } 4239 ;; 4240 both) $as_echo "#define LOGGING SLOG_BOTH" >>confdefs.h 4241 4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: both" >&5 4243$as_echo "both" >&6; } 4244 ;; 4245 *) as_fn_error $? "\"unknown argument to --with-logging: $with_logging\"" "$LINENO" 5 4246 ;; 4247esac 4248else 4249 $as_echo "#define LOGGING SLOG_SYSLOG" >>confdefs.h 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: syslog" >&5 4251$as_echo "syslog" >&6; } 4252fi 4253 4254 4255 4256# Check whether --with-logfac was given. 4257if test "${with_logfac+set}" = set; then : 4258 withval=$with_logfac; case $with_logfac in 4259 yes) as_fn_error $? "\"must give --with-logfac an argument.\"" "$LINENO" 5 4260 ;; 4261 no) as_fn_error $? "\"--without-logfac not supported.\"" "$LINENO" 5 4262 ;; 4263 authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7) logfac=$with_logfac 4264 ;; 4265 *) as_fn_error $? "\"$with_logfac is not a supported syslog facility.\"" "$LINENO" 5 4266 ;; 4267esac 4268fi 4269 4270 4271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log commands" >&5 4272$as_echo_n "checking at which syslog priority to log commands... " >&6; } 4273 4274# Check whether --with-goodpri was given. 4275if test "${with_goodpri+set}" = set; then : 4276 withval=$with_goodpri; case $with_goodpri in 4277 yes) as_fn_error $? "\"must give --with-goodpri an argument.\"" "$LINENO" 5 4278 ;; 4279 no) as_fn_error $? "\"--without-goodpri not supported.\"" "$LINENO" 5 4280 ;; 4281 alert|crit|debug|emerg|err|info|notice|warning) 4282 goodpri=$with_goodpri 4283 ;; 4284 *) as_fn_error $? "\"$with_goodpri is not a supported syslog priority.\"" "$LINENO" 5 4285 ;; 4286esac 4287fi 4288 4289 4290cat >>confdefs.h <<_ACEOF 4291#define PRI_SUCCESS "$goodpri" 4292_ACEOF 4293 4294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $goodpri" >&5 4295$as_echo "$goodpri" >&6; } 4296 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking at which syslog priority to log failures" >&5 4298$as_echo_n "checking at which syslog priority to log failures... " >&6; } 4299 4300# Check whether --with-badpri was given. 4301if test "${with_badpri+set}" = set; then : 4302 withval=$with_badpri; case $with_badpri in 4303 yes) as_fn_error $? "\"must give --with-badpri an argument.\"" "$LINENO" 5 4304 ;; 4305 no) as_fn_error $? "\"--without-badpri not supported.\"" "$LINENO" 5 4306 ;; 4307 alert|crit|debug|emerg|err|info|notice|warning) 4308 badpri=$with_badpri 4309 ;; 4310 *) as_fn_error $? "$with_badpri is not a supported syslog priority." "$LINENO" 5 4311 ;; 4312esac 4313fi 4314 4315 4316cat >>confdefs.h <<_ACEOF 4317#define PRI_FAILURE "$badpri" 4318_ACEOF 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpri" >&5 4321$as_echo "$badpri" >&6; } 4322 4323 4324# Check whether --with-logpath was given. 4325if test "${with_logpath+set}" = set; then : 4326 withval=$with_logpath; case $with_logpath in 4327 yes) as_fn_error $? "\"must give --with-logpath an argument.\"" "$LINENO" 5 4328 ;; 4329 no) as_fn_error $? "\"--without-logpath not supported.\"" "$LINENO" 5 4330 ;; 4331esac 4332fi 4333 4334 4335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how long a line in the log file should be" >&5 4336$as_echo_n "checking how long a line in the log file should be... " >&6; } 4337 4338# Check whether --with-loglen was given. 4339if test "${with_loglen+set}" = set; then : 4340 withval=$with_loglen; case $with_loglen in 4341 yes) as_fn_error $? "\"must give --with-loglen an argument.\"" "$LINENO" 5 4342 ;; 4343 no) as_fn_error $? "\"--without-loglen not supported.\"" "$LINENO" 5 4344 ;; 4345 [0-9]*) loglen=$with_loglen 4346 ;; 4347 *) as_fn_error $? "\"you must enter a number, not $with_loglen\"" "$LINENO" 5 4348 ;; 4349esac 4350fi 4351 4352 4353cat >>confdefs.h <<_ACEOF 4354#define MAXLOGFILELEN $loglen 4355_ACEOF 4356 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $loglen" >&5 4358$as_echo "$loglen" >&6; } 4359 4360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sudo should ignore '.' or '' in \$PATH" >&5 4361$as_echo_n "checking whether sudo should ignore '.' or '' in \$PATH... " >&6; } 4362 4363# Check whether --with-ignore-dot was given. 4364if test "${with_ignore_dot+set}" = set; then : 4365 withval=$with_ignore_dot; case $with_ignore_dot in 4366 yes) ignore_dot=on 4367 ;; 4368 no) ignore_dot=off 4369 ;; 4370 *) as_fn_error $? "\"--with-ignore-dot does not take an argument.\"" "$LINENO" 5 4371 ;; 4372esac 4373fi 4374 4375if test "$ignore_dot" = "on"; then 4376 $as_echo "#define IGNORE_DOT_PATH 1" >>confdefs.h 4377 4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4379$as_echo "yes" >&6; } 4380else 4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4382$as_echo "no" >&6; } 4383fi 4384 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user is not in sudoers" >&5 4386$as_echo_n "checking whether to send mail when a user is not in sudoers... " >&6; } 4387 4388# Check whether --with-mail-if-no-user was given. 4389if test "${with_mail_if_no_user+set}" = set; then : 4390 withval=$with_mail_if_no_user; case $with_mail_if_no_user in 4391 yes) mail_no_user=on 4392 ;; 4393 no) mail_no_user=off 4394 ;; 4395 *) as_fn_error $? "\"--with-mail-if-no-user does not take an argument.\"" "$LINENO" 5 4396 ;; 4397esac 4398fi 4399 4400if test "$mail_no_user" = "on"; then 4401 $as_echo "#define SEND_MAIL_WHEN_NO_USER 1" >>confdefs.h 4402 4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4404$as_echo "yes" >&6; } 4405else 4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4407$as_echo "no" >&6; } 4408fi 4409 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when user listed but not for this host" >&5 4411$as_echo_n "checking whether to send mail when user listed but not for this host... " >&6; } 4412 4413# Check whether --with-mail-if-no-host was given. 4414if test "${with_mail_if_no_host+set}" = set; then : 4415 withval=$with_mail_if_no_host; case $with_mail_if_no_host in 4416 yes) mail_no_host=on 4417 ;; 4418 no) mail_no_host=off 4419 ;; 4420 *) as_fn_error $? "\"--with-mail-if-no-host does not take an argument.\"" "$LINENO" 5 4421 ;; 4422esac 4423fi 4424 4425if test "$mail_no_host" = "on"; then 4426 $as_echo "#define SEND_MAIL_WHEN_NO_HOST 1" >>confdefs.h 4427 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4429$as_echo "yes" >&6; } 4430else 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4432$as_echo "no" >&6; } 4433fi 4434 4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to send mail when a user tries a disallowed command" >&5 4436$as_echo_n "checking whether to send mail when a user tries a disallowed command... " >&6; } 4437 4438# Check whether --with-mail-if-noperms was given. 4439if test "${with_mail_if_noperms+set}" = set; then : 4440 withval=$with_mail_if_noperms; case $with_mail_if_noperms in 4441 yes) mail_noperms=on 4442 ;; 4443 no) mail_noperms=off 4444 ;; 4445 *) as_fn_error $? "\"--with-mail-if-noperms does not take an argument.\"" "$LINENO" 5 4446 ;; 4447esac 4448fi 4449 4450if test "$mail_noperms" = "on"; then 4451 $as_echo "#define SEND_MAIL_WHEN_NOT_OK 1" >>confdefs.h 4452 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4454$as_echo "yes" >&6; } 4455else 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4457$as_echo "no" >&6; } 4458fi 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking who should get the mail that sudo sends" >&5 4461$as_echo_n "checking who should get the mail that sudo sends... " >&6; } 4462 4463# Check whether --with-mailto was given. 4464if test "${with_mailto+set}" = set; then : 4465 withval=$with_mailto; case $with_mailto in 4466 yes) as_fn_error $? "\"must give --with-mailto an argument.\"" "$LINENO" 5 4467 ;; 4468 no) as_fn_error $? "\"--without-mailto not supported.\"" "$LINENO" 5 4469 ;; 4470 *) mailto=$with_mailto 4471 ;; 4472esac 4473fi 4474 4475 4476cat >>confdefs.h <<_ACEOF 4477#define MAILTO "$mailto" 4478_ACEOF 4479 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $mailto" >&5 4481$as_echo "$mailto" >&6; } 4482 4483 4484# Check whether --with-mailsubject was given. 4485if test "${with_mailsubject+set}" = set; then : 4486 withval=$with_mailsubject; case $with_mailsubject in 4487 yes) as_fn_error $? "\"must give --with-mailsubject an argument.\"" "$LINENO" 5 4488 ;; 4489 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-mailsubject not supported." >&5 4490$as_echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;} 4491 ;; 4492 *) mailsub="$with_mailsubject" 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sudo mail subject" >&5 4494$as_echo_n "checking sudo mail subject... " >&6; } 4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using alert mail subject: $mailsub" >&5 4496$as_echo "Using alert mail subject: $mailsub" >&6; } 4497 ;; 4498esac 4499fi 4500 4501 4502cat >>confdefs.h <<_ACEOF 4503#define MAILSUBJECT "$mailsub" 4504_ACEOF 4505 4506 4507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password prompt" >&5 4508$as_echo_n "checking for bad password prompt... " >&6; } 4509 4510# Check whether --with-passprompt was given. 4511if test "${with_passprompt+set}" = set; then : 4512 withval=$with_passprompt; case $with_passprompt in 4513 yes) as_fn_error $? "\"must give --with-passprompt an argument.\"" "$LINENO" 5 4514 ;; 4515 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-passprompt not supported." >&5 4516$as_echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;} 4517 ;; 4518 *) passprompt="$with_passprompt" 4519esac 4520fi 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $passprompt" >&5 4523$as_echo "$passprompt" >&6; } 4524 4525cat >>confdefs.h <<_ACEOF 4526#define PASSPROMPT "$passprompt" 4527_ACEOF 4528 4529 4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bad password message" >&5 4531$as_echo_n "checking for bad password message... " >&6; } 4532 4533# Check whether --with-badpass-message was given. 4534if test "${with_badpass_message+set}" = set; then : 4535 withval=$with_badpass_message; case $with_badpass_message in 4536 yes) as_fn_error $? "\"Must give --with-badpass-message an argument.\"" "$LINENO" 5 4537 ;; 4538 no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, --without-badpass-message not supported." >&5 4539$as_echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;} 4540 ;; 4541 *) badpass_message="$with_badpass_message" 4542 ;; 4543esac 4544fi 4545 4546 4547cat >>confdefs.h <<_ACEOF 4548#define INCORRECT_PASSWORD "$badpass_message" 4549_ACEOF 4550 4551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $badpass_message" >&5 4552$as_echo "$badpass_message" >&6; } 4553 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to expect fully qualified hosts in sudoers" >&5 4555$as_echo_n "checking whether to expect fully qualified hosts in sudoers... " >&6; } 4556 4557# Check whether --with-fqdn was given. 4558if test "${with_fqdn+set}" = set; then : 4559 withval=$with_fqdn; case $with_fqdn in 4560 yes) fqdn=on 4561 ;; 4562 no) fqdn=off 4563 ;; 4564 *) as_fn_error $? "\"--with-fqdn does not take an argument.\"" "$LINENO" 5 4565 ;; 4566esac 4567fi 4568 4569if test "$fqdn" = "on"; then 4570 $as_echo "#define FQDN 1" >>confdefs.h 4571 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4573$as_echo "yes" >&6; } 4574else 4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4576$as_echo "no" >&6; } 4577fi 4578 4579 4580# Check whether --with-timedir was given. 4581if test "${with_timedir+set}" = set; then : 4582 withval=$with_timedir; case $with_timedir in 4583 yes) as_fn_error $? "\"must give --with-timedir an argument.\"" "$LINENO" 5 4584 ;; 4585 no) as_fn_error $? "\"--without-timedir not supported.\"" "$LINENO" 5 4586 ;; 4587esac 4588fi 4589 4590 4591 4592# Check whether --with-iologdir was given. 4593if test "${with_iologdir+set}" = set; then : 4594 withval=$with_iologdir; case $with_iologdir in 4595 yes) ;; 4596 no) ;; 4597esac 4598fi 4599 4600 4601 4602# Check whether --with-sendmail was given. 4603if test "${with_sendmail+set}" = set; then : 4604 withval=$with_sendmail; case $with_sendmail in 4605 yes) with_sendmail="" 4606 ;; 4607 no) ;; 4608 *) cat >>confdefs.h <<EOF 4609#define _PATH_SUDO_SENDMAIL "$with_sendmail" 4610EOF 4611 4612 ;; 4613esac 4614fi 4615 4616 4617 4618# Check whether --with-sudoers-mode was given. 4619if test "${with_sudoers_mode+set}" = set; then : 4620 withval=$with_sudoers_mode; case $with_sudoers_mode in 4621 yes) as_fn_error $? "\"must give --with-sudoers-mode an argument.\"" "$LINENO" 5 4622 ;; 4623 no) as_fn_error $? "\"--without-sudoers-mode not supported.\"" "$LINENO" 5 4624 ;; 4625 [1-9]*) SUDOERS_MODE=0${with_sudoers_mode} 4626 ;; 4627 0*) SUDOERS_MODE=$with_sudoers_mode 4628 ;; 4629 *) as_fn_error $? "\"you must use an octal mode, not a name.\"" "$LINENO" 5 4630 ;; 4631esac 4632fi 4633 4634 4635 4636# Check whether --with-sudoers-uid was given. 4637if test "${with_sudoers_uid+set}" = set; then : 4638 withval=$with_sudoers_uid; case $with_sudoers_uid in 4639 yes) as_fn_error $? "\"must give --with-sudoers-uid an argument.\"" "$LINENO" 5 4640 ;; 4641 no) as_fn_error $? "\"--without-sudoers-uid not supported.\"" "$LINENO" 5 4642 ;; 4643 [0-9]*) SUDOERS_UID=$with_sudoers_uid 4644 ;; 4645 *) as_fn_error $? "\"you must use an unsigned numeric uid, not a name.\"" "$LINENO" 5 4646 ;; 4647esac 4648fi 4649 4650 4651 4652# Check whether --with-sudoers-gid was given. 4653if test "${with_sudoers_gid+set}" = set; then : 4654 withval=$with_sudoers_gid; case $with_sudoers_gid in 4655 yes) as_fn_error $? "\"must give --with-sudoers-gid an argument.\"" "$LINENO" 5 4656 ;; 4657 no) as_fn_error $? "\"--without-sudoers-gid not supported.\"" "$LINENO" 5 4658 ;; 4659 [0-9]*) SUDOERS_GID=$with_sudoers_gid 4660 ;; 4661 *) as_fn_error $? "\"you must use an unsigned numeric gid, not a name.\"" "$LINENO" 5 4662 ;; 4663esac 4664fi 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for umask programs should be run with" >&5 4668$as_echo_n "checking for umask programs should be run with... " >&6; } 4669 4670# Check whether --with-umask was given. 4671if test "${with_umask+set}" = set; then : 4672 withval=$with_umask; case $with_umask in 4673 yes) as_fn_error $? "\"must give --with-umask an argument.\"" "$LINENO" 5 4674 ;; 4675 no) sudo_umask=0777 4676 ;; 4677 [0-9]*) sudo_umask=$with_umask 4678 ;; 4679 *) as_fn_error $? "\"you must enter a numeric mask.\"" "$LINENO" 5 4680 ;; 4681esac 4682fi 4683 4684 4685cat >>confdefs.h <<_ACEOF 4686#define SUDO_UMASK $sudo_umask 4687_ACEOF 4688 4689if test "$sudo_umask" = "0777"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user" >&5 4691$as_echo "user" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_umask" >&5 4694$as_echo "$sudo_umask" >&6; } 4695fi 4696 4697 4698# Check whether --with-umask-override was given. 4699if test "${with_umask_override+set}" = set; then : 4700 withval=$with_umask_override; case $with_umask_override in 4701 yes) $as_echo "#define UMASK_OVERRIDE 1" >>confdefs.h 4702 4703 umask_override=on 4704 ;; 4705 no) umask_override=off 4706 ;; 4707 *) as_fn_error $? "\"--with-umask-override does not take an argument.\"" "$LINENO" 5 4708 ;; 4709esac 4710fi 4711 4712 4713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for default user to run commands as" >&5 4714$as_echo_n "checking for default user to run commands as... " >&6; } 4715 4716# Check whether --with-runas-default was given. 4717if test "${with_runas_default+set}" = set; then : 4718 withval=$with_runas_default; case $with_runas_default in 4719 yes) as_fn_error $? "\"must give --with-runas-default an argument.\"" "$LINENO" 5 4720 ;; 4721 no) as_fn_error $? "\"--without-runas-default not supported.\"" "$LINENO" 5 4722 ;; 4723 *) runas_default="$with_runas_default" 4724 ;; 4725esac 4726fi 4727 4728 4729cat >>confdefs.h <<_ACEOF 4730#define RUNAS_DEFAULT "$runas_default" 4731_ACEOF 4732 4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $runas_default" >&5 4734$as_echo "$runas_default" >&6; } 4735 4736 4737# Check whether --with-exempt was given. 4738if test "${with_exempt+set}" = set; then : 4739 withval=$with_exempt; case $with_exempt in 4740 yes) as_fn_error $? "\"must give --with-exempt an argument.\"" "$LINENO" 5 4741 ;; 4742 no) as_fn_error $? "\"--without-exempt not supported.\"" "$LINENO" 5 4743 ;; 4744 *) 4745cat >>confdefs.h <<_ACEOF 4746#define EXEMPTGROUP "$with_exempt" 4747_ACEOF 4748 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for group to be exempt from password" >&5 4750$as_echo_n "checking for group to be exempt from password... " >&6; } 4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_exempt" >&5 4752$as_echo "$with_exempt" >&6; } 4753 ;; 4754esac 4755fi 4756 4757 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for editor that visudo should use" >&5 4759$as_echo_n "checking for editor that visudo should use... " >&6; } 4760 4761# Check whether --with-editor was given. 4762if test "${with_editor+set}" = set; then : 4763 withval=$with_editor; case $with_editor in 4764 yes) as_fn_error $? "\"must give --with-editor an argument.\"" "$LINENO" 5 4765 ;; 4766 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5 4767 ;; 4768 *) 4769cat >>confdefs.h <<_ACEOF 4770#define EDITOR "$with_editor" 4771_ACEOF 4772 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_editor" >&5 4774$as_echo "$with_editor" >&6; } 4775 editor="$with_editor" 4776 ;; 4777esac 4778else 4779 $as_echo "#define EDITOR _PATH_VI" >>confdefs.h 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: vi" >&5 4781$as_echo "vi" >&6; } 4782fi 4783 4784 4785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to obey EDITOR and VISUAL environment variables" >&5 4786$as_echo_n "checking whether to obey EDITOR and VISUAL environment variables... " >&6; } 4787 4788# Check whether --with-env-editor was given. 4789if test "${with_env_editor+set}" = set; then : 4790 withval=$with_env_editor; case $with_env_editor in 4791 yes) env_editor=on 4792 ;; 4793 no) env_editor=off 4794 ;; 4795 *) as_fn_error $? "\"--with-env-editor does not take an argument.\"" "$LINENO" 5 4796 ;; 4797esac 4798fi 4799 4800if test "$env_editor" = "on"; then 4801 $as_echo "#define ENV_EDITOR 1" >>confdefs.h 4802 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4804$as_echo "yes" >&6; } 4805else 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807$as_echo "no" >&6; } 4808fi 4809 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking number of tries a user gets to enter their password" >&5 4811$as_echo_n "checking number of tries a user gets to enter their password... " >&6; } 4812 4813# Check whether --with-passwd-tries was given. 4814if test "${with_passwd_tries+set}" = set; then : 4815 withval=$with_passwd_tries; case $with_passwd_tries in 4816 yes) ;; 4817 no) as_fn_error $? "\"--without-editor not supported.\"" "$LINENO" 5 4818 ;; 4819 [1-9]*) passwd_tries=$with_passwd_tries 4820 ;; 4821 *) as_fn_error $? "\"you must enter the numer of tries, > 0\"" "$LINENO" 5 4822 ;; 4823esac 4824fi 4825 4826 4827cat >>confdefs.h <<_ACEOF 4828#define TRIES_FOR_PASSWORD $passwd_tries 4829_ACEOF 4830 4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $passwd_tries" >&5 4832$as_echo "$passwd_tries" >&6; } 4833 4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after which sudo will ask for a password again" >&5 4835$as_echo_n "checking time in minutes after which sudo will ask for a password again... " >&6; } 4836 4837# Check whether --with-timeout was given. 4838if test "${with_timeout+set}" = set; then : 4839 withval=$with_timeout; case $with_timeout in 4840 yes) ;; 4841 no) timeout=0 4842 ;; 4843 [0-9]*) timeout=$with_timeout 4844 ;; 4845 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5 4846 ;; 4847esac 4848fi 4849 4850 4851cat >>confdefs.h <<_ACEOF 4852#define TIMEOUT $timeout 4853_ACEOF 4854 4855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timeout" >&5 4856$as_echo "$timeout" >&6; } 4857 4858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking time in minutes after the password prompt will time out" >&5 4859$as_echo_n "checking time in minutes after the password prompt will time out... " >&6; } 4860 4861# Check whether --with-password-timeout was given. 4862if test "${with_password_timeout+set}" = set; then : 4863 withval=$with_password_timeout; case $with_password_timeout in 4864 yes) ;; 4865 no) password_timeout=0 4866 ;; 4867 [0-9]*) password_timeout=$with_password_timeout 4868 ;; 4869 *) as_fn_error $? "\"you must enter the numer of minutes.\"" "$LINENO" 5 4870 ;; 4871esac 4872fi 4873 4874 4875cat >>confdefs.h <<_ACEOF 4876#define PASSWORD_TIMEOUT $password_timeout 4877_ACEOF 4878 4879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $password_timeout" >&5 4880$as_echo "$password_timeout" >&6; } 4881 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use per-tty ticket files" >&5 4883$as_echo_n "checking whether to use per-tty ticket files... " >&6; } 4884 4885# Check whether --with-tty-tickets was given. 4886if test "${with_tty_tickets+set}" = set; then : 4887 withval=$with_tty_tickets; case $with_tty_tickets in 4888 yes) tty_tickets=on 4889 ;; 4890 no) tty_tickets=off 4891 ;; 4892 *) as_fn_error $? "\"--with-tty-tickets does not take an argument.\"" "$LINENO" 5 4893 ;; 4894esac 4895fi 4896 4897if test "$tty_tickets" = "off"; then 4898 $as_echo "#define NO_TTY_TICKETS 1" >>confdefs.h 4899 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4901$as_echo "no" >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4904$as_echo "yes" >&6; } 4905fi 4906 4907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include insults" >&5 4908$as_echo_n "checking whether to include insults... " >&6; } 4909 4910# Check whether --with-insults was given. 4911if test "${with_insults+set}" = set; then : 4912 withval=$with_insults; case $with_insults in 4913 yes) insults=on 4914 with_classic_insults=yes 4915 with_csops_insults=yes 4916 ;; 4917 disabled) insults=off 4918 with_classic_insults=yes 4919 with_csops_insults=yes 4920 ;; 4921 no) insults=off 4922 ;; 4923 *) as_fn_error $? "\"--with-insults does not take an argument.\"" "$LINENO" 5 4924 ;; 4925esac 4926fi 4927 4928if test "$insults" = "on"; then 4929 $as_echo "#define USE_INSULTS 1" >>confdefs.h 4930 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4932$as_echo "yes" >&6; } 4933else 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4935$as_echo "no" >&6; } 4936fi 4937 4938 4939# Check whether --with-all-insults was given. 4940if test "${with_all_insults+set}" = set; then : 4941 withval=$with_all_insults; case $with_all_insults in 4942 yes) with_classic_insults=yes 4943 with_csops_insults=yes 4944 with_hal_insults=yes 4945 with_goons_insults=yes 4946 ;; 4947 no) ;; 4948 *) as_fn_error $? "\"--with-all-insults does not take an argument.\"" "$LINENO" 5 4949 ;; 4950esac 4951fi 4952 4953 4954 4955# Check whether --with-classic-insults was given. 4956if test "${with_classic_insults+set}" = set; then : 4957 withval=$with_classic_insults; case $with_classic_insults in 4958 yes) $as_echo "#define CLASSIC_INSULTS 1" >>confdefs.h 4959 4960 ;; 4961 no) ;; 4962 *) as_fn_error $? "\"--with-classic-insults does not take an argument.\"" "$LINENO" 5 4963 ;; 4964esac 4965fi 4966 4967 4968 4969# Check whether --with-csops-insults was given. 4970if test "${with_csops_insults+set}" = set; then : 4971 withval=$with_csops_insults; case $with_csops_insults in 4972 yes) $as_echo "#define CSOPS_INSULTS 1" >>confdefs.h 4973 4974 ;; 4975 no) ;; 4976 *) as_fn_error $? "\"--with-csops-insults does not take an argument.\"" "$LINENO" 5 4977 ;; 4978esac 4979fi 4980 4981 4982 4983# Check whether --with-hal-insults was given. 4984if test "${with_hal_insults+set}" = set; then : 4985 withval=$with_hal_insults; case $with_hal_insults in 4986 yes) $as_echo "#define HAL_INSULTS 1" >>confdefs.h 4987 4988 ;; 4989 no) ;; 4990 *) as_fn_error $? "\"--with-hal-insults does not take an argument.\"" "$LINENO" 5 4991 ;; 4992esac 4993fi 4994 4995 4996 4997# Check whether --with-goons-insults was given. 4998if test "${with_goons_insults+set}" = set; then : 4999 withval=$with_goons_insults; case $with_goons_insults in 5000 yes) $as_echo "#define GOONS_INSULTS 1" >>confdefs.h 5001 5002 ;; 5003 no) ;; 5004 *) as_fn_error $? "\"--with-goons-insults does not take an argument.\"" "$LINENO" 5 5005 ;; 5006esac 5007fi 5008 5009 5010 5011# Check whether --with-nsswitch was given. 5012if test "${with_nsswitch+set}" = set; then : 5013 withval=$with_nsswitch; case $with_nsswitch in 5014 no) ;; 5015 yes) with_nsswitch="/etc/nsswitch.conf" 5016 ;; 5017 *) ;; 5018esac 5019fi 5020 5021 5022 5023# Check whether --with-ldap was given. 5024if test "${with_ldap+set}" = set; then : 5025 withval=$with_ldap; case $with_ldap in 5026 no) ;; 5027 *) $as_echo "#define HAVE_LDAP 1" >>confdefs.h 5028 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sudoers from LDAP" >&5 5030$as_echo_n "checking whether to use sudoers from LDAP... " >&6; } 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5032$as_echo "yes" >&6; } 5033 ;; 5034esac 5035fi 5036 5037 5038 5039# Check whether --with-ldap-conf-file was given. 5040if test "${with_ldap_conf_file+set}" = set; then : 5041 withval=$with_ldap_conf_file; 5042fi 5043 5044test -n "$with_ldap_conf_file" && ldap_conf="$with_ldap_conf_file" 5045cat >>confdefs.h <<EOF 5046#define _PATH_LDAP_CONF "$ldap_conf" 5047EOF 5048 5049 5050 5051# Check whether --with-ldap-secret-file was given. 5052if test "${with_ldap_secret_file+set}" = set; then : 5053 withval=$with_ldap_secret_file; 5054fi 5055 5056test -n "$with_ldap_secret_file" && ldap_secret="$with_ldap_secret_file" 5057cat >>confdefs.h <<EOF 5058#define _PATH_LDAP_SECRET "$ldap_secret" 5059EOF 5060 5061 5062 5063# Check whether --with-pc-insults was given. 5064if test "${with_pc_insults+set}" = set; then : 5065 withval=$with_pc_insults; case $with_pc_insults in 5066 yes) $as_echo "#define PC_INSULTS 1" >>confdefs.h 5067 5068 ;; 5069 no) ;; 5070 *) as_fn_error $? "\"--with-pc-insults does not take an argument.\"" "$LINENO" 5 5071 ;; 5072esac 5073fi 5074 5075 5076if test "$insults" = "on"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which insult sets to include" >&5 5078$as_echo_n "checking which insult sets to include... " >&6; } 5079 i="" 5080 test "$with_goons_insults" = "yes" && i="goons ${i}" 5081 test "$with_hal_insults" = "yes" && i="hal ${i}" 5082 test "$with_csops_insults" = "yes" && i="csops ${i}" 5083 test "$with_classic_insults" = "yes" && i="classic ${i}" 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $i" >&5 5085$as_echo "$i" >&6; } 5086fi 5087 5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to override the user's path" >&5 5089$as_echo_n "checking whether to override the user's path... " >&6; } 5090 5091# Check whether --with-secure-path was given. 5092if test "${with_secure_path+set}" = set; then : 5093 withval=$with_secure_path; case $with_secure_path in 5094 yes) with_secure_path="/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" 5095 cat >>confdefs.h <<_ACEOF 5096#define SECURE_PATH "$with_secure_path" 5097_ACEOF 5098 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5 5100$as_echo "$with_secure_path" >&6; } 5101 secure_path="set to $with_secure_path" 5102 ;; 5103 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5104$as_echo "no" >&6; } 5105 ;; 5106 *) cat >>confdefs.h <<_ACEOF 5107#define SECURE_PATH "$with_secure_path" 5108_ACEOF 5109 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_secure_path" >&5 5111$as_echo "$with_secure_path" >&6; } 5112 secure_path="set to F<$with_secure_path>" 5113 ;; 5114esac 5115else 5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5117$as_echo "no" >&6; } 5118fi 5119 5120 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to get ip addresses from the network interfaces" >&5 5122$as_echo_n "checking whether to get ip addresses from the network interfaces... " >&6; } 5123 5124# Check whether --with-interfaces was given. 5125if test "${with_interfaces+set}" = set; then : 5126 withval=$with_interfaces; case $with_interfaces in 5127 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5128$as_echo "yes" >&6; } 5129 ;; 5130 no) $as_echo "#define STUB_LOAD_INTERFACES 1" >>confdefs.h 5131 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5133$as_echo "no" >&6; } 5134 ;; 5135 *) as_fn_error $? "\"--with-interfaces does not take an argument.\"" "$LINENO" 5 5136 ;; 5137esac 5138else 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5140$as_echo "yes" >&6; } 5141fi 5142 5143 5144 5145# Check whether --with-stow was given. 5146if test "${with_stow+set}" = set; then : 5147 withval=$with_stow; case $with_stow in 5148 *) { $as_echo "$as_me:${as_lineno-$LINENO}: --with-stow option deprecated, now is defalt behavior" >&5 5149$as_echo "$as_me: --with-stow option deprecated, now is defalt behavior" >&6;} 5150 ;; 5151esac 5152fi 5153 5154 5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an askpass helper" >&5 5156$as_echo_n "checking whether to use an askpass helper... " >&6; } 5157 5158# Check whether --with-askpass was given. 5159if test "${with_askpass+set}" = set; then : 5160 withval=$with_askpass; case $with_askpass in 5161 yes) as_fn_error $? "\"--with-askpass takes a path as an argument.\"" "$LINENO" 5 5162 ;; 5163 no) ;; 5164 *) cat >>confdefs.h <<EOF 5165#define _PATH_SUDO_ASKPASS "$with_askpass" 5166EOF 5167 5168 ;; 5169esac 5170else 5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5172$as_echo "no" >&6; } 5173fi 5174 5175 5176 5177# Check whether --with-libvas was given. 5178if test "${with_libvas+set}" = set; then : 5179 withval=$with_libvas; case $with_libvas in 5180 yes) with_libvas=libvas.so 5181 ;; 5182 no) ;; 5183 *) 5184cat >>confdefs.h <<_ACEOF 5185#define LIBVAS_SO "$with_libvas" 5186_ACEOF 5187 5188 ;; 5189esac 5190if test X"$with_libvas" != X"no"; then 5191 5192cat >>confdefs.h <<_ACEOF 5193#define LIBVAS_SO "$with_libvas" 5194_ACEOF 5195 5196 $as_echo "#define USING_NONUNIX_GROUPS 1" >>confdefs.h 5197 5198 COMMON_OBJS="$COMMON_OBJS vasgroups.o" 5199 5200# Check whether --with-libvas-rpath was given. 5201if test "${with_libvas_rpath+set}" = set; then : 5202 withval=$with_libvas_rpath; LIBVAS_RPATH=$withval 5203else 5204 LIBVAS_RPATH=/opt/quest/lib 5205fi 5206 5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5 5208$as_echo_n "checking for main in -ldl... " >&6; } 5209if ${ac_cv_lib_dl_main+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 ac_check_lib_save_LIBS=$LIBS 5213LIBS="-ldl $LIBS" 5214cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5215/* end confdefs.h. */ 5216 5217 5218int 5219main () 5220{ 5221return main (); 5222 ; 5223 return 0; 5224} 5225_ACEOF 5226if ac_fn_c_try_link "$LINENO"; then : 5227 ac_cv_lib_dl_main=yes 5228else 5229 ac_cv_lib_dl_main=no 5230fi 5231rm -f core conftest.err conftest.$ac_objext \ 5232 conftest$ac_exeext conftest.$ac_ext 5233LIBS=$ac_check_lib_save_LIBS 5234fi 5235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5 5236$as_echo "$ac_cv_lib_dl_main" >&6; } 5237if test "x$ac_cv_lib_dl_main" = xyes; then : 5238 cat >>confdefs.h <<_ACEOF 5239#define HAVE_LIBDL 1 5240_ACEOF 5241 5242 LIBS="-ldl $LIBS" 5243 5244fi 5245 5246fi 5247 5248fi 5249 5250 5251 5252# Check whether --with-man was given. 5253if test "${with_man+set}" = set; then : 5254 withval=$with_man; case $with_man in 5255 yes) MANTYPE=man 5256 ;; 5257 no) as_fn_error $? "\"--without-man not supported.\"" "$LINENO" 5 5258 ;; 5259 *) as_fn_error $? "\"ignoring unknown argument to --with-man: $with_man.\"" "$LINENO" 5 5260 ;; 5261esac 5262fi 5263 5264 5265 5266# Check whether --with-mdoc was given. 5267if test "${with_mdoc+set}" = set; then : 5268 withval=$with_mdoc; case $with_mdoc in 5269 yes) MANTYPE=mdoc 5270 ;; 5271 no) as_fn_error $? "\"--without-mdoc not supported.\"" "$LINENO" 5 5272 ;; 5273 *) as_fn_error $? "\"ignoring unknown argument to --with-mdoc: $with_mdoc.\"" "$LINENO" 5 5274 ;; 5275esac 5276fi 5277 5278 5279 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do user authentication by default" >&5 5281$as_echo_n "checking whether to do user authentication by default... " >&6; } 5282# Check whether --enable-authentication was given. 5283if test "${enable_authentication+set}" = set; then : 5284 enableval=$enable_authentication; case "$enableval" in 5285 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5286$as_echo "yes" >&6; } 5287 ;; 5288 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5289$as_echo "no" >&6; } 5290 $as_echo "#define NO_AUTHENTICATION 1" >>confdefs.h 5291 5292 ;; 5293 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5294$as_echo "no" >&6; } 5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5 5296$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;} 5297 ;; 5298 esac 5299 5300else 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5302$as_echo "yes" >&6; } 5303fi 5304 5305 5306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable running the mailer as root" >&5 5307$as_echo_n "checking whether to disable running the mailer as root... " >&6; } 5308# Check whether --enable-root-mailer was given. 5309if test "${enable_root_mailer+set}" = set; then : 5310 enableval=$enable_root_mailer; case "$enableval" in 5311 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5312$as_echo "no" >&6; } 5313 ;; 5314 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5315$as_echo "yes" >&6; } 5316 $as_echo "#define NO_ROOT_MAILER 1" >>confdefs.h 5317 5318 ;; 5319 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320$as_echo "no" >&6; } 5321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5 5322$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;} 5323 ;; 5324 esac 5325 5326else 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5328$as_echo "no" >&6; } 5329fi 5330 5331 5332# Check whether --enable-setreuid was given. 5333if test "${enable_setreuid+set}" = set; then : 5334 enableval=$enable_setreuid; case "$enableval" in 5335 no) SKIP_SETREUID=yes 5336 ;; 5337 *) ;; 5338 esac 5339 5340fi 5341 5342 5343# Check whether --enable-setresuid was given. 5344if test "${enable_setresuid+set}" = set; then : 5345 enableval=$enable_setresuid; case "$enableval" in 5346 no) SKIP_SETRESUID=yes 5347 ;; 5348 *) ;; 5349 esac 5350 5351fi 5352 5353 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable shadow password support" >&5 5355$as_echo_n "checking whether to disable shadow password support... " >&6; } 5356# Check whether --enable-shadow was given. 5357if test "${enable_shadow+set}" = set; then : 5358 enableval=$enable_shadow; case "$enableval" in 5359 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5360$as_echo "no" >&6; } 5361 ;; 5362 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5363$as_echo "yes" >&6; } 5364 CHECKSHADOW="false" 5365 ;; 5366 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5367$as_echo "no" >&6; } 5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5 5369$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;} 5370 ;; 5371 esac 5372 5373else 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5375$as_echo "no" >&6; } 5376fi 5377 5378 5379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether root should be allowed to use sudo" >&5 5380$as_echo_n "checking whether root should be allowed to use sudo... " >&6; } 5381# Check whether --enable-root-sudo was given. 5382if test "${enable_root_sudo+set}" = set; then : 5383 enableval=$enable_root_sudo; case "$enableval" in 5384 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5385$as_echo "yes" >&6; } 5386 ;; 5387 no) $as_echo "#define NO_ROOT_SUDO 1" >>confdefs.h 5388 5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5390$as_echo "no" >&6; } 5391 root_sudo=off 5392 ;; 5393 *) as_fn_error $? "\"--enable-root-sudo does not take an argument.\"" "$LINENO" 5 5394 ;; 5395 esac 5396 5397else 5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5399$as_echo "yes" >&6; } 5400fi 5401 5402 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to log the hostname in the log file" >&5 5404$as_echo_n "checking whether to log the hostname in the log file... " >&6; } 5405# Check whether --enable-log-host was given. 5406if test "${enable_log_host+set}" = set; then : 5407 enableval=$enable_log_host; case "$enableval" in 5408 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5409$as_echo "yes" >&6; } 5410 $as_echo "#define HOST_IN_LOG 1" >>confdefs.h 5411 5412 ;; 5413 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5414$as_echo "no" >&6; } 5415 ;; 5416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5417$as_echo "no" >&6; } 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5 5419$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;} 5420 ;; 5421 esac 5422 5423else 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5425$as_echo "no" >&6; } 5426fi 5427 5428 5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to invoke a shell if sudo is given no arguments" >&5 5430$as_echo_n "checking whether to invoke a shell if sudo is given no arguments... " >&6; } 5431# Check whether --enable-noargs-shell was given. 5432if test "${enable_noargs_shell+set}" = set; then : 5433 enableval=$enable_noargs_shell; case "$enableval" in 5434 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5435$as_echo "yes" >&6; } 5436 $as_echo "#define SHELL_IF_NO_ARGS 1" >>confdefs.h 5437 5438 ;; 5439 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5440$as_echo "no" >&6; } 5441 ;; 5442 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5443$as_echo "no" >&6; } 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5 5445$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;} 5446 ;; 5447 esac 5448 5449else 5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5451$as_echo "no" >&6; } 5452fi 5453 5454 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to set \$HOME to target user in shell mode" >&5 5456$as_echo_n "checking whether to set \$HOME to target user in shell mode... " >&6; } 5457# Check whether --enable-shell-sets-home was given. 5458if test "${enable_shell_sets_home+set}" = set; then : 5459 enableval=$enable_shell_sets_home; case "$enableval" in 5460 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5461$as_echo "yes" >&6; } 5462 $as_echo "#define SHELL_SETS_HOME 1" >>confdefs.h 5463 5464 ;; 5465 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5466$as_echo "no" >&6; } 5467 ;; 5468 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5469$as_echo "no" >&6; } 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5 5471$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;} 5472 ;; 5473 esac 5474 5475else 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5477$as_echo "no" >&6; } 5478fi 5479 5480 5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable 'command not found' messages" >&5 5482$as_echo_n "checking whether to disable 'command not found' messages... " >&6; } 5483# Check whether --enable-path_info was given. 5484if test "${enable_path_info+set}" = set; then : 5485 enableval=$enable_path_info; case "$enableval" in 5486 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5487$as_echo "no" >&6; } 5488 ;; 5489 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5490$as_echo "yes" >&6; } 5491 $as_echo "#define DONT_LEAK_PATH_INFO 1" >>confdefs.h 5492 5493 path_info=off 5494 ;; 5495 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5496$as_echo "no" >&6; } 5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5 5498$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;} 5499 ;; 5500 esac 5501 5502else 5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5504$as_echo "no" >&6; } 5505fi 5506 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment debugging" >&5 5509$as_echo_n "checking whether to enable environment debugging... " >&6; } 5510# Check whether --enable-env_debug was given. 5511if test "${enable_env_debug+set}" = set; then : 5512 enableval=$enable_env_debug; case "$enableval" in 5513 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5514$as_echo "yes" >&6; } 5515 $as_echo "#define ENV_DEBUG 1" >>confdefs.h 5516 5517 ;; 5518 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5519$as_echo "no" >&6; } 5520 ;; 5521 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5522$as_echo "no" >&6; } 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&5 5524$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-debug: $enableval" >&2;} 5525 ;; 5526 esac 5527 5528else 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5530$as_echo "no" >&6; } 5531fi 5532 5533 5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable environment resetting by default" >&5 5535$as_echo_n "checking whether to enable environment resetting by default... " >&6; } 5536# Check whether --enable-env_reset was given. 5537if test "${enable_env_reset+set}" = set; then : 5538 enableval=$enable_env_reset; case "$enableval" in 5539 yes) env_reset=on 5540 ;; 5541 no) env_reset=off 5542 ;; 5543 *) env_reset=on 5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&5 5545$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-env-reset: $enableval" >&2;} 5546 ;; 5547 esac 5548 5549fi 5550 5551if test "$env_reset" = "on"; then 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5553$as_echo "yes" >&6; } 5554 $as_echo "#define ENV_RESET TRUE" >>confdefs.h 5555 5556else 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5558$as_echo "no" >&6; } 5559 $as_echo "#define ENV_RESET FALSE" >>confdefs.h 5560 5561fi 5562 5563# Check whether --enable-warnings was given. 5564if test "${enable_warnings+set}" = set; then : 5565 enableval=$enable_warnings; case "$enableval" in 5566 yes) ;; 5567 no) ;; 5568 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&5 5569$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-warnings: $enableval" >&2;} 5570 ;; 5571 esac 5572 5573fi 5574 5575 5576# Check whether --enable-werror was given. 5577if test "${enable_werror+set}" = set; then : 5578 enableval=$enable_werror; case "$enableval" in 5579 yes) ;; 5580 no) ;; 5581 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&5 5582$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-werror: $enableval" >&2;} 5583 ;; 5584 esac 5585 5586fi 5587 5588 5589# Check whether --enable-hardening was given. 5590if test "${enable_hardening+set}" = set; then : 5591 enableval=$enable_hardening; 5592else 5593 enable_hardening=yes 5594fi 5595 5596 5597# Check whether --enable-pie was given. 5598if test "${enable_pie+set}" = set; then : 5599 enableval=$enable_pie; 5600else 5601 enable_pie=yes 5602fi 5603 5604 5605# Check whether --enable-admin-flag was given. 5606if test "${enable_admin_flag+set}" = set; then : 5607 enableval=$enable_admin_flag; case "$enableval" in 5608 yes) $as_echo "#define USE_ADMIN_FLAG 1" >>confdefs.h 5609 5610 ;; 5611 no) ;; 5612 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&5 5613$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-admin-flag: $enableval" >&2;} 5614 ;; 5615 esac 5616 5617fi 5618 5619 5620 5621# Check whether --with-selinux was given. 5622if test "${with_selinux+set}" = set; then : 5623 withval=$with_selinux; case $with_selinux in 5624 yes) SELINUX_USAGE="[-r role] [-t type] " 5625 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h 5626 5627 SUDO_LIBS="${SUDO_LIBS} -lselinux" 5628 SUDO_OBJS="${SUDO_OBJS} selinux.o" 5629 PROGS="${PROGS} sesh" 5630 SEMAN=1 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setkeycreatecon in -lselinux" >&5 5632$as_echo_n "checking for setkeycreatecon in -lselinux... " >&6; } 5633if ${ac_cv_lib_selinux_setkeycreatecon+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635else 5636 ac_check_lib_save_LIBS=$LIBS 5637LIBS="-lselinux $LIBS" 5638cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639/* end confdefs.h. */ 5640 5641/* Override any GCC internal prototype to avoid an error. 5642 Use char because int might match the return type of a GCC 5643 builtin and then its argument prototype would still apply. */ 5644#ifdef __cplusplus 5645extern "C" 5646#endif 5647char setkeycreatecon (); 5648int 5649main () 5650{ 5651return setkeycreatecon (); 5652 ; 5653 return 0; 5654} 5655_ACEOF 5656if ac_fn_c_try_link "$LINENO"; then : 5657 ac_cv_lib_selinux_setkeycreatecon=yes 5658else 5659 ac_cv_lib_selinux_setkeycreatecon=no 5660fi 5661rm -f core conftest.err conftest.$ac_objext \ 5662 conftest$ac_exeext conftest.$ac_ext 5663LIBS=$ac_check_lib_save_LIBS 5664fi 5665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_setkeycreatecon" >&5 5666$as_echo "$ac_cv_lib_selinux_setkeycreatecon" >&6; } 5667if test "x$ac_cv_lib_selinux_setkeycreatecon" = xyes; then : 5668 $as_echo "#define HAVE_SETKEYCREATECON 1" >>confdefs.h 5669 5670fi 5671 5672 ;; 5673 no) ;; 5674 *) as_fn_error $? "\"--with-selinux does not take an argument.\"" "$LINENO" 5 5675 ;; 5676esac 5677fi 5678 5679 5680# Check whether --enable-gss_krb5_ccache_name was given. 5681if test "${enable_gss_krb5_ccache_name+set}" = set; then : 5682 enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval 5683else 5684 check_gss_krb5_ccache_name=no 5685fi 5686 5687 5688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5689$as_echo_n "checking for library containing strerror... " >&6; } 5690if ${ac_cv_search_strerror+:} false; then : 5691 $as_echo_n "(cached) " >&6 5692else 5693 ac_func_search_save_LIBS=$LIBS 5694cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5695/* end confdefs.h. */ 5696 5697/* Override any GCC internal prototype to avoid an error. 5698 Use char because int might match the return type of a GCC 5699 builtin and then its argument prototype would still apply. */ 5700#ifdef __cplusplus 5701extern "C" 5702#endif 5703char strerror (); 5704int 5705main () 5706{ 5707return strerror (); 5708 ; 5709 return 0; 5710} 5711_ACEOF 5712for ac_lib in '' cposix; do 5713 if test -z "$ac_lib"; then 5714 ac_res="none required" 5715 else 5716 ac_res=-l$ac_lib 5717 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5718 fi 5719 if ac_fn_c_try_link "$LINENO"; then : 5720 ac_cv_search_strerror=$ac_res 5721fi 5722rm -f core conftest.err conftest.$ac_objext \ 5723 conftest$ac_exeext 5724 if ${ac_cv_search_strerror+:} false; then : 5725 break 5726fi 5727done 5728if ${ac_cv_search_strerror+:} false; then : 5729 5730else 5731 ac_cv_search_strerror=no 5732fi 5733rm conftest.$ac_ext 5734LIBS=$ac_func_search_save_LIBS 5735fi 5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5737$as_echo "$ac_cv_search_strerror" >&6; } 5738ac_res=$ac_cv_search_strerror 5739if test "$ac_res" != no; then : 5740 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5741 5742fi 5743 5744ac_ext=c 5745ac_cpp='$CPP $CPPFLAGS' 5746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5748ac_compiler_gnu=$ac_cv_c_compiler_gnu 5749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5750$as_echo_n "checking how to run the C preprocessor... " >&6; } 5751# On Suns, sometimes $CPP names a directory. 5752if test -n "$CPP" && test -d "$CPP"; then 5753 CPP= 5754fi 5755if test -z "$CPP"; then 5756 if ${ac_cv_prog_CPP+:} false; then : 5757 $as_echo_n "(cached) " >&6 5758else 5759 # Double quotes because CPP needs to be expanded 5760 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5761 do 5762 ac_preproc_ok=false 5763for ac_c_preproc_warn_flag in '' yes 5764do 5765 # Use a header file that comes with gcc, so configuring glibc 5766 # with a fresh cross-compiler works. 5767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5768 # <limits.h> exists even on freestanding compilers. 5769 # On the NeXT, cc -E runs the code through the compiler's parser, 5770 # not just through cpp. "Syntax error" is here to catch this case. 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773#ifdef __STDC__ 5774# include <limits.h> 5775#else 5776# include <assert.h> 5777#endif 5778 Syntax error 5779_ACEOF 5780if ac_fn_c_try_cpp "$LINENO"; then : 5781 5782else 5783 # Broken: fails on valid input. 5784continue 5785fi 5786rm -f conftest.err conftest.i conftest.$ac_ext 5787 5788 # OK, works on sane cases. Now check whether nonexistent headers 5789 # can be detected and how. 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792#include <ac_nonexistent.h> 5793_ACEOF 5794if ac_fn_c_try_cpp "$LINENO"; then : 5795 # Broken: success on invalid input. 5796continue 5797else 5798 # Passes both tests. 5799ac_preproc_ok=: 5800break 5801fi 5802rm -f conftest.err conftest.i conftest.$ac_ext 5803 5804done 5805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5806rm -f conftest.i conftest.err conftest.$ac_ext 5807if $ac_preproc_ok; then : 5808 break 5809fi 5810 5811 done 5812 ac_cv_prog_CPP=$CPP 5813 5814fi 5815 CPP=$ac_cv_prog_CPP 5816else 5817 ac_cv_prog_CPP=$CPP 5818fi 5819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5820$as_echo "$CPP" >&6; } 5821ac_preproc_ok=false 5822for ac_c_preproc_warn_flag in '' yes 5823do 5824 # Use a header file that comes with gcc, so configuring glibc 5825 # with a fresh cross-compiler works. 5826 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5827 # <limits.h> exists even on freestanding compilers. 5828 # On the NeXT, cc -E runs the code through the compiler's parser, 5829 # not just through cpp. "Syntax error" is here to catch this case. 5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5831/* end confdefs.h. */ 5832#ifdef __STDC__ 5833# include <limits.h> 5834#else 5835# include <assert.h> 5836#endif 5837 Syntax error 5838_ACEOF 5839if ac_fn_c_try_cpp "$LINENO"; then : 5840 5841else 5842 # Broken: fails on valid input. 5843continue 5844fi 5845rm -f conftest.err conftest.i conftest.$ac_ext 5846 5847 # OK, works on sane cases. Now check whether nonexistent headers 5848 # can be detected and how. 5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5850/* end confdefs.h. */ 5851#include <ac_nonexistent.h> 5852_ACEOF 5853if ac_fn_c_try_cpp "$LINENO"; then : 5854 # Broken: success on invalid input. 5855continue 5856else 5857 # Passes both tests. 5858ac_preproc_ok=: 5859break 5860fi 5861rm -f conftest.err conftest.i conftest.$ac_ext 5862 5863done 5864# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5865rm -f conftest.i conftest.err conftest.$ac_ext 5866if $ac_preproc_ok; then : 5867 5868else 5869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5871as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5872See \`config.log' for more details" "$LINENO" 5; } 5873fi 5874 5875ac_ext=c 5876ac_cpp='$CPP $CPPFLAGS' 5877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5879ac_compiler_gnu=$ac_cv_c_compiler_gnu 5880 5881if test -n "$ac_tool_prefix"; then 5882 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5883set dummy ${ac_tool_prefix}ar; ac_word=$2 5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5885$as_echo_n "checking for $ac_word... " >&6; } 5886if ${ac_cv_prog_AR+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 if test -n "$AR"; then 5890 ac_cv_prog_AR="$AR" # Let the user override the test. 5891else 5892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5893for as_dir in $PATH 5894do 5895 IFS=$as_save_IFS 5896 test -z "$as_dir" && as_dir=. 5897 for ac_exec_ext in '' $ac_executable_extensions; do 5898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5899 ac_cv_prog_AR="${ac_tool_prefix}ar" 5900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5901 break 2 5902 fi 5903done 5904 done 5905IFS=$as_save_IFS 5906 5907fi 5908fi 5909AR=$ac_cv_prog_AR 5910if test -n "$AR"; then 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5912$as_echo "$AR" >&6; } 5913else 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5915$as_echo "no" >&6; } 5916fi 5917 5918 5919fi 5920if test -z "$ac_cv_prog_AR"; then 5921 ac_ct_AR=$AR 5922 # Extract the first word of "ar", so it can be a program name with args. 5923set dummy ar; ac_word=$2 5924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5925$as_echo_n "checking for $ac_word... " >&6; } 5926if ${ac_cv_prog_ac_ct_AR+:} false; then : 5927 $as_echo_n "(cached) " >&6 5928else 5929 if test -n "$ac_ct_AR"; then 5930 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5931else 5932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5933for as_dir in $PATH 5934do 5935 IFS=$as_save_IFS 5936 test -z "$as_dir" && as_dir=. 5937 for ac_exec_ext in '' $ac_executable_extensions; do 5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5939 ac_cv_prog_ac_ct_AR="ar" 5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5941 break 2 5942 fi 5943done 5944 done 5945IFS=$as_save_IFS 5946 5947fi 5948fi 5949ac_ct_AR=$ac_cv_prog_ac_ct_AR 5950if test -n "$ac_ct_AR"; then 5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5952$as_echo "$ac_ct_AR" >&6; } 5953else 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5955$as_echo "no" >&6; } 5956fi 5957 5958 if test "x$ac_ct_AR" = x; then 5959 AR="false" 5960 else 5961 case $cross_compiling:$ac_tool_warned in 5962yes:) 5963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5965ac_tool_warned=yes ;; 5966esac 5967 AR=$ac_ct_AR 5968 fi 5969else 5970 AR="$ac_cv_prog_AR" 5971fi 5972 5973if test -n "$ac_tool_prefix"; then 5974 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5975set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5977$as_echo_n "checking for $ac_word... " >&6; } 5978if ${ac_cv_prog_RANLIB+:} false; then : 5979 $as_echo_n "(cached) " >&6 5980else 5981 if test -n "$RANLIB"; then 5982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5983else 5984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5985for as_dir in $PATH 5986do 5987 IFS=$as_save_IFS 5988 test -z "$as_dir" && as_dir=. 5989 for ac_exec_ext in '' $ac_executable_extensions; do 5990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5991 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5993 break 2 5994 fi 5995done 5996 done 5997IFS=$as_save_IFS 5998 5999fi 6000fi 6001RANLIB=$ac_cv_prog_RANLIB 6002if test -n "$RANLIB"; then 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6004$as_echo "$RANLIB" >&6; } 6005else 6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6007$as_echo "no" >&6; } 6008fi 6009 6010 6011fi 6012if test -z "$ac_cv_prog_RANLIB"; then 6013 ac_ct_RANLIB=$RANLIB 6014 # Extract the first word of "ranlib", so it can be a program name with args. 6015set dummy ranlib; ac_word=$2 6016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6017$as_echo_n "checking for $ac_word... " >&6; } 6018if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6019 $as_echo_n "(cached) " >&6 6020else 6021 if test -n "$ac_ct_RANLIB"; then 6022 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6023else 6024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6025for as_dir in $PATH 6026do 6027 IFS=$as_save_IFS 6028 test -z "$as_dir" && as_dir=. 6029 for ac_exec_ext in '' $ac_executable_extensions; do 6030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6031 ac_cv_prog_ac_ct_RANLIB="ranlib" 6032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6033 break 2 6034 fi 6035done 6036 done 6037IFS=$as_save_IFS 6038 6039fi 6040fi 6041ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6042if test -n "$ac_ct_RANLIB"; then 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6044$as_echo "$ac_ct_RANLIB" >&6; } 6045else 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6047$as_echo "no" >&6; } 6048fi 6049 6050 if test "x$ac_ct_RANLIB" = x; then 6051 RANLIB=":" 6052 else 6053 case $cross_compiling:$ac_tool_warned in 6054yes:) 6055{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6056$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6057ac_tool_warned=yes ;; 6058esac 6059 RANLIB=$ac_ct_RANLIB 6060 fi 6061else 6062 RANLIB="$ac_cv_prog_RANLIB" 6063fi 6064 6065if test X"$AR" = X"false"; then 6066 as_fn_error $? "the \"ar\" utility is required to build sudo" "$LINENO" 5 6067fi 6068 6069ac_aux_dir= 6070for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 6071 if test -f "$ac_dir/install-sh"; then 6072 ac_aux_dir=$ac_dir 6073 ac_install_sh="$ac_aux_dir/install-sh -c" 6074 break 6075 elif test -f "$ac_dir/install.sh"; then 6076 ac_aux_dir=$ac_dir 6077 ac_install_sh="$ac_aux_dir/install.sh -c" 6078 break 6079 elif test -f "$ac_dir/shtool"; then 6080 ac_aux_dir=$ac_dir 6081 ac_install_sh="$ac_aux_dir/shtool install -c" 6082 break 6083 fi 6084done 6085if test -z "$ac_aux_dir"; then 6086 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 6087fi 6088 6089# These three variables are undocumented and unsupported, 6090# and are intended to be withdrawn in a future Autoconf release. 6091# They can cause serious problems if a builder's source tree is in a directory 6092# whose full name contains unusual characters. 6093ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 6094ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 6095ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 6096 6097 6098# Make sure we can run config.sub. 6099$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 6100 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 6101 6102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 6103$as_echo_n "checking build system type... " >&6; } 6104if ${ac_cv_build+:} false; then : 6105 $as_echo_n "(cached) " >&6 6106else 6107 ac_build_alias=$build_alias 6108test "x$ac_build_alias" = x && 6109 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 6110test "x$ac_build_alias" = x && 6111 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 6112ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 6113 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 6114 6115fi 6116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 6117$as_echo "$ac_cv_build" >&6; } 6118case $ac_cv_build in 6119*-*-*) ;; 6120*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 6121esac 6122build=$ac_cv_build 6123ac_save_IFS=$IFS; IFS='-' 6124set x $ac_cv_build 6125shift 6126build_cpu=$1 6127build_vendor=$2 6128shift; shift 6129# Remember, the first character of IFS is used to create $*, 6130# except with old shells: 6131build_os=$* 6132IFS=$ac_save_IFS 6133case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 6134 6135 6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 6137$as_echo_n "checking host system type... " >&6; } 6138if ${ac_cv_host+:} false; then : 6139 $as_echo_n "(cached) " >&6 6140else 6141 if test "x$host_alias" = x; then 6142 ac_cv_host=$ac_cv_build 6143else 6144 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 6145 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 6146fi 6147 6148fi 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 6150$as_echo "$ac_cv_host" >&6; } 6151case $ac_cv_host in 6152*-*-*) ;; 6153*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 6154esac 6155host=$ac_cv_host 6156ac_save_IFS=$IFS; IFS='-' 6157set x $ac_cv_host 6158shift 6159host_cpu=$1 6160host_vendor=$2 6161shift; shift 6162# Remember, the first character of IFS is used to create $*, 6163# except with old shells: 6164host_os=$* 6165IFS=$ac_save_IFS 6166case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 6167 6168 6169 6170 6171case `pwd` in 6172 *\ * | *\ *) 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 6174$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 6175esac 6176 6177 6178 6179macro_version='2.4.2' 6180macro_revision='1.3337' 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194ltmain="$ac_aux_dir/ltmain.sh" 6195 6196# Backslashify metacharacters that are still active within 6197# double-quoted strings. 6198sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6199 6200# Same as above, but do not quote variable references. 6201double_quote_subst='s/\(["`\\]\)/\\\1/g' 6202 6203# Sed substitution to delay expansion of an escaped shell variable in a 6204# double_quote_subst'ed string. 6205delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6206 6207# Sed substitution to delay expansion of an escaped single quote. 6208delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6209 6210# Sed substitution to avoid accidental globbing in evaled expressions 6211no_glob_subst='s/\*/\\\*/g' 6212 6213ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 6214ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 6215ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 6216 6217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 6218$as_echo_n "checking how to print strings... " >&6; } 6219# Test print first, because it will be a builtin if present. 6220if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 6221 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 6222 ECHO='print -r --' 6223elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 6224 ECHO='printf %s\n' 6225else 6226 # Use this function as a fallback that always works. 6227 func_fallback_echo () 6228 { 6229 eval 'cat <<_LTECHO_EOF 6230$1 6231_LTECHO_EOF' 6232 } 6233 ECHO='func_fallback_echo' 6234fi 6235 6236# func_echo_all arg... 6237# Invoke $ECHO with all args, space-separated. 6238func_echo_all () 6239{ 6240 $ECHO "" 6241} 6242 6243case "$ECHO" in 6244 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 6245$as_echo "printf" >&6; } ;; 6246 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 6247$as_echo "print -r" >&6; } ;; 6248 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 6249$as_echo "cat" >&6; } ;; 6250esac 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6266$as_echo_n "checking for a sed that does not truncate output... " >&6; } 6267if ${ac_cv_path_SED+:} false; then : 6268 $as_echo_n "(cached) " >&6 6269else 6270 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6271 for ac_i in 1 2 3 4 5 6 7; do 6272 ac_script="$ac_script$as_nl$ac_script" 6273 done 6274 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6275 { ac_script=; unset ac_script;} 6276 if test -z "$SED"; then 6277 ac_path_SED_found=false 6278 # Loop through the user's path and test for each of PROGNAME-LIST 6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6280for as_dir in $PATH 6281do 6282 IFS=$as_save_IFS 6283 test -z "$as_dir" && as_dir=. 6284 for ac_prog in sed gsed; do 6285 for ac_exec_ext in '' $ac_executable_extensions; do 6286 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6287 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 6288# Check for GNU ac_path_SED and select it if it is found. 6289 # Check for GNU $ac_path_SED 6290case `"$ac_path_SED" --version 2>&1` in 6291*GNU*) 6292 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6293*) 6294 ac_count=0 6295 $as_echo_n 0123456789 >"conftest.in" 6296 while : 6297 do 6298 cat "conftest.in" "conftest.in" >"conftest.tmp" 6299 mv "conftest.tmp" "conftest.in" 6300 cp "conftest.in" "conftest.nl" 6301 $as_echo '' >> "conftest.nl" 6302 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6303 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6304 as_fn_arith $ac_count + 1 && ac_count=$as_val 6305 if test $ac_count -gt ${ac_path_SED_max-0}; then 6306 # Best one so far, save it but keep looking for a better one 6307 ac_cv_path_SED="$ac_path_SED" 6308 ac_path_SED_max=$ac_count 6309 fi 6310 # 10*(2^10) chars as input seems more than enough 6311 test $ac_count -gt 10 && break 6312 done 6313 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6314esac 6315 6316 $ac_path_SED_found && break 3 6317 done 6318 done 6319 done 6320IFS=$as_save_IFS 6321 if test -z "$ac_cv_path_SED"; then 6322 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6323 fi 6324else 6325 ac_cv_path_SED=$SED 6326fi 6327 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6330$as_echo "$ac_cv_path_SED" >&6; } 6331 SED="$ac_cv_path_SED" 6332 rm -f conftest.sed 6333 6334test -z "$SED" && SED=sed 6335Xsed="$SED -e 1s/^X//" 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6348$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6349if ${ac_cv_path_GREP+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 if test -z "$GREP"; then 6353 ac_path_GREP_found=false 6354 # Loop through the user's path and test for each of PROGNAME-LIST 6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_prog in grep ggrep; do 6361 for ac_exec_ext in '' $ac_executable_extensions; do 6362 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6363 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6364# Check for GNU ac_path_GREP and select it if it is found. 6365 # Check for GNU $ac_path_GREP 6366case `"$ac_path_GREP" --version 2>&1` in 6367*GNU*) 6368 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6369*) 6370 ac_count=0 6371 $as_echo_n 0123456789 >"conftest.in" 6372 while : 6373 do 6374 cat "conftest.in" "conftest.in" >"conftest.tmp" 6375 mv "conftest.tmp" "conftest.in" 6376 cp "conftest.in" "conftest.nl" 6377 $as_echo 'GREP' >> "conftest.nl" 6378 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6380 as_fn_arith $ac_count + 1 && ac_count=$as_val 6381 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6382 # Best one so far, save it but keep looking for a better one 6383 ac_cv_path_GREP="$ac_path_GREP" 6384 ac_path_GREP_max=$ac_count 6385 fi 6386 # 10*(2^10) chars as input seems more than enough 6387 test $ac_count -gt 10 && break 6388 done 6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6390esac 6391 6392 $ac_path_GREP_found && break 3 6393 done 6394 done 6395 done 6396IFS=$as_save_IFS 6397 if test -z "$ac_cv_path_GREP"; then 6398 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6399 fi 6400else 6401 ac_cv_path_GREP=$GREP 6402fi 6403 6404fi 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6406$as_echo "$ac_cv_path_GREP" >&6; } 6407 GREP="$ac_cv_path_GREP" 6408 6409 6410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6411$as_echo_n "checking for egrep... " >&6; } 6412if ${ac_cv_path_EGREP+:} false; then : 6413 $as_echo_n "(cached) " >&6 6414else 6415 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6416 then ac_cv_path_EGREP="$GREP -E" 6417 else 6418 if test -z "$EGREP"; then 6419 ac_path_EGREP_found=false 6420 # Loop through the user's path and test for each of PROGNAME-LIST 6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6423do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_prog in egrep; do 6427 for ac_exec_ext in '' $ac_executable_extensions; do 6428 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6429 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6430# Check for GNU ac_path_EGREP and select it if it is found. 6431 # Check for GNU $ac_path_EGREP 6432case `"$ac_path_EGREP" --version 2>&1` in 6433*GNU*) 6434 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6435*) 6436 ac_count=0 6437 $as_echo_n 0123456789 >"conftest.in" 6438 while : 6439 do 6440 cat "conftest.in" "conftest.in" >"conftest.tmp" 6441 mv "conftest.tmp" "conftest.in" 6442 cp "conftest.in" "conftest.nl" 6443 $as_echo 'EGREP' >> "conftest.nl" 6444 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6446 as_fn_arith $ac_count + 1 && ac_count=$as_val 6447 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6448 # Best one so far, save it but keep looking for a better one 6449 ac_cv_path_EGREP="$ac_path_EGREP" 6450 ac_path_EGREP_max=$ac_count 6451 fi 6452 # 10*(2^10) chars as input seems more than enough 6453 test $ac_count -gt 10 && break 6454 done 6455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6456esac 6457 6458 $ac_path_EGREP_found && break 3 6459 done 6460 done 6461 done 6462IFS=$as_save_IFS 6463 if test -z "$ac_cv_path_EGREP"; then 6464 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6465 fi 6466else 6467 ac_cv_path_EGREP=$EGREP 6468fi 6469 6470 fi 6471fi 6472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6473$as_echo "$ac_cv_path_EGREP" >&6; } 6474 EGREP="$ac_cv_path_EGREP" 6475 6476 6477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6478$as_echo_n "checking for fgrep... " >&6; } 6479if ${ac_cv_path_FGREP+:} false; then : 6480 $as_echo_n "(cached) " >&6 6481else 6482 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6483 then ac_cv_path_FGREP="$GREP -F" 6484 else 6485 if test -z "$FGREP"; then 6486 ac_path_FGREP_found=false 6487 # Loop through the user's path and test for each of PROGNAME-LIST 6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6489for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6490do 6491 IFS=$as_save_IFS 6492 test -z "$as_dir" && as_dir=. 6493 for ac_prog in fgrep; do 6494 for ac_exec_ext in '' $ac_executable_extensions; do 6495 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6496 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6497# Check for GNU ac_path_FGREP and select it if it is found. 6498 # Check for GNU $ac_path_FGREP 6499case `"$ac_path_FGREP" --version 2>&1` in 6500*GNU*) 6501 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6502*) 6503 ac_count=0 6504 $as_echo_n 0123456789 >"conftest.in" 6505 while : 6506 do 6507 cat "conftest.in" "conftest.in" >"conftest.tmp" 6508 mv "conftest.tmp" "conftest.in" 6509 cp "conftest.in" "conftest.nl" 6510 $as_echo 'FGREP' >> "conftest.nl" 6511 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6513 as_fn_arith $ac_count + 1 && ac_count=$as_val 6514 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6515 # Best one so far, save it but keep looking for a better one 6516 ac_cv_path_FGREP="$ac_path_FGREP" 6517 ac_path_FGREP_max=$ac_count 6518 fi 6519 # 10*(2^10) chars as input seems more than enough 6520 test $ac_count -gt 10 && break 6521 done 6522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6523esac 6524 6525 $ac_path_FGREP_found && break 3 6526 done 6527 done 6528 done 6529IFS=$as_save_IFS 6530 if test -z "$ac_cv_path_FGREP"; then 6531 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6532 fi 6533else 6534 ac_cv_path_FGREP=$FGREP 6535fi 6536 6537 fi 6538fi 6539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6540$as_echo "$ac_cv_path_FGREP" >&6; } 6541 FGREP="$ac_cv_path_FGREP" 6542 6543 6544test -z "$GREP" && GREP=grep 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564# Check whether --with-gnu-ld was given. 6565if test "${with_gnu_ld+set}" = set; then : 6566 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6567else 6568 with_gnu_ld=no 6569fi 6570 6571ac_prog=ld 6572if test "$GCC" = yes; then 6573 # Check if gcc -print-prog-name=ld gives a path. 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6575$as_echo_n "checking for ld used by $CC... " >&6; } 6576 case $host in 6577 *-*-mingw*) 6578 # gcc leaves a trailing carriage return which upsets mingw 6579 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6580 *) 6581 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6582 esac 6583 case $ac_prog in 6584 # Accept absolute paths. 6585 [\\/]* | ?:[\\/]*) 6586 re_direlt='/[^/][^/]*/\.\./' 6587 # Canonicalize the pathname of ld 6588 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6589 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6590 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6591 done 6592 test -z "$LD" && LD="$ac_prog" 6593 ;; 6594 "") 6595 # If it fails, then pretend we aren't using GCC. 6596 ac_prog=ld 6597 ;; 6598 *) 6599 # If it is relative, then search for the first ld in PATH. 6600 with_gnu_ld=unknown 6601 ;; 6602 esac 6603elif test "$with_gnu_ld" = yes; then 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6605$as_echo_n "checking for GNU ld... " >&6; } 6606else 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6608$as_echo_n "checking for non-GNU ld... " >&6; } 6609fi 6610if ${lt_cv_path_LD+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -z "$LD"; then 6614 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6615 for ac_dir in $PATH; do 6616 IFS="$lt_save_ifs" 6617 test -z "$ac_dir" && ac_dir=. 6618 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6619 lt_cv_path_LD="$ac_dir/$ac_prog" 6620 # Check to see if the program is GNU ld. I'd rather use --version, 6621 # but apparently some variants of GNU ld only accept -v. 6622 # Break only if it was the GNU/non-GNU ld that we prefer. 6623 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6624 *GNU* | *'with BFD'*) 6625 test "$with_gnu_ld" != no && break 6626 ;; 6627 *) 6628 test "$with_gnu_ld" != yes && break 6629 ;; 6630 esac 6631 fi 6632 done 6633 IFS="$lt_save_ifs" 6634else 6635 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6636fi 6637fi 6638 6639LD="$lt_cv_path_LD" 6640if test -n "$LD"; then 6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6642$as_echo "$LD" >&6; } 6643else 6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6645$as_echo "no" >&6; } 6646fi 6647test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6649$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6650if ${lt_cv_prog_gnu_ld+:} false; then : 6651 $as_echo_n "(cached) " >&6 6652else 6653 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6654case `$LD -v 2>&1 </dev/null` in 6655*GNU* | *'with BFD'*) 6656 lt_cv_prog_gnu_ld=yes 6657 ;; 6658*) 6659 lt_cv_prog_gnu_ld=no 6660 ;; 6661esac 6662fi 6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6664$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6665with_gnu_ld=$lt_cv_prog_gnu_ld 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6676$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6677if ${lt_cv_path_NM+:} false; then : 6678 $as_echo_n "(cached) " >&6 6679else 6680 if test -n "$NM"; then 6681 # Let the user override the test. 6682 lt_cv_path_NM="$NM" 6683else 6684 lt_nm_to_check="${ac_tool_prefix}nm" 6685 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6686 lt_nm_to_check="$lt_nm_to_check nm" 6687 fi 6688 for lt_tmp_nm in $lt_nm_to_check; do 6689 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6690 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6691 IFS="$lt_save_ifs" 6692 test -z "$ac_dir" && ac_dir=. 6693 tmp_nm="$ac_dir/$lt_tmp_nm" 6694 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6695 # Check to see if the nm accepts a BSD-compat flag. 6696 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6697 # nm: unknown option "B" ignored 6698 # Tru64's nm complains that /dev/null is an invalid object file 6699 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6700 */dev/null* | *'Invalid file or object type'*) 6701 lt_cv_path_NM="$tmp_nm -B" 6702 break 6703 ;; 6704 *) 6705 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6706 */dev/null*) 6707 lt_cv_path_NM="$tmp_nm -p" 6708 break 6709 ;; 6710 *) 6711 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6712 continue # so that we can try to find one that supports BSD flags 6713 ;; 6714 esac 6715 ;; 6716 esac 6717 fi 6718 done 6719 IFS="$lt_save_ifs" 6720 done 6721 : ${lt_cv_path_NM=no} 6722fi 6723fi 6724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6725$as_echo "$lt_cv_path_NM" >&6; } 6726if test "$lt_cv_path_NM" != "no"; then 6727 NM="$lt_cv_path_NM" 6728else 6729 # Didn't find any BSD compatible name lister, look for dumpbin. 6730 if test -n "$DUMPBIN"; then : 6731 # Let the user override the test. 6732 else 6733 if test -n "$ac_tool_prefix"; then 6734 for ac_prog in dumpbin "link -dump" 6735 do 6736 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6737set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6739$as_echo_n "checking for $ac_word... " >&6; } 6740if ${ac_cv_prog_DUMPBIN+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 if test -n "$DUMPBIN"; then 6744 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6745else 6746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6747for as_dir in $PATH 6748do 6749 IFS=$as_save_IFS 6750 test -z "$as_dir" && as_dir=. 6751 for ac_exec_ext in '' $ac_executable_extensions; do 6752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6753 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6755 break 2 6756 fi 6757done 6758 done 6759IFS=$as_save_IFS 6760 6761fi 6762fi 6763DUMPBIN=$ac_cv_prog_DUMPBIN 6764if test -n "$DUMPBIN"; then 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6766$as_echo "$DUMPBIN" >&6; } 6767else 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6769$as_echo "no" >&6; } 6770fi 6771 6772 6773 test -n "$DUMPBIN" && break 6774 done 6775fi 6776if test -z "$DUMPBIN"; then 6777 ac_ct_DUMPBIN=$DUMPBIN 6778 for ac_prog in dumpbin "link -dump" 6779do 6780 # Extract the first word of "$ac_prog", so it can be a program name with args. 6781set dummy $ac_prog; ac_word=$2 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6783$as_echo_n "checking for $ac_word... " >&6; } 6784if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786else 6787 if test -n "$ac_ct_DUMPBIN"; then 6788 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6789else 6790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6791for as_dir in $PATH 6792do 6793 IFS=$as_save_IFS 6794 test -z "$as_dir" && as_dir=. 6795 for ac_exec_ext in '' $ac_executable_extensions; do 6796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6797 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6799 break 2 6800 fi 6801done 6802 done 6803IFS=$as_save_IFS 6804 6805fi 6806fi 6807ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6808if test -n "$ac_ct_DUMPBIN"; then 6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6810$as_echo "$ac_ct_DUMPBIN" >&6; } 6811else 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6813$as_echo "no" >&6; } 6814fi 6815 6816 6817 test -n "$ac_ct_DUMPBIN" && break 6818done 6819 6820 if test "x$ac_ct_DUMPBIN" = x; then 6821 DUMPBIN=":" 6822 else 6823 case $cross_compiling:$ac_tool_warned in 6824yes:) 6825{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6826$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6827ac_tool_warned=yes ;; 6828esac 6829 DUMPBIN=$ac_ct_DUMPBIN 6830 fi 6831fi 6832 6833 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6834 *COFF*) 6835 DUMPBIN="$DUMPBIN -symbols" 6836 ;; 6837 *) 6838 DUMPBIN=: 6839 ;; 6840 esac 6841 fi 6842 6843 if test "$DUMPBIN" != ":"; then 6844 NM="$DUMPBIN" 6845 fi 6846fi 6847test -z "$NM" && NM=nm 6848 6849 6850 6851 6852 6853 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6855$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6856if ${lt_cv_nm_interface+:} false; then : 6857 $as_echo_n "(cached) " >&6 6858else 6859 lt_cv_nm_interface="BSD nm" 6860 echo "int some_variable = 0;" > conftest.$ac_ext 6861 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6862 (eval "$ac_compile" 2>conftest.err) 6863 cat conftest.err >&5 6864 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6865 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6866 cat conftest.err >&5 6867 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6868 cat conftest.out >&5 6869 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6870 lt_cv_nm_interface="MS dumpbin" 6871 fi 6872 rm -f conftest* 6873fi 6874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6875$as_echo "$lt_cv_nm_interface" >&6; } 6876 6877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6878$as_echo_n "checking whether ln -s works... " >&6; } 6879LN_S=$as_ln_s 6880if test "$LN_S" = "ln -s"; then 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6882$as_echo "yes" >&6; } 6883else 6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6885$as_echo "no, using $LN_S" >&6; } 6886fi 6887 6888# find the maximum length of command line arguments 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6890$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6891if ${lt_cv_sys_max_cmd_len+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 i=0 6895 teststring="ABCD" 6896 6897 case $build_os in 6898 msdosdjgpp*) 6899 # On DJGPP, this test can blow up pretty badly due to problems in libc 6900 # (any single argument exceeding 2000 bytes causes a buffer overrun 6901 # during glob expansion). Even if it were fixed, the result of this 6902 # check would be larger than it should be. 6903 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6904 ;; 6905 6906 gnu*) 6907 # Under GNU Hurd, this test is not required because there is 6908 # no limit to the length of command line arguments. 6909 # Libtool will interpret -1 as no limit whatsoever 6910 lt_cv_sys_max_cmd_len=-1; 6911 ;; 6912 6913 cygwin* | mingw* | cegcc*) 6914 # On Win9x/ME, this test blows up -- it succeeds, but takes 6915 # about 5 minutes as the teststring grows exponentially. 6916 # Worse, since 9x/ME are not pre-emptively multitasking, 6917 # you end up with a "frozen" computer, even though with patience 6918 # the test eventually succeeds (with a max line length of 256k). 6919 # Instead, let's just punt: use the minimum linelength reported by 6920 # all of the supported platforms: 8192 (on NT/2K/XP). 6921 lt_cv_sys_max_cmd_len=8192; 6922 ;; 6923 6924 mint*) 6925 # On MiNT this can take a long time and run out of memory. 6926 lt_cv_sys_max_cmd_len=8192; 6927 ;; 6928 6929 amigaos*) 6930 # On AmigaOS with pdksh, this test takes hours, literally. 6931 # So we just punt and use a minimum line length of 8192. 6932 lt_cv_sys_max_cmd_len=8192; 6933 ;; 6934 6935 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6936 # This has been around since 386BSD, at least. Likely further. 6937 if test -x /sbin/sysctl; then 6938 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6939 elif test -x /usr/sbin/sysctl; then 6940 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6941 else 6942 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6943 fi 6944 # And add a safety zone 6945 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6946 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6947 ;; 6948 6949 interix*) 6950 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6951 lt_cv_sys_max_cmd_len=196608 6952 ;; 6953 6954 os2*) 6955 # The test takes a long time on OS/2. 6956 lt_cv_sys_max_cmd_len=8192 6957 ;; 6958 6959 osf*) 6960 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6961 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6962 # nice to cause kernel panics so lets avoid the loop below. 6963 # First set a reasonable default. 6964 lt_cv_sys_max_cmd_len=16384 6965 # 6966 if test -x /sbin/sysconfig; then 6967 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6968 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6969 esac 6970 fi 6971 ;; 6972 sco3.2v5*) 6973 lt_cv_sys_max_cmd_len=102400 6974 ;; 6975 sysv5* | sco5v6* | sysv4.2uw2*) 6976 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6977 if test -n "$kargmax"; then 6978 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6979 else 6980 lt_cv_sys_max_cmd_len=32768 6981 fi 6982 ;; 6983 *) 6984 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6985 if test -n "$lt_cv_sys_max_cmd_len"; then 6986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6987 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6988 else 6989 # Make teststring a little bigger before we do anything with it. 6990 # a 1K string should be a reasonable start. 6991 for i in 1 2 3 4 5 6 7 8 ; do 6992 teststring=$teststring$teststring 6993 done 6994 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6995 # If test is not a shell built-in, we'll probably end up computing a 6996 # maximum length that is only half of the actual maximum length, but 6997 # we can't tell. 6998 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 6999 = "X$teststring$teststring"; } >/dev/null 2>&1 && 7000 test $i != 17 # 1/2 MB should be enough 7001 do 7002 i=`expr $i + 1` 7003 teststring=$teststring$teststring 7004 done 7005 # Only check the string length outside the loop. 7006 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 7007 teststring= 7008 # Add a significant safety factor because C++ compilers can tack on 7009 # massive amounts of additional arguments before passing them to the 7010 # linker. It appears as though 1/2 is a usable value. 7011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 7012 fi 7013 ;; 7014 esac 7015 7016fi 7017 7018if test -n $lt_cv_sys_max_cmd_len ; then 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 7020$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 7021else 7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 7023$as_echo "none" >&6; } 7024fi 7025max_cmd_len=$lt_cv_sys_max_cmd_len 7026 7027 7028 7029 7030 7031 7032: ${CP="cp -f"} 7033: ${MV="mv -f"} 7034: ${RM="rm -f"} 7035 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 7037$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 7038# Try some XSI features 7039xsi_shell=no 7040( _lt_dummy="a/b/c" 7041 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 7042 = c,a/b,b/c, \ 7043 && eval 'test $(( 1 + 1 )) -eq 2 \ 7044 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 7045 && xsi_shell=yes 7046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 7047$as_echo "$xsi_shell" >&6; } 7048 7049 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 7051$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 7052lt_shell_append=no 7053( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 7054 >/dev/null 2>&1 \ 7055 && lt_shell_append=yes 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 7057$as_echo "$lt_shell_append" >&6; } 7058 7059 7060if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 7061 lt_unset=unset 7062else 7063 lt_unset=false 7064fi 7065 7066 7067 7068 7069 7070# test EBCDIC or ASCII 7071case `echo X|tr X '\101'` in 7072 A) # ASCII based system 7073 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 7074 lt_SP2NL='tr \040 \012' 7075 lt_NL2SP='tr \015\012 \040\040' 7076 ;; 7077 *) # EBCDIC based system 7078 lt_SP2NL='tr \100 \n' 7079 lt_NL2SP='tr \r\n \100\100' 7080 ;; 7081esac 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 7092$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 7093if ${lt_cv_to_host_file_cmd+:} false; then : 7094 $as_echo_n "(cached) " >&6 7095else 7096 case $host in 7097 *-*-mingw* ) 7098 case $build in 7099 *-*-mingw* ) # actually msys 7100 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 7101 ;; 7102 *-*-cygwin* ) 7103 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 7104 ;; 7105 * ) # otherwise, assume *nix 7106 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 7107 ;; 7108 esac 7109 ;; 7110 *-*-cygwin* ) 7111 case $build in 7112 *-*-mingw* ) # actually msys 7113 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 7114 ;; 7115 *-*-cygwin* ) 7116 lt_cv_to_host_file_cmd=func_convert_file_noop 7117 ;; 7118 * ) # otherwise, assume *nix 7119 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 7120 ;; 7121 esac 7122 ;; 7123 * ) # unhandled hosts (and "normal" native builds) 7124 lt_cv_to_host_file_cmd=func_convert_file_noop 7125 ;; 7126esac 7127 7128fi 7129 7130to_host_file_cmd=$lt_cv_to_host_file_cmd 7131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 7132$as_echo "$lt_cv_to_host_file_cmd" >&6; } 7133 7134 7135 7136 7137 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 7139$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 7140if ${lt_cv_to_tool_file_cmd+:} false; then : 7141 $as_echo_n "(cached) " >&6 7142else 7143 #assume ordinary cross tools, or native build. 7144lt_cv_to_tool_file_cmd=func_convert_file_noop 7145case $host in 7146 *-*-mingw* ) 7147 case $build in 7148 *-*-mingw* ) # actually msys 7149 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 7150 ;; 7151 esac 7152 ;; 7153esac 7154 7155fi 7156 7157to_tool_file_cmd=$lt_cv_to_tool_file_cmd 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 7159$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 7160 7161 7162 7163 7164 7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 7166$as_echo_n "checking for $LD option to reload object files... " >&6; } 7167if ${lt_cv_ld_reload_flag+:} false; then : 7168 $as_echo_n "(cached) " >&6 7169else 7170 lt_cv_ld_reload_flag='-r' 7171fi 7172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 7173$as_echo "$lt_cv_ld_reload_flag" >&6; } 7174reload_flag=$lt_cv_ld_reload_flag 7175case $reload_flag in 7176"" | " "*) ;; 7177*) reload_flag=" $reload_flag" ;; 7178esac 7179reload_cmds='$LD$reload_flag -o $output$reload_objs' 7180case $host_os in 7181 cygwin* | mingw* | pw32* | cegcc*) 7182 if test "$GCC" != yes; then 7183 reload_cmds=false 7184 fi 7185 ;; 7186 darwin*) 7187 if test "$GCC" = yes; then 7188 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 7189 else 7190 reload_cmds='$LD$reload_flag -o $output$reload_objs' 7191 fi 7192 ;; 7193esac 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203if test -n "$ac_tool_prefix"; then 7204 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 7205set dummy ${ac_tool_prefix}objdump; ac_word=$2 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7207$as_echo_n "checking for $ac_word... " >&6; } 7208if ${ac_cv_prog_OBJDUMP+:} false; then : 7209 $as_echo_n "(cached) " >&6 7210else 7211 if test -n "$OBJDUMP"; then 7212 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 7213else 7214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7215for as_dir in $PATH 7216do 7217 IFS=$as_save_IFS 7218 test -z "$as_dir" && as_dir=. 7219 for ac_exec_ext in '' $ac_executable_extensions; do 7220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7221 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 7222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7223 break 2 7224 fi 7225done 7226 done 7227IFS=$as_save_IFS 7228 7229fi 7230fi 7231OBJDUMP=$ac_cv_prog_OBJDUMP 7232if test -n "$OBJDUMP"; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 7234$as_echo "$OBJDUMP" >&6; } 7235else 7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7237$as_echo "no" >&6; } 7238fi 7239 7240 7241fi 7242if test -z "$ac_cv_prog_OBJDUMP"; then 7243 ac_ct_OBJDUMP=$OBJDUMP 7244 # Extract the first word of "objdump", so it can be a program name with args. 7245set dummy objdump; ac_word=$2 7246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7247$as_echo_n "checking for $ac_word... " >&6; } 7248if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 7249 $as_echo_n "(cached) " >&6 7250else 7251 if test -n "$ac_ct_OBJDUMP"; then 7252 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 7253else 7254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7255for as_dir in $PATH 7256do 7257 IFS=$as_save_IFS 7258 test -z "$as_dir" && as_dir=. 7259 for ac_exec_ext in '' $ac_executable_extensions; do 7260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7261 ac_cv_prog_ac_ct_OBJDUMP="objdump" 7262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7263 break 2 7264 fi 7265done 7266 done 7267IFS=$as_save_IFS 7268 7269fi 7270fi 7271ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 7272if test -n "$ac_ct_OBJDUMP"; then 7273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 7274$as_echo "$ac_ct_OBJDUMP" >&6; } 7275else 7276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7277$as_echo "no" >&6; } 7278fi 7279 7280 if test "x$ac_ct_OBJDUMP" = x; then 7281 OBJDUMP="false" 7282 else 7283 case $cross_compiling:$ac_tool_warned in 7284yes:) 7285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7287ac_tool_warned=yes ;; 7288esac 7289 OBJDUMP=$ac_ct_OBJDUMP 7290 fi 7291else 7292 OBJDUMP="$ac_cv_prog_OBJDUMP" 7293fi 7294 7295test -z "$OBJDUMP" && OBJDUMP=objdump 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 7306$as_echo_n "checking how to recognize dependent libraries... " >&6; } 7307if ${lt_cv_deplibs_check_method+:} false; then : 7308 $as_echo_n "(cached) " >&6 7309else 7310 lt_cv_file_magic_cmd='$MAGIC_CMD' 7311lt_cv_file_magic_test_file= 7312lt_cv_deplibs_check_method='unknown' 7313# Need to set the preceding variable on all platforms that support 7314# interlibrary dependencies. 7315# 'none' -- dependencies not supported. 7316# `unknown' -- same as none, but documents that we really don't know. 7317# 'pass_all' -- all dependencies passed with no checks. 7318# 'test_compile' -- check by making test program. 7319# 'file_magic [[regex]]' -- check by looking for files in library path 7320# which responds to the $file_magic_cmd with a given extended regex. 7321# If you have `file' or equivalent on your system and you're not sure 7322# whether `pass_all' will *always* work, you probably want this one. 7323 7324case $host_os in 7325aix[4-9]*) 7326 lt_cv_deplibs_check_method=pass_all 7327 ;; 7328 7329beos*) 7330 lt_cv_deplibs_check_method=pass_all 7331 ;; 7332 7333bsdi[45]*) 7334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 7335 lt_cv_file_magic_cmd='/usr/bin/file -L' 7336 lt_cv_file_magic_test_file=/shlib/libc.so 7337 ;; 7338 7339cygwin*) 7340 # func_win32_libid is a shell function defined in ltmain.sh 7341 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7342 lt_cv_file_magic_cmd='func_win32_libid' 7343 ;; 7344 7345mingw* | pw32*) 7346 # Base MSYS/MinGW do not provide the 'file' command needed by 7347 # func_win32_libid shell function, so use a weaker test based on 'objdump', 7348 # unless we find 'file', for example because we are cross-compiling. 7349 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 7350 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 7351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 7352 lt_cv_file_magic_cmd='func_win32_libid' 7353 else 7354 # Keep this pattern in sync with the one in func_win32_libid. 7355 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 7356 lt_cv_file_magic_cmd='$OBJDUMP -f' 7357 fi 7358 ;; 7359 7360cegcc*) 7361 # use the weaker test based on 'objdump'. See mingw*. 7362 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 7363 lt_cv_file_magic_cmd='$OBJDUMP -f' 7364 ;; 7365 7366darwin* | rhapsody*) 7367 lt_cv_deplibs_check_method=pass_all 7368 ;; 7369 7370freebsd* | dragonfly*) 7371 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7372 case $host_cpu in 7373 i*86 ) 7374 # Not sure whether the presence of OpenBSD here was a mistake. 7375 # Let's accept both of them until this is cleared up. 7376 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 7377 lt_cv_file_magic_cmd=/usr/bin/file 7378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 7379 ;; 7380 esac 7381 else 7382 lt_cv_deplibs_check_method=pass_all 7383 fi 7384 ;; 7385 7386gnu*) 7387 lt_cv_deplibs_check_method=pass_all 7388 ;; 7389 7390haiku*) 7391 lt_cv_deplibs_check_method=pass_all 7392 ;; 7393 7394hpux10.20* | hpux11*) 7395 lt_cv_file_magic_cmd=/usr/bin/file 7396 case $host_cpu in 7397 ia64*) 7398 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 7399 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 7400 ;; 7401 hppa*64*) 7402 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]' 7403 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 7404 ;; 7405 *) 7406 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 7407 lt_cv_file_magic_test_file=/usr/lib/libc.sl 7408 ;; 7409 esac 7410 ;; 7411 7412interix[3-9]*) 7413 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 7414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 7415 ;; 7416 7417irix5* | irix6* | nonstopux*) 7418 case $LD in 7419 *-32|*"-32 ") libmagic=32-bit;; 7420 *-n32|*"-n32 ") libmagic=N32;; 7421 *-64|*"-64 ") libmagic=64-bit;; 7422 *) libmagic=never-match;; 7423 esac 7424 lt_cv_deplibs_check_method=pass_all 7425 ;; 7426 7427# This must be glibc/ELF. 7428linux* | k*bsd*-gnu | kopensolaris*-gnu) 7429 lt_cv_deplibs_check_method=pass_all 7430 ;; 7431 7432netbsd*) 7433 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 7434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7435 else 7436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 7437 fi 7438 ;; 7439 7440newos6*) 7441 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 7442 lt_cv_file_magic_cmd=/usr/bin/file 7443 lt_cv_file_magic_test_file=/usr/lib/libnls.so 7444 ;; 7445 7446*nto* | *qnx*) 7447 lt_cv_deplibs_check_method=pass_all 7448 ;; 7449 7450openbsd*) 7451 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 7453 else 7454 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 7455 fi 7456 ;; 7457 7458osf3* | osf4* | osf5*) 7459 lt_cv_deplibs_check_method=pass_all 7460 ;; 7461 7462rdos*) 7463 lt_cv_deplibs_check_method=pass_all 7464 ;; 7465 7466solaris*) 7467 lt_cv_deplibs_check_method=pass_all 7468 ;; 7469 7470sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 7471 lt_cv_deplibs_check_method=pass_all 7472 ;; 7473 7474sysv4 | sysv4.3*) 7475 case $host_vendor in 7476 motorola) 7477 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]' 7478 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 7479 ;; 7480 ncr) 7481 lt_cv_deplibs_check_method=pass_all 7482 ;; 7483 sequent) 7484 lt_cv_file_magic_cmd='/bin/file' 7485 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 7486 ;; 7487 sni) 7488 lt_cv_file_magic_cmd='/bin/file' 7489 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 7490 lt_cv_file_magic_test_file=/lib/libc.so 7491 ;; 7492 siemens) 7493 lt_cv_deplibs_check_method=pass_all 7494 ;; 7495 pc) 7496 lt_cv_deplibs_check_method=pass_all 7497 ;; 7498 esac 7499 ;; 7500 7501tpf*) 7502 lt_cv_deplibs_check_method=pass_all 7503 ;; 7504esac 7505 7506fi 7507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 7508$as_echo "$lt_cv_deplibs_check_method" >&6; } 7509 7510file_magic_glob= 7511want_nocaseglob=no 7512if test "$build" = "$host"; then 7513 case $host_os in 7514 mingw* | pw32*) 7515 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 7516 want_nocaseglob=yes 7517 else 7518 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 7519 fi 7520 ;; 7521 esac 7522fi 7523 7524file_magic_cmd=$lt_cv_file_magic_cmd 7525deplibs_check_method=$lt_cv_deplibs_check_method 7526test -z "$deplibs_check_method" && deplibs_check_method=unknown 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549if test -n "$ac_tool_prefix"; then 7550 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 7551set dummy ${ac_tool_prefix}dlltool; ac_word=$2 7552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7553$as_echo_n "checking for $ac_word... " >&6; } 7554if ${ac_cv_prog_DLLTOOL+:} false; then : 7555 $as_echo_n "(cached) " >&6 7556else 7557 if test -n "$DLLTOOL"; then 7558 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 7559else 7560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7561for as_dir in $PATH 7562do 7563 IFS=$as_save_IFS 7564 test -z "$as_dir" && as_dir=. 7565 for ac_exec_ext in '' $ac_executable_extensions; do 7566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7567 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 7568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7569 break 2 7570 fi 7571done 7572 done 7573IFS=$as_save_IFS 7574 7575fi 7576fi 7577DLLTOOL=$ac_cv_prog_DLLTOOL 7578if test -n "$DLLTOOL"; then 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 7580$as_echo "$DLLTOOL" >&6; } 7581else 7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7583$as_echo "no" >&6; } 7584fi 7585 7586 7587fi 7588if test -z "$ac_cv_prog_DLLTOOL"; then 7589 ac_ct_DLLTOOL=$DLLTOOL 7590 # Extract the first word of "dlltool", so it can be a program name with args. 7591set dummy dlltool; ac_word=$2 7592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7593$as_echo_n "checking for $ac_word... " >&6; } 7594if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 if test -n "$ac_ct_DLLTOOL"; then 7598 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 7599else 7600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7601for as_dir in $PATH 7602do 7603 IFS=$as_save_IFS 7604 test -z "$as_dir" && as_dir=. 7605 for ac_exec_ext in '' $ac_executable_extensions; do 7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7607 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7609 break 2 7610 fi 7611done 7612 done 7613IFS=$as_save_IFS 7614 7615fi 7616fi 7617ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 7618if test -n "$ac_ct_DLLTOOL"; then 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 7620$as_echo "$ac_ct_DLLTOOL" >&6; } 7621else 7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7623$as_echo "no" >&6; } 7624fi 7625 7626 if test "x$ac_ct_DLLTOOL" = x; then 7627 DLLTOOL="false" 7628 else 7629 case $cross_compiling:$ac_tool_warned in 7630yes:) 7631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7633ac_tool_warned=yes ;; 7634esac 7635 DLLTOOL=$ac_ct_DLLTOOL 7636 fi 7637else 7638 DLLTOOL="$ac_cv_prog_DLLTOOL" 7639fi 7640 7641test -z "$DLLTOOL" && DLLTOOL=dlltool 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7653$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7654if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7655 $as_echo_n "(cached) " >&6 7656else 7657 lt_cv_sharedlib_from_linklib_cmd='unknown' 7658 7659case $host_os in 7660cygwin* | mingw* | pw32* | cegcc*) 7661 # two different shell functions defined in ltmain.sh 7662 # decide which to use based on capabilities of $DLLTOOL 7663 case `$DLLTOOL --help 2>&1` in 7664 *--identify-strict*) 7665 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7666 ;; 7667 *) 7668 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7669 ;; 7670 esac 7671 ;; 7672*) 7673 # fallback: assume linklib IS sharedlib 7674 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 7675 ;; 7676esac 7677 7678fi 7679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7680$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7681sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7682test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7683 7684 7685 7686 7687 7688 7689 7690if test -n "$ac_tool_prefix"; then 7691 for ac_prog in ar 7692 do 7693 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7694set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7696$as_echo_n "checking for $ac_word... " >&6; } 7697if ${ac_cv_prog_AR+:} false; then : 7698 $as_echo_n "(cached) " >&6 7699else 7700 if test -n "$AR"; then 7701 ac_cv_prog_AR="$AR" # Let the user override the test. 7702else 7703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7704for as_dir in $PATH 7705do 7706 IFS=$as_save_IFS 7707 test -z "$as_dir" && as_dir=. 7708 for ac_exec_ext in '' $ac_executable_extensions; do 7709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7710 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7712 break 2 7713 fi 7714done 7715 done 7716IFS=$as_save_IFS 7717 7718fi 7719fi 7720AR=$ac_cv_prog_AR 7721if test -n "$AR"; then 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7723$as_echo "$AR" >&6; } 7724else 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7726$as_echo "no" >&6; } 7727fi 7728 7729 7730 test -n "$AR" && break 7731 done 7732fi 7733if test -z "$AR"; then 7734 ac_ct_AR=$AR 7735 for ac_prog in ar 7736do 7737 # Extract the first word of "$ac_prog", so it can be a program name with args. 7738set dummy $ac_prog; ac_word=$2 7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7740$as_echo_n "checking for $ac_word... " >&6; } 7741if ${ac_cv_prog_ac_ct_AR+:} false; then : 7742 $as_echo_n "(cached) " >&6 7743else 7744 if test -n "$ac_ct_AR"; then 7745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7746else 7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7748for as_dir in $PATH 7749do 7750 IFS=$as_save_IFS 7751 test -z "$as_dir" && as_dir=. 7752 for ac_exec_ext in '' $ac_executable_extensions; do 7753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7754 ac_cv_prog_ac_ct_AR="$ac_prog" 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7756 break 2 7757 fi 7758done 7759 done 7760IFS=$as_save_IFS 7761 7762fi 7763fi 7764ac_ct_AR=$ac_cv_prog_ac_ct_AR 7765if test -n "$ac_ct_AR"; then 7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7767$as_echo "$ac_ct_AR" >&6; } 7768else 7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7770$as_echo "no" >&6; } 7771fi 7772 7773 7774 test -n "$ac_ct_AR" && break 7775done 7776 7777 if test "x$ac_ct_AR" = x; then 7778 AR="false" 7779 else 7780 case $cross_compiling:$ac_tool_warned in 7781yes:) 7782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7784ac_tool_warned=yes ;; 7785esac 7786 AR=$ac_ct_AR 7787 fi 7788fi 7789 7790: ${AR=ar} 7791: ${AR_FLAGS=cru} 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7804$as_echo_n "checking for archiver @FILE support... " >&6; } 7805if ${lt_cv_ar_at_file+:} false; then : 7806 $as_echo_n "(cached) " >&6 7807else 7808 lt_cv_ar_at_file=no 7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7810/* end confdefs.h. */ 7811 7812int 7813main () 7814{ 7815 7816 ; 7817 return 0; 7818} 7819_ACEOF 7820if ac_fn_c_try_compile "$LINENO"; then : 7821 echo conftest.$ac_objext > conftest.lst 7822 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7824 (eval $lt_ar_try) 2>&5 7825 ac_status=$? 7826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7827 test $ac_status = 0; } 7828 if test "$ac_status" -eq 0; then 7829 # Ensure the archiver fails upon bogus file names. 7830 rm -f conftest.$ac_objext libconftest.a 7831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7832 (eval $lt_ar_try) 2>&5 7833 ac_status=$? 7834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7835 test $ac_status = 0; } 7836 if test "$ac_status" -ne 0; then 7837 lt_cv_ar_at_file=@ 7838 fi 7839 fi 7840 rm -f conftest.* libconftest.a 7841 7842fi 7843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7844 7845fi 7846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7847$as_echo "$lt_cv_ar_at_file" >&6; } 7848 7849if test "x$lt_cv_ar_at_file" = xno; then 7850 archiver_list_spec= 7851else 7852 archiver_list_spec=$lt_cv_ar_at_file 7853fi 7854 7855 7856 7857 7858 7859 7860 7861if test -n "$ac_tool_prefix"; then 7862 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7863set dummy ${ac_tool_prefix}strip; ac_word=$2 7864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7865$as_echo_n "checking for $ac_word... " >&6; } 7866if ${ac_cv_prog_STRIP+:} false; then : 7867 $as_echo_n "(cached) " >&6 7868else 7869 if test -n "$STRIP"; then 7870 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7871else 7872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7873for as_dir in $PATH 7874do 7875 IFS=$as_save_IFS 7876 test -z "$as_dir" && as_dir=. 7877 for ac_exec_ext in '' $ac_executable_extensions; do 7878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7879 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7881 break 2 7882 fi 7883done 7884 done 7885IFS=$as_save_IFS 7886 7887fi 7888fi 7889STRIP=$ac_cv_prog_STRIP 7890if test -n "$STRIP"; then 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7892$as_echo "$STRIP" >&6; } 7893else 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7895$as_echo "no" >&6; } 7896fi 7897 7898 7899fi 7900if test -z "$ac_cv_prog_STRIP"; then 7901 ac_ct_STRIP=$STRIP 7902 # Extract the first word of "strip", so it can be a program name with args. 7903set dummy strip; ac_word=$2 7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7905$as_echo_n "checking for $ac_word... " >&6; } 7906if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7907 $as_echo_n "(cached) " >&6 7908else 7909 if test -n "$ac_ct_STRIP"; then 7910 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7911else 7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7913for as_dir in $PATH 7914do 7915 IFS=$as_save_IFS 7916 test -z "$as_dir" && as_dir=. 7917 for ac_exec_ext in '' $ac_executable_extensions; do 7918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7919 ac_cv_prog_ac_ct_STRIP="strip" 7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7921 break 2 7922 fi 7923done 7924 done 7925IFS=$as_save_IFS 7926 7927fi 7928fi 7929ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7930if test -n "$ac_ct_STRIP"; then 7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7932$as_echo "$ac_ct_STRIP" >&6; } 7933else 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7935$as_echo "no" >&6; } 7936fi 7937 7938 if test "x$ac_ct_STRIP" = x; then 7939 STRIP=":" 7940 else 7941 case $cross_compiling:$ac_tool_warned in 7942yes:) 7943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7945ac_tool_warned=yes ;; 7946esac 7947 STRIP=$ac_ct_STRIP 7948 fi 7949else 7950 STRIP="$ac_cv_prog_STRIP" 7951fi 7952 7953test -z "$STRIP" && STRIP=: 7954 7955 7956 7957 7958 7959 7960if test -n "$ac_tool_prefix"; then 7961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7962set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7964$as_echo_n "checking for $ac_word... " >&6; } 7965if ${ac_cv_prog_RANLIB+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 if test -n "$RANLIB"; then 7969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7970else 7971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7972for as_dir in $PATH 7973do 7974 IFS=$as_save_IFS 7975 test -z "$as_dir" && as_dir=. 7976 for ac_exec_ext in '' $ac_executable_extensions; do 7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7980 break 2 7981 fi 7982done 7983 done 7984IFS=$as_save_IFS 7985 7986fi 7987fi 7988RANLIB=$ac_cv_prog_RANLIB 7989if test -n "$RANLIB"; then 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7991$as_echo "$RANLIB" >&6; } 7992else 7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7994$as_echo "no" >&6; } 7995fi 7996 7997 7998fi 7999if test -z "$ac_cv_prog_RANLIB"; then 8000 ac_ct_RANLIB=$RANLIB 8001 # Extract the first word of "ranlib", so it can be a program name with args. 8002set dummy ranlib; ac_word=$2 8003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8004$as_echo_n "checking for $ac_word... " >&6; } 8005if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 8006 $as_echo_n "(cached) " >&6 8007else 8008 if test -n "$ac_ct_RANLIB"; then 8009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 8010else 8011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8012for as_dir in $PATH 8013do 8014 IFS=$as_save_IFS 8015 test -z "$as_dir" && as_dir=. 8016 for ac_exec_ext in '' $ac_executable_extensions; do 8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8018 ac_cv_prog_ac_ct_RANLIB="ranlib" 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8020 break 2 8021 fi 8022done 8023 done 8024IFS=$as_save_IFS 8025 8026fi 8027fi 8028ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 8029if test -n "$ac_ct_RANLIB"; then 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 8031$as_echo "$ac_ct_RANLIB" >&6; } 8032else 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8034$as_echo "no" >&6; } 8035fi 8036 8037 if test "x$ac_ct_RANLIB" = x; then 8038 RANLIB=":" 8039 else 8040 case $cross_compiling:$ac_tool_warned in 8041yes:) 8042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8044ac_tool_warned=yes ;; 8045esac 8046 RANLIB=$ac_ct_RANLIB 8047 fi 8048else 8049 RANLIB="$ac_cv_prog_RANLIB" 8050fi 8051 8052test -z "$RANLIB" && RANLIB=: 8053 8054 8055 8056 8057 8058 8059# Determine commands to create old-style static archives. 8060old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 8061old_postinstall_cmds='chmod 644 $oldlib' 8062old_postuninstall_cmds= 8063 8064if test -n "$RANLIB"; then 8065 case $host_os in 8066 openbsd*) 8067 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 8068 ;; 8069 *) 8070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 8071 ;; 8072 esac 8073 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 8074fi 8075 8076case $host_os in 8077 darwin*) 8078 lock_old_archive_extraction=yes ;; 8079 *) 8080 lock_old_archive_extraction=no ;; 8081esac 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103for ac_prog in gawk mawk nawk awk 8104do 8105 # Extract the first word of "$ac_prog", so it can be a program name with args. 8106set dummy $ac_prog; ac_word=$2 8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8108$as_echo_n "checking for $ac_word... " >&6; } 8109if ${ac_cv_prog_AWK+:} false; then : 8110 $as_echo_n "(cached) " >&6 8111else 8112 if test -n "$AWK"; then 8113 ac_cv_prog_AWK="$AWK" # Let the user override the test. 8114else 8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8116for as_dir in $PATH 8117do 8118 IFS=$as_save_IFS 8119 test -z "$as_dir" && as_dir=. 8120 for ac_exec_ext in '' $ac_executable_extensions; do 8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8122 ac_cv_prog_AWK="$ac_prog" 8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8124 break 2 8125 fi 8126done 8127 done 8128IFS=$as_save_IFS 8129 8130fi 8131fi 8132AWK=$ac_cv_prog_AWK 8133if test -n "$AWK"; then 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 8135$as_echo "$AWK" >&6; } 8136else 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8138$as_echo "no" >&6; } 8139fi 8140 8141 8142 test -n "$AWK" && break 8143done 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163# If no C compiler was specified, use CC. 8164LTCC=${LTCC-"$CC"} 8165 8166# If no C compiler flags were specified, use CFLAGS. 8167LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8168 8169# Allow CC to be a program name with arguments. 8170compiler=$CC 8171 8172 8173# Check for command to grab the raw symbol name followed by C symbol from nm. 8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 8175$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 8176if ${lt_cv_sys_global_symbol_pipe+:} false; then : 8177 $as_echo_n "(cached) " >&6 8178else 8179 8180# These are sane defaults that work on at least a few old systems. 8181# [They come from Ultrix. What could be older than Ultrix?!! ;)] 8182 8183# Character class describing NM global symbol codes. 8184symcode='[BCDEGRST]' 8185 8186# Regexp to match symbols that can be accessed directly from C. 8187sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 8188 8189# Define system-specific variables. 8190case $host_os in 8191aix*) 8192 symcode='[BCDT]' 8193 ;; 8194cygwin* | mingw* | pw32* | cegcc*) 8195 symcode='[ABCDGISTW]' 8196 ;; 8197hpux*) 8198 if test "$host_cpu" = ia64; then 8199 symcode='[ABCDEGRST]' 8200 fi 8201 ;; 8202irix* | nonstopux*) 8203 symcode='[BCDEGRST]' 8204 ;; 8205osf*) 8206 symcode='[BCDEGQRST]' 8207 ;; 8208solaris*) 8209 symcode='[BDRT]' 8210 ;; 8211sco3.2v5*) 8212 symcode='[DT]' 8213 ;; 8214sysv4.2uw2*) 8215 symcode='[DT]' 8216 ;; 8217sysv5* | sco5v6* | unixware* | OpenUNIX*) 8218 symcode='[ABDT]' 8219 ;; 8220sysv4) 8221 symcode='[DFNSTU]' 8222 ;; 8223esac 8224 8225# If we're using GNU nm, then use its standard symbol codes. 8226case `$NM -V 2>&1` in 8227*GNU* | *'with BFD'*) 8228 symcode='[ABCDGIRSTW]' ;; 8229esac 8230 8231# Transform an extracted symbol line into a proper C declaration. 8232# Some systems (esp. on ia64) link data and code symbols differently, 8233# so use this general approach. 8234lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 8235 8236# Transform an extracted symbol line into symbol name and symbol address 8237lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 8238lt_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'" 8239 8240# Handle CRLF in mingw tool chain 8241opt_cr= 8242case $build_os in 8243mingw*) 8244 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 8245 ;; 8246esac 8247 8248# Try without a prefix underscore, then with it. 8249for ac_symprfx in "" "_"; do 8250 8251 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 8252 symxfrm="\\1 $ac_symprfx\\2 \\2" 8253 8254 # Write the raw and C identifiers. 8255 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8256 # Fake it for dumpbin and say T for any non-static function 8257 # and D for any global variable. 8258 # Also find C++ and __fastcall symbols from MSVC++, 8259 # which start with @ or ?. 8260 lt_cv_sys_global_symbol_pipe="$AWK '"\ 8261" {last_section=section; section=\$ 3};"\ 8262" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 8263" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 8264" \$ 0!~/External *\|/{next};"\ 8265" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 8266" {if(hide[section]) next};"\ 8267" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 8268" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 8269" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 8270" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 8271" ' prfx=^$ac_symprfx" 8272 else 8273 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 8274 fi 8275 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 8276 8277 # Check to see that the pipe works correctly. 8278 pipe_works=no 8279 8280 rm -f conftest* 8281 cat > conftest.$ac_ext <<_LT_EOF 8282#ifdef __cplusplus 8283extern "C" { 8284#endif 8285char nm_test_var; 8286void nm_test_func(void); 8287void nm_test_func(void){} 8288#ifdef __cplusplus 8289} 8290#endif 8291int main(){nm_test_var='a';nm_test_func();return(0);} 8292_LT_EOF 8293 8294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8295 (eval $ac_compile) 2>&5 8296 ac_status=$? 8297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8298 test $ac_status = 0; }; then 8299 # Now try to grab the symbols. 8300 nlist=conftest.nm 8301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 8302 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 8303 ac_status=$? 8304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8305 test $ac_status = 0; } && test -s "$nlist"; then 8306 # Try sorting and uniquifying the output. 8307 if sort "$nlist" | uniq > "$nlist"T; then 8308 mv -f "$nlist"T "$nlist" 8309 else 8310 rm -f "$nlist"T 8311 fi 8312 8313 # Make sure that we snagged all the symbols we need. 8314 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 8315 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 8316 cat <<_LT_EOF > conftest.$ac_ext 8317/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 8318#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 8319/* DATA imports from DLLs on WIN32 con't be const, because runtime 8320 relocations are performed -- see ld's documentation on pseudo-relocs. */ 8321# define LT_DLSYM_CONST 8322#elif defined(__osf__) 8323/* This system does not cope well with relocations in const data. */ 8324# define LT_DLSYM_CONST 8325#else 8326# define LT_DLSYM_CONST const 8327#endif 8328 8329#ifdef __cplusplus 8330extern "C" { 8331#endif 8332 8333_LT_EOF 8334 # Now generate the symbol file. 8335 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 8336 8337 cat <<_LT_EOF >> conftest.$ac_ext 8338 8339/* The mapping between symbol names and symbols. */ 8340LT_DLSYM_CONST struct { 8341 const char *name; 8342 void *address; 8343} 8344lt__PROGRAM__LTX_preloaded_symbols[] = 8345{ 8346 { "@PROGRAM@", (void *) 0 }, 8347_LT_EOF 8348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 8349 cat <<\_LT_EOF >> conftest.$ac_ext 8350 {0, (void *) 0} 8351}; 8352 8353/* This works around a problem in FreeBSD linker */ 8354#ifdef FREEBSD_WORKAROUND 8355static const void *lt_preloaded_setup() { 8356 return lt__PROGRAM__LTX_preloaded_symbols; 8357} 8358#endif 8359 8360#ifdef __cplusplus 8361} 8362#endif 8363_LT_EOF 8364 # Now try linking the two files. 8365 mv conftest.$ac_objext conftstm.$ac_objext 8366 lt_globsym_save_LIBS=$LIBS 8367 lt_globsym_save_CFLAGS=$CFLAGS 8368 LIBS="conftstm.$ac_objext" 8369 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 8370 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 8371 (eval $ac_link) 2>&5 8372 ac_status=$? 8373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8374 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 8375 pipe_works=yes 8376 fi 8377 LIBS=$lt_globsym_save_LIBS 8378 CFLAGS=$lt_globsym_save_CFLAGS 8379 else 8380 echo "cannot find nm_test_func in $nlist" >&5 8381 fi 8382 else 8383 echo "cannot find nm_test_var in $nlist" >&5 8384 fi 8385 else 8386 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 8387 fi 8388 else 8389 echo "$progname: failed program was:" >&5 8390 cat conftest.$ac_ext >&5 8391 fi 8392 rm -rf conftest* conftst* 8393 8394 # Do not use the global_symbol_pipe unless it works. 8395 if test "$pipe_works" = yes; then 8396 break 8397 else 8398 lt_cv_sys_global_symbol_pipe= 8399 fi 8400done 8401 8402fi 8403 8404if test -z "$lt_cv_sys_global_symbol_pipe"; then 8405 lt_cv_sys_global_symbol_to_cdecl= 8406fi 8407if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 8409$as_echo "failed" >&6; } 8410else 8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 8412$as_echo "ok" >&6; } 8413fi 8414 8415# Response file support. 8416if test "$lt_cv_nm_interface" = "MS dumpbin"; then 8417 nm_file_list_spec='@' 8418elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 8419 nm_file_list_spec='@' 8420fi 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 8449$as_echo_n "checking for sysroot... " >&6; } 8450 8451# Check whether --with-sysroot was given. 8452if test "${with_sysroot+set}" = set; then : 8453 withval=$with_sysroot; 8454else 8455 with_sysroot=no 8456fi 8457 8458 8459lt_sysroot= 8460case ${with_sysroot} in #( 8461 yes) 8462 if test "$GCC" = yes; then 8463 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 8464 fi 8465 ;; #( 8466 /*) 8467 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 8468 ;; #( 8469 no|'') 8470 ;; #( 8471 *) 8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 8473$as_echo "${with_sysroot}" >&6; } 8474 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 8475 ;; 8476esac 8477 8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 8479$as_echo "${lt_sysroot:-no}" >&6; } 8480 8481 8482 8483 8484 8485# Check whether --enable-libtool-lock was given. 8486if test "${enable_libtool_lock+set}" = set; then : 8487 enableval=$enable_libtool_lock; 8488fi 8489 8490test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 8491 8492# Some flags need to be propagated to the compiler or linker for good 8493# libtool support. 8494case $host in 8495ia64-*-hpux*) 8496 # Find out which ABI we are using. 8497 echo 'int i;' > conftest.$ac_ext 8498 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8499 (eval $ac_compile) 2>&5 8500 ac_status=$? 8501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8502 test $ac_status = 0; }; then 8503 case `/usr/bin/file conftest.$ac_objext` in 8504 *ELF-32*) 8505 HPUX_IA64_MODE="32" 8506 ;; 8507 *ELF-64*) 8508 HPUX_IA64_MODE="64" 8509 ;; 8510 esac 8511 fi 8512 rm -rf conftest* 8513 ;; 8514*-*-irix6*) 8515 # Find out which ABI we are using. 8516 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 8517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8518 (eval $ac_compile) 2>&5 8519 ac_status=$? 8520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8521 test $ac_status = 0; }; then 8522 if test "$lt_cv_prog_gnu_ld" = yes; then 8523 case `/usr/bin/file conftest.$ac_objext` in 8524 *32-bit*) 8525 LD="${LD-ld} -melf32bsmip" 8526 ;; 8527 *N32*) 8528 LD="${LD-ld} -melf32bmipn32" 8529 ;; 8530 *64-bit*) 8531 LD="${LD-ld} -melf64bmip" 8532 ;; 8533 esac 8534 else 8535 case `/usr/bin/file conftest.$ac_objext` in 8536 *32-bit*) 8537 LD="${LD-ld} -32" 8538 ;; 8539 *N32*) 8540 LD="${LD-ld} -n32" 8541 ;; 8542 *64-bit*) 8543 LD="${LD-ld} -64" 8544 ;; 8545 esac 8546 fi 8547 fi 8548 rm -rf conftest* 8549 ;; 8550 8551x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 8552s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8553 # Find out which ABI we are using. 8554 echo 'int i;' > conftest.$ac_ext 8555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8556 (eval $ac_compile) 2>&5 8557 ac_status=$? 8558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8559 test $ac_status = 0; }; then 8560 case `/usr/bin/file conftest.o` in 8561 *32-bit*) 8562 case $host in 8563 x86_64-*kfreebsd*-gnu) 8564 LD="${LD-ld} -m elf_i386_fbsd" 8565 ;; 8566 x86_64-*linux*) 8567 LD="${LD-ld} -m elf_i386" 8568 ;; 8569 ppc64-*linux*|powerpc64-*linux*) 8570 LD="${LD-ld} -m elf32ppclinux" 8571 ;; 8572 s390x-*linux*) 8573 LD="${LD-ld} -m elf_s390" 8574 ;; 8575 sparc64-*linux*) 8576 LD="${LD-ld} -m elf32_sparc" 8577 ;; 8578 esac 8579 ;; 8580 *64-bit*) 8581 case $host in 8582 x86_64-*kfreebsd*-gnu) 8583 LD="${LD-ld} -m elf_x86_64_fbsd" 8584 ;; 8585 x86_64-*linux*) 8586 LD="${LD-ld} -m elf_x86_64" 8587 ;; 8588 ppc*-*linux*|powerpc*-*linux*) 8589 LD="${LD-ld} -m elf64ppc" 8590 ;; 8591 s390*-*linux*|s390*-*tpf*) 8592 LD="${LD-ld} -m elf64_s390" 8593 ;; 8594 sparc*-*linux*) 8595 LD="${LD-ld} -m elf64_sparc" 8596 ;; 8597 esac 8598 ;; 8599 esac 8600 fi 8601 rm -rf conftest* 8602 ;; 8603 8604*-*-sco3.2v5*) 8605 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8606 SAVE_CFLAGS="$CFLAGS" 8607 CFLAGS="$CFLAGS -belf" 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8609$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8610if ${lt_cv_cc_needs_belf+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 ac_ext=c 8614ac_cpp='$CPP $CPPFLAGS' 8615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8617ac_compiler_gnu=$ac_cv_c_compiler_gnu 8618 8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8620/* end confdefs.h. */ 8621 8622int 8623main () 8624{ 8625 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630if ac_fn_c_try_link "$LINENO"; then : 8631 lt_cv_cc_needs_belf=yes 8632else 8633 lt_cv_cc_needs_belf=no 8634fi 8635rm -f core conftest.err conftest.$ac_objext \ 8636 conftest$ac_exeext conftest.$ac_ext 8637 ac_ext=c 8638ac_cpp='$CPP $CPPFLAGS' 8639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8641ac_compiler_gnu=$ac_cv_c_compiler_gnu 8642 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8645$as_echo "$lt_cv_cc_needs_belf" >&6; } 8646 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 8647 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8648 CFLAGS="$SAVE_CFLAGS" 8649 fi 8650 ;; 8651*-*solaris*) 8652 # Find out which ABI we are using. 8653 echo 'int i;' > conftest.$ac_ext 8654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8655 (eval $ac_compile) 2>&5 8656 ac_status=$? 8657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8658 test $ac_status = 0; }; then 8659 case `/usr/bin/file conftest.o` in 8660 *64-bit*) 8661 case $lt_cv_prog_gnu_ld in 8662 yes*) 8663 case $host in 8664 i?86-*-solaris*) 8665 LD="${LD-ld} -m elf_x86_64" 8666 ;; 8667 sparc*-*-solaris*) 8668 LD="${LD-ld} -m elf64_sparc" 8669 ;; 8670 esac 8671 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8672 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8673 LD="${LD-ld}_sol2" 8674 fi 8675 ;; 8676 *) 8677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8678 LD="${LD-ld} -64" 8679 fi 8680 ;; 8681 esac 8682 ;; 8683 esac 8684 fi 8685 rm -rf conftest* 8686 ;; 8687esac 8688 8689need_locks="$enable_libtool_lock" 8690 8691if test -n "$ac_tool_prefix"; then 8692 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8693set dummy ${ac_tool_prefix}mt; ac_word=$2 8694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8695$as_echo_n "checking for $ac_word... " >&6; } 8696if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8697 $as_echo_n "(cached) " >&6 8698else 8699 if test -n "$MANIFEST_TOOL"; then 8700 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8701else 8702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8703for as_dir in $PATH 8704do 8705 IFS=$as_save_IFS 8706 test -z "$as_dir" && as_dir=. 8707 for ac_exec_ext in '' $ac_executable_extensions; do 8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8709 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8711 break 2 8712 fi 8713done 8714 done 8715IFS=$as_save_IFS 8716 8717fi 8718fi 8719MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8720if test -n "$MANIFEST_TOOL"; then 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8722$as_echo "$MANIFEST_TOOL" >&6; } 8723else 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8725$as_echo "no" >&6; } 8726fi 8727 8728 8729fi 8730if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8731 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8732 # Extract the first word of "mt", so it can be a program name with args. 8733set dummy mt; ac_word=$2 8734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8735$as_echo_n "checking for $ac_word... " >&6; } 8736if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 if test -n "$ac_ct_MANIFEST_TOOL"; then 8740 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8741else 8742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8743for as_dir in $PATH 8744do 8745 IFS=$as_save_IFS 8746 test -z "$as_dir" && as_dir=. 8747 for ac_exec_ext in '' $ac_executable_extensions; do 8748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8749 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8751 break 2 8752 fi 8753done 8754 done 8755IFS=$as_save_IFS 8756 8757fi 8758fi 8759ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8760if test -n "$ac_ct_MANIFEST_TOOL"; then 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8762$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8763else 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8765$as_echo "no" >&6; } 8766fi 8767 8768 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8769 MANIFEST_TOOL=":" 8770 else 8771 case $cross_compiling:$ac_tool_warned in 8772yes:) 8773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8775ac_tool_warned=yes ;; 8776esac 8777 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8778 fi 8779else 8780 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8781fi 8782 8783test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8785$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8786if ${lt_cv_path_mainfest_tool+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 lt_cv_path_mainfest_tool=no 8790 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8791 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8792 cat conftest.err >&5 8793 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8794 lt_cv_path_mainfest_tool=yes 8795 fi 8796 rm -f conftest* 8797fi 8798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8799$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8800if test "x$lt_cv_path_mainfest_tool" != xyes; then 8801 MANIFEST_TOOL=: 8802fi 8803 8804 8805 8806 8807 8808 8809 case $host_os in 8810 rhapsody* | darwin*) 8811 if test -n "$ac_tool_prefix"; then 8812 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8813set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8815$as_echo_n "checking for $ac_word... " >&6; } 8816if ${ac_cv_prog_DSYMUTIL+:} false; then : 8817 $as_echo_n "(cached) " >&6 8818else 8819 if test -n "$DSYMUTIL"; then 8820 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8821else 8822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8823for as_dir in $PATH 8824do 8825 IFS=$as_save_IFS 8826 test -z "$as_dir" && as_dir=. 8827 for ac_exec_ext in '' $ac_executable_extensions; do 8828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8829 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8831 break 2 8832 fi 8833done 8834 done 8835IFS=$as_save_IFS 8836 8837fi 8838fi 8839DSYMUTIL=$ac_cv_prog_DSYMUTIL 8840if test -n "$DSYMUTIL"; then 8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8842$as_echo "$DSYMUTIL" >&6; } 8843else 8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8845$as_echo "no" >&6; } 8846fi 8847 8848 8849fi 8850if test -z "$ac_cv_prog_DSYMUTIL"; then 8851 ac_ct_DSYMUTIL=$DSYMUTIL 8852 # Extract the first word of "dsymutil", so it can be a program name with args. 8853set dummy dsymutil; ac_word=$2 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8855$as_echo_n "checking for $ac_word... " >&6; } 8856if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8857 $as_echo_n "(cached) " >&6 8858else 8859 if test -n "$ac_ct_DSYMUTIL"; then 8860 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8861else 8862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8863for as_dir in $PATH 8864do 8865 IFS=$as_save_IFS 8866 test -z "$as_dir" && as_dir=. 8867 for ac_exec_ext in '' $ac_executable_extensions; do 8868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8869 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8871 break 2 8872 fi 8873done 8874 done 8875IFS=$as_save_IFS 8876 8877fi 8878fi 8879ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8880if test -n "$ac_ct_DSYMUTIL"; then 8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8882$as_echo "$ac_ct_DSYMUTIL" >&6; } 8883else 8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8885$as_echo "no" >&6; } 8886fi 8887 8888 if test "x$ac_ct_DSYMUTIL" = x; then 8889 DSYMUTIL=":" 8890 else 8891 case $cross_compiling:$ac_tool_warned in 8892yes:) 8893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8895ac_tool_warned=yes ;; 8896esac 8897 DSYMUTIL=$ac_ct_DSYMUTIL 8898 fi 8899else 8900 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8901fi 8902 8903 if test -n "$ac_tool_prefix"; then 8904 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8905set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8907$as_echo_n "checking for $ac_word... " >&6; } 8908if ${ac_cv_prog_NMEDIT+:} false; then : 8909 $as_echo_n "(cached) " >&6 8910else 8911 if test -n "$NMEDIT"; then 8912 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8913else 8914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8915for as_dir in $PATH 8916do 8917 IFS=$as_save_IFS 8918 test -z "$as_dir" && as_dir=. 8919 for ac_exec_ext in '' $ac_executable_extensions; do 8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8921 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8923 break 2 8924 fi 8925done 8926 done 8927IFS=$as_save_IFS 8928 8929fi 8930fi 8931NMEDIT=$ac_cv_prog_NMEDIT 8932if test -n "$NMEDIT"; then 8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8934$as_echo "$NMEDIT" >&6; } 8935else 8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8937$as_echo "no" >&6; } 8938fi 8939 8940 8941fi 8942if test -z "$ac_cv_prog_NMEDIT"; then 8943 ac_ct_NMEDIT=$NMEDIT 8944 # Extract the first word of "nmedit", so it can be a program name with args. 8945set dummy nmedit; ac_word=$2 8946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8947$as_echo_n "checking for $ac_word... " >&6; } 8948if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8949 $as_echo_n "(cached) " >&6 8950else 8951 if test -n "$ac_ct_NMEDIT"; then 8952 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8953else 8954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8955for as_dir in $PATH 8956do 8957 IFS=$as_save_IFS 8958 test -z "$as_dir" && as_dir=. 8959 for ac_exec_ext in '' $ac_executable_extensions; do 8960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8961 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8963 break 2 8964 fi 8965done 8966 done 8967IFS=$as_save_IFS 8968 8969fi 8970fi 8971ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8972if test -n "$ac_ct_NMEDIT"; then 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8974$as_echo "$ac_ct_NMEDIT" >&6; } 8975else 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8977$as_echo "no" >&6; } 8978fi 8979 8980 if test "x$ac_ct_NMEDIT" = x; then 8981 NMEDIT=":" 8982 else 8983 case $cross_compiling:$ac_tool_warned in 8984yes:) 8985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8987ac_tool_warned=yes ;; 8988esac 8989 NMEDIT=$ac_ct_NMEDIT 8990 fi 8991else 8992 NMEDIT="$ac_cv_prog_NMEDIT" 8993fi 8994 8995 if test -n "$ac_tool_prefix"; then 8996 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8997set dummy ${ac_tool_prefix}lipo; ac_word=$2 8998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8999$as_echo_n "checking for $ac_word... " >&6; } 9000if ${ac_cv_prog_LIPO+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 if test -n "$LIPO"; then 9004 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 9005else 9006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9007for as_dir in $PATH 9008do 9009 IFS=$as_save_IFS 9010 test -z "$as_dir" && as_dir=. 9011 for ac_exec_ext in '' $ac_executable_extensions; do 9012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9013 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 9014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9015 break 2 9016 fi 9017done 9018 done 9019IFS=$as_save_IFS 9020 9021fi 9022fi 9023LIPO=$ac_cv_prog_LIPO 9024if test -n "$LIPO"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 9026$as_echo "$LIPO" >&6; } 9027else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029$as_echo "no" >&6; } 9030fi 9031 9032 9033fi 9034if test -z "$ac_cv_prog_LIPO"; then 9035 ac_ct_LIPO=$LIPO 9036 # Extract the first word of "lipo", so it can be a program name with args. 9037set dummy lipo; ac_word=$2 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9039$as_echo_n "checking for $ac_word... " >&6; } 9040if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 9041 $as_echo_n "(cached) " >&6 9042else 9043 if test -n "$ac_ct_LIPO"; then 9044 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 9045else 9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9047for as_dir in $PATH 9048do 9049 IFS=$as_save_IFS 9050 test -z "$as_dir" && as_dir=. 9051 for ac_exec_ext in '' $ac_executable_extensions; do 9052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9053 ac_cv_prog_ac_ct_LIPO="lipo" 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9055 break 2 9056 fi 9057done 9058 done 9059IFS=$as_save_IFS 9060 9061fi 9062fi 9063ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 9064if test -n "$ac_ct_LIPO"; then 9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 9066$as_echo "$ac_ct_LIPO" >&6; } 9067else 9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9069$as_echo "no" >&6; } 9070fi 9071 9072 if test "x$ac_ct_LIPO" = x; then 9073 LIPO=":" 9074 else 9075 case $cross_compiling:$ac_tool_warned in 9076yes:) 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9079ac_tool_warned=yes ;; 9080esac 9081 LIPO=$ac_ct_LIPO 9082 fi 9083else 9084 LIPO="$ac_cv_prog_LIPO" 9085fi 9086 9087 if test -n "$ac_tool_prefix"; then 9088 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 9089set dummy ${ac_tool_prefix}otool; ac_word=$2 9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9091$as_echo_n "checking for $ac_word... " >&6; } 9092if ${ac_cv_prog_OTOOL+:} false; then : 9093 $as_echo_n "(cached) " >&6 9094else 9095 if test -n "$OTOOL"; then 9096 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 9097else 9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9099for as_dir in $PATH 9100do 9101 IFS=$as_save_IFS 9102 test -z "$as_dir" && as_dir=. 9103 for ac_exec_ext in '' $ac_executable_extensions; do 9104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9105 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9107 break 2 9108 fi 9109done 9110 done 9111IFS=$as_save_IFS 9112 9113fi 9114fi 9115OTOOL=$ac_cv_prog_OTOOL 9116if test -n "$OTOOL"; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 9118$as_echo "$OTOOL" >&6; } 9119else 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9121$as_echo "no" >&6; } 9122fi 9123 9124 9125fi 9126if test -z "$ac_cv_prog_OTOOL"; then 9127 ac_ct_OTOOL=$OTOOL 9128 # Extract the first word of "otool", so it can be a program name with args. 9129set dummy otool; ac_word=$2 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9131$as_echo_n "checking for $ac_word... " >&6; } 9132if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 if test -n "$ac_ct_OTOOL"; then 9136 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 9137else 9138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9139for as_dir in $PATH 9140do 9141 IFS=$as_save_IFS 9142 test -z "$as_dir" && as_dir=. 9143 for ac_exec_ext in '' $ac_executable_extensions; do 9144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9145 ac_cv_prog_ac_ct_OTOOL="otool" 9146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9147 break 2 9148 fi 9149done 9150 done 9151IFS=$as_save_IFS 9152 9153fi 9154fi 9155ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 9156if test -n "$ac_ct_OTOOL"; then 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 9158$as_echo "$ac_ct_OTOOL" >&6; } 9159else 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9161$as_echo "no" >&6; } 9162fi 9163 9164 if test "x$ac_ct_OTOOL" = x; then 9165 OTOOL=":" 9166 else 9167 case $cross_compiling:$ac_tool_warned in 9168yes:) 9169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9171ac_tool_warned=yes ;; 9172esac 9173 OTOOL=$ac_ct_OTOOL 9174 fi 9175else 9176 OTOOL="$ac_cv_prog_OTOOL" 9177fi 9178 9179 if test -n "$ac_tool_prefix"; then 9180 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 9181set dummy ${ac_tool_prefix}otool64; ac_word=$2 9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9183$as_echo_n "checking for $ac_word... " >&6; } 9184if ${ac_cv_prog_OTOOL64+:} false; then : 9185 $as_echo_n "(cached) " >&6 9186else 9187 if test -n "$OTOOL64"; then 9188 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 9189else 9190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9191for as_dir in $PATH 9192do 9193 IFS=$as_save_IFS 9194 test -z "$as_dir" && as_dir=. 9195 for ac_exec_ext in '' $ac_executable_extensions; do 9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9197 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9199 break 2 9200 fi 9201done 9202 done 9203IFS=$as_save_IFS 9204 9205fi 9206fi 9207OTOOL64=$ac_cv_prog_OTOOL64 9208if test -n "$OTOOL64"; then 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 9210$as_echo "$OTOOL64" >&6; } 9211else 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9213$as_echo "no" >&6; } 9214fi 9215 9216 9217fi 9218if test -z "$ac_cv_prog_OTOOL64"; then 9219 ac_ct_OTOOL64=$OTOOL64 9220 # Extract the first word of "otool64", so it can be a program name with args. 9221set dummy otool64; ac_word=$2 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9223$as_echo_n "checking for $ac_word... " >&6; } 9224if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 9225 $as_echo_n "(cached) " >&6 9226else 9227 if test -n "$ac_ct_OTOOL64"; then 9228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 9229else 9230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9231for as_dir in $PATH 9232do 9233 IFS=$as_save_IFS 9234 test -z "$as_dir" && as_dir=. 9235 for ac_exec_ext in '' $ac_executable_extensions; do 9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9237 ac_cv_prog_ac_ct_OTOOL64="otool64" 9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9239 break 2 9240 fi 9241done 9242 done 9243IFS=$as_save_IFS 9244 9245fi 9246fi 9247ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 9248if test -n "$ac_ct_OTOOL64"; then 9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 9250$as_echo "$ac_ct_OTOOL64" >&6; } 9251else 9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9253$as_echo "no" >&6; } 9254fi 9255 9256 if test "x$ac_ct_OTOOL64" = x; then 9257 OTOOL64=":" 9258 else 9259 case $cross_compiling:$ac_tool_warned in 9260yes:) 9261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9263ac_tool_warned=yes ;; 9264esac 9265 OTOOL64=$ac_ct_OTOOL64 9266 fi 9267else 9268 OTOOL64="$ac_cv_prog_OTOOL64" 9269fi 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 9298$as_echo_n "checking for -single_module linker flag... " >&6; } 9299if ${lt_cv_apple_cc_single_mod+:} false; then : 9300 $as_echo_n "(cached) " >&6 9301else 9302 lt_cv_apple_cc_single_mod=no 9303 if test -z "${LT_MULTI_MODULE}"; then 9304 # By default we will add the -single_module flag. You can override 9305 # by either setting the environment variable LT_MULTI_MODULE 9306 # non-empty at configure time, or by adding -multi_module to the 9307 # link flags. 9308 rm -rf libconftest.dylib* 9309 echo "int foo(void){return 1;}" > conftest.c 9310 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9311-dynamiclib -Wl,-single_module conftest.c" >&5 9312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 9313 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 9314 _lt_result=$? 9315 # If there is a non-empty error log, and "single_module" 9316 # appears in it, assume the flag caused a linker warning 9317 if test -s conftest.err && $GREP single_module conftest.err; then 9318 cat conftest.err >&5 9319 # Otherwise, if the output was created with a 0 exit code from 9320 # the compiler, it worked. 9321 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 9322 lt_cv_apple_cc_single_mod=yes 9323 else 9324 cat conftest.err >&5 9325 fi 9326 rm -rf libconftest.dylib* 9327 rm -f conftest.* 9328 fi 9329fi 9330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 9331$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 9332 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 9334$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 9335if ${lt_cv_ld_exported_symbols_list+:} false; then : 9336 $as_echo_n "(cached) " >&6 9337else 9338 lt_cv_ld_exported_symbols_list=no 9339 save_LDFLAGS=$LDFLAGS 9340 echo "_main" > conftest.sym 9341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 9342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9343/* end confdefs.h. */ 9344 9345int 9346main () 9347{ 9348 9349 ; 9350 return 0; 9351} 9352_ACEOF 9353if ac_fn_c_try_link "$LINENO"; then : 9354 lt_cv_ld_exported_symbols_list=yes 9355else 9356 lt_cv_ld_exported_symbols_list=no 9357fi 9358rm -f core conftest.err conftest.$ac_objext \ 9359 conftest$ac_exeext conftest.$ac_ext 9360 LDFLAGS="$save_LDFLAGS" 9361 9362fi 9363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 9364$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 9365 9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 9367$as_echo_n "checking for -force_load linker flag... " >&6; } 9368if ${lt_cv_ld_force_load+:} false; then : 9369 $as_echo_n "(cached) " >&6 9370else 9371 lt_cv_ld_force_load=no 9372 cat > conftest.c << _LT_EOF 9373int forced_loaded() { return 2;} 9374_LT_EOF 9375 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 9376 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 9377 echo "$AR cru libconftest.a conftest.o" >&5 9378 $AR cru libconftest.a conftest.o 2>&5 9379 echo "$RANLIB libconftest.a" >&5 9380 $RANLIB libconftest.a 2>&5 9381 cat > conftest.c << _LT_EOF 9382int main() { return 0;} 9383_LT_EOF 9384 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 9385 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 9386 _lt_result=$? 9387 if test -s conftest.err && $GREP force_load conftest.err; then 9388 cat conftest.err >&5 9389 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 9390 lt_cv_ld_force_load=yes 9391 else 9392 cat conftest.err >&5 9393 fi 9394 rm -f conftest.err libconftest.a conftest conftest.c 9395 rm -rf conftest.dSYM 9396 9397fi 9398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 9399$as_echo "$lt_cv_ld_force_load" >&6; } 9400 case $host_os in 9401 rhapsody* | darwin1.[012]) 9402 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 9403 darwin1.*) 9404 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9405 darwin*) # darwin 5.x on 9406 # if running on 10.5 or later, the deployment target defaults 9407 # to the OS version, if on x86, and 10.4, the deployment 9408 # target defaults to 10.4. Don't you love it? 9409 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 9410 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 9411 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9412 10.[012]*) 9413 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 9414 10.*) 9415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 9416 esac 9417 ;; 9418 esac 9419 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 9420 _lt_dar_single_mod='$single_module' 9421 fi 9422 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 9423 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 9424 else 9425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 9426 fi 9427 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 9428 _lt_dsymutil='~$DSYMUTIL $lib || :' 9429 else 9430 _lt_dsymutil= 9431 fi 9432 ;; 9433 esac 9434 9435 9436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9437$as_echo_n "checking for ANSI C header files... " >&6; } 9438if ${ac_cv_header_stdc+:} false; then : 9439 $as_echo_n "(cached) " >&6 9440else 9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9442/* end confdefs.h. */ 9443#include <stdlib.h> 9444#include <stdarg.h> 9445#include <string.h> 9446#include <float.h> 9447 9448int 9449main () 9450{ 9451 9452 ; 9453 return 0; 9454} 9455_ACEOF 9456if ac_fn_c_try_compile "$LINENO"; then : 9457 ac_cv_header_stdc=yes 9458else 9459 ac_cv_header_stdc=no 9460fi 9461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9462 9463if test $ac_cv_header_stdc = yes; then 9464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9466/* end confdefs.h. */ 9467#include <string.h> 9468 9469_ACEOF 9470if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9471 $EGREP "memchr" >/dev/null 2>&1; then : 9472 9473else 9474 ac_cv_header_stdc=no 9475fi 9476rm -f conftest* 9477 9478fi 9479 9480if test $ac_cv_header_stdc = yes; then 9481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9483/* end confdefs.h. */ 9484#include <stdlib.h> 9485 9486_ACEOF 9487if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9488 $EGREP "free" >/dev/null 2>&1; then : 9489 9490else 9491 ac_cv_header_stdc=no 9492fi 9493rm -f conftest* 9494 9495fi 9496 9497if test $ac_cv_header_stdc = yes; then 9498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9499 if test "$cross_compiling" = yes; then : 9500 : 9501else 9502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9503/* end confdefs.h. */ 9504#include <ctype.h> 9505#include <stdlib.h> 9506#if ((' ' & 0x0FF) == 0x020) 9507# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9508# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9509#else 9510# define ISLOWER(c) \ 9511 (('a' <= (c) && (c) <= 'i') \ 9512 || ('j' <= (c) && (c) <= 'r') \ 9513 || ('s' <= (c) && (c) <= 'z')) 9514# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9515#endif 9516 9517#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9518int 9519main () 9520{ 9521 int i; 9522 for (i = 0; i < 256; i++) 9523 if (XOR (islower (i), ISLOWER (i)) 9524 || toupper (i) != TOUPPER (i)) 9525 return 2; 9526 return 0; 9527} 9528_ACEOF 9529if ac_fn_c_try_run "$LINENO"; then : 9530 9531else 9532 ac_cv_header_stdc=no 9533fi 9534rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9535 conftest.$ac_objext conftest.beam conftest.$ac_ext 9536fi 9537 9538fi 9539fi 9540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9541$as_echo "$ac_cv_header_stdc" >&6; } 9542if test $ac_cv_header_stdc = yes; then 9543 9544$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9545 9546fi 9547 9548# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9549for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9550 inttypes.h stdint.h unistd.h 9551do : 9552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9553ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9554" 9555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9556 cat >>confdefs.h <<_ACEOF 9557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9558_ACEOF 9559 9560fi 9561 9562done 9563 9564 9565for ac_header in dlfcn.h 9566do : 9567 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9568" 9569if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9570 cat >>confdefs.h <<_ACEOF 9571#define HAVE_DLFCN_H 1 9572_ACEOF 9573 9574fi 9575 9576done 9577 9578 9579 9580 9581 9582# Set options 9583 9584 9585 9586 enable_dlopen=no 9587 9588 9589 enable_win32_dll=no 9590 9591 9592 # Check whether --enable-shared was given. 9593if test "${enable_shared+set}" = set; then : 9594 enableval=$enable_shared; p=${PACKAGE-default} 9595 case $enableval in 9596 yes) enable_shared=yes ;; 9597 no) enable_shared=no ;; 9598 *) 9599 enable_shared=no 9600 # Look at the argument we got. We use all the common list separators. 9601 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9602 for pkg in $enableval; do 9603 IFS="$lt_save_ifs" 9604 if test "X$pkg" = "X$p"; then 9605 enable_shared=yes 9606 fi 9607 done 9608 IFS="$lt_save_ifs" 9609 ;; 9610 esac 9611else 9612 enable_shared=yes 9613fi 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 # Check whether --enable-static was given. 9624if test "${enable_static+set}" = set; then : 9625 enableval=$enable_static; p=${PACKAGE-default} 9626 case $enableval in 9627 yes) enable_static=yes ;; 9628 no) enable_static=no ;; 9629 *) 9630 enable_static=no 9631 # Look at the argument we got. We use all the common list separators. 9632 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9633 for pkg in $enableval; do 9634 IFS="$lt_save_ifs" 9635 if test "X$pkg" = "X$p"; then 9636 enable_static=yes 9637 fi 9638 done 9639 IFS="$lt_save_ifs" 9640 ;; 9641 esac 9642else 9643 enable_static=yes 9644fi 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655# Check whether --with-pic was given. 9656if test "${with_pic+set}" = set; then : 9657 withval=$with_pic; lt_p=${PACKAGE-default} 9658 case $withval in 9659 yes|no) pic_mode=$withval ;; 9660 *) 9661 pic_mode=default 9662 # Look at the argument we got. We use all the common list separators. 9663 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9664 for lt_pkg in $withval; do 9665 IFS="$lt_save_ifs" 9666 if test "X$lt_pkg" = "X$lt_p"; then 9667 pic_mode=yes 9668 fi 9669 done 9670 IFS="$lt_save_ifs" 9671 ;; 9672 esac 9673else 9674 pic_mode=default 9675fi 9676 9677 9678test -z "$pic_mode" && pic_mode=default 9679 9680 9681 9682 9683 9684 9685 9686 # Check whether --enable-fast-install was given. 9687if test "${enable_fast_install+set}" = set; then : 9688 enableval=$enable_fast_install; p=${PACKAGE-default} 9689 case $enableval in 9690 yes) enable_fast_install=yes ;; 9691 no) enable_fast_install=no ;; 9692 *) 9693 enable_fast_install=no 9694 # Look at the argument we got. We use all the common list separators. 9695 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9696 for pkg in $enableval; do 9697 IFS="$lt_save_ifs" 9698 if test "X$pkg" = "X$p"; then 9699 enable_fast_install=yes 9700 fi 9701 done 9702 IFS="$lt_save_ifs" 9703 ;; 9704 esac 9705else 9706 enable_fast_install=yes 9707fi 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719# This can be used to rebuild libtool when needed 9720LIBTOOL_DEPS="$ltmain" 9721 9722# Always use our own libtool. 9723LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754test -z "$LN_S" && LN_S="ln -s" 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769if test -n "${ZSH_VERSION+set}" ; then 9770 setopt NO_GLOB_SUBST 9771fi 9772 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9774$as_echo_n "checking for objdir... " >&6; } 9775if ${lt_cv_objdir+:} false; then : 9776 $as_echo_n "(cached) " >&6 9777else 9778 rm -f .libs 2>/dev/null 9779mkdir .libs 2>/dev/null 9780if test -d .libs; then 9781 lt_cv_objdir=.libs 9782else 9783 # MS-DOS does not allow filenames that begin with a dot. 9784 lt_cv_objdir=_libs 9785fi 9786rmdir .libs 2>/dev/null 9787fi 9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9789$as_echo "$lt_cv_objdir" >&6; } 9790objdir=$lt_cv_objdir 9791 9792 9793 9794 9795 9796cat >>confdefs.h <<_ACEOF 9797#define LT_OBJDIR "$lt_cv_objdir/" 9798_ACEOF 9799 9800 9801 9802 9803case $host_os in 9804aix3*) 9805 # AIX sometimes has problems with the GCC collect2 program. For some 9806 # reason, if we set the COLLECT_NAMES environment variable, the problems 9807 # vanish in a puff of smoke. 9808 if test "X${COLLECT_NAMES+set}" != Xset; then 9809 COLLECT_NAMES= 9810 export COLLECT_NAMES 9811 fi 9812 ;; 9813esac 9814 9815# Global variables: 9816ofile=libtool 9817can_build_shared=yes 9818 9819# All known linkers require a `.a' archive for static linking (except MSVC, 9820# which needs '.lib'). 9821libext=a 9822 9823with_gnu_ld="$lt_cv_prog_gnu_ld" 9824 9825old_CC="$CC" 9826old_CFLAGS="$CFLAGS" 9827 9828# Set sane defaults for various variables 9829test -z "$CC" && CC=cc 9830test -z "$LTCC" && LTCC=$CC 9831test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9832test -z "$LD" && LD=ld 9833test -z "$ac_objext" && ac_objext=o 9834 9835for cc_temp in $compiler""; do 9836 case $cc_temp in 9837 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 9838 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 9839 \-*) ;; 9840 *) break;; 9841 esac 9842done 9843cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 9844 9845 9846# Only perform the check for file, if the check method requires it 9847test -z "$MAGIC_CMD" && MAGIC_CMD=file 9848case $deplibs_check_method in 9849file_magic*) 9850 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9852$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9853if ${lt_cv_path_MAGIC_CMD+:} false; then : 9854 $as_echo_n "(cached) " >&6 9855else 9856 case $MAGIC_CMD in 9857[\\/*] | ?:[\\/]*) 9858 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9859 ;; 9860*) 9861 lt_save_MAGIC_CMD="$MAGIC_CMD" 9862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9863 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9864 for ac_dir in $ac_dummy; do 9865 IFS="$lt_save_ifs" 9866 test -z "$ac_dir" && ac_dir=. 9867 if test -f $ac_dir/${ac_tool_prefix}file; then 9868 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 9869 if test -n "$file_magic_test_file"; then 9870 case $deplibs_check_method in 9871 "file_magic "*) 9872 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9873 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9874 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9875 $EGREP "$file_magic_regex" > /dev/null; then 9876 : 9877 else 9878 cat <<_LT_EOF 1>&2 9879 9880*** Warning: the command libtool uses to detect shared libraries, 9881*** $file_magic_cmd, produces output that libtool cannot recognize. 9882*** The result is that libtool may fail to recognize shared libraries 9883*** as such. This will affect the creation of libtool libraries that 9884*** depend on shared libraries, but programs linked with such libtool 9885*** libraries will work regardless of this problem. Nevertheless, you 9886*** may want to report the problem to your system manager and/or to 9887*** bug-libtool@gnu.org 9888 9889_LT_EOF 9890 fi ;; 9891 esac 9892 fi 9893 break 9894 fi 9895 done 9896 IFS="$lt_save_ifs" 9897 MAGIC_CMD="$lt_save_MAGIC_CMD" 9898 ;; 9899esac 9900fi 9901 9902MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9903if test -n "$MAGIC_CMD"; then 9904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9905$as_echo "$MAGIC_CMD" >&6; } 9906else 9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9908$as_echo "no" >&6; } 9909fi 9910 9911 9912 9913 9914 9915if test -z "$lt_cv_path_MAGIC_CMD"; then 9916 if test -n "$ac_tool_prefix"; then 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9918$as_echo_n "checking for file... " >&6; } 9919if ${lt_cv_path_MAGIC_CMD+:} false; then : 9920 $as_echo_n "(cached) " >&6 9921else 9922 case $MAGIC_CMD in 9923[\\/*] | ?:[\\/]*) 9924 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 9925 ;; 9926*) 9927 lt_save_MAGIC_CMD="$MAGIC_CMD" 9928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9929 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9930 for ac_dir in $ac_dummy; do 9931 IFS="$lt_save_ifs" 9932 test -z "$ac_dir" && ac_dir=. 9933 if test -f $ac_dir/file; then 9934 lt_cv_path_MAGIC_CMD="$ac_dir/file" 9935 if test -n "$file_magic_test_file"; then 9936 case $deplibs_check_method in 9937 "file_magic "*) 9938 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9939 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9940 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9941 $EGREP "$file_magic_regex" > /dev/null; then 9942 : 9943 else 9944 cat <<_LT_EOF 1>&2 9945 9946*** Warning: the command libtool uses to detect shared libraries, 9947*** $file_magic_cmd, produces output that libtool cannot recognize. 9948*** The result is that libtool may fail to recognize shared libraries 9949*** as such. This will affect the creation of libtool libraries that 9950*** depend on shared libraries, but programs linked with such libtool 9951*** libraries will work regardless of this problem. Nevertheless, you 9952*** may want to report the problem to your system manager and/or to 9953*** bug-libtool@gnu.org 9954 9955_LT_EOF 9956 fi ;; 9957 esac 9958 fi 9959 break 9960 fi 9961 done 9962 IFS="$lt_save_ifs" 9963 MAGIC_CMD="$lt_save_MAGIC_CMD" 9964 ;; 9965esac 9966fi 9967 9968MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 9969if test -n "$MAGIC_CMD"; then 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9971$as_echo "$MAGIC_CMD" >&6; } 9972else 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9974$as_echo "no" >&6; } 9975fi 9976 9977 9978 else 9979 MAGIC_CMD=: 9980 fi 9981fi 9982 9983 fi 9984 ;; 9985esac 9986 9987# Use C for the default configuration in the libtool script 9988 9989lt_save_CC="$CC" 9990ac_ext=c 9991ac_cpp='$CPP $CPPFLAGS' 9992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9994ac_compiler_gnu=$ac_cv_c_compiler_gnu 9995 9996 9997# Source file extension for C test sources. 9998ac_ext=c 9999 10000# Object file extension for compiled C test sources. 10001objext=o 10002objext=$objext 10003 10004# Code to be used in simple compile tests 10005lt_simple_compile_test_code="int some_variable = 0;" 10006 10007# Code to be used in simple link tests 10008lt_simple_link_test_code='int main(){return(0);}' 10009 10010 10011 10012 10013 10014 10015 10016# If no C compiler was specified, use CC. 10017LTCC=${LTCC-"$CC"} 10018 10019# If no C compiler flags were specified, use CFLAGS. 10020LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10021 10022# Allow CC to be a program name with arguments. 10023compiler=$CC 10024 10025# Save the default compiler, since it gets overwritten when the other 10026# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 10027compiler_DEFAULT=$CC 10028 10029# save warnings/boilerplate of simple test code 10030ac_outfile=conftest.$ac_objext 10031echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10032eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10033_lt_compiler_boilerplate=`cat conftest.err` 10034$RM conftest* 10035 10036ac_outfile=conftest.$ac_objext 10037echo "$lt_simple_link_test_code" >conftest.$ac_ext 10038eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10039_lt_linker_boilerplate=`cat conftest.err` 10040$RM -r conftest* 10041 10042 10043## CAVEAT EMPTOR: 10044## There is no encapsulation within the following macros, do not change 10045## the running order or otherwise move them around unless you know exactly 10046## what you are doing... 10047if test -n "$compiler"; then 10048 10049lt_prog_compiler_no_builtin_flag= 10050 10051if test "$GCC" = yes; then 10052 case $cc_basename in 10053 nvcc*) 10054 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 10055 *) 10056 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 10057 esac 10058 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 10060$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 10061if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 lt_cv_prog_compiler_rtti_exceptions=no 10065 ac_outfile=conftest.$ac_objext 10066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10067 lt_compiler_flag="-fno-rtti -fno-exceptions" 10068 # Insert the option either (1) after the last *FLAGS variable, or 10069 # (2) before a word containing "conftest.", or (3) at the end. 10070 # Note that $ac_compile itself does not contain backslashes and begins 10071 # with a dollar sign (not a hyphen), so the echo should work correctly. 10072 # The option is referenced via a variable to avoid confusing sed. 10073 lt_compile=`echo "$ac_compile" | $SED \ 10074 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10075 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10076 -e 's:$: $lt_compiler_flag:'` 10077 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10078 (eval "$lt_compile" 2>conftest.err) 10079 ac_status=$? 10080 cat conftest.err >&5 10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10082 if (exit $ac_status) && test -s "$ac_outfile"; then 10083 # The compiler can only warn and ignore the option if not recognized 10084 # So say no if there are warnings other than the usual output. 10085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10086 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10087 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10088 lt_cv_prog_compiler_rtti_exceptions=yes 10089 fi 10090 fi 10091 $RM conftest* 10092 10093fi 10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 10095$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 10096 10097if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 10098 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 10099else 10100 : 10101fi 10102 10103fi 10104 10105 10106 10107 10108 10109 10110 lt_prog_compiler_wl= 10111lt_prog_compiler_pic= 10112lt_prog_compiler_static= 10113 10114 10115 if test "$GCC" = yes; then 10116 lt_prog_compiler_wl='-Wl,' 10117 lt_prog_compiler_static='-static' 10118 10119 case $host_os in 10120 aix*) 10121 # All AIX code is PIC. 10122 if test "$host_cpu" = ia64; then 10123 # AIX 5 now supports IA64 processor 10124 lt_prog_compiler_static='-Bstatic' 10125 fi 10126 ;; 10127 10128 amigaos*) 10129 case $host_cpu in 10130 powerpc) 10131 # see comment about AmigaOS4 .so support 10132 lt_prog_compiler_pic='-fPIC' 10133 ;; 10134 m68k) 10135 # FIXME: we need at least 68020 code to build shared libraries, but 10136 # adding the `-m68020' flag to GCC prevents building anything better, 10137 # like `-m68040'. 10138 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 10139 ;; 10140 esac 10141 ;; 10142 10143 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10144 # PIC is the default for these OSes. 10145 ;; 10146 10147 mingw* | cygwin* | pw32* | os2* | cegcc*) 10148 # This hack is so that the source file can tell whether it is being 10149 # built for inclusion in a dll (and should export symbols for example). 10150 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10151 # (--disable-auto-import) libraries 10152 lt_prog_compiler_pic='-DDLL_EXPORT' 10153 ;; 10154 10155 darwin* | rhapsody*) 10156 # PIC is the default on this platform 10157 # Common symbols not allowed in MH_DYLIB files 10158 lt_prog_compiler_pic='-fno-common' 10159 ;; 10160 10161 haiku*) 10162 # PIC is the default for Haiku. 10163 # The "-static" flag exists, but is broken. 10164 lt_prog_compiler_static= 10165 ;; 10166 10167 hpux*) 10168 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 10169 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 10170 # sets the default TLS model and affects inlining. 10171 case $host_cpu in 10172 hppa*64*) 10173 # +Z the default 10174 ;; 10175 *) 10176 lt_prog_compiler_pic='-fPIC' 10177 ;; 10178 esac 10179 ;; 10180 10181 interix[3-9]*) 10182 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10183 # Instead, we relocate shared libraries at runtime. 10184 ;; 10185 10186 msdosdjgpp*) 10187 # Just because we use GCC doesn't mean we suddenly get shared libraries 10188 # on systems that don't support them. 10189 lt_prog_compiler_can_build_shared=no 10190 enable_shared=no 10191 ;; 10192 10193 *nto* | *qnx*) 10194 # QNX uses GNU C++, but need to define -shared option too, otherwise 10195 # it will coredump. 10196 lt_prog_compiler_pic='-fPIC -shared' 10197 ;; 10198 10199 sysv4*MP*) 10200 if test -d /usr/nec; then 10201 lt_prog_compiler_pic=-Kconform_pic 10202 fi 10203 ;; 10204 10205 *) 10206 lt_prog_compiler_pic='-fPIC' 10207 ;; 10208 esac 10209 10210 case $cc_basename in 10211 nvcc*) # Cuda Compiler Driver 2.2 10212 lt_prog_compiler_wl='-Xlinker ' 10213 if test -n "$lt_prog_compiler_pic"; then 10214 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 10215 fi 10216 ;; 10217 esac 10218 else 10219 # PORTME Check for flag to pass linker flags through the system compiler. 10220 case $host_os in 10221 aix*) 10222 lt_prog_compiler_wl='-Wl,' 10223 if test "$host_cpu" = ia64; then 10224 # AIX 5 now supports IA64 processor 10225 lt_prog_compiler_static='-Bstatic' 10226 else 10227 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 10228 fi 10229 ;; 10230 10231 mingw* | cygwin* | pw32* | os2* | cegcc*) 10232 # This hack is so that the source file can tell whether it is being 10233 # built for inclusion in a dll (and should export symbols for example). 10234 lt_prog_compiler_pic='-DDLL_EXPORT' 10235 ;; 10236 10237 hpux9* | hpux10* | hpux11*) 10238 lt_prog_compiler_wl='-Wl,' 10239 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10240 # not for PA HP-UX. 10241 case $host_cpu in 10242 hppa*64*|ia64*) 10243 # +Z the default 10244 ;; 10245 *) 10246 lt_prog_compiler_pic='+Z' 10247 ;; 10248 esac 10249 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10250 lt_prog_compiler_static='${wl}-a ${wl}archive' 10251 ;; 10252 10253 irix5* | irix6* | nonstopux*) 10254 lt_prog_compiler_wl='-Wl,' 10255 # PIC (with -KPIC) is the default. 10256 lt_prog_compiler_static='-non_shared' 10257 ;; 10258 10259 linux* | k*bsd*-gnu | kopensolaris*-gnu) 10260 case $cc_basename in 10261 # old Intel for x86_64 which still supported -KPIC. 10262 ecc*) 10263 lt_prog_compiler_wl='-Wl,' 10264 lt_prog_compiler_pic='-KPIC' 10265 lt_prog_compiler_static='-static' 10266 ;; 10267 # icc used to be incompatible with GCC. 10268 # ICC 10 doesn't accept -KPIC any more. 10269 icc* | ifort*) 10270 lt_prog_compiler_wl='-Wl,' 10271 lt_prog_compiler_pic='-fPIC' 10272 lt_prog_compiler_static='-static' 10273 ;; 10274 # Lahey Fortran 8.1. 10275 lf95*) 10276 lt_prog_compiler_wl='-Wl,' 10277 lt_prog_compiler_pic='--shared' 10278 lt_prog_compiler_static='--static' 10279 ;; 10280 nagfor*) 10281 # NAG Fortran compiler 10282 lt_prog_compiler_wl='-Wl,-Wl,,' 10283 lt_prog_compiler_pic='-PIC' 10284 lt_prog_compiler_static='-Bstatic' 10285 ;; 10286 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10287 # Portland Group compilers (*not* the Pentium gcc compiler, 10288 # which looks to be a dead project) 10289 lt_prog_compiler_wl='-Wl,' 10290 lt_prog_compiler_pic='-fpic' 10291 lt_prog_compiler_static='-Bstatic' 10292 ;; 10293 ccc*) 10294 lt_prog_compiler_wl='-Wl,' 10295 # All Alpha code is PIC. 10296 lt_prog_compiler_static='-non_shared' 10297 ;; 10298 xl* | bgxl* | bgf* | mpixl*) 10299 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10300 lt_prog_compiler_wl='-Wl,' 10301 lt_prog_compiler_pic='-qpic' 10302 lt_prog_compiler_static='-qstaticlink' 10303 ;; 10304 *) 10305 case `$CC -V 2>&1 | sed 5q` in 10306 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10307 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10308 lt_prog_compiler_pic='-KPIC' 10309 lt_prog_compiler_static='-Bstatic' 10310 lt_prog_compiler_wl='' 10311 ;; 10312 *Sun\ F* | *Sun*Fortran*) 10313 lt_prog_compiler_pic='-KPIC' 10314 lt_prog_compiler_static='-Bstatic' 10315 lt_prog_compiler_wl='-Qoption ld ' 10316 ;; 10317 *Sun\ C*) 10318 # Sun C 5.9 10319 lt_prog_compiler_pic='-KPIC' 10320 lt_prog_compiler_static='-Bstatic' 10321 lt_prog_compiler_wl='-Wl,' 10322 ;; 10323 *Intel*\ [CF]*Compiler*) 10324 lt_prog_compiler_wl='-Wl,' 10325 lt_prog_compiler_pic='-fPIC' 10326 lt_prog_compiler_static='-static' 10327 ;; 10328 *Portland\ Group*) 10329 lt_prog_compiler_wl='-Wl,' 10330 lt_prog_compiler_pic='-fpic' 10331 lt_prog_compiler_static='-Bstatic' 10332 ;; 10333 esac 10334 ;; 10335 esac 10336 ;; 10337 10338 newsos6) 10339 lt_prog_compiler_pic='-KPIC' 10340 lt_prog_compiler_static='-Bstatic' 10341 ;; 10342 10343 *nto* | *qnx*) 10344 # QNX uses GNU C++, but need to define -shared option too, otherwise 10345 # it will coredump. 10346 lt_prog_compiler_pic='-fPIC -shared' 10347 ;; 10348 10349 osf3* | osf4* | osf5*) 10350 lt_prog_compiler_wl='-Wl,' 10351 # All OSF/1 code is PIC. 10352 lt_prog_compiler_static='-non_shared' 10353 ;; 10354 10355 rdos*) 10356 lt_prog_compiler_static='-non_shared' 10357 ;; 10358 10359 solaris*) 10360 lt_prog_compiler_pic='-KPIC' 10361 lt_prog_compiler_static='-Bstatic' 10362 case $cc_basename in 10363 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10364 lt_prog_compiler_wl='-Qoption ld ';; 10365 *) 10366 lt_prog_compiler_wl='-Wl,';; 10367 esac 10368 ;; 10369 10370 sunos4*) 10371 lt_prog_compiler_wl='-Qoption ld ' 10372 lt_prog_compiler_pic='-PIC' 10373 lt_prog_compiler_static='-Bstatic' 10374 ;; 10375 10376 sysv4 | sysv4.2uw2* | sysv4.3*) 10377 lt_prog_compiler_wl='-Wl,' 10378 lt_prog_compiler_pic='-KPIC' 10379 lt_prog_compiler_static='-Bstatic' 10380 ;; 10381 10382 sysv4*MP*) 10383 if test -d /usr/nec ;then 10384 lt_prog_compiler_pic='-Kconform_pic' 10385 lt_prog_compiler_static='-Bstatic' 10386 fi 10387 ;; 10388 10389 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10390 lt_prog_compiler_wl='-Wl,' 10391 lt_prog_compiler_pic='-KPIC' 10392 lt_prog_compiler_static='-Bstatic' 10393 ;; 10394 10395 unicos*) 10396 lt_prog_compiler_wl='-Wl,' 10397 lt_prog_compiler_can_build_shared=no 10398 ;; 10399 10400 uts4*) 10401 lt_prog_compiler_pic='-pic' 10402 lt_prog_compiler_static='-Bstatic' 10403 ;; 10404 10405 *) 10406 lt_prog_compiler_can_build_shared=no 10407 ;; 10408 esac 10409 fi 10410 10411case $host_os in 10412 # For platforms which do not support PIC, -DPIC is meaningless: 10413 *djgpp*) 10414 lt_prog_compiler_pic= 10415 ;; 10416 *) 10417 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10418 ;; 10419esac 10420 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10422$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10423if ${lt_cv_prog_compiler_pic+:} false; then : 10424 $as_echo_n "(cached) " >&6 10425else 10426 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10427fi 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10429$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10430lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10431 10432# 10433# Check to make sure the PIC flag actually works. 10434# 10435if test -n "$lt_prog_compiler_pic"; then 10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10437$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10438if ${lt_cv_prog_compiler_pic_works+:} false; then : 10439 $as_echo_n "(cached) " >&6 10440else 10441 lt_cv_prog_compiler_pic_works=no 10442 ac_outfile=conftest.$ac_objext 10443 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10444 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 10445 # Insert the option either (1) after the last *FLAGS variable, or 10446 # (2) before a word containing "conftest.", or (3) at the end. 10447 # Note that $ac_compile itself does not contain backslashes and begins 10448 # with a dollar sign (not a hyphen), so the echo should work correctly. 10449 # The option is referenced via a variable to avoid confusing sed. 10450 lt_compile=`echo "$ac_compile" | $SED \ 10451 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10452 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10453 -e 's:$: $lt_compiler_flag:'` 10454 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10455 (eval "$lt_compile" 2>conftest.err) 10456 ac_status=$? 10457 cat conftest.err >&5 10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10459 if (exit $ac_status) && test -s "$ac_outfile"; then 10460 # The compiler can only warn and ignore the option if not recognized 10461 # So say no if there are warnings other than the usual output. 10462 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10463 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10464 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10465 lt_cv_prog_compiler_pic_works=yes 10466 fi 10467 fi 10468 $RM conftest* 10469 10470fi 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10472$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10473 10474if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 10475 case $lt_prog_compiler_pic in 10476 "" | " "*) ;; 10477 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10478 esac 10479else 10480 lt_prog_compiler_pic= 10481 lt_prog_compiler_can_build_shared=no 10482fi 10483 10484fi 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496# 10497# Check to make sure the static flag actually works. 10498# 10499wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10501$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10502if ${lt_cv_prog_compiler_static_works+:} false; then : 10503 $as_echo_n "(cached) " >&6 10504else 10505 lt_cv_prog_compiler_static_works=no 10506 save_LDFLAGS="$LDFLAGS" 10507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10508 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10510 # The linker can only warn and ignore the option if not recognized 10511 # So say no if there are warnings 10512 if test -s conftest.err; then 10513 # Append any errors to the config.log. 10514 cat conftest.err 1>&5 10515 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10517 if diff conftest.exp conftest.er2 >/dev/null; then 10518 lt_cv_prog_compiler_static_works=yes 10519 fi 10520 else 10521 lt_cv_prog_compiler_static_works=yes 10522 fi 10523 fi 10524 $RM -r conftest* 10525 LDFLAGS="$save_LDFLAGS" 10526 10527fi 10528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10529$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10530 10531if test x"$lt_cv_prog_compiler_static_works" = xyes; then 10532 : 10533else 10534 lt_prog_compiler_static= 10535fi 10536 10537 10538 10539 10540 10541 10542 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10544$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10545if ${lt_cv_prog_compiler_c_o+:} false; then : 10546 $as_echo_n "(cached) " >&6 10547else 10548 lt_cv_prog_compiler_c_o=no 10549 $RM -r conftest 2>/dev/null 10550 mkdir conftest 10551 cd conftest 10552 mkdir out 10553 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10554 10555 lt_compiler_flag="-o out/conftest2.$ac_objext" 10556 # Insert the option either (1) after the last *FLAGS variable, or 10557 # (2) before a word containing "conftest.", or (3) at the end. 10558 # Note that $ac_compile itself does not contain backslashes and begins 10559 # with a dollar sign (not a hyphen), so the echo should work correctly. 10560 lt_compile=`echo "$ac_compile" | $SED \ 10561 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10562 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10563 -e 's:$: $lt_compiler_flag:'` 10564 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10565 (eval "$lt_compile" 2>out/conftest.err) 10566 ac_status=$? 10567 cat out/conftest.err >&5 10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10569 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10570 then 10571 # The compiler can only warn and ignore the option if not recognized 10572 # So say no if there are warnings 10573 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10574 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10575 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10576 lt_cv_prog_compiler_c_o=yes 10577 fi 10578 fi 10579 chmod u+w . 2>&5 10580 $RM conftest* 10581 # SGI C++ compiler will create directory out/ii_files/ for 10582 # template instantiation 10583 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10584 $RM out/* && rmdir out 10585 cd .. 10586 $RM -r conftest 10587 $RM conftest* 10588 10589fi 10590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10591$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10592 10593 10594 10595 10596 10597 10598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10599$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10600if ${lt_cv_prog_compiler_c_o+:} false; then : 10601 $as_echo_n "(cached) " >&6 10602else 10603 lt_cv_prog_compiler_c_o=no 10604 $RM -r conftest 2>/dev/null 10605 mkdir conftest 10606 cd conftest 10607 mkdir out 10608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10609 10610 lt_compiler_flag="-o out/conftest2.$ac_objext" 10611 # Insert the option either (1) after the last *FLAGS variable, or 10612 # (2) before a word containing "conftest.", or (3) at the end. 10613 # Note that $ac_compile itself does not contain backslashes and begins 10614 # with a dollar sign (not a hyphen), so the echo should work correctly. 10615 lt_compile=`echo "$ac_compile" | $SED \ 10616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10618 -e 's:$: $lt_compiler_flag:'` 10619 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10620 (eval "$lt_compile" 2>out/conftest.err) 10621 ac_status=$? 10622 cat out/conftest.err >&5 10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10624 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10625 then 10626 # The compiler can only warn and ignore the option if not recognized 10627 # So say no if there are warnings 10628 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10631 lt_cv_prog_compiler_c_o=yes 10632 fi 10633 fi 10634 chmod u+w . 2>&5 10635 $RM conftest* 10636 # SGI C++ compiler will create directory out/ii_files/ for 10637 # template instantiation 10638 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10639 $RM out/* && rmdir out 10640 cd .. 10641 $RM -r conftest 10642 $RM conftest* 10643 10644fi 10645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10646$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10647 10648 10649 10650 10651hard_links="nottested" 10652if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 10653 # do not overwrite the value of need_locks provided by the user 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10655$as_echo_n "checking if we can lock with hard links... " >&6; } 10656 hard_links=yes 10657 $RM conftest* 10658 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10659 touch conftest.a 10660 ln conftest.a conftest.b 2>&5 || hard_links=no 10661 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10663$as_echo "$hard_links" >&6; } 10664 if test "$hard_links" = no; then 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10666$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10667 need_locks=warn 10668 fi 10669else 10670 need_locks=no 10671fi 10672 10673 10674 10675 10676 10677 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10679$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10680 10681 runpath_var= 10682 allow_undefined_flag= 10683 always_export_symbols=no 10684 archive_cmds= 10685 archive_expsym_cmds= 10686 compiler_needs_object=no 10687 enable_shared_with_static_runtimes=no 10688 export_dynamic_flag_spec= 10689 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10690 hardcode_automatic=no 10691 hardcode_direct=no 10692 hardcode_direct_absolute=no 10693 hardcode_libdir_flag_spec= 10694 hardcode_libdir_separator= 10695 hardcode_minus_L=no 10696 hardcode_shlibpath_var=unsupported 10697 inherit_rpath=no 10698 link_all_deplibs=unknown 10699 module_cmds= 10700 module_expsym_cmds= 10701 old_archive_from_new_cmds= 10702 old_archive_from_expsyms_cmds= 10703 thread_safe_flag_spec= 10704 whole_archive_flag_spec= 10705 # include_expsyms should be a list of space-separated symbols to be *always* 10706 # included in the symbol list 10707 include_expsyms= 10708 # exclude_expsyms can be an extended regexp of symbols to exclude 10709 # it will be wrapped by ` (' and `)$', so one must not match beginning or 10710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10711 # as well as any symbol that contains `d'. 10712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10714 # platforms (ab)use it in PIC code, but their linkers get confused if 10715 # the symbol is explicitly referenced. Since portable code cannot 10716 # rely on this symbol name, it's probably fine to never include it in 10717 # preloaded symbol tables. 10718 # Exclude shared library initialization/finalization symbols. 10719 extract_expsyms_cmds= 10720 10721 case $host_os in 10722 cygwin* | mingw* | pw32* | cegcc*) 10723 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10724 # When not using gcc, we currently assume that we are using 10725 # Microsoft Visual C++. 10726 if test "$GCC" != yes; then 10727 with_gnu_ld=no 10728 fi 10729 ;; 10730 interix*) 10731 # we just hope/assume this is gcc and not c89 (= MSVC++) 10732 with_gnu_ld=yes 10733 ;; 10734 openbsd*) 10735 with_gnu_ld=no 10736 ;; 10737 esac 10738 10739 ld_shlibs=yes 10740 10741 # On some targets, GNU ld is compatible enough with the native linker 10742 # that we're better off using the native interface for both. 10743 lt_use_gnu_ld_interface=no 10744 if test "$with_gnu_ld" = yes; then 10745 case $host_os in 10746 aix*) 10747 # The AIX port of GNU ld has always aspired to compatibility 10748 # with the native linker. However, as the warning in the GNU ld 10749 # block says, versions before 2.19.5* couldn't really create working 10750 # shared libraries, regardless of the interface used. 10751 case `$LD -v 2>&1` in 10752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10754 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10755 *) 10756 lt_use_gnu_ld_interface=yes 10757 ;; 10758 esac 10759 ;; 10760 *) 10761 lt_use_gnu_ld_interface=yes 10762 ;; 10763 esac 10764 fi 10765 10766 if test "$lt_use_gnu_ld_interface" = yes; then 10767 # If archive_cmds runs LD, not CC, wlarc should be empty 10768 wlarc='${wl}' 10769 10770 # Set some defaults for GNU ld with shared library support. These 10771 # are reset later if shared libraries are not supported. Putting them 10772 # here allows them to be overridden if necessary. 10773 runpath_var=LD_RUN_PATH 10774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10775 export_dynamic_flag_spec='${wl}--export-dynamic' 10776 # ancient GNU ld didn't support --whole-archive et. al. 10777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10779 else 10780 whole_archive_flag_spec= 10781 fi 10782 supports_anon_versioning=no 10783 case `$LD -v 2>&1` in 10784 *GNU\ gold*) supports_anon_versioning=yes ;; 10785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10788 *\ 2.11.*) ;; # other 2.11 versions 10789 *) supports_anon_versioning=yes ;; 10790 esac 10791 10792 # See if GNU ld supports shared libraries. 10793 case $host_os in 10794 aix[3-9]*) 10795 # On AIX/PPC, the GNU linker is very broken 10796 if test "$host_cpu" != ia64; then 10797 ld_shlibs=no 10798 cat <<_LT_EOF 1>&2 10799 10800*** Warning: the GNU linker, at least up to release 2.19, is reported 10801*** to be unable to reliably create shared libraries on AIX. 10802*** Therefore, libtool is disabling shared libraries support. If you 10803*** really care for shared libraries, you may want to install binutils 10804*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10805*** You will then need to restart the configuration process. 10806 10807_LT_EOF 10808 fi 10809 ;; 10810 10811 amigaos*) 10812 case $host_cpu in 10813 powerpc) 10814 # see comment about AmigaOS4 .so support 10815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10816 archive_expsym_cmds='' 10817 ;; 10818 m68k) 10819 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)' 10820 hardcode_libdir_flag_spec='-L$libdir' 10821 hardcode_minus_L=yes 10822 ;; 10823 esac 10824 ;; 10825 10826 beos*) 10827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10828 allow_undefined_flag=unsupported 10829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10830 # support --undefined. This deserves some investigation. FIXME 10831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10832 else 10833 ld_shlibs=no 10834 fi 10835 ;; 10836 10837 cygwin* | mingw* | pw32* | cegcc*) 10838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10839 # as there is no search path for DLLs. 10840 hardcode_libdir_flag_spec='-L$libdir' 10841 export_dynamic_flag_spec='${wl}--export-all-symbols' 10842 allow_undefined_flag=unsupported 10843 always_export_symbols=no 10844 enable_shared_with_static_runtimes=yes 10845 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' 10846 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10847 10848 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10850 # If the export-symbols file already is a .def file (1st line 10851 # is EXPORTS), use it as is; otherwise, prepend... 10852 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 10853 cp $export_symbols $output_objdir/$soname.def; 10854 else 10855 echo EXPORTS > $output_objdir/$soname.def; 10856 cat $export_symbols >> $output_objdir/$soname.def; 10857 fi~ 10858 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10859 else 10860 ld_shlibs=no 10861 fi 10862 ;; 10863 10864 haiku*) 10865 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10866 link_all_deplibs=yes 10867 ;; 10868 10869 interix[3-9]*) 10870 hardcode_direct=no 10871 hardcode_shlibpath_var=no 10872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10873 export_dynamic_flag_spec='${wl}-E' 10874 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10875 # Instead, shared libraries are loaded at an image base (0x10000000 by 10876 # default) and relocated if they conflict, which is a slow very memory 10877 # consuming and fragmenting process. To avoid this, we pick a random, 10878 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10879 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10880 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10881 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' 10882 ;; 10883 10884 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10885 tmp_diet=no 10886 if test "$host_os" = linux-dietlibc; then 10887 case $cc_basename in 10888 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10889 esac 10890 fi 10891 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10892 && test "$tmp_diet" = no 10893 then 10894 tmp_addflag=' $pic_flag' 10895 tmp_sharedflag='-shared' 10896 case $cc_basename,$host_cpu in 10897 pgcc*) # Portland Group C compiler 10898 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' 10899 tmp_addflag=' $pic_flag' 10900 ;; 10901 pgf77* | pgf90* | pgf95* | pgfortran*) 10902 # Portland Group f77 and f90 compilers 10903 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' 10904 tmp_addflag=' $pic_flag -Mnomain' ;; 10905 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10906 tmp_addflag=' -i_dynamic' ;; 10907 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10908 tmp_addflag=' -i_dynamic -nofor_main' ;; 10909 ifc* | ifort*) # Intel Fortran compiler 10910 tmp_addflag=' -nofor_main' ;; 10911 lf95*) # Lahey Fortran 8.1 10912 whole_archive_flag_spec= 10913 tmp_sharedflag='--shared' ;; 10914 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10915 tmp_sharedflag='-qmkshrobj' 10916 tmp_addflag= ;; 10917 nvcc*) # Cuda Compiler Driver 2.2 10918 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' 10919 compiler_needs_object=yes 10920 ;; 10921 esac 10922 case `$CC -V 2>&1 | sed 5q` in 10923 *Sun\ C*) # Sun C 5.9 10924 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' 10925 compiler_needs_object=yes 10926 tmp_sharedflag='-G' ;; 10927 *Sun\ F*) # Sun Fortran 8.3 10928 tmp_sharedflag='-G' ;; 10929 esac 10930 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10931 10932 if test "x$supports_anon_versioning" = xyes; then 10933 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10934 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10935 echo "local: *; };" >> $output_objdir/$libname.ver~ 10936 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 10937 fi 10938 10939 case $cc_basename in 10940 xlf* | bgf* | bgxlf* | mpixlf*) 10941 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10942 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10944 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10945 if test "x$supports_anon_versioning" = xyes; then 10946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10948 echo "local: *; };" >> $output_objdir/$libname.ver~ 10949 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10950 fi 10951 ;; 10952 esac 10953 else 10954 ld_shlibs=no 10955 fi 10956 ;; 10957 10958 netbsd*) 10959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10961 wlarc= 10962 else 10963 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10964 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10965 fi 10966 ;; 10967 10968 solaris*) 10969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10970 ld_shlibs=no 10971 cat <<_LT_EOF 1>&2 10972 10973*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10974*** create shared libraries on Solaris systems. Therefore, libtool 10975*** is disabling shared libraries support. We urge you to upgrade GNU 10976*** binutils to release 2.9.1 or newer. Another option is to modify 10977*** your PATH or compiler configuration so that the native linker is 10978*** used, and then restart. 10979 10980_LT_EOF 10981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10982 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10983 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10984 else 10985 ld_shlibs=no 10986 fi 10987 ;; 10988 10989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10990 case `$LD -v 2>&1` in 10991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10992 ld_shlibs=no 10993 cat <<_LT_EOF 1>&2 10994 10995*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 10996*** reliably create shared libraries on SCO systems. Therefore, libtool 10997*** is disabling shared libraries support. We urge you to upgrade GNU 10998*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10999*** your PATH or compiler configuration so that the native linker is 11000*** used, and then restart. 11001 11002_LT_EOF 11003 ;; 11004 *) 11005 # For security reasons, it is highly recommended that you always 11006 # use absolute paths for naming shared libraries, and exclude the 11007 # DT_RUNPATH tag from executables and libraries. But doing so 11008 # requires that you compile everything twice, which is a pain. 11009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11013 else 11014 ld_shlibs=no 11015 fi 11016 ;; 11017 esac 11018 ;; 11019 11020 sunos4*) 11021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11022 wlarc= 11023 hardcode_direct=yes 11024 hardcode_shlibpath_var=no 11025 ;; 11026 11027 *) 11028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11030 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11031 else 11032 ld_shlibs=no 11033 fi 11034 ;; 11035 esac 11036 11037 if test "$ld_shlibs" = no; then 11038 runpath_var= 11039 hardcode_libdir_flag_spec= 11040 export_dynamic_flag_spec= 11041 whole_archive_flag_spec= 11042 fi 11043 else 11044 # PORTME fill in a description of your system's linker (not GNU ld) 11045 case $host_os in 11046 aix3*) 11047 allow_undefined_flag=unsupported 11048 always_export_symbols=yes 11049 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' 11050 # Note: this linker hardcodes the directories in LIBPATH if there 11051 # are no directories specified by -L. 11052 hardcode_minus_L=yes 11053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11054 # Neither direct hardcoding nor static linking is supported with a 11055 # broken collect2. 11056 hardcode_direct=unsupported 11057 fi 11058 ;; 11059 11060 aix[4-9]*) 11061 if test "$host_cpu" = ia64; then 11062 # On IA64, the linker does run time linking by default, so we don't 11063 # have to do anything special. 11064 aix_use_runtimelinking=no 11065 exp_sym_flag='-Bexport' 11066 no_entry_flag="" 11067 else 11068 # If we're using GNU nm, then we don't want the "-C" option. 11069 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11070 # Also, AIX nm treats weak defined symbols like other global 11071 # defined symbols, whereas GNU nm marks them as "W". 11072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11073 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' 11074 else 11075 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' 11076 fi 11077 aix_use_runtimelinking=no 11078 11079 # Test if we are trying to use run time linking or normal 11080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11081 # need to do runtime linking. 11082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11083 for ld_flag in $LDFLAGS; do 11084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11085 aix_use_runtimelinking=yes 11086 break 11087 fi 11088 done 11089 ;; 11090 esac 11091 11092 exp_sym_flag='-bexport' 11093 no_entry_flag='-bnoentry' 11094 fi 11095 11096 # When large executables or shared objects are built, AIX ld can 11097 # have problems creating the table of contents. If linking a library 11098 # or program results in "error TOC overflow" add -mminimal-toc to 11099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11101 11102 archive_cmds='' 11103 hardcode_direct=yes 11104 hardcode_direct_absolute=yes 11105 hardcode_libdir_separator=':' 11106 link_all_deplibs=yes 11107 file_list_spec='${wl}-f,' 11108 11109 if test "$GCC" = yes; then 11110 case $host_os in aix4.[012]|aix4.[012].*) 11111 # We only want to do this on AIX 4.2 and lower, the check 11112 # below for broken collect2 doesn't work under 4.3+ 11113 collect2name=`${CC} -print-prog-name=collect2` 11114 if test -f "$collect2name" && 11115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11116 then 11117 # We have reworked collect2 11118 : 11119 else 11120 # We have old collect2 11121 hardcode_direct=unsupported 11122 # It fails to find uninstalled libraries when the uninstalled 11123 # path is not listed in the libpath. Setting hardcode_minus_L 11124 # to unsupported forces relinking 11125 hardcode_minus_L=yes 11126 hardcode_libdir_flag_spec='-L$libdir' 11127 hardcode_libdir_separator= 11128 fi 11129 ;; 11130 esac 11131 shared_flag='-shared' 11132 if test "$aix_use_runtimelinking" = yes; then 11133 shared_flag="$shared_flag "'${wl}-G' 11134 fi 11135 else 11136 # not using gcc 11137 if test "$host_cpu" = ia64; then 11138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11139 # chokes on -Wl,-G. The following line is correct: 11140 shared_flag='-G' 11141 else 11142 if test "$aix_use_runtimelinking" = yes; then 11143 shared_flag='${wl}-G' 11144 else 11145 shared_flag='${wl}-bM:SRE' 11146 fi 11147 fi 11148 fi 11149 11150 export_dynamic_flag_spec='${wl}-bexpall' 11151 # It seems that -bexpall does not export symbols beginning with 11152 # underscore (_), so it is better to generate a list of symbols to export. 11153 always_export_symbols=yes 11154 if test "$aix_use_runtimelinking" = yes; then 11155 # Warning - without using the other runtime loading flags (-brtl), 11156 # -berok will link without error, but may produce a broken library. 11157 allow_undefined_flag='-berok' 11158 # Determine the default libpath from the value encoded in an 11159 # empty executable. 11160 if test "${lt_cv_aix_libpath+set}" = set; then 11161 aix_libpath=$lt_cv_aix_libpath 11162else 11163 if ${lt_cv_aix_libpath_+:} false; then : 11164 $as_echo_n "(cached) " >&6 11165else 11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11167/* end confdefs.h. */ 11168 11169int 11170main () 11171{ 11172 11173 ; 11174 return 0; 11175} 11176_ACEOF 11177if ac_fn_c_try_link "$LINENO"; then : 11178 11179 lt_aix_libpath_sed=' 11180 /Import File Strings/,/^$/ { 11181 /^0/ { 11182 s/^0 *\([^ ]*\) *$/\1/ 11183 p 11184 } 11185 }' 11186 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11187 # Check for a 64-bit object if we didn't find anything. 11188 if test -z "$lt_cv_aix_libpath_"; then 11189 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11190 fi 11191fi 11192rm -f core conftest.err conftest.$ac_objext \ 11193 conftest$ac_exeext conftest.$ac_ext 11194 if test -z "$lt_cv_aix_libpath_"; then 11195 lt_cv_aix_libpath_="/usr/lib:/lib" 11196 fi 11197 11198fi 11199 11200 aix_libpath=$lt_cv_aix_libpath_ 11201fi 11202 11203 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11204 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" 11205 else 11206 if test "$host_cpu" = ia64; then 11207 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 11208 allow_undefined_flag="-z nodefs" 11209 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" 11210 else 11211 # Determine the default libpath from the value encoded in an 11212 # empty executable. 11213 if test "${lt_cv_aix_libpath+set}" = set; then 11214 aix_libpath=$lt_cv_aix_libpath 11215else 11216 if ${lt_cv_aix_libpath_+:} false; then : 11217 $as_echo_n "(cached) " >&6 11218else 11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11220/* end confdefs.h. */ 11221 11222int 11223main () 11224{ 11225 11226 ; 11227 return 0; 11228} 11229_ACEOF 11230if ac_fn_c_try_link "$LINENO"; then : 11231 11232 lt_aix_libpath_sed=' 11233 /Import File Strings/,/^$/ { 11234 /^0/ { 11235 s/^0 *\([^ ]*\) *$/\1/ 11236 p 11237 } 11238 }' 11239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11240 # Check for a 64-bit object if we didn't find anything. 11241 if test -z "$lt_cv_aix_libpath_"; then 11242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11243 fi 11244fi 11245rm -f core conftest.err conftest.$ac_objext \ 11246 conftest$ac_exeext conftest.$ac_ext 11247 if test -z "$lt_cv_aix_libpath_"; then 11248 lt_cv_aix_libpath_="/usr/lib:/lib" 11249 fi 11250 11251fi 11252 11253 aix_libpath=$lt_cv_aix_libpath_ 11254fi 11255 11256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 11257 # Warning - without using the other run time loading flags, 11258 # -berok will link without error, but may produce a broken library. 11259 no_undefined_flag=' ${wl}-bernotok' 11260 allow_undefined_flag=' ${wl}-berok' 11261 if test "$with_gnu_ld" = yes; then 11262 # We only use this code for GNU lds that support --whole-archive. 11263 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 11264 else 11265 # Exported symbols can be pulled into shared objects from archives 11266 whole_archive_flag_spec='$convenience' 11267 fi 11268 archive_cmds_need_lc=yes 11269 # This is similar to how AIX traditionally builds its shared libraries. 11270 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' 11271 fi 11272 fi 11273 ;; 11274 11275 amigaos*) 11276 case $host_cpu in 11277 powerpc) 11278 # see comment about AmigaOS4 .so support 11279 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11280 archive_expsym_cmds='' 11281 ;; 11282 m68k) 11283 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)' 11284 hardcode_libdir_flag_spec='-L$libdir' 11285 hardcode_minus_L=yes 11286 ;; 11287 esac 11288 ;; 11289 11290 bsdi[45]*) 11291 export_dynamic_flag_spec=-rdynamic 11292 ;; 11293 11294 cygwin* | mingw* | pw32* | cegcc*) 11295 # When not using gcc, we currently assume that we are using 11296 # Microsoft Visual C++. 11297 # hardcode_libdir_flag_spec is actually meaningless, as there is 11298 # no search path for DLLs. 11299 case $cc_basename in 11300 cl*) 11301 # Native MSVC 11302 hardcode_libdir_flag_spec=' ' 11303 allow_undefined_flag=unsupported 11304 always_export_symbols=yes 11305 file_list_spec='@' 11306 # Tell ltmain to make .lib files, not .a files. 11307 libext=lib 11308 # Tell ltmain to make .dll files, not .so files. 11309 shrext_cmds=".dll" 11310 # FIXME: Setting linknames here is a bad hack. 11311 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 11312 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11313 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 11314 else 11315 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 11316 fi~ 11317 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11318 linknames=' 11319 # The linker will not automatically build a static lib if we build a DLL. 11320 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11321 enable_shared_with_static_runtimes=yes 11322 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11323 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11324 # Don't use ranlib 11325 old_postinstall_cmds='chmod 644 $oldlib' 11326 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11327 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11328 case $lt_outputfile in 11329 *.exe|*.EXE) ;; 11330 *) 11331 lt_outputfile="$lt_outputfile.exe" 11332 lt_tool_outputfile="$lt_tool_outputfile.exe" 11333 ;; 11334 esac~ 11335 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 11336 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11337 $RM "$lt_outputfile.manifest"; 11338 fi' 11339 ;; 11340 *) 11341 # Assume MSVC wrapper 11342 hardcode_libdir_flag_spec=' ' 11343 allow_undefined_flag=unsupported 11344 # Tell ltmain to make .lib files, not .a files. 11345 libext=lib 11346 # Tell ltmain to make .dll files, not .so files. 11347 shrext_cmds=".dll" 11348 # FIXME: Setting linknames here is a bad hack. 11349 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11350 # The linker will automatically build a .lib file if we build a DLL. 11351 old_archive_from_new_cmds='true' 11352 # FIXME: Should let the user specify the lib program. 11353 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11354 enable_shared_with_static_runtimes=yes 11355 ;; 11356 esac 11357 ;; 11358 11359 darwin* | rhapsody*) 11360 11361 11362 archive_cmds_need_lc=no 11363 hardcode_direct=no 11364 hardcode_automatic=yes 11365 hardcode_shlibpath_var=unsupported 11366 if test "$lt_cv_ld_force_load" = "yes"; then 11367 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\"`' 11368 11369 else 11370 whole_archive_flag_spec='' 11371 fi 11372 link_all_deplibs=yes 11373 allow_undefined_flag="$_lt_dar_allow_undefined" 11374 case $cc_basename in 11375 ifort*) _lt_dar_can_shared=yes ;; 11376 *) _lt_dar_can_shared=$GCC ;; 11377 esac 11378 if test "$_lt_dar_can_shared" = "yes"; then 11379 output_verbose_link_cmd=func_echo_all 11380 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 11381 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 11382 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}" 11383 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}" 11384 11385 else 11386 ld_shlibs=no 11387 fi 11388 11389 ;; 11390 11391 dgux*) 11392 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11393 hardcode_libdir_flag_spec='-L$libdir' 11394 hardcode_shlibpath_var=no 11395 ;; 11396 11397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11398 # support. Future versions do this automatically, but an explicit c++rt0.o 11399 # does not break anything, and helps significantly (at the cost of a little 11400 # extra space). 11401 freebsd2.2*) 11402 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11403 hardcode_libdir_flag_spec='-R$libdir' 11404 hardcode_direct=yes 11405 hardcode_shlibpath_var=no 11406 ;; 11407 11408 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11409 freebsd2.*) 11410 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11411 hardcode_direct=yes 11412 hardcode_minus_L=yes 11413 hardcode_shlibpath_var=no 11414 ;; 11415 11416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11417 freebsd* | dragonfly*) 11418 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11419 hardcode_libdir_flag_spec='-R$libdir' 11420 hardcode_direct=yes 11421 hardcode_shlibpath_var=no 11422 ;; 11423 11424 hpux9*) 11425 if test "$GCC" = yes; then 11426 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' 11427 else 11428 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' 11429 fi 11430 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11431 hardcode_libdir_separator=: 11432 hardcode_direct=yes 11433 11434 # hardcode_minus_L: Not really in the search PATH, 11435 # but as the default location of the library. 11436 hardcode_minus_L=yes 11437 export_dynamic_flag_spec='${wl}-E' 11438 ;; 11439 11440 hpux10*) 11441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11442 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11443 else 11444 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11445 fi 11446 if test "$with_gnu_ld" = no; then 11447 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11448 hardcode_libdir_separator=: 11449 hardcode_direct=yes 11450 hardcode_direct_absolute=yes 11451 export_dynamic_flag_spec='${wl}-E' 11452 # hardcode_minus_L: Not really in the search PATH, 11453 # but as the default location of the library. 11454 hardcode_minus_L=yes 11455 fi 11456 ;; 11457 11458 hpux11*) 11459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 11460 case $host_cpu in 11461 hppa*64*) 11462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11463 ;; 11464 ia64*) 11465 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11466 ;; 11467 *) 11468 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11469 ;; 11470 esac 11471 else 11472 case $host_cpu in 11473 hppa*64*) 11474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11475 ;; 11476 ia64*) 11477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11478 ;; 11479 *) 11480 11481 # Older versions of the 11.00 compiler do not understand -b yet 11482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11484$as_echo_n "checking if $CC understands -b... " >&6; } 11485if ${lt_cv_prog_compiler__b+:} false; then : 11486 $as_echo_n "(cached) " >&6 11487else 11488 lt_cv_prog_compiler__b=no 11489 save_LDFLAGS="$LDFLAGS" 11490 LDFLAGS="$LDFLAGS -b" 11491 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11493 # The linker can only warn and ignore the option if not recognized 11494 # So say no if there are warnings 11495 if test -s conftest.err; then 11496 # Append any errors to the config.log. 11497 cat conftest.err 1>&5 11498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11500 if diff conftest.exp conftest.er2 >/dev/null; then 11501 lt_cv_prog_compiler__b=yes 11502 fi 11503 else 11504 lt_cv_prog_compiler__b=yes 11505 fi 11506 fi 11507 $RM -r conftest* 11508 LDFLAGS="$save_LDFLAGS" 11509 11510fi 11511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11512$as_echo "$lt_cv_prog_compiler__b" >&6; } 11513 11514if test x"$lt_cv_prog_compiler__b" = xyes; then 11515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11516else 11517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11518fi 11519 11520 ;; 11521 esac 11522 fi 11523 if test "$with_gnu_ld" = no; then 11524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 11525 hardcode_libdir_separator=: 11526 11527 case $host_cpu in 11528 hppa*64*|ia64*) 11529 hardcode_direct=no 11530 hardcode_shlibpath_var=no 11531 ;; 11532 *) 11533 hardcode_direct=yes 11534 hardcode_direct_absolute=yes 11535 export_dynamic_flag_spec='${wl}-E' 11536 11537 # hardcode_minus_L: Not really in the search PATH, 11538 # but as the default location of the library. 11539 hardcode_minus_L=yes 11540 ;; 11541 esac 11542 fi 11543 ;; 11544 11545 irix5* | irix6* | nonstopux*) 11546 if test "$GCC" = yes; then 11547 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' 11548 # Try to use the -exported_symbol ld option, if it does not 11549 # work, assume that -exports_file does not work either and 11550 # implicitly export all symbols. 11551 # This should be the same for all languages, so no per-tag cache variable. 11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11553$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11554if ${lt_cv_irix_exported_symbol+:} false; then : 11555 $as_echo_n "(cached) " >&6 11556else 11557 save_LDFLAGS="$LDFLAGS" 11558 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11560/* end confdefs.h. */ 11561int foo (void) { return 0; } 11562_ACEOF 11563if ac_fn_c_try_link "$LINENO"; then : 11564 lt_cv_irix_exported_symbol=yes 11565else 11566 lt_cv_irix_exported_symbol=no 11567fi 11568rm -f core conftest.err conftest.$ac_objext \ 11569 conftest$ac_exeext conftest.$ac_ext 11570 LDFLAGS="$save_LDFLAGS" 11571fi 11572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11573$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11574 if test "$lt_cv_irix_exported_symbol" = yes; then 11575 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' 11576 fi 11577 else 11578 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' 11579 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' 11580 fi 11581 archive_cmds_need_lc='no' 11582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11583 hardcode_libdir_separator=: 11584 inherit_rpath=yes 11585 link_all_deplibs=yes 11586 ;; 11587 11588 netbsd*) 11589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11590 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11591 else 11592 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11593 fi 11594 hardcode_libdir_flag_spec='-R$libdir' 11595 hardcode_direct=yes 11596 hardcode_shlibpath_var=no 11597 ;; 11598 11599 newsos6) 11600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11601 hardcode_direct=yes 11602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11603 hardcode_libdir_separator=: 11604 hardcode_shlibpath_var=no 11605 ;; 11606 11607 *nto* | *qnx*) 11608 ;; 11609 11610 openbsd*) 11611 if test -f /usr/libexec/ld.so; then 11612 hardcode_direct=yes 11613 hardcode_shlibpath_var=no 11614 hardcode_direct_absolute=yes 11615 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11616 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11617 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 11618 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11619 export_dynamic_flag_spec='${wl}-E' 11620 else 11621 case $host_os in 11622 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 11623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11624 hardcode_libdir_flag_spec='-R$libdir' 11625 ;; 11626 *) 11627 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11628 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 11629 ;; 11630 esac 11631 fi 11632 else 11633 ld_shlibs=no 11634 fi 11635 ;; 11636 11637 os2*) 11638 hardcode_libdir_flag_spec='-L$libdir' 11639 hardcode_minus_L=yes 11640 allow_undefined_flag=unsupported 11641 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' 11642 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 11643 ;; 11644 11645 osf3*) 11646 if test "$GCC" = yes; then 11647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11648 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' 11649 else 11650 allow_undefined_flag=' -expect_unresolved \*' 11651 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' 11652 fi 11653 archive_cmds_need_lc='no' 11654 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11655 hardcode_libdir_separator=: 11656 ;; 11657 11658 osf4* | osf5*) # as osf3* with the addition of -msym flag 11659 if test "$GCC" = yes; then 11660 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 11661 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' 11662 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 11663 else 11664 allow_undefined_flag=' -expect_unresolved \*' 11665 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' 11666 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~ 11667 $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' 11668 11669 # Both c and cxx compiler support -rpath directly 11670 hardcode_libdir_flag_spec='-rpath $libdir' 11671 fi 11672 archive_cmds_need_lc='no' 11673 hardcode_libdir_separator=: 11674 ;; 11675 11676 solaris*) 11677 no_undefined_flag=' -z defs' 11678 if test "$GCC" = yes; then 11679 wlarc='${wl}' 11680 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 11681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11682 $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' 11683 else 11684 case `$CC -V 2>&1` in 11685 *"Compilers 5.0"*) 11686 wlarc='' 11687 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 11688 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11690 ;; 11691 *) 11692 wlarc='${wl}' 11693 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11694 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11695 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11696 ;; 11697 esac 11698 fi 11699 hardcode_libdir_flag_spec='-R$libdir' 11700 hardcode_shlibpath_var=no 11701 case $host_os in 11702 solaris2.[0-5] | solaris2.[0-5].*) ;; 11703 *) 11704 # The compiler driver will combine and reorder linker options, 11705 # but understands `-z linker_flag'. GCC discards it without `$wl', 11706 # but is careful enough not to reorder. 11707 # Supported since Solaris 2.6 (maybe 2.5.1?) 11708 if test "$GCC" = yes; then 11709 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 11710 else 11711 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11712 fi 11713 ;; 11714 esac 11715 link_all_deplibs=yes 11716 ;; 11717 11718 sunos4*) 11719 if test "x$host_vendor" = xsequent; then 11720 # Use $CC to link under sequent, because it throws in some extra .o 11721 # files that make .init and .fini sections work. 11722 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11723 else 11724 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11725 fi 11726 hardcode_libdir_flag_spec='-L$libdir' 11727 hardcode_direct=yes 11728 hardcode_minus_L=yes 11729 hardcode_shlibpath_var=no 11730 ;; 11731 11732 sysv4) 11733 case $host_vendor in 11734 sni) 11735 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11736 hardcode_direct=yes # is this really true??? 11737 ;; 11738 siemens) 11739 ## LD is ld it makes a PLAMLIB 11740 ## CC just makes a GrossModule. 11741 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11742 reload_cmds='$CC -r -o $output$reload_objs' 11743 hardcode_direct=no 11744 ;; 11745 motorola) 11746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11747 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11748 ;; 11749 esac 11750 runpath_var='LD_RUN_PATH' 11751 hardcode_shlibpath_var=no 11752 ;; 11753 11754 sysv4.3*) 11755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11756 hardcode_shlibpath_var=no 11757 export_dynamic_flag_spec='-Bexport' 11758 ;; 11759 11760 sysv4*MP*) 11761 if test -d /usr/nec; then 11762 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11763 hardcode_shlibpath_var=no 11764 runpath_var=LD_RUN_PATH 11765 hardcode_runpath_var=yes 11766 ld_shlibs=yes 11767 fi 11768 ;; 11769 11770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11771 no_undefined_flag='${wl}-z,text' 11772 archive_cmds_need_lc=no 11773 hardcode_shlibpath_var=no 11774 runpath_var='LD_RUN_PATH' 11775 11776 if test "$GCC" = yes; then 11777 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11778 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11779 else 11780 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11781 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11782 fi 11783 ;; 11784 11785 sysv5* | sco3.2v5* | sco5v6*) 11786 # Note: We can NOT use -z defs as we might desire, because we do not 11787 # link with -lc, and that would cause any symbols used from libc to 11788 # always be unresolved, which means just about no library would 11789 # ever link correctly. If we're not using GNU ld we use -z text 11790 # though, which does catch some bad symbols but isn't as heavy-handed 11791 # as -z defs. 11792 no_undefined_flag='${wl}-z,text' 11793 allow_undefined_flag='${wl}-z,nodefs' 11794 archive_cmds_need_lc=no 11795 hardcode_shlibpath_var=no 11796 hardcode_libdir_flag_spec='${wl}-R,$libdir' 11797 hardcode_libdir_separator=':' 11798 link_all_deplibs=yes 11799 export_dynamic_flag_spec='${wl}-Bexport' 11800 runpath_var='LD_RUN_PATH' 11801 11802 if test "$GCC" = yes; then 11803 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11804 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11805 else 11806 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11807 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11808 fi 11809 ;; 11810 11811 uts4*) 11812 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11813 hardcode_libdir_flag_spec='-L$libdir' 11814 hardcode_shlibpath_var=no 11815 ;; 11816 11817 *) 11818 ld_shlibs=no 11819 ;; 11820 esac 11821 11822 if test x$host_vendor = xsni; then 11823 case $host in 11824 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11825 export_dynamic_flag_spec='${wl}-Blargedynsym' 11826 ;; 11827 esac 11828 fi 11829 fi 11830 11831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11832$as_echo "$ld_shlibs" >&6; } 11833test "$ld_shlibs" = no && can_build_shared=no 11834 11835with_gnu_ld=$with_gnu_ld 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851# 11852# Do we need to explicitly link libc? 11853# 11854case "x$archive_cmds_need_lc" in 11855x|xyes) 11856 # Assume -lc should be added 11857 archive_cmds_need_lc=yes 11858 11859 if test "$enable_shared" = yes && test "$GCC" = yes; then 11860 case $archive_cmds in 11861 *'~'*) 11862 # FIXME: we may have to deal with multi-command sequences. 11863 ;; 11864 '$CC '*) 11865 # Test whether the compiler implicitly links with -lc since on some 11866 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11867 # to ld, don't add -lc before -lgcc. 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11869$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11870if ${lt_cv_archive_cmds_need_lc+:} false; then : 11871 $as_echo_n "(cached) " >&6 11872else 11873 $RM conftest* 11874 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11875 11876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11877 (eval $ac_compile) 2>&5 11878 ac_status=$? 11879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11880 test $ac_status = 0; } 2>conftest.err; then 11881 soname=conftest 11882 lib=conftest 11883 libobjs=conftest.$ac_objext 11884 deplibs= 11885 wl=$lt_prog_compiler_wl 11886 pic_flag=$lt_prog_compiler_pic 11887 compiler_flags=-v 11888 linker_flags=-v 11889 verstring= 11890 output_objdir=. 11891 libname=conftest 11892 lt_save_allow_undefined_flag=$allow_undefined_flag 11893 allow_undefined_flag= 11894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11895 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11896 ac_status=$? 11897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11898 test $ac_status = 0; } 11899 then 11900 lt_cv_archive_cmds_need_lc=no 11901 else 11902 lt_cv_archive_cmds_need_lc=yes 11903 fi 11904 allow_undefined_flag=$lt_save_allow_undefined_flag 11905 else 11906 cat conftest.err 1>&5 11907 fi 11908 $RM conftest* 11909 11910fi 11911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11912$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11913 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11914 ;; 11915 esac 11916 fi 11917 ;; 11918esac 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 12072$as_echo_n "checking dynamic linker characteristics... " >&6; } 12073 12074if test "$GCC" = yes; then 12075 case $host_os in 12076 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 12077 *) lt_awk_arg="/^libraries:/" ;; 12078 esac 12079 case $host_os in 12080 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 12081 *) lt_sed_strip_eq="s,=/,/,g" ;; 12082 esac 12083 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 12084 case $lt_search_path_spec in 12085 *\;*) 12086 # if the path contains ";" then we assume it to be the separator 12087 # otherwise default to the standard path separator (i.e. ":") - it is 12088 # assumed that no part of a normal pathname contains ";" but that should 12089 # okay in the real world where ";" in dirpaths is itself problematic. 12090 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 12091 ;; 12092 *) 12093 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 12094 ;; 12095 esac 12096 # Ok, now we have the path, separated by spaces, we can step through it 12097 # and add multilib dir if necessary. 12098 lt_tmp_lt_search_path_spec= 12099 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 12100 for lt_sys_path in $lt_search_path_spec; do 12101 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 12102 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 12103 else 12104 test -d "$lt_sys_path" && \ 12105 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 12106 fi 12107 done 12108 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 12109BEGIN {RS=" "; FS="/|\n";} { 12110 lt_foo=""; 12111 lt_count=0; 12112 for (lt_i = NF; lt_i > 0; lt_i--) { 12113 if ($lt_i != "" && $lt_i != ".") { 12114 if ($lt_i == "..") { 12115 lt_count++; 12116 } else { 12117 if (lt_count == 0) { 12118 lt_foo="/" $lt_i lt_foo; 12119 } else { 12120 lt_count--; 12121 } 12122 } 12123 } 12124 } 12125 if (lt_foo != "") { lt_freq[lt_foo]++; } 12126 if (lt_freq[lt_foo] == 1) { print lt_foo; } 12127}'` 12128 # AWK program above erroneously prepends '/' to C:/dos/paths 12129 # for these hosts. 12130 case $host_os in 12131 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 12132 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 12133 esac 12134 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12135else 12136 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12137fi 12138library_names_spec= 12139libname_spec='lib$name' 12140soname_spec= 12141shrext_cmds=".so" 12142postinstall_cmds= 12143postuninstall_cmds= 12144finish_cmds= 12145finish_eval= 12146shlibpath_var= 12147shlibpath_overrides_runpath=unknown 12148version_type=none 12149dynamic_linker="$host_os ld.so" 12150sys_lib_dlsearch_path_spec="/lib /usr/lib" 12151need_lib_prefix=unknown 12152hardcode_into_libs=no 12153 12154# when you set need_version to no, make sure it does not cause -set_version 12155# flags to be left without arguments 12156need_version=unknown 12157 12158case $host_os in 12159aix3*) 12160 version_type=linux # correct to gnu/linux during the next big refactor 12161 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12162 shlibpath_var=LIBPATH 12163 12164 # AIX 3 has no versioning support, so we append a major version to the name. 12165 soname_spec='${libname}${release}${shared_ext}$major' 12166 ;; 12167 12168aix[4-9]*) 12169 version_type=linux # correct to gnu/linux during the next big refactor 12170 need_lib_prefix=no 12171 need_version=no 12172 hardcode_into_libs=yes 12173 if test "$host_cpu" = ia64; then 12174 # AIX 5 supports IA64 12175 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12176 shlibpath_var=LD_LIBRARY_PATH 12177 else 12178 # With GCC up to 2.95.x, collect2 would create an import file 12179 # for dependence libraries. The import file would start with 12180 # the line `#! .'. This would cause the generated library to 12181 # depend on `.', always an invalid library. This was fixed in 12182 # development snapshots of GCC prior to 3.0. 12183 case $host_os in 12184 aix4 | aix4.[01] | aix4.[01].*) 12185 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12186 echo ' yes ' 12187 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12188 : 12189 else 12190 can_build_shared=no 12191 fi 12192 ;; 12193 esac 12194 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12195 # soname into executable. Probably we can add versioning support to 12196 # collect2, so additional links can be useful in future. 12197 if test "$aix_use_runtimelinking" = yes; then 12198 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12199 # instead of lib<name>.a to let people know that these are not 12200 # typical AIX shared libraries. 12201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12202 else 12203 # We preserve .a as extension for shared libraries through AIX4.2 12204 # and later when we are not doing run time linking. 12205 library_names_spec='${libname}${release}.a $libname.a' 12206 soname_spec='${libname}${release}${shared_ext}$major' 12207 fi 12208 shlibpath_var=LIBPATH 12209 fi 12210 ;; 12211 12212amigaos*) 12213 case $host_cpu in 12214 powerpc) 12215 # Since July 2007 AmigaOS4 officially supports .so libraries. 12216 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12218 ;; 12219 m68k) 12220 library_names_spec='$libname.ixlibrary $libname.a' 12221 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12222 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' 12223 ;; 12224 esac 12225 ;; 12226 12227beos*) 12228 library_names_spec='${libname}${shared_ext}' 12229 dynamic_linker="$host_os ld.so" 12230 shlibpath_var=LIBRARY_PATH 12231 ;; 12232 12233bsdi[45]*) 12234 version_type=linux # correct to gnu/linux during the next big refactor 12235 need_version=no 12236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12237 soname_spec='${libname}${release}${shared_ext}$major' 12238 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12239 shlibpath_var=LD_LIBRARY_PATH 12240 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12241 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12242 # the default ld.so.conf also contains /usr/contrib/lib and 12243 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12244 # libtool to hard-code these into programs 12245 ;; 12246 12247cygwin* | mingw* | pw32* | cegcc*) 12248 version_type=windows 12249 shrext_cmds=".dll" 12250 need_version=no 12251 need_lib_prefix=no 12252 12253 case $GCC,$cc_basename in 12254 yes,*) 12255 # gcc 12256 library_names_spec='$libname.dll.a' 12257 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12258 postinstall_cmds='base_file=`basename \${file}`~ 12259 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12260 dldir=$destdir/`dirname \$dlpath`~ 12261 test -d \$dldir || mkdir -p \$dldir~ 12262 $install_prog $dir/$dlname \$dldir/$dlname~ 12263 chmod a+x \$dldir/$dlname~ 12264 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12265 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12266 fi' 12267 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12268 dlpath=$dir/\$dldll~ 12269 $RM \$dlpath' 12270 shlibpath_overrides_runpath=yes 12271 12272 case $host_os in 12273 cygwin*) 12274 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12275 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12276 12277 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12278 ;; 12279 mingw* | cegcc*) 12280 # MinGW DLLs use traditional 'lib' prefix 12281 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12282 ;; 12283 pw32*) 12284 # pw32 DLLs use 'pw' prefix rather than 'lib' 12285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12286 ;; 12287 esac 12288 dynamic_linker='Win32 ld.exe' 12289 ;; 12290 12291 *,cl*) 12292 # Native MSVC 12293 libname_spec='$name' 12294 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12295 library_names_spec='${libname}.dll.lib' 12296 12297 case $build_os in 12298 mingw*) 12299 sys_lib_search_path_spec= 12300 lt_save_ifs=$IFS 12301 IFS=';' 12302 for lt_path in $LIB 12303 do 12304 IFS=$lt_save_ifs 12305 # Let DOS variable expansion print the short 8.3 style file name. 12306 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12307 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12308 done 12309 IFS=$lt_save_ifs 12310 # Convert to MSYS style. 12311 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12312 ;; 12313 cygwin*) 12314 # Convert to unix form, then to dos form, then back to unix form 12315 # but this time dos style (no spaces!) so that the unix form looks 12316 # like /cygdrive/c/PROGRA~1:/cygdr... 12317 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12318 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12319 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12320 ;; 12321 *) 12322 sys_lib_search_path_spec="$LIB" 12323 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12324 # It is most probably a Windows format PATH. 12325 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12326 else 12327 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12328 fi 12329 # FIXME: find the short name or the path components, as spaces are 12330 # common. (e.g. "Program Files" -> "PROGRA~1") 12331 ;; 12332 esac 12333 12334 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12335 postinstall_cmds='base_file=`basename \${file}`~ 12336 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12337 dldir=$destdir/`dirname \$dlpath`~ 12338 test -d \$dldir || mkdir -p \$dldir~ 12339 $install_prog $dir/$dlname \$dldir/$dlname' 12340 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12341 dlpath=$dir/\$dldll~ 12342 $RM \$dlpath' 12343 shlibpath_overrides_runpath=yes 12344 dynamic_linker='Win32 link.exe' 12345 ;; 12346 12347 *) 12348 # Assume MSVC wrapper 12349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12350 dynamic_linker='Win32 ld.exe' 12351 ;; 12352 esac 12353 # FIXME: first we should search . and the directory the executable is in 12354 shlibpath_var=PATH 12355 ;; 12356 12357darwin* | rhapsody*) 12358 dynamic_linker="$host_os dyld" 12359 version_type=darwin 12360 need_lib_prefix=no 12361 need_version=no 12362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12363 soname_spec='${libname}${release}${major}$shared_ext' 12364 shlibpath_overrides_runpath=yes 12365 shlibpath_var=DYLD_LIBRARY_PATH 12366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12367 12368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12370 ;; 12371 12372dgux*) 12373 version_type=linux # correct to gnu/linux during the next big refactor 12374 need_lib_prefix=no 12375 need_version=no 12376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12377 soname_spec='${libname}${release}${shared_ext}$major' 12378 shlibpath_var=LD_LIBRARY_PATH 12379 ;; 12380 12381freebsd* | dragonfly*) 12382 # DragonFly does not have aout. When/if they implement a new 12383 # versioning mechanism, adjust this. 12384 if test -x /usr/bin/objformat; then 12385 objformat=`/usr/bin/objformat` 12386 else 12387 case $host_os in 12388 freebsd[23].*) objformat=aout ;; 12389 *) objformat=elf ;; 12390 esac 12391 fi 12392 version_type=freebsd-$objformat 12393 case $version_type in 12394 freebsd-elf*) 12395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12396 need_version=no 12397 need_lib_prefix=no 12398 ;; 12399 freebsd-*) 12400 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12401 need_version=yes 12402 ;; 12403 esac 12404 shlibpath_var=LD_LIBRARY_PATH 12405 case $host_os in 12406 freebsd2.*) 12407 shlibpath_overrides_runpath=yes 12408 ;; 12409 freebsd3.[01]* | freebsdelf3.[01]*) 12410 shlibpath_overrides_runpath=yes 12411 hardcode_into_libs=yes 12412 ;; 12413 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12414 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12415 shlibpath_overrides_runpath=no 12416 hardcode_into_libs=yes 12417 ;; 12418 *) # from 4.6 on, and DragonFly 12419 shlibpath_overrides_runpath=yes 12420 hardcode_into_libs=yes 12421 ;; 12422 esac 12423 ;; 12424 12425gnu*) 12426 version_type=linux # correct to gnu/linux during the next big refactor 12427 need_lib_prefix=no 12428 need_version=no 12429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12430 soname_spec='${libname}${release}${shared_ext}$major' 12431 shlibpath_var=LD_LIBRARY_PATH 12432 shlibpath_overrides_runpath=no 12433 hardcode_into_libs=yes 12434 ;; 12435 12436haiku*) 12437 version_type=linux # correct to gnu/linux during the next big refactor 12438 need_lib_prefix=no 12439 need_version=no 12440 dynamic_linker="$host_os runtime_loader" 12441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12442 soname_spec='${libname}${release}${shared_ext}$major' 12443 shlibpath_var=LIBRARY_PATH 12444 shlibpath_overrides_runpath=yes 12445 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12446 hardcode_into_libs=yes 12447 ;; 12448 12449hpux9* | hpux10* | hpux11*) 12450 # Give a soname corresponding to the major version so that dld.sl refuses to 12451 # link against other versions. 12452 version_type=sunos 12453 need_lib_prefix=no 12454 need_version=no 12455 case $host_cpu in 12456 ia64*) 12457 shrext_cmds='.so' 12458 hardcode_into_libs=yes 12459 dynamic_linker="$host_os dld.so" 12460 shlibpath_var=LD_LIBRARY_PATH 12461 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12463 soname_spec='${libname}${release}${shared_ext}$major' 12464 if test "X$HPUX_IA64_MODE" = X32; then 12465 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12466 else 12467 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12468 fi 12469 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12470 ;; 12471 hppa*64*) 12472 shrext_cmds='.sl' 12473 hardcode_into_libs=yes 12474 dynamic_linker="$host_os dld.sl" 12475 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12478 soname_spec='${libname}${release}${shared_ext}$major' 12479 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12480 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12481 ;; 12482 *) 12483 shrext_cmds='.sl' 12484 dynamic_linker="$host_os dld.sl" 12485 shlibpath_var=SHLIB_PATH 12486 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12488 soname_spec='${libname}${release}${shared_ext}$major' 12489 ;; 12490 esac 12491 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12492 postinstall_cmds='chmod 555 $lib' 12493 # or fails outright, so override atomically: 12494 install_override_mode=555 12495 ;; 12496 12497interix[3-9]*) 12498 version_type=linux # correct to gnu/linux during the next big refactor 12499 need_lib_prefix=no 12500 need_version=no 12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12502 soname_spec='${libname}${release}${shared_ext}$major' 12503 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12504 shlibpath_var=LD_LIBRARY_PATH 12505 shlibpath_overrides_runpath=no 12506 hardcode_into_libs=yes 12507 ;; 12508 12509irix5* | irix6* | nonstopux*) 12510 case $host_os in 12511 nonstopux*) version_type=nonstopux ;; 12512 *) 12513 if test "$lt_cv_prog_gnu_ld" = yes; then 12514 version_type=linux # correct to gnu/linux during the next big refactor 12515 else 12516 version_type=irix 12517 fi ;; 12518 esac 12519 need_lib_prefix=no 12520 need_version=no 12521 soname_spec='${libname}${release}${shared_ext}$major' 12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12523 case $host_os in 12524 irix5* | nonstopux*) 12525 libsuff= shlibsuff= 12526 ;; 12527 *) 12528 case $LD in # libtool.m4 will add one of these switches to LD 12529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12530 libsuff= shlibsuff= libmagic=32-bit;; 12531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12532 libsuff=32 shlibsuff=N32 libmagic=N32;; 12533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12534 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12535 *) libsuff= shlibsuff= libmagic=never-match;; 12536 esac 12537 ;; 12538 esac 12539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12540 shlibpath_overrides_runpath=no 12541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12543 hardcode_into_libs=yes 12544 ;; 12545 12546# No shared lib support for Linux oldld, aout, or coff. 12547linux*oldld* | linux*aout* | linux*coff*) 12548 dynamic_linker=no 12549 ;; 12550 12551# This must be glibc/ELF. 12552linux* | k*bsd*-gnu | kopensolaris*-gnu) 12553 version_type=linux # correct to gnu/linux during the next big refactor 12554 need_lib_prefix=no 12555 need_version=no 12556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12557 soname_spec='${libname}${release}${shared_ext}$major' 12558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12559 shlibpath_var=LD_LIBRARY_PATH 12560 shlibpath_overrides_runpath=no 12561 12562 # Some binutils ld are patched to set DT_RUNPATH 12563 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12564 $as_echo_n "(cached) " >&6 12565else 12566 lt_cv_shlibpath_overrides_runpath=no 12567 save_LDFLAGS=$LDFLAGS 12568 save_libdir=$libdir 12569 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12570 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12572/* end confdefs.h. */ 12573 12574int 12575main () 12576{ 12577 12578 ; 12579 return 0; 12580} 12581_ACEOF 12582if ac_fn_c_try_link "$LINENO"; then : 12583 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12584 lt_cv_shlibpath_overrides_runpath=yes 12585fi 12586fi 12587rm -f core conftest.err conftest.$ac_objext \ 12588 conftest$ac_exeext conftest.$ac_ext 12589 LDFLAGS=$save_LDFLAGS 12590 libdir=$save_libdir 12591 12592fi 12593 12594 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12595 12596 # This implies no fast_install, which is unacceptable. 12597 # Some rework will be needed to allow for fast_install 12598 # before this can be enabled. 12599 hardcode_into_libs=yes 12600 12601 # Append ld.so.conf contents to the search path 12602 if test -f /etc/ld.so.conf; then 12603 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' ' '` 12604 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12605 fi 12606 12607 # We used to test for /lib/ld.so.1 and disable shared libraries on 12608 # powerpc, because MkLinux only supported shared libraries with the 12609 # GNU dynamic linker. Since this was broken with cross compilers, 12610 # most powerpc-linux boxes support dynamic linking these days and 12611 # people can always --disable-shared, the test was removed, and we 12612 # assume the GNU/Linux dynamic linker is in use. 12613 dynamic_linker='GNU/Linux ld.so' 12614 ;; 12615 12616netbsd*) 12617 version_type=sunos 12618 need_lib_prefix=no 12619 need_version=no 12620 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12622 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12623 dynamic_linker='NetBSD (a.out) ld.so' 12624 else 12625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12626 soname_spec='${libname}${release}${shared_ext}$major' 12627 dynamic_linker='NetBSD ld.elf_so' 12628 fi 12629 shlibpath_var=LD_LIBRARY_PATH 12630 shlibpath_overrides_runpath=yes 12631 hardcode_into_libs=yes 12632 ;; 12633 12634newsos6) 12635 version_type=linux # correct to gnu/linux during the next big refactor 12636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12637 shlibpath_var=LD_LIBRARY_PATH 12638 shlibpath_overrides_runpath=yes 12639 ;; 12640 12641*nto* | *qnx*) 12642 version_type=qnx 12643 need_lib_prefix=no 12644 need_version=no 12645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12646 soname_spec='${libname}${release}${shared_ext}$major' 12647 shlibpath_var=LD_LIBRARY_PATH 12648 shlibpath_overrides_runpath=no 12649 hardcode_into_libs=yes 12650 dynamic_linker='ldqnx.so' 12651 ;; 12652 12653openbsd*) 12654 version_type=sunos 12655 sys_lib_dlsearch_path_spec="/usr/lib" 12656 need_lib_prefix=no 12657 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12658 case $host_os in 12659 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12660 *) need_version=no ;; 12661 esac 12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12664 shlibpath_var=LD_LIBRARY_PATH 12665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12666 case $host_os in 12667 openbsd2.[89] | openbsd2.[89].*) 12668 shlibpath_overrides_runpath=no 12669 ;; 12670 *) 12671 shlibpath_overrides_runpath=yes 12672 ;; 12673 esac 12674 else 12675 shlibpath_overrides_runpath=yes 12676 fi 12677 ;; 12678 12679os2*) 12680 libname_spec='$name' 12681 shrext_cmds=".dll" 12682 need_lib_prefix=no 12683 library_names_spec='$libname${shared_ext} $libname.a' 12684 dynamic_linker='OS/2 ld.exe' 12685 shlibpath_var=LIBPATH 12686 ;; 12687 12688osf3* | osf4* | osf5*) 12689 version_type=osf 12690 need_lib_prefix=no 12691 need_version=no 12692 soname_spec='${libname}${release}${shared_ext}$major' 12693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12694 shlibpath_var=LD_LIBRARY_PATH 12695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12697 ;; 12698 12699rdos*) 12700 dynamic_linker=no 12701 ;; 12702 12703solaris*) 12704 version_type=linux # correct to gnu/linux during the next big refactor 12705 need_lib_prefix=no 12706 need_version=no 12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12708 soname_spec='${libname}${release}${shared_ext}$major' 12709 shlibpath_var=LD_LIBRARY_PATH 12710 shlibpath_overrides_runpath=yes 12711 hardcode_into_libs=yes 12712 # ldd complains unless libraries are executable 12713 postinstall_cmds='chmod +x $lib' 12714 ;; 12715 12716sunos4*) 12717 version_type=sunos 12718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12719 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12720 shlibpath_var=LD_LIBRARY_PATH 12721 shlibpath_overrides_runpath=yes 12722 if test "$with_gnu_ld" = yes; then 12723 need_lib_prefix=no 12724 fi 12725 need_version=yes 12726 ;; 12727 12728sysv4 | sysv4.3*) 12729 version_type=linux # correct to gnu/linux during the next big refactor 12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12731 soname_spec='${libname}${release}${shared_ext}$major' 12732 shlibpath_var=LD_LIBRARY_PATH 12733 case $host_vendor in 12734 sni) 12735 shlibpath_overrides_runpath=no 12736 need_lib_prefix=no 12737 runpath_var=LD_RUN_PATH 12738 ;; 12739 siemens) 12740 need_lib_prefix=no 12741 ;; 12742 motorola) 12743 need_lib_prefix=no 12744 need_version=no 12745 shlibpath_overrides_runpath=no 12746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12747 ;; 12748 esac 12749 ;; 12750 12751sysv4*MP*) 12752 if test -d /usr/nec ;then 12753 version_type=linux # correct to gnu/linux during the next big refactor 12754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 12755 soname_spec='$libname${shared_ext}.$major' 12756 shlibpath_var=LD_LIBRARY_PATH 12757 fi 12758 ;; 12759 12760sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12761 version_type=freebsd-elf 12762 need_lib_prefix=no 12763 need_version=no 12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12765 soname_spec='${libname}${release}${shared_ext}$major' 12766 shlibpath_var=LD_LIBRARY_PATH 12767 shlibpath_overrides_runpath=yes 12768 hardcode_into_libs=yes 12769 if test "$with_gnu_ld" = yes; then 12770 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12771 else 12772 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12773 case $host_os in 12774 sco3.2v5*) 12775 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12776 ;; 12777 esac 12778 fi 12779 sys_lib_dlsearch_path_spec='/usr/lib' 12780 ;; 12781 12782tpf*) 12783 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12784 version_type=linux # correct to gnu/linux during the next big refactor 12785 need_lib_prefix=no 12786 need_version=no 12787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12788 shlibpath_var=LD_LIBRARY_PATH 12789 shlibpath_overrides_runpath=no 12790 hardcode_into_libs=yes 12791 ;; 12792 12793uts4*) 12794 version_type=linux # correct to gnu/linux during the next big refactor 12795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12796 soname_spec='${libname}${release}${shared_ext}$major' 12797 shlibpath_var=LD_LIBRARY_PATH 12798 ;; 12799 12800*) 12801 dynamic_linker=no 12802 ;; 12803esac 12804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12805$as_echo "$dynamic_linker" >&6; } 12806test "$dynamic_linker" = no && can_build_shared=no 12807 12808variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12809if test "$GCC" = yes; then 12810 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12811fi 12812 12813if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 12814 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 12815fi 12816if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 12817 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 12818fi 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12912$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12913hardcode_action= 12914if test -n "$hardcode_libdir_flag_spec" || 12915 test -n "$runpath_var" || 12916 test "X$hardcode_automatic" = "Xyes" ; then 12917 12918 # We can hardcode non-existent directories. 12919 if test "$hardcode_direct" != no && 12920 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12921 # have to relink, otherwise we might link with an installed library 12922 # when we should be linking with a yet-to-be-installed one 12923 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 12924 test "$hardcode_minus_L" != no; then 12925 # Linking always hardcodes the temporary library directory. 12926 hardcode_action=relink 12927 else 12928 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12929 hardcode_action=immediate 12930 fi 12931else 12932 # We cannot hardcode anything, or else we can only hardcode existing 12933 # directories. 12934 hardcode_action=unsupported 12935fi 12936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12937$as_echo "$hardcode_action" >&6; } 12938 12939if test "$hardcode_action" = relink || 12940 test "$inherit_rpath" = yes; then 12941 # Fast installation is not supported 12942 enable_fast_install=no 12943elif test "$shlibpath_overrides_runpath" = yes || 12944 test "$enable_shared" = no; then 12945 # Fast installation is not necessary 12946 enable_fast_install=needless 12947fi 12948 12949 12950 12951 12952 12953 12954 if test "x$enable_dlopen" != xyes; then 12955 enable_dlopen=unknown 12956 enable_dlopen_self=unknown 12957 enable_dlopen_self_static=unknown 12958else 12959 lt_cv_dlopen=no 12960 lt_cv_dlopen_libs= 12961 12962 case $host_os in 12963 beos*) 12964 lt_cv_dlopen="load_add_on" 12965 lt_cv_dlopen_libs= 12966 lt_cv_dlopen_self=yes 12967 ;; 12968 12969 mingw* | pw32* | cegcc*) 12970 lt_cv_dlopen="LoadLibrary" 12971 lt_cv_dlopen_libs= 12972 ;; 12973 12974 cygwin*) 12975 lt_cv_dlopen="dlopen" 12976 lt_cv_dlopen_libs= 12977 ;; 12978 12979 darwin*) 12980 # if libdl is installed we need to link against it 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12982$as_echo_n "checking for dlopen in -ldl... " >&6; } 12983if ${ac_cv_lib_dl_dlopen+:} false; then : 12984 $as_echo_n "(cached) " >&6 12985else 12986 ac_check_lib_save_LIBS=$LIBS 12987LIBS="-ldl $LIBS" 12988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12989/* end confdefs.h. */ 12990 12991/* Override any GCC internal prototype to avoid an error. 12992 Use char because int might match the return type of a GCC 12993 builtin and then its argument prototype would still apply. */ 12994#ifdef __cplusplus 12995extern "C" 12996#endif 12997char dlopen (); 12998int 12999main () 13000{ 13001return dlopen (); 13002 ; 13003 return 0; 13004} 13005_ACEOF 13006if ac_fn_c_try_link "$LINENO"; then : 13007 ac_cv_lib_dl_dlopen=yes 13008else 13009 ac_cv_lib_dl_dlopen=no 13010fi 13011rm -f core conftest.err conftest.$ac_objext \ 13012 conftest$ac_exeext conftest.$ac_ext 13013LIBS=$ac_check_lib_save_LIBS 13014fi 13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13016$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13017if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13018 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13019else 13020 13021 lt_cv_dlopen="dyld" 13022 lt_cv_dlopen_libs= 13023 lt_cv_dlopen_self=yes 13024 13025fi 13026 13027 ;; 13028 13029 *) 13030 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 13031if test "x$ac_cv_func_shl_load" = xyes; then : 13032 lt_cv_dlopen="shl_load" 13033else 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13035$as_echo_n "checking for shl_load in -ldld... " >&6; } 13036if ${ac_cv_lib_dld_shl_load+:} false; then : 13037 $as_echo_n "(cached) " >&6 13038else 13039 ac_check_lib_save_LIBS=$LIBS 13040LIBS="-ldld $LIBS" 13041cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13042/* end confdefs.h. */ 13043 13044/* Override any GCC internal prototype to avoid an error. 13045 Use char because int might match the return type of a GCC 13046 builtin and then its argument prototype would still apply. */ 13047#ifdef __cplusplus 13048extern "C" 13049#endif 13050char shl_load (); 13051int 13052main () 13053{ 13054return shl_load (); 13055 ; 13056 return 0; 13057} 13058_ACEOF 13059if ac_fn_c_try_link "$LINENO"; then : 13060 ac_cv_lib_dld_shl_load=yes 13061else 13062 ac_cv_lib_dld_shl_load=no 13063fi 13064rm -f core conftest.err conftest.$ac_objext \ 13065 conftest$ac_exeext conftest.$ac_ext 13066LIBS=$ac_check_lib_save_LIBS 13067fi 13068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13069$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13070if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13071 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 13072else 13073 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13074if test "x$ac_cv_func_dlopen" = xyes; then : 13075 lt_cv_dlopen="dlopen" 13076else 13077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13078$as_echo_n "checking for dlopen in -ldl... " >&6; } 13079if ${ac_cv_lib_dl_dlopen+:} false; then : 13080 $as_echo_n "(cached) " >&6 13081else 13082 ac_check_lib_save_LIBS=$LIBS 13083LIBS="-ldl $LIBS" 13084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13085/* end confdefs.h. */ 13086 13087/* Override any GCC internal prototype to avoid an error. 13088 Use char because int might match the return type of a GCC 13089 builtin and then its argument prototype would still apply. */ 13090#ifdef __cplusplus 13091extern "C" 13092#endif 13093char dlopen (); 13094int 13095main () 13096{ 13097return dlopen (); 13098 ; 13099 return 0; 13100} 13101_ACEOF 13102if ac_fn_c_try_link "$LINENO"; then : 13103 ac_cv_lib_dl_dlopen=yes 13104else 13105 ac_cv_lib_dl_dlopen=no 13106fi 13107rm -f core conftest.err conftest.$ac_objext \ 13108 conftest$ac_exeext conftest.$ac_ext 13109LIBS=$ac_check_lib_save_LIBS 13110fi 13111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13112$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13113if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13114 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 13115else 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13117$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13118if ${ac_cv_lib_svld_dlopen+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120else 13121 ac_check_lib_save_LIBS=$LIBS 13122LIBS="-lsvld $LIBS" 13123cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13124/* end confdefs.h. */ 13125 13126/* Override any GCC internal prototype to avoid an error. 13127 Use char because int might match the return type of a GCC 13128 builtin and then its argument prototype would still apply. */ 13129#ifdef __cplusplus 13130extern "C" 13131#endif 13132char dlopen (); 13133int 13134main () 13135{ 13136return dlopen (); 13137 ; 13138 return 0; 13139} 13140_ACEOF 13141if ac_fn_c_try_link "$LINENO"; then : 13142 ac_cv_lib_svld_dlopen=yes 13143else 13144 ac_cv_lib_svld_dlopen=no 13145fi 13146rm -f core conftest.err conftest.$ac_objext \ 13147 conftest$ac_exeext conftest.$ac_ext 13148LIBS=$ac_check_lib_save_LIBS 13149fi 13150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13151$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13152if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 13154else 13155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13156$as_echo_n "checking for dld_link in -ldld... " >&6; } 13157if ${ac_cv_lib_dld_dld_link+:} false; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 ac_check_lib_save_LIBS=$LIBS 13161LIBS="-ldld $LIBS" 13162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13163/* end confdefs.h. */ 13164 13165/* Override any GCC internal prototype to avoid an error. 13166 Use char because int might match the return type of a GCC 13167 builtin and then its argument prototype would still apply. */ 13168#ifdef __cplusplus 13169extern "C" 13170#endif 13171char dld_link (); 13172int 13173main () 13174{ 13175return dld_link (); 13176 ; 13177 return 0; 13178} 13179_ACEOF 13180if ac_fn_c_try_link "$LINENO"; then : 13181 ac_cv_lib_dld_dld_link=yes 13182else 13183 ac_cv_lib_dld_dld_link=no 13184fi 13185rm -f core conftest.err conftest.$ac_objext \ 13186 conftest$ac_exeext conftest.$ac_ext 13187LIBS=$ac_check_lib_save_LIBS 13188fi 13189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13190$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13191if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13192 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 13193fi 13194 13195 13196fi 13197 13198 13199fi 13200 13201 13202fi 13203 13204 13205fi 13206 13207 13208fi 13209 13210 ;; 13211 esac 13212 13213 if test "x$lt_cv_dlopen" != xno; then 13214 enable_dlopen=yes 13215 else 13216 enable_dlopen=no 13217 fi 13218 13219 case $lt_cv_dlopen in 13220 dlopen) 13221 save_CPPFLAGS="$CPPFLAGS" 13222 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13223 13224 save_LDFLAGS="$LDFLAGS" 13225 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13226 13227 save_LIBS="$LIBS" 13228 LIBS="$lt_cv_dlopen_libs $LIBS" 13229 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13231$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13232if ${lt_cv_dlopen_self+:} false; then : 13233 $as_echo_n "(cached) " >&6 13234else 13235 if test "$cross_compiling" = yes; then : 13236 lt_cv_dlopen_self=cross 13237else 13238 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13239 lt_status=$lt_dlunknown 13240 cat > conftest.$ac_ext <<_LT_EOF 13241#line $LINENO "configure" 13242#include "confdefs.h" 13243 13244#if HAVE_DLFCN_H 13245#include <dlfcn.h> 13246#endif 13247 13248#include <stdio.h> 13249 13250#ifdef RTLD_GLOBAL 13251# define LT_DLGLOBAL RTLD_GLOBAL 13252#else 13253# ifdef DL_GLOBAL 13254# define LT_DLGLOBAL DL_GLOBAL 13255# else 13256# define LT_DLGLOBAL 0 13257# endif 13258#endif 13259 13260/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13261 find out it does not work in some platform. */ 13262#ifndef LT_DLLAZY_OR_NOW 13263# ifdef RTLD_LAZY 13264# define LT_DLLAZY_OR_NOW RTLD_LAZY 13265# else 13266# ifdef DL_LAZY 13267# define LT_DLLAZY_OR_NOW DL_LAZY 13268# else 13269# ifdef RTLD_NOW 13270# define LT_DLLAZY_OR_NOW RTLD_NOW 13271# else 13272# ifdef DL_NOW 13273# define LT_DLLAZY_OR_NOW DL_NOW 13274# else 13275# define LT_DLLAZY_OR_NOW 0 13276# endif 13277# endif 13278# endif 13279# endif 13280#endif 13281 13282/* When -fvisbility=hidden is used, assume the code has been annotated 13283 correspondingly for the symbols needed. */ 13284#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13285int fnord () __attribute__((visibility("default"))); 13286#endif 13287 13288int fnord () { return 42; } 13289int main () 13290{ 13291 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13292 int status = $lt_dlunknown; 13293 13294 if (self) 13295 { 13296 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13297 else 13298 { 13299 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13300 else puts (dlerror ()); 13301 } 13302 /* dlclose (self); */ 13303 } 13304 else 13305 puts (dlerror ()); 13306 13307 return status; 13308} 13309_LT_EOF 13310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13311 (eval $ac_link) 2>&5 13312 ac_status=$? 13313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13314 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13315 (./conftest; exit; ) >&5 2>/dev/null 13316 lt_status=$? 13317 case x$lt_status in 13318 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13319 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13320 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13321 esac 13322 else : 13323 # compilation failed 13324 lt_cv_dlopen_self=no 13325 fi 13326fi 13327rm -fr conftest* 13328 13329 13330fi 13331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13332$as_echo "$lt_cv_dlopen_self" >&6; } 13333 13334 if test "x$lt_cv_dlopen_self" = xyes; then 13335 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13337$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13338if ${lt_cv_dlopen_self_static+:} false; then : 13339 $as_echo_n "(cached) " >&6 13340else 13341 if test "$cross_compiling" = yes; then : 13342 lt_cv_dlopen_self_static=cross 13343else 13344 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13345 lt_status=$lt_dlunknown 13346 cat > conftest.$ac_ext <<_LT_EOF 13347#line $LINENO "configure" 13348#include "confdefs.h" 13349 13350#if HAVE_DLFCN_H 13351#include <dlfcn.h> 13352#endif 13353 13354#include <stdio.h> 13355 13356#ifdef RTLD_GLOBAL 13357# define LT_DLGLOBAL RTLD_GLOBAL 13358#else 13359# ifdef DL_GLOBAL 13360# define LT_DLGLOBAL DL_GLOBAL 13361# else 13362# define LT_DLGLOBAL 0 13363# endif 13364#endif 13365 13366/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13367 find out it does not work in some platform. */ 13368#ifndef LT_DLLAZY_OR_NOW 13369# ifdef RTLD_LAZY 13370# define LT_DLLAZY_OR_NOW RTLD_LAZY 13371# else 13372# ifdef DL_LAZY 13373# define LT_DLLAZY_OR_NOW DL_LAZY 13374# else 13375# ifdef RTLD_NOW 13376# define LT_DLLAZY_OR_NOW RTLD_NOW 13377# else 13378# ifdef DL_NOW 13379# define LT_DLLAZY_OR_NOW DL_NOW 13380# else 13381# define LT_DLLAZY_OR_NOW 0 13382# endif 13383# endif 13384# endif 13385# endif 13386#endif 13387 13388/* When -fvisbility=hidden is used, assume the code has been annotated 13389 correspondingly for the symbols needed. */ 13390#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13391int fnord () __attribute__((visibility("default"))); 13392#endif 13393 13394int fnord () { return 42; } 13395int main () 13396{ 13397 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13398 int status = $lt_dlunknown; 13399 13400 if (self) 13401 { 13402 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13403 else 13404 { 13405 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13406 else puts (dlerror ()); 13407 } 13408 /* dlclose (self); */ 13409 } 13410 else 13411 puts (dlerror ()); 13412 13413 return status; 13414} 13415_LT_EOF 13416 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13417 (eval $ac_link) 2>&5 13418 ac_status=$? 13419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13420 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 13421 (./conftest; exit; ) >&5 2>/dev/null 13422 lt_status=$? 13423 case x$lt_status in 13424 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13425 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13426 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13427 esac 13428 else : 13429 # compilation failed 13430 lt_cv_dlopen_self_static=no 13431 fi 13432fi 13433rm -fr conftest* 13434 13435 13436fi 13437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13438$as_echo "$lt_cv_dlopen_self_static" >&6; } 13439 fi 13440 13441 CPPFLAGS="$save_CPPFLAGS" 13442 LDFLAGS="$save_LDFLAGS" 13443 LIBS="$save_LIBS" 13444 ;; 13445 esac 13446 13447 case $lt_cv_dlopen_self in 13448 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13449 *) enable_dlopen_self=unknown ;; 13450 esac 13451 13452 case $lt_cv_dlopen_self_static in 13453 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13454 *) enable_dlopen_self_static=unknown ;; 13455 esac 13456fi 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474striplib= 13475old_striplib= 13476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13477$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13478if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13479 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13480 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13482$as_echo "yes" >&6; } 13483else 13484# FIXME - insert some real tests, host_os isn't really good enough 13485 case $host_os in 13486 darwin*) 13487 if test -n "$STRIP" ; then 13488 striplib="$STRIP -x" 13489 old_striplib="$STRIP -S" 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13491$as_echo "yes" >&6; } 13492 else 13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13494$as_echo "no" >&6; } 13495 fi 13496 ;; 13497 *) 13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13499$as_echo "no" >&6; } 13500 ;; 13501 esac 13502fi 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 # Report which library types will actually be built 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13517$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13519$as_echo "$can_build_shared" >&6; } 13520 13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13522$as_echo_n "checking whether to build shared libraries... " >&6; } 13523 test "$can_build_shared" = "no" && enable_shared=no 13524 13525 # On AIX, shared libraries and static libraries use the same namespace, and 13526 # are all built from PIC. 13527 case $host_os in 13528 aix3*) 13529 test "$enable_shared" = yes && enable_static=no 13530 if test -n "$RANLIB"; then 13531 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13532 postinstall_cmds='$RANLIB $lib' 13533 fi 13534 ;; 13535 13536 aix[4-9]*) 13537 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 13538 test "$enable_shared" = yes && enable_static=no 13539 fi 13540 ;; 13541 esac 13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13543$as_echo "$enable_shared" >&6; } 13544 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13546$as_echo_n "checking whether to build static libraries... " >&6; } 13547 # Make sure either enable_shared or enable_static is yes. 13548 test "$enable_shared" = yes || enable_static=yes 13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13550$as_echo "$enable_static" >&6; } 13551 13552 13553 13554 13555fi 13556ac_ext=c 13557ac_cpp='$CPP $CPPFLAGS' 13558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13560ac_compiler_gnu=$ac_cv_c_compiler_gnu 13561 13562CC="$lt_save_CC" 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 ac_config_commands="$ac_config_commands libtool" 13579 13580 13581 13582 13583# Only expand once: 13584 13585 13586 13587if test "$enable_shared" = "no"; then 13588 with_noexec=no 13589else 13590 eval _shrext="$shrext_cmds" 13591fi 13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking path to sudo_noexec.so" >&5 13593$as_echo_n "checking path to sudo_noexec.so... " >&6; } 13594 13595# Check whether --with-noexec was given. 13596if test "${with_noexec+set}" = set; then : 13597 withval=$with_noexec; case $with_noexec in 13598 yes) with_noexec="$libexecdir/sudo_noexec$_shrext" 13599 ;; 13600 no) ;; 13601 *) ;; 13602esac 13603else 13604 with_noexec="$libexecdir/sudo_noexec$_shrext" 13605fi 13606 13607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_noexec" >&5 13608$as_echo "$with_noexec" >&6; } 13609NOEXECFILE="sudo_noexec$_shrext" 13610NOEXECDIR="`echo $with_noexec|sed -e 's:^${\([^}]*\)}:$(\1):' -e 's:^\(.*\)/[^/]*:\1:'`" 13611 13612# Extract the first word of "uname", so it can be a program name with args. 13613set dummy uname; ac_word=$2 13614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13615$as_echo_n "checking for $ac_word... " >&6; } 13616if ${ac_cv_path_UNAMEPROG+:} false; then : 13617 $as_echo_n "(cached) " >&6 13618else 13619 case $UNAMEPROG in 13620 [\\/]* | ?:[\\/]*) 13621 ac_cv_path_UNAMEPROG="$UNAMEPROG" # Let the user override the test with a path. 13622 ;; 13623 *) 13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13625for as_dir in $PATH 13626do 13627 IFS=$as_save_IFS 13628 test -z "$as_dir" && as_dir=. 13629 for ac_exec_ext in '' $ac_executable_extensions; do 13630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13631 ac_cv_path_UNAMEPROG="$as_dir/$ac_word$ac_exec_ext" 13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13633 break 2 13634 fi 13635done 13636 done 13637IFS=$as_save_IFS 13638 13639 test -z "$ac_cv_path_UNAMEPROG" && ac_cv_path_UNAMEPROG="uname" 13640 ;; 13641esac 13642fi 13643UNAMEPROG=$ac_cv_path_UNAMEPROG 13644if test -n "$UNAMEPROG"; then 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAMEPROG" >&5 13646$as_echo "$UNAMEPROG" >&6; } 13647else 13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13649$as_echo "no" >&6; } 13650fi 13651 13652 13653# Extract the first word of "tr", so it can be a program name with args. 13654set dummy tr; ac_word=$2 13655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13656$as_echo_n "checking for $ac_word... " >&6; } 13657if ${ac_cv_path_TRPROG+:} false; then : 13658 $as_echo_n "(cached) " >&6 13659else 13660 case $TRPROG in 13661 [\\/]* | ?:[\\/]*) 13662 ac_cv_path_TRPROG="$TRPROG" # Let the user override the test with a path. 13663 ;; 13664 *) 13665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13666for as_dir in $PATH 13667do 13668 IFS=$as_save_IFS 13669 test -z "$as_dir" && as_dir=. 13670 for ac_exec_ext in '' $ac_executable_extensions; do 13671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13672 ac_cv_path_TRPROG="$as_dir/$ac_word$ac_exec_ext" 13673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13674 break 2 13675 fi 13676done 13677 done 13678IFS=$as_save_IFS 13679 13680 test -z "$ac_cv_path_TRPROG" && ac_cv_path_TRPROG="tr" 13681 ;; 13682esac 13683fi 13684TRPROG=$ac_cv_path_TRPROG 13685if test -n "$TRPROG"; then 13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRPROG" >&5 13687$as_echo "$TRPROG" >&6; } 13688else 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13690$as_echo "no" >&6; } 13691fi 13692 13693 13694# Extract the first word of "mandoc", so it can be a program name with args. 13695set dummy mandoc; ac_word=$2 13696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13697$as_echo_n "checking for $ac_word... " >&6; } 13698if ${ac_cv_path_MANDOCPROG+:} false; then : 13699 $as_echo_n "(cached) " >&6 13700else 13701 case $MANDOCPROG in 13702 [\\/]* | ?:[\\/]*) 13703 ac_cv_path_MANDOCPROG="$MANDOCPROG" # Let the user override the test with a path. 13704 ;; 13705 *) 13706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13707for as_dir in $PATH 13708do 13709 IFS=$as_save_IFS 13710 test -z "$as_dir" && as_dir=. 13711 for ac_exec_ext in '' $ac_executable_extensions; do 13712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13713 ac_cv_path_MANDOCPROG="$as_dir/$ac_word$ac_exec_ext" 13714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13715 break 2 13716 fi 13717done 13718 done 13719IFS=$as_save_IFS 13720 13721 test -z "$ac_cv_path_MANDOCPROG" && ac_cv_path_MANDOCPROG="mandoc" 13722 ;; 13723esac 13724fi 13725MANDOCPROG=$ac_cv_path_MANDOCPROG 13726if test -n "$MANDOCPROG"; then 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDOCPROG" >&5 13728$as_echo "$MANDOCPROG" >&6; } 13729else 13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13731$as_echo "no" >&6; } 13732fi 13733 13734 13735if test "$MANDOCPROG" != "mandoc"; then 13736 : ${MANTYPE='mdoc'} 13737else 13738 # Extract the first word of "nroff", so it can be a program name with args. 13739set dummy nroff; ac_word=$2 13740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13741$as_echo_n "checking for $ac_word... " >&6; } 13742if ${ac_cv_path_NROFFPROG+:} false; then : 13743 $as_echo_n "(cached) " >&6 13744else 13745 case $NROFFPROG in 13746 [\\/]* | ?:[\\/]*) 13747 ac_cv_path_NROFFPROG="$NROFFPROG" # Let the user override the test with a path. 13748 ;; 13749 *) 13750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13751for as_dir in $PATH 13752do 13753 IFS=$as_save_IFS 13754 test -z "$as_dir" && as_dir=. 13755 for ac_exec_ext in '' $ac_executable_extensions; do 13756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13757 ac_cv_path_NROFFPROG="$as_dir/$ac_word$ac_exec_ext" 13758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13759 break 2 13760 fi 13761done 13762 done 13763IFS=$as_save_IFS 13764 13765 ;; 13766esac 13767fi 13768NROFFPROG=$ac_cv_path_NROFFPROG 13769if test -n "$NROFFPROG"; then 13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFFPROG" >&5 13771$as_echo "$NROFFPROG" >&6; } 13772else 13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13774$as_echo "no" >&6; } 13775fi 13776 13777 13778 if test -n "$NROFFPROG"; then 13779 test -n "$MANTYPE" && sudo_cv_var_mantype="$MANTYPE" 13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which macro set to use for manual pages" >&5 13781$as_echo_n "checking which macro set to use for manual pages... " >&6; } 13782if ${sudo_cv_var_mantype+:} false; then : 13783 $as_echo_n "(cached) " >&6 13784else 13785 13786 sudo_cv_var_mantype="man" 13787 echo ".Sh NAME" > conftest 13788 echo ".Nm sudo" >> conftest 13789 echo ".Nd sudo" >> conftest 13790 echo ".Sh DESCRIPTION" >> conftest 13791 echo "sudo" >> conftest 13792 if $NROFFPROG -mdoc conftest >/dev/null 2>&1; then 13793 sudo_cv_var_mantype="mdoc" 13794 fi 13795 rm -f conftest 13796 13797 13798fi 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_mantype" >&5 13800$as_echo "$sudo_cv_var_mantype" >&6; } 13801 MANTYPE="$sudo_cv_var_mantype" 13802 else 13803 MANTYPE=cat 13804 MANDIRTYPE=cat 13805 mansrcdir='$(srcdir)' 13806 fi 13807fi 13808 13809if test -n "$sudo_cv_prev_host"; then 13810 if test "$sudo_cv_prev_host" != "$host"; then 13811 as_fn_error $? "config.cache was created on a different host; remove it and re-run configure." "$LINENO" 5 13812 else 13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking previous host type" >&5 13814$as_echo_n "checking previous host type... " >&6; } 13815 if ${sudo_cv_prev_host+:} false; then : 13816 $as_echo_n "(cached) " >&6 13817else 13818 sudo_cv_prev_host="$host" 13819fi 13820 13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_prev_host" >&5 13822$as_echo "$sudo_cv_prev_host" >&6; } 13823 fi 13824else 13825 # this will produce no output since there is no cached value 13826 if ${sudo_cv_prev_host+:} false; then : 13827 $as_echo_n "(cached) " >&6 13828else 13829 sudo_cv_prev_host="$host" 13830fi 13831 13832fi 13833 13834if test -n "$host_os"; then 13835 OS=`echo $host_os | sed 's/[0-9].*//'` 13836 OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'` 13837 OSMAJOR=`echo $OSREV | sed 's/\..*$//'` 13838else 13839 OS="unknown" 13840 OSREV=0 13841 OSMAJOR=0 13842fi 13843 13844case "$host" in 13845 *-*-sunos4*) 13846 # getcwd(3) opens a pipe to getpwd(1)!?! 13847 BROKEN_GETCWD=1 13848 13849 # system headers lack prototypes but gcc helps... 13850 if test -n "$GCC"; then 13851 OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__" 13852 fi 13853 13854 shadow_funcs="getpwanam issecure" 13855 ;; 13856 *-*-solaris2*) 13857 # To get the crypt(3) prototype (so we pass -Wall) 13858 OSDEFS="${OSDEFS} -D__EXTENSIONS__" 13859 # AFS support needs -lucb 13860 if test "$with_AFS" = "yes"; then 13861 AFS_LIBS="-lc -lucb" 13862 fi 13863 : ${mansectsu='1m'} 13864 : ${mansectform='4'} 13865 : ${with_rpath='yes'} 13866 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 13867 ;; 13868 *-*-aix*) 13869 # To get all prototypes (so we pass -Wall) 13870 OSDEFS="${OSDEFS} -D_ALL_SOURCE -D_LINUX_SOURCE_COMPAT" 13871 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp" 13872 if test X"$with_blibpath" != X"no"; then 13873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker accepts -Wl,-blibpath" >&5 13874$as_echo_n "checking if linker accepts -Wl,-blibpath... " >&6; } 13875 O_LDFLAGS="$LDFLAGS" 13876 LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib" 13877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13878/* end confdefs.h. */ 13879 13880int 13881main () 13882{ 13883 13884 ; 13885 return 0; 13886} 13887_ACEOF 13888if ac_fn_c_try_link "$LINENO"; then : 13889 13890 if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then 13891 blibpath="$with_blibpath" 13892 elif test -n "$GCC"; then 13893 blibpath="/usr/lib:/lib:/usr/local/lib" 13894 else 13895 blibpath="/usr/lib:/lib" 13896 fi 13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13898$as_echo "yes" >&6; } 13899 13900else 13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13902$as_echo "no" >&6; } 13903fi 13904rm -f core conftest.err conftest.$ac_objext \ 13905 conftest$ac_exeext conftest.$ac_ext 13906 fi 13907 LDFLAGS="$O_LDFLAGS" 13908 13909 # On AIX 6 and higher default to PAM, else default to LAM 13910 if test $OSMAJOR -ge 6; then 13911 if test X"$with_pam" = X""; then 13912 AUTH_EXCL_DEF="PAM" 13913 fi 13914 else 13915 if test X"$with_aixauth" = X""; then 13916 for ac_func in authenticate 13917do : 13918 ac_fn_c_check_func "$LINENO" "authenticate" "ac_cv_func_authenticate" 13919if test "x$ac_cv_func_authenticate" = xyes; then : 13920 cat >>confdefs.h <<_ACEOF 13921#define HAVE_AUTHENTICATE 1 13922_ACEOF 13923 AUTH_EXCL_DEF="AIX_AUTH" 13924fi 13925done 13926 13927 fi 13928 fi 13929 13930 # AIX analog of nsswitch.conf, enabled by default 13931 13932# Check whether --with-netsvc was given. 13933if test "${with_netsvc+set}" = set; then : 13934 withval=$with_netsvc; case $with_netsvc in 13935 no) ;; 13936 yes) with_netsvc="/etc/netsvc.conf" 13937 ;; 13938 *) ;; 13939 esac 13940fi 13941 13942 if test -z "$with_nsswitch" -a -z "$with_netsvc"; then 13943 with_netsvc="/etc/netsvc.conf" 13944 fi 13945 13946 # LDR_PRELOAD is only supported in AIX 5.3 and later 13947 if test $OSMAJOR -lt 5; then 13948 with_noexec=no 13949 fi 13950 13951 # AIX-specific functions 13952 for ac_func in getuserattr setauthdb 13953do : 13954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13955ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13956if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13957 cat >>confdefs.h <<_ACEOF 13958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13959_ACEOF 13960 13961fi 13962done 13963 13964 COMMON_OBJS="$COMMON_OBJS aix.o" 13965 ;; 13966 *-*-hiuxmpp*) 13967 : ${mansectsu='1m'} 13968 : ${mansectform='4'} 13969 13970 # HP-UX shared libs must be executable 13971 SHLIB_MODE=0755 13972 ;; 13973 *-*-hpux*) 13974 # AFS support needs -lBSD 13975 if test "$with_AFS" = "yes"; then 13976 AFS_LIBS="-lc -lBSD" 13977 fi 13978 : ${mansectsu='1m'} 13979 : ${mansectform='4'} 13980 13981 # HP-UX shared libs must be executable 13982 SHLIB_MODE=0755 13983 13984 if test -z "$GCC"; then 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HP bundled C compiler" >&5 13986$as_echo_n "checking for HP bundled C compiler... " >&6; } 13987if ${sudo_cv_var_hpccbundled+:} false; then : 13988 $as_echo_n "(cached) " >&6 13989else 13990 if test "x$ac_cv_prog_cc_c89" = "xno"; then 13991 sudo_cv_var_hpccbundled=yes 13992 elif $CC -V 2>&1 | grep '^(Bundled)' >/dev/null 2>&1; then 13993 sudo_cv_var_hpccbundled=yes 13994 else 13995 sudo_cv_var_hpccbundled=no 13996 fi 13997 13998fi 13999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_hpccbundled" >&5 14000$as_echo "$sudo_cv_var_hpccbundled" >&6; } 14001 # The HP bundled compiler can't generate shared objects 14002 if test "$sudo_cv_var_hpccbundled" = "yes"; then 14003 with_noexec=no 14004 fi 14005 fi 14006 14007 # Build PA-RISC1.1 objects for better portability 14008 case "$host_cpu" in 14009 hppa[2-9]*) 14010 _CFLAGS="$CFLAGS" 14011 if test -n "$GCC"; then 14012 portable_flag="-march=1.1" 14013 else 14014 portable_flag="+DAportable" 14015 fi 14016 CFLAGS="$CFLAGS $portable_flag" 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands $portable_flag" >&5 14018$as_echo_n "checking whether $CC understands $portable_flag... " >&6; } 14019if ${sudo_cv_var_daportable+:} false; then : 14020 $as_echo_n "(cached) " >&6 14021else 14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14023/* end confdefs.h. */ 14024 14025int 14026main () 14027{ 14028 14029 ; 14030 return 0; 14031} 14032_ACEOF 14033if ac_fn_c_try_link "$LINENO"; then : 14034 sudo_cv_var_daportable=yes 14035else 14036 sudo_cv_var_daportable=no 14037 14038fi 14039rm -f core conftest.err conftest.$ac_objext \ 14040 conftest$ac_exeext conftest.$ac_ext 14041 14042 14043fi 14044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_var_daportable" >&5 14045$as_echo "$sudo_cv_var_daportable" >&6; } 14046 if test X"$sudo_cv_var_daportable" != X"yes"; then 14047 CFLAGS="$_CFLAGS" 14048 fi 14049 ;; 14050 esac 14051 14052 case "$host" in 14053 *-*-hpux[1-8].*) 14054 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h 14055 14056 14057 # Not sure if setuid binaries are safe in < 9.x 14058 if test -n "$GCC"; then 14059 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static" 14060 else 14061 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive" 14062 fi 14063 ;; 14064 *-*-hpux9.*) 14065 $as_echo "#define BROKEN_SYSLOG 1" >>confdefs.h 14066 14067 14068 shadow_funcs="getspwuid" 14069 14070 # DCE support (requires ANSI C compiler) 14071 if test "$with_DCE" = "yes"; then 14072 # order of libs in 9.X is important. -lc_r must be last 14073 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r" 14074 LIBS="${LIBS} -ldce -lM -lc_r" 14075 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant" 14076 fi 14077 ;; 14078 *-*-hpux10.*) 14079 shadow_funcs="getprpwnam iscomsec" 14080 shadow_libs="-lsec" 14081 # HP-UX 10.20 libc has an incompatible getline 14082 ac_cv_func_getline="no" 14083 ;; 14084 *) 14085 shadow_funcs="getspnam iscomsec" 14086 shadow_libs="-lsec" 14087 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14088 ;; 14089 esac 14090 ;; 14091 *-dec-osf*) 14092 # ignore envariables wrt dynamic lib path 14093 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement" 14094 14095 : ${CHECKSIA='true'} 14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable sia support on Digital UNIX" >&5 14097$as_echo_n "checking whether to disable sia support on Digital UNIX... " >&6; } 14098 # Check whether --enable-sia was given. 14099if test "${enable_sia+set}" = set; then : 14100 enableval=$enable_sia; case "$enableval" in 14101 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14102$as_echo "no" >&6; } 14103 CHECKSIA=true 14104 ;; 14105 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14106$as_echo "yes" >&6; } 14107 CHECKSIA=false 14108 ;; 14109 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14110$as_echo "no" >&6; } 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5 14112$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;} 14113 ;; 14114 esac 14115 14116else 14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14118$as_echo "no" >&6; } 14119fi 14120 14121 14122 shadow_funcs="getprpwnam dispcrypt" 14123 # OSF/1 4.x and higher need -ldb too 14124 if test $OSMAJOR -lt 4; then 14125 shadow_libs="-lsecurity -laud -lm" 14126 else 14127 shadow_libs="-lsecurity -ldb -laud -lm" 14128 fi 14129 14130 # use SIA by default, if we have it 14131 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA" 14132 14133 # 14134 # Some versions of Digital Unix ship with a broken 14135 # copy of prot.h, which we need for shadow passwords. 14136 # XXX - make should remove this as part of distclean 14137 # 14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken prot.h" >&5 14139$as_echo_n "checking for broken prot.h... " >&6; } 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14141/* end confdefs.h. */ 14142 14143#include <sys/types.h> 14144#include <sys/security.h> 14145#include <prot.h> 14146 14147int 14148main () 14149{ 14150exit(0); 14151 ; 14152 return 0; 14153} 14154_ACEOF 14155if ac_fn_c_try_compile "$LINENO"; then : 14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14157$as_echo "no" >&6; } 14158else 14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, fixing locally" >&5 14160$as_echo "yes, fixing locally" >&6; } 14161 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h 14162 14163fi 14164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14165 : ${mansectsu='8'} 14166 : ${mansectform='4'} 14167 ;; 14168 *-*-irix*) 14169 OSDEFS="${OSDEFS} -D_BSD_TYPES" 14170 if test -z "$NROFFPROG"; then 14171 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then 14172 if test -d /usr/share/catman/local; then 14173 mandir="/usr/share/catman/local" 14174 else 14175 mandir="/usr/catman/local" 14176 fi 14177 fi 14178 # Compress cat pages with pack 14179 MANCOMPRESS='pack' 14180 MANCOMPRESSEXT='.z' 14181 else 14182 if test "$prefix" = "/usr/local" -a "$mandir" = '${datarootdir}/man'; then 14183 if test -d "/usr/share/man/local"; then 14184 mandir="/usr/share/man/local" 14185 else 14186 mandir="/usr/man/local" 14187 fi 14188 fi 14189 fi 14190 # IRIX <= 4 needs -lsun 14191 if test "$OSMAJOR" -le 4; then 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5 14193$as_echo_n "checking for getpwnam in -lsun... " >&6; } 14194if ${ac_cv_lib_sun_getpwnam+:} false; then : 14195 $as_echo_n "(cached) " >&6 14196else 14197 ac_check_lib_save_LIBS=$LIBS 14198LIBS="-lsun $LIBS" 14199cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14200/* end confdefs.h. */ 14201 14202/* Override any GCC internal prototype to avoid an error. 14203 Use char because int might match the return type of a GCC 14204 builtin and then its argument prototype would still apply. */ 14205#ifdef __cplusplus 14206extern "C" 14207#endif 14208char getpwnam (); 14209int 14210main () 14211{ 14212return getpwnam (); 14213 ; 14214 return 0; 14215} 14216_ACEOF 14217if ac_fn_c_try_link "$LINENO"; then : 14218 ac_cv_lib_sun_getpwnam=yes 14219else 14220 ac_cv_lib_sun_getpwnam=no 14221fi 14222rm -f core conftest.err conftest.$ac_objext \ 14223 conftest$ac_exeext conftest.$ac_ext 14224LIBS=$ac_check_lib_save_LIBS 14225fi 14226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5 14227$as_echo "$ac_cv_lib_sun_getpwnam" >&6; } 14228if test "x$ac_cv_lib_sun_getpwnam" = xyes; then : 14229 LIBS="${LIBS} -lsun" 14230fi 14231 14232 fi 14233 : ${mansectsu='1m'} 14234 : ${mansectform='4'} 14235 ;; 14236 *-*-linux*|*-*-k*bsd*-gnu) 14237 OSDEFS="${OSDEFS} -D_GNU_SOURCE" 14238 # Some Linux versions need to link with -lshadow 14239 shadow_funcs="getspnam" 14240 shadow_libs_optional="-lshadow" 14241 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14242 ;; 14243 *-convex-bsd*) 14244 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE" 14245 if test -z "$GCC"; then 14246 CFLAGS="${CFLAGS} -D__STDC__" 14247 fi 14248 14249 shadow_defs="-D_AUDIT -D_ACL -DSecureWare" 14250 shadow_funcs="getprpwnam" 14251 shadow_libs="-lprot" 14252 ;; 14253 *-*-ultrix*) 14254 OS="ultrix" 14255 shadow_funcs="getauthuid" 14256 shadow_libs="-lauth" 14257 ;; 14258 *-*-riscos*) 14259 LIBS="${LIBS} -lsun -lbsd" 14260 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd" 14261 OSDEFS="${OSDEFS} -D_MIPS" 14262 : ${mansectsu='1m'} 14263 : ${mansectform='4'} 14264 ;; 14265 *-*-isc*) 14266 OSDEFS="${OSDEFS} -D_ISC" 14267 LIB_CRYPT=1 14268 SUDO_LIBS="${SUDO_LIBS} -lcrypt" 14269 LIBS="${LIBS} -lcrypt" 14270 14271 shadow_funcs="getspnam" 14272 shadow_libs="-lsec" 14273 14274 : ${mansectsu='1m'} 14275 : ${mansectform='4'} 14276 ;; 14277 *-*-sco*|*-sco-*) 14278 shadow_funcs="getprpwnam" 14279 shadow_libs="-lprot -lx" 14280 : ${mansectsu='1m'} 14281 : ${mansectform='4'} 14282 ;; 14283 m88k-motorola-sysv*) 14284 # motorolla's cc (a variant of gcc) does -O but not -O2 14285 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'` 14286 : ${mansectsu='1m'} 14287 : ${mansectform='4'} 14288 ;; 14289 *-sequent-sysv*) 14290 shadow_funcs="getspnam" 14291 shadow_libs="-lsec" 14292 : ${mansectsu='1m'} 14293 : ${mansectform='4'} 14294 : ${with_rpath='yes'} 14295 ;; 14296 *-ncr-sysv4*|*-ncr-sysvr4*) 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lc89" >&5 14298$as_echo_n "checking for strcasecmp in -lc89... " >&6; } 14299if ${ac_cv_lib_c89_strcasecmp+:} false; then : 14300 $as_echo_n "(cached) " >&6 14301else 14302 ac_check_lib_save_LIBS=$LIBS 14303LIBS="-lc89 $LIBS" 14304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14305/* end confdefs.h. */ 14306 14307/* Override any GCC internal prototype to avoid an error. 14308 Use char because int might match the return type of a GCC 14309 builtin and then its argument prototype would still apply. */ 14310#ifdef __cplusplus 14311extern "C" 14312#endif 14313char strcasecmp (); 14314int 14315main () 14316{ 14317return strcasecmp (); 14318 ; 14319 return 0; 14320} 14321_ACEOF 14322if ac_fn_c_try_link "$LINENO"; then : 14323 ac_cv_lib_c89_strcasecmp=yes 14324else 14325 ac_cv_lib_c89_strcasecmp=no 14326fi 14327rm -f core conftest.err conftest.$ac_objext \ 14328 conftest$ac_exeext conftest.$ac_ext 14329LIBS=$ac_check_lib_save_LIBS 14330fi 14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c89_strcasecmp" >&5 14332$as_echo "$ac_cv_lib_c89_strcasecmp" >&6; } 14333if test "x$ac_cv_lib_c89_strcasecmp" = xyes; then : 14334 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 14335 LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes 14336fi 14337 14338 : ${mansectsu='1m'} 14339 : ${mansectform='4'} 14340 : ${with_rpath='yes'} 14341 ;; 14342 *-ccur-sysv4*|*-ccur-sysvr4*) 14343 LIBS="${LIBS} -lgen" 14344 SUDO_LIBS="${SUDO_LIBS} -lgen" 14345 : ${mansectsu='1m'} 14346 : ${mansectform='4'} 14347 : ${with_rpath='yes'} 14348 ;; 14349 *-*-bsdi*) 14350 SKIP_SETREUID=yes 14351 # Check for newer BSD auth API 14352 if test -z "$with_bsdauth"; then 14353 for ac_func in auth_challenge 14354do : 14355 ac_fn_c_check_func "$LINENO" "auth_challenge" "ac_cv_func_auth_challenge" 14356if test "x$ac_cv_func_auth_challenge" = xyes; then : 14357 cat >>confdefs.h <<_ACEOF 14358#define HAVE_AUTH_CHALLENGE 1 14359_ACEOF 14360 AUTH_EXCL_DEF="BSD_AUTH" 14361fi 14362done 14363 14364 fi 14365 ;; 14366 *-*-freebsd*) 14367 # FreeBSD has a real setreuid(2) starting with 2.1 and 14368 # backported to 2.0.5. We just take 2.1 and above... 14369 case "$OSREV" in 14370 0.*|1.*|2.0*) 14371 SKIP_SETREUID=yes 14372 ;; 14373 esac 14374 OSDEFS="${OSDEFS} -D_BSD_SOURCE" 14375 if test "${with_skey-'no'}" = "yes"; then 14376 SUDO_LIBS="${SUDO_LIBS} -lmd" 14377 fi 14378 CHECKSHADOW="false" 14379 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14380 : ${with_logincap='maybe'} 14381 # PIE is broken on FreeBSD/ia64 14382 case "$host_cpu" in 14383 ia64*) 14384 enable_pie=no;; 14385 esac 14386 ;; 14387 *-*-*openbsd*) 14388 # OpenBSD has a real setreuid(2) starting with 3.3 but 14389 # we will use setresuid(2) instead. 14390 SKIP_SETREUID=yes 14391 OSDEFS="${OSDEFS} -D_BSD_SOURCE" 14392 CHECKSHADOW="false" 14393 # OpenBSD >= 3.0 supports BSD auth 14394 if test -z "$with_bsdauth"; then 14395 if test "$OSMAJOR" -ge 3; then 14396 AUTH_EXCL_DEF="BSD_AUTH" 14397 fi 14398 fi 14399 : ${with_logincap='maybe'} 14400 ;; 14401 *-*-*netbsd*) 14402 # NetBSD has a real setreuid(2) starting with 1.3.2 14403 case "$OSREV" in 14404 0.9*|1.[012]*|1.3|1.3.1) 14405 SKIP_SETREUID=yes 14406 ;; 14407 esac 14408 CHECKSHADOW="false" 14409 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14410 : ${with_logincap='maybe'} 14411 ;; 14412 *-*-dragonfly*) 14413 OSDEFS="${OSDEFS} -D_BSD_SOURCE" 14414 if test "${with_skey-'no'}" = "yes"; then 14415 SUDO_LIBS="${SUDO_LIBS} -lmd" 14416 fi 14417 CHECKSHADOW="false" 14418 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14419 : ${with_logincap='yes'} 14420 ;; 14421 *-*-*bsd*) 14422 CHECKSHADOW="false" 14423 ;; 14424 *-*-darwin*) 14425 # Darwin has a real setreuid(2) starting with 9.0 14426 if test $OSMAJOR -lt 9; then 14427 SKIP_SETREUID=yes 14428 fi 14429 CHECKSHADOW="false" 14430 test -z "$with_pam" && AUTH_EXCL_DEF="PAM" 14431 : ${with_logincap='yes'} 14432 ;; 14433 *-*-nextstep*) 14434 # lockf() on is broken on the NeXT -- use flock instead 14435 ac_cv_func_lockf=no 14436 ac_cv_func_flock=yes 14437 ;; 14438 *-*-*sysv4*) 14439 : ${mansectsu='1m'} 14440 : ${mansectform='4'} 14441 : ${with_rpath='yes'} 14442 ;; 14443 *-*-sysv*) 14444 : ${mansectsu='1m'} 14445 : ${mansectform='4'} 14446 ;; 14447 *-gnu*) 14448 OSDEFS="${OSDEFS} -D_GNU_SOURCE" 14449 ;; 14450esac 14451 14452AUTH_REG=${AUTH_REG# } 14453AUTH_EXCL=${AUTH_EXCL# } 14454if test -n "$AUTH_EXCL"; then 14455 set -- $AUTH_EXCL 14456 if test $# != 1; then 14457 as_fn_error $? "More than one mutually exclusive authentication method specified: $AUTH_EXCL" "$LINENO" 5 14458 fi 14459 if test -n "$AUTH_REG"; then 14460 as_fn_error $? "Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" "$LINENO" 5 14461 fi 14462fi 14463if test X"${with_skey}${with_opie}" = X"yesyes"; then 14464 as_fn_error $? "\"cannot use both S/Key and OPIE\"" "$LINENO" 5 14465fi 14466 14467: ${mansectsu='8'} 14468: ${mansectform='5'} 14469 14470if test -n "$with_libpath"; then 14471 for i in ${with_libpath}; do 14472 14473 if test X"$with_rpath" = X"yes"; then 14474 case "$host" in 14475 *-*-hpux*) LDFLAGS="${LDFLAGS} -L$i -Wl,+b,$i" 14476 ;; 14477 *) LDFLAGS="${LDFLAGS} -L$i -Wl,-R$i" 14478 ;; 14479 esac 14480 else 14481 LDFLAGS="${LDFLAGS} -L$i" 14482 fi 14483 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 14484 blibpath_add="${blibpath_add}:$i" 14485 fi 14486 14487 done 14488fi 14489if test -n "$with_libraries"; then 14490 for i in ${with_libraries}; do 14491 case $i in 14492 -l*) ;; 14493 *.a) ;; 14494 *.o) ;; 14495 *) i="-l${i}";; 14496 esac 14497 LIBS="${LIBS} ${i}" 14498 done 14499fi 14500 14501if test $ac_cv_c_compiler_gnu = yes; then 14502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 14503$as_echo_n "checking whether $CC needs -traditional... " >&6; } 14504if ${ac_cv_prog_gcc_traditional+:} false; then : 14505 $as_echo_n "(cached) " >&6 14506else 14507 ac_pattern="Autoconf.*'x'" 14508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14509/* end confdefs.h. */ 14510#include <sgtty.h> 14511Autoconf TIOCGETP 14512_ACEOF 14513if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14514 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 14515 ac_cv_prog_gcc_traditional=yes 14516else 14517 ac_cv_prog_gcc_traditional=no 14518fi 14519rm -f conftest* 14520 14521 14522 if test $ac_cv_prog_gcc_traditional = no; then 14523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14524/* end confdefs.h. */ 14525#include <termio.h> 14526Autoconf TCGETA 14527_ACEOF 14528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14529 $EGREP "$ac_pattern" >/dev/null 2>&1; then : 14530 ac_cv_prog_gcc_traditional=yes 14531fi 14532rm -f conftest* 14533 14534 fi 14535fi 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 14537$as_echo "$ac_cv_prog_gcc_traditional" >&6; } 14538 if test $ac_cv_prog_gcc_traditional = yes; then 14539 CC="$CC -traditional" 14540 fi 14541fi 14542 14543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14544$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14545if ${ac_cv_c_const+:} false; then : 14546 $as_echo_n "(cached) " >&6 14547else 14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14549/* end confdefs.h. */ 14550 14551int 14552main () 14553{ 14554/* FIXME: Include the comments suggested by Paul. */ 14555#ifndef __cplusplus 14556 /* Ultrix mips cc rejects this. */ 14557 typedef int charset[2]; 14558 const charset cs; 14559 /* SunOS 4.1.1 cc rejects this. */ 14560 char const *const *pcpcc; 14561 char **ppc; 14562 /* NEC SVR4.0.2 mips cc rejects this. */ 14563 struct point {int x, y;}; 14564 static struct point const zero = {0,0}; 14565 /* AIX XL C 1.02.0.0 rejects this. 14566 It does not let you subtract one const X* pointer from another in 14567 an arm of an if-expression whose if-part is not a constant 14568 expression */ 14569 const char *g = "string"; 14570 pcpcc = &g + (g ? g-g : 0); 14571 /* HPUX 7.0 cc rejects these. */ 14572 ++pcpcc; 14573 ppc = (char**) pcpcc; 14574 pcpcc = (char const *const *) ppc; 14575 { /* SCO 3.2v4 cc rejects this. */ 14576 char *t; 14577 char const *s = 0 ? (char *) 0 : (char const *) 0; 14578 14579 *t++ = 0; 14580 if (s) return 0; 14581 } 14582 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14583 int x[] = {25, 17}; 14584 const int *foo = &x[0]; 14585 ++foo; 14586 } 14587 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14588 typedef const int *iptr; 14589 iptr p = 0; 14590 ++p; 14591 } 14592 { /* AIX XL C 1.02.0.0 rejects this saying 14593 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14594 struct s { int j; const int *ap[3]; }; 14595 struct s *b; b->j = 5; 14596 } 14597 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14598 const int foo = 10; 14599 if (!foo) return 0; 14600 } 14601 return !cs[0] && !zero.x; 14602#endif 14603 14604 ; 14605 return 0; 14606} 14607_ACEOF 14608if ac_fn_c_try_compile "$LINENO"; then : 14609 ac_cv_c_const=yes 14610else 14611 ac_cv_c_const=no 14612fi 14613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14614fi 14615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14616$as_echo "$ac_cv_c_const" >&6; } 14617if test $ac_cv_c_const = no; then 14618 14619$as_echo "#define const /**/" >>confdefs.h 14620 14621fi 14622 14623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 14624$as_echo_n "checking for working volatile... " >&6; } 14625if ${ac_cv_c_volatile+:} false; then : 14626 $as_echo_n "(cached) " >&6 14627else 14628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14629/* end confdefs.h. */ 14630 14631int 14632main () 14633{ 14634 14635volatile int x; 14636int * volatile y = (int *) 0; 14637return !x && !y; 14638 ; 14639 return 0; 14640} 14641_ACEOF 14642if ac_fn_c_try_compile "$LINENO"; then : 14643 ac_cv_c_volatile=yes 14644else 14645 ac_cv_c_volatile=no 14646fi 14647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14648fi 14649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 14650$as_echo "$ac_cv_c_volatile" >&6; } 14651if test $ac_cv_c_volatile = no; then 14652 14653$as_echo "#define volatile /**/" >>confdefs.h 14654 14655fi 14656 14657 14658for ac_prog in 'bison -y' byacc 14659do 14660 # Extract the first word of "$ac_prog", so it can be a program name with args. 14661set dummy $ac_prog; ac_word=$2 14662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14663$as_echo_n "checking for $ac_word... " >&6; } 14664if ${ac_cv_prog_YACC+:} false; then : 14665 $as_echo_n "(cached) " >&6 14666else 14667 if test -n "$YACC"; then 14668 ac_cv_prog_YACC="$YACC" # Let the user override the test. 14669else 14670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14671for as_dir in $PATH 14672do 14673 IFS=$as_save_IFS 14674 test -z "$as_dir" && as_dir=. 14675 for ac_exec_ext in '' $ac_executable_extensions; do 14676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14677 ac_cv_prog_YACC="$ac_prog" 14678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14679 break 2 14680 fi 14681done 14682 done 14683IFS=$as_save_IFS 14684 14685fi 14686fi 14687YACC=$ac_cv_prog_YACC 14688if test -n "$YACC"; then 14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 14690$as_echo "$YACC" >&6; } 14691else 14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14693$as_echo "no" >&6; } 14694fi 14695 14696 14697 test -n "$YACC" && break 14698done 14699test -n "$YACC" || YACC="yacc" 14700 14701# Extract the first word of "flex", so it can be a program name with args. 14702set dummy flex; ac_word=$2 14703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14704$as_echo_n "checking for $ac_word... " >&6; } 14705if ${ac_cv_path_FLEX+:} false; then : 14706 $as_echo_n "(cached) " >&6 14707else 14708 case $FLEX in 14709 [\\/]* | ?:[\\/]*) 14710 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path. 14711 ;; 14712 *) 14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14714for as_dir in $PATH 14715do 14716 IFS=$as_save_IFS 14717 test -z "$as_dir" && as_dir=. 14718 for ac_exec_ext in '' $ac_executable_extensions; do 14719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14720 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext" 14721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14722 break 2 14723 fi 14724done 14725 done 14726IFS=$as_save_IFS 14727 14728 test -z "$ac_cv_path_FLEX" && ac_cv_path_FLEX="flex" 14729 ;; 14730esac 14731fi 14732FLEX=$ac_cv_path_FLEX 14733if test -n "$FLEX"; then 14734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5 14735$as_echo "$FLEX" >&6; } 14736else 14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14738$as_echo "no" >&6; } 14739fi 14740 14741 14742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mv" >&5 14743$as_echo_n "checking for mv... " >&6; } 14744found=no 14745for p in "/usr/bin/mv" "/bin/mv" "/usr/ucb/mv" "/usr/sbin/mv"; do 14746 if test -f "$p"; then 14747 found=yes 14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5 14749$as_echo "$p" >&6; } 14750 cat >>confdefs.h <<EOF 14751#define _PATH_MV "$p" 14752EOF 14753 14754 break 14755 fi 14756done 14757if test X"$found" != X"yes"; then 14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14759$as_echo "not found" >&6; } 14760fi 14761 14762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bourne shell" >&5 14763$as_echo_n "checking for bourne shell... " >&6; } 14764found=no 14765for p in "/bin/sh" "/usr/bin/sh" "/sbin/sh" "/usr/sbin/sh" "/bin/ksh" "/usr/bin/ksh" "/bin/bash" "/usr/bin/bash"; do 14766 if test -f "$p"; then 14767 found=yes 14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5 14769$as_echo "$p" >&6; } 14770 cat >>confdefs.h <<EOF 14771#define _PATH_BSHELL "$p" 14772EOF 14773 14774 break 14775 fi 14776done 14777if test X"$found" != X"yes"; then 14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14779$as_echo "not found" >&6; } 14780fi 14781 14782if test -z "$with_sendmail"; then 14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendmail" >&5 14784$as_echo_n "checking for sendmail... " >&6; } 14785found=no 14786for p in "/usr/sbin/sendmail" "/usr/lib/sendmail" "/usr/etc/sendmail" "/usr/ucblib/sendmail" "/usr/local/lib/sendmail" "/usr/local/bin/sendmail"; do 14787 if test -f "$p"; then 14788 found=yes 14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $p" >&5 14790$as_echo "$p" >&6; } 14791 cat >>confdefs.h <<EOF 14792#define _PATH_SUDO_SENDMAIL "$p" 14793EOF 14794 14795 break 14796 fi 14797done 14798if test X"$found" != X"yes"; then 14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14800$as_echo "not found" >&6; } 14801fi 14802 14803fi 14804if test -z "$with_editor"; then 14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for vi" >&5 14806$as_echo_n "checking for vi... " >&6; } 14807found=no 14808for editor in "/usr/bin/vi" "/bin/vi" "/usr/ucb/vi" "/usr/bsd/vi" "/usr/local/bin/vi"; do 14809 if test -f "$editor"; then 14810 found=yes 14811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $editor" >&5 14812$as_echo "$editor" >&6; } 14813 cat >>confdefs.h <<EOF 14814#define _PATH_VI "$editor" 14815EOF 14816 14817 break 14818 fi 14819done 14820if test X"$found" != X"yes"; then 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 14822$as_echo "not found" >&6; } 14823fi 14824 14825fi 14826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which syslog facility sudo should log with" >&5 14827$as_echo_n "checking which syslog facility sudo should log with... " >&6; } 14828if test X"$with_logfac" = X""; then 14829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14830/* end confdefs.h. */ 14831#include <syslog.h> 14832int 14833main () 14834{ 14835int i = LOG_AUTHPRIV; (void)i; 14836 ; 14837 return 0; 14838} 14839_ACEOF 14840if ac_fn_c_try_compile "$LINENO"; then : 14841 logfac=authpriv 14842fi 14843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14844fi 14845 14846cat >>confdefs.h <<_ACEOF 14847#define LOGFAC "$logfac" 14848_ACEOF 14849 14850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $logfac" >&5 14851$as_echo "$logfac" >&6; } 14852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 14853$as_echo_n "checking for ANSI C header files... " >&6; } 14854if ${ac_cv_header_stdc+:} false; then : 14855 $as_echo_n "(cached) " >&6 14856else 14857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14858/* end confdefs.h. */ 14859#include <stdlib.h> 14860#include <stdarg.h> 14861#include <string.h> 14862#include <float.h> 14863 14864int 14865main () 14866{ 14867 14868 ; 14869 return 0; 14870} 14871_ACEOF 14872if ac_fn_c_try_compile "$LINENO"; then : 14873 ac_cv_header_stdc=yes 14874else 14875 ac_cv_header_stdc=no 14876fi 14877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14878 14879if test $ac_cv_header_stdc = yes; then 14880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 14881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14882/* end confdefs.h. */ 14883#include <string.h> 14884 14885_ACEOF 14886if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14887 $EGREP "memchr" >/dev/null 2>&1; then : 14888 14889else 14890 ac_cv_header_stdc=no 14891fi 14892rm -f conftest* 14893 14894fi 14895 14896if test $ac_cv_header_stdc = yes; then 14897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14899/* end confdefs.h. */ 14900#include <stdlib.h> 14901 14902_ACEOF 14903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14904 $EGREP "free" >/dev/null 2>&1; then : 14905 14906else 14907 ac_cv_header_stdc=no 14908fi 14909rm -f conftest* 14910 14911fi 14912 14913if test $ac_cv_header_stdc = yes; then 14914 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 14915 if test "$cross_compiling" = yes; then : 14916 : 14917else 14918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14919/* end confdefs.h. */ 14920#include <ctype.h> 14921#include <stdlib.h> 14922#if ((' ' & 0x0FF) == 0x020) 14923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 14924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 14925#else 14926# define ISLOWER(c) \ 14927 (('a' <= (c) && (c) <= 'i') \ 14928 || ('j' <= (c) && (c) <= 'r') \ 14929 || ('s' <= (c) && (c) <= 'z')) 14930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 14931#endif 14932 14933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 14934int 14935main () 14936{ 14937 int i; 14938 for (i = 0; i < 256; i++) 14939 if (XOR (islower (i), ISLOWER (i)) 14940 || toupper (i) != TOUPPER (i)) 14941 return 2; 14942 return 0; 14943} 14944_ACEOF 14945if ac_fn_c_try_run "$LINENO"; then : 14946 14947else 14948 ac_cv_header_stdc=no 14949fi 14950rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14951 conftest.$ac_objext conftest.beam conftest.$ac_ext 14952fi 14953 14954fi 14955fi 14956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 14957$as_echo "$ac_cv_header_stdc" >&6; } 14958if test $ac_cv_header_stdc = yes; then 14959 14960$as_echo "#define STDC_HEADERS 1" >>confdefs.h 14961 14962fi 14963 14964ac_header_dirent=no 14965for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 14966 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 14967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 14968$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 14969if eval \${$as_ac_Header+:} false; then : 14970 $as_echo_n "(cached) " >&6 14971else 14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14973/* end confdefs.h. */ 14974#include <sys/types.h> 14975#include <$ac_hdr> 14976 14977int 14978main () 14979{ 14980if ((DIR *) 0) 14981return 0; 14982 ; 14983 return 0; 14984} 14985_ACEOF 14986if ac_fn_c_try_compile "$LINENO"; then : 14987 eval "$as_ac_Header=yes" 14988else 14989 eval "$as_ac_Header=no" 14990fi 14991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14992fi 14993eval ac_res=\$$as_ac_Header 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14995$as_echo "$ac_res" >&6; } 14996if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14997 cat >>confdefs.h <<_ACEOF 14998#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 14999_ACEOF 15000 15001ac_header_dirent=$ac_hdr; break 15002fi 15003 15004done 15005# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 15006if test $ac_header_dirent = dirent.h; then 15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15008$as_echo_n "checking for library containing opendir... " >&6; } 15009if ${ac_cv_search_opendir+:} false; then : 15010 $as_echo_n "(cached) " >&6 15011else 15012 ac_func_search_save_LIBS=$LIBS 15013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15014/* end confdefs.h. */ 15015 15016/* Override any GCC internal prototype to avoid an error. 15017 Use char because int might match the return type of a GCC 15018 builtin and then its argument prototype would still apply. */ 15019#ifdef __cplusplus 15020extern "C" 15021#endif 15022char opendir (); 15023int 15024main () 15025{ 15026return opendir (); 15027 ; 15028 return 0; 15029} 15030_ACEOF 15031for ac_lib in '' dir; do 15032 if test -z "$ac_lib"; then 15033 ac_res="none required" 15034 else 15035 ac_res=-l$ac_lib 15036 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15037 fi 15038 if ac_fn_c_try_link "$LINENO"; then : 15039 ac_cv_search_opendir=$ac_res 15040fi 15041rm -f core conftest.err conftest.$ac_objext \ 15042 conftest$ac_exeext 15043 if ${ac_cv_search_opendir+:} false; then : 15044 break 15045fi 15046done 15047if ${ac_cv_search_opendir+:} false; then : 15048 15049else 15050 ac_cv_search_opendir=no 15051fi 15052rm conftest.$ac_ext 15053LIBS=$ac_func_search_save_LIBS 15054fi 15055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15056$as_echo "$ac_cv_search_opendir" >&6; } 15057ac_res=$ac_cv_search_opendir 15058if test "$ac_res" != no; then : 15059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15060 15061fi 15062 15063else 15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 15065$as_echo_n "checking for library containing opendir... " >&6; } 15066if ${ac_cv_search_opendir+:} false; then : 15067 $as_echo_n "(cached) " >&6 15068else 15069 ac_func_search_save_LIBS=$LIBS 15070cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15071/* end confdefs.h. */ 15072 15073/* Override any GCC internal prototype to avoid an error. 15074 Use char because int might match the return type of a GCC 15075 builtin and then its argument prototype would still apply. */ 15076#ifdef __cplusplus 15077extern "C" 15078#endif 15079char opendir (); 15080int 15081main () 15082{ 15083return opendir (); 15084 ; 15085 return 0; 15086} 15087_ACEOF 15088for ac_lib in '' x; do 15089 if test -z "$ac_lib"; then 15090 ac_res="none required" 15091 else 15092 ac_res=-l$ac_lib 15093 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 15094 fi 15095 if ac_fn_c_try_link "$LINENO"; then : 15096 ac_cv_search_opendir=$ac_res 15097fi 15098rm -f core conftest.err conftest.$ac_objext \ 15099 conftest$ac_exeext 15100 if ${ac_cv_search_opendir+:} false; then : 15101 break 15102fi 15103done 15104if ${ac_cv_search_opendir+:} false; then : 15105 15106else 15107 ac_cv_search_opendir=no 15108fi 15109rm conftest.$ac_ext 15110LIBS=$ac_func_search_save_LIBS 15111fi 15112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 15113$as_echo "$ac_cv_search_opendir" >&6; } 15114ac_res=$ac_cv_search_opendir 15115if test "$ac_res" != no; then : 15116 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 15117 15118fi 15119 15120fi 15121 15122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 15123$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 15124if ${ac_cv_header_time+:} false; then : 15125 $as_echo_n "(cached) " >&6 15126else 15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15128/* end confdefs.h. */ 15129#include <sys/types.h> 15130#include <sys/time.h> 15131#include <time.h> 15132 15133int 15134main () 15135{ 15136if ((struct tm *) 0) 15137return 0; 15138 ; 15139 return 0; 15140} 15141_ACEOF 15142if ac_fn_c_try_compile "$LINENO"; then : 15143 ac_cv_header_time=yes 15144else 15145 ac_cv_header_time=no 15146fi 15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15148fi 15149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 15150$as_echo "$ac_cv_header_time" >&6; } 15151if test $ac_cv_header_time = yes; then 15152 15153$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 15154 15155fi 15156 15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 15158$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 15159if ${ac_cv_header_sys_types_h_makedev+:} false; then : 15160 $as_echo_n "(cached) " >&6 15161else 15162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15163/* end confdefs.h. */ 15164#include <sys/types.h> 15165int 15166main () 15167{ 15168return makedev(0, 0); 15169 ; 15170 return 0; 15171} 15172_ACEOF 15173if ac_fn_c_try_link "$LINENO"; then : 15174 ac_cv_header_sys_types_h_makedev=yes 15175else 15176 ac_cv_header_sys_types_h_makedev=no 15177fi 15178rm -f core conftest.err conftest.$ac_objext \ 15179 conftest$ac_exeext conftest.$ac_ext 15180 15181fi 15182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 15183$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 15184 15185if test $ac_cv_header_sys_types_h_makedev = no; then 15186ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 15187if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 15188 15189$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 15190 15191fi 15192 15193 15194 15195 if test $ac_cv_header_sys_mkdev_h = no; then 15196 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 15197if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 15198 15199$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 15200 15201fi 15202 15203 15204 fi 15205fi 15206 15207for ac_header in malloc.h netgroup.h paths.h spawn.h utime.h sys/sockio.h sys/bsdtypes.h sys/select.h sys/stropts.h sys/sysmacros.h 15208do : 15209 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15210ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15211if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15212 cat >>confdefs.h <<_ACEOF 15213#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15214_ACEOF 15215 15216fi 15217 15218done 15219 15220for ac_header in procfs.h sys/procfs.h 15221do : 15222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15223ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15225 cat >>confdefs.h <<_ACEOF 15226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15227_ACEOF 15228 ac_fn_c_check_member "$LINENO" "struct psinfo" "pr_ttydev" "ac_cv_member_struct_psinfo_pr_ttydev" "$ac_includes_default 15229#ifdef HAVE_PROCFS_H 15230#include <procfs.h> 15231#endif 15232#ifdef HAVE_SYS_PROCFS_H 15233#include <sys/procfs.h> 15234#endif 15235 15236" 15237if test "x$ac_cv_member_struct_psinfo_pr_ttydev" = xyes; then : 15238 15239cat >>confdefs.h <<_ACEOF 15240#define HAVE_STRUCT_PSINFO_PR_TTYDEV 1 15241_ACEOF 15242 15243for ac_func in _ttyname_dev 15244do : 15245 ac_fn_c_check_func "$LINENO" "_ttyname_dev" "ac_cv_func__ttyname_dev" 15246if test "x$ac_cv_func__ttyname_dev" = xyes; then : 15247 cat >>confdefs.h <<_ACEOF 15248#define HAVE__TTYNAME_DEV 1 15249_ACEOF 15250 15251fi 15252done 15253 15254fi 15255 15256break 15257fi 15258 15259done 15260 15261# Check whether --enable-largefile was given. 15262if test "${enable_largefile+set}" = set; then : 15263 enableval=$enable_largefile; 15264fi 15265 15266if test "$enable_largefile" != no; then 15267 15268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 15269$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 15270if ${ac_cv_sys_largefile_CC+:} false; then : 15271 $as_echo_n "(cached) " >&6 15272else 15273 ac_cv_sys_largefile_CC=no 15274 if test "$GCC" != yes; then 15275 ac_save_CC=$CC 15276 while :; do 15277 # IRIX 6.2 and later do not support large files by default, 15278 # so use the C compiler's -n32 option if that helps. 15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15280/* end confdefs.h. */ 15281#include <sys/types.h> 15282 /* Check that off_t can represent 2**63 - 1 correctly. 15283 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15284 since some C++ compilers masquerading as C compilers 15285 incorrectly reject 9223372036854775807. */ 15286#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15287 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15288 && LARGE_OFF_T % 2147483647 == 1) 15289 ? 1 : -1]; 15290int 15291main () 15292{ 15293 15294 ; 15295 return 0; 15296} 15297_ACEOF 15298 if ac_fn_c_try_compile "$LINENO"; then : 15299 break 15300fi 15301rm -f core conftest.err conftest.$ac_objext 15302 CC="$CC -n32" 15303 if ac_fn_c_try_compile "$LINENO"; then : 15304 ac_cv_sys_largefile_CC=' -n32'; break 15305fi 15306rm -f core conftest.err conftest.$ac_objext 15307 break 15308 done 15309 CC=$ac_save_CC 15310 rm -f conftest.$ac_ext 15311 fi 15312fi 15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 15314$as_echo "$ac_cv_sys_largefile_CC" >&6; } 15315 if test "$ac_cv_sys_largefile_CC" != no; then 15316 CC=$CC$ac_cv_sys_largefile_CC 15317 fi 15318 15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 15320$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 15321if ${ac_cv_sys_file_offset_bits+:} false; then : 15322 $as_echo_n "(cached) " >&6 15323else 15324 while :; do 15325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15326/* end confdefs.h. */ 15327#include <sys/types.h> 15328 /* Check that off_t can represent 2**63 - 1 correctly. 15329 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15330 since some C++ compilers masquerading as C compilers 15331 incorrectly reject 9223372036854775807. */ 15332#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15333 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15334 && LARGE_OFF_T % 2147483647 == 1) 15335 ? 1 : -1]; 15336int 15337main () 15338{ 15339 15340 ; 15341 return 0; 15342} 15343_ACEOF 15344if ac_fn_c_try_compile "$LINENO"; then : 15345 ac_cv_sys_file_offset_bits=no; break 15346fi 15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15349/* end confdefs.h. */ 15350#define _FILE_OFFSET_BITS 64 15351#include <sys/types.h> 15352 /* Check that off_t can represent 2**63 - 1 correctly. 15353 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15354 since some C++ compilers masquerading as C compilers 15355 incorrectly reject 9223372036854775807. */ 15356#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15357 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15358 && LARGE_OFF_T % 2147483647 == 1) 15359 ? 1 : -1]; 15360int 15361main () 15362{ 15363 15364 ; 15365 return 0; 15366} 15367_ACEOF 15368if ac_fn_c_try_compile "$LINENO"; then : 15369 ac_cv_sys_file_offset_bits=64; break 15370fi 15371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15372 ac_cv_sys_file_offset_bits=unknown 15373 break 15374done 15375fi 15376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 15377$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 15378case $ac_cv_sys_file_offset_bits in #( 15379 no | unknown) ;; 15380 *) 15381cat >>confdefs.h <<_ACEOF 15382#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 15383_ACEOF 15384;; 15385esac 15386rm -rf conftest* 15387 if test $ac_cv_sys_file_offset_bits = unknown; then 15388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 15389$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 15390if ${ac_cv_sys_large_files+:} false; then : 15391 $as_echo_n "(cached) " >&6 15392else 15393 while :; do 15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15395/* end confdefs.h. */ 15396#include <sys/types.h> 15397 /* Check that off_t can represent 2**63 - 1 correctly. 15398 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15399 since some C++ compilers masquerading as C compilers 15400 incorrectly reject 9223372036854775807. */ 15401#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15402 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15403 && LARGE_OFF_T % 2147483647 == 1) 15404 ? 1 : -1]; 15405int 15406main () 15407{ 15408 15409 ; 15410 return 0; 15411} 15412_ACEOF 15413if ac_fn_c_try_compile "$LINENO"; then : 15414 ac_cv_sys_large_files=no; break 15415fi 15416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15418/* end confdefs.h. */ 15419#define _LARGE_FILES 1 15420#include <sys/types.h> 15421 /* Check that off_t can represent 2**63 - 1 correctly. 15422 We can't simply define LARGE_OFF_T to be 9223372036854775807, 15423 since some C++ compilers masquerading as C compilers 15424 incorrectly reject 9223372036854775807. */ 15425#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 15426 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 15427 && LARGE_OFF_T % 2147483647 == 1) 15428 ? 1 : -1]; 15429int 15430main () 15431{ 15432 15433 ; 15434 return 0; 15435} 15436_ACEOF 15437if ac_fn_c_try_compile "$LINENO"; then : 15438 ac_cv_sys_large_files=1; break 15439fi 15440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15441 ac_cv_sys_large_files=unknown 15442 break 15443done 15444fi 15445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 15446$as_echo "$ac_cv_sys_large_files" >&6; } 15447case $ac_cv_sys_large_files in #( 15448 no | unknown) ;; 15449 *) 15450cat >>confdefs.h <<_ACEOF 15451#define _LARGE_FILES $ac_cv_sys_large_files 15452_ACEOF 15453;; 15454esac 15455rm -rf conftest* 15456 fi 15457fi 15458 15459case "$host" in 15460 *-*-hpux11.*) 15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED" >&5 15462$as_echo_n "checking whether sys/types.h needs _XOPEN_SOURCE_EXTENDED... " >&6; } 15463if ${sudo_cv_xopen_source_extended+:} false; then : 15464 $as_echo_n "(cached) " >&6 15465else 15466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15467/* end confdefs.h. */ 15468$ac_includes_default 15469 #include <sys/socket.h> 15470int 15471main () 15472{ 15473 15474 ; 15475 return 0; 15476} 15477_ACEOF 15478if ac_fn_c_try_compile "$LINENO"; then : 15479 sudo_cv_xopen_source_extended=no 15480else 15481 15482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15483/* end confdefs.h. */ 15484#define _XOPEN_SOURCE_EXTENDED 15485 $ac_includes_default 15486 #include <sys/socket.h> 15487int 15488main () 15489{ 15490 15491 ; 15492 return 0; 15493} 15494_ACEOF 15495if ac_fn_c_try_compile "$LINENO"; then : 15496 sudo_cv_xopen_source_extended=yes 15497else 15498 sudo_cv_xopen_source_extended=error 15499fi 15500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15501 15502fi 15503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15504fi 15505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_xopen_source_extended" >&5 15506$as_echo "$sudo_cv_xopen_source_extended" >&6; } 15507 if test "$sudo_cv_xopen_source_extended" = "yes"; then 15508 OSDEFS="${OSDEFS} -D_XOPEN_SOURCE_EXTENDED" 15509 cat >>confdefs.h <<\EOF 15510#define _XOPEN_SOURCE_EXTENDED 1 15511EOF 15512 15513 fi 15514 ;; 15515esac 15516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX termios" >&5 15517$as_echo_n "checking POSIX termios... " >&6; } 15518if ${ac_cv_sys_posix_termios+:} false; then : 15519 $as_echo_n "(cached) " >&6 15520else 15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15522/* end confdefs.h. */ 15523#include <sys/types.h> 15524#include <unistd.h> 15525#include <termios.h> 15526 15527int 15528main () 15529{ 15530/* SunOS 4.0.3 has termios.h but not the library calls. */ 15531 tcgetattr(0, 0); 15532 ; 15533 return 0; 15534} 15535_ACEOF 15536if ac_fn_c_try_link "$LINENO"; then : 15537 ac_cv_sys_posix_termios=yes 15538else 15539 ac_cv_sys_posix_termios=no 15540fi 15541rm -f core conftest.err conftest.$ac_objext \ 15542 conftest$ac_exeext conftest.$ac_ext 15543fi 15544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_posix_termios" >&5 15545$as_echo "$ac_cv_sys_posix_termios" >&6; } 15546 15547if test "$ac_cv_sys_posix_termios" = "yes"; then 15548 $as_echo "#define HAVE_TERMIOS_H 1" >>confdefs.h 15549 15550else 15551 for ac_header in termio.h 15552do : 15553 ac_fn_c_check_header_mongrel "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default" 15554if test "x$ac_cv_header_termio_h" = xyes; then : 15555 cat >>confdefs.h <<_ACEOF 15556#define HAVE_TERMIO_H 1 15557_ACEOF 15558 15559fi 15560 15561done 15562 15563fi 15564 15565maildir=no 15566if test X"$ac_cv_header_paths_h" = X"yes"; then 15567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15568/* end confdefs.h. */ 15569$ac_includes_default 15570#include <paths.h> 15571int 15572main () 15573{ 15574char *p = _PATH_MAILDIR; 15575 ; 15576 return 0; 15577} 15578_ACEOF 15579if ac_fn_c_try_compile "$LINENO"; then : 15580 maildir=yes 15581fi 15582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15583fi 15584if test $maildir = no; then 15585 # Solaris has maillock.h which defines MAILDIR 15586 for ac_header in maillock.h 15587do : 15588 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 15589if test "x$ac_cv_header_maillock_h" = xyes; then : 15590 cat >>confdefs.h <<_ACEOF 15591#define HAVE_MAILLOCK_H 1 15592_ACEOF 15593 15594 cat >>confdefs.h <<\EOF 15595#define _PATH_MAILDIR MAILDIR 15596EOF 15597 15598 maildir=yes 15599 15600fi 15601 15602done 15603 15604 if test $maildir = no; then 15605 for d in /var/mail /var/spool/mail /usr/spool/mail; do 15606 if test -d "$d"; then 15607 maildir=yes 15608 cat >>confdefs.h <<EOF 15609#define _PATH_MAILDIR "$d" 15610EOF 15611 15612 break 15613 fi 15614 done 15615 if test $maildir = no; then 15616 # unable to find mail dir, hope for the best 15617 cat >>confdefs.h <<EOF 15618#define _PATH_MAILDIR "/var/mail" 15619EOF 15620 15621 fi 15622 fi 15623fi 15624 15625if test ${with_logincap-'no'} != "no"; then 15626 for ac_header in login_cap.h 15627do : 15628 ac_fn_c_check_header_mongrel "$LINENO" "login_cap.h" "ac_cv_header_login_cap_h" "$ac_includes_default" 15629if test "x$ac_cv_header_login_cap_h" = xyes; then : 15630 cat >>confdefs.h <<_ACEOF 15631#define HAVE_LOGIN_CAP_H 1 15632_ACEOF 15633 LOGINCAP_USAGE='[-c class|-] '; LCMAN=1 15634 case "$OS" in 15635 freebsd|netbsd) SUDO_LIBS="${SUDO_LIBS} -lutil" 15636 ;; 15637 esac 15638 15639fi 15640 15641done 15642 15643fi 15644if test ${with_project-'no'} != "no"; then 15645 ac_fn_c_check_header_mongrel "$LINENO" "project.h" "ac_cv_header_project_h" "$ac_includes_default" 15646if test "x$ac_cv_header_project_h" = xyes; then : 15647 15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setproject in -lproject" >&5 15649$as_echo_n "checking for setproject in -lproject... " >&6; } 15650if ${ac_cv_lib_project_setproject+:} false; then : 15651 $as_echo_n "(cached) " >&6 15652else 15653 ac_check_lib_save_LIBS=$LIBS 15654LIBS="-lproject $LIBS" 15655cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15656/* end confdefs.h. */ 15657 15658/* Override any GCC internal prototype to avoid an error. 15659 Use char because int might match the return type of a GCC 15660 builtin and then its argument prototype would still apply. */ 15661#ifdef __cplusplus 15662extern "C" 15663#endif 15664char setproject (); 15665int 15666main () 15667{ 15668return setproject (); 15669 ; 15670 return 0; 15671} 15672_ACEOF 15673if ac_fn_c_try_link "$LINENO"; then : 15674 ac_cv_lib_project_setproject=yes 15675else 15676 ac_cv_lib_project_setproject=no 15677fi 15678rm -f core conftest.err conftest.$ac_objext \ 15679 conftest$ac_exeext conftest.$ac_ext 15680LIBS=$ac_check_lib_save_LIBS 15681fi 15682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_project_setproject" >&5 15683$as_echo "$ac_cv_lib_project_setproject" >&6; } 15684if test "x$ac_cv_lib_project_setproject" = xyes; then : 15685 15686 $as_echo "#define HAVE_PROJECT_H 1" >>confdefs.h 15687 15688 SUDO_LIBS="${SUDO_LIBS} -lproject" 15689 15690fi 15691 15692 15693fi 15694 15695 15696fi 15697ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 15698if test "x$ac_cv_type_mode_t" = xyes; then : 15699 15700else 15701 15702cat >>confdefs.h <<_ACEOF 15703#define mode_t int 15704_ACEOF 15705 15706fi 15707 15708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 15709$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 15710if ${ac_cv_type_uid_t+:} false; then : 15711 $as_echo_n "(cached) " >&6 15712else 15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15714/* end confdefs.h. */ 15715#include <sys/types.h> 15716 15717_ACEOF 15718if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15719 $EGREP "uid_t" >/dev/null 2>&1; then : 15720 ac_cv_type_uid_t=yes 15721else 15722 ac_cv_type_uid_t=no 15723fi 15724rm -f conftest* 15725 15726fi 15727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 15728$as_echo "$ac_cv_type_uid_t" >&6; } 15729if test $ac_cv_type_uid_t = no; then 15730 15731$as_echo "#define uid_t int" >>confdefs.h 15732 15733 15734$as_echo "#define gid_t int" >>confdefs.h 15735 15736fi 15737 15738ac_fn_c_check_type "$LINENO" "__signed char" "ac_cv_type___signed_char" "$ac_includes_default" 15739if test "x$ac_cv_type___signed_char" = xyes; then : 15740 15741else 15742 ac_fn_c_check_type "$LINENO" "signed char" "ac_cv_type_signed_char" "$ac_includes_default" 15743if test "x$ac_cv_type_signed_char" = xyes; then : 15744 $as_echo "#define __signed signed" >>confdefs.h 15745 15746else 15747 $as_echo "#define __signed /**/" >>confdefs.h 15748 15749fi 15750 15751fi 15752 15753ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "#include <sys/types.h> 15754#include <signal.h> 15755" 15756if test "x$ac_cv_type_sig_atomic_t" = xyes; then : 15757 15758else 15759 $as_echo "#define sig_atomic_t int" >>confdefs.h 15760 15761fi 15762 15763ac_fn_c_check_type "$LINENO" "sigaction_t" "ac_cv_type_sigaction_t" "#include <sys/types.h> 15764#include <signal.h> 15765" 15766if test "x$ac_cv_type_sigaction_t" = xyes; then : 15767 15768cat >>confdefs.h <<_ACEOF 15769#define HAVE_SIGACTION_T 1 15770_ACEOF 15771 15772 15773fi 15774 15775ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "#include <sys/types.h> 15776#if TIME_WITH_SYS_TIME 15777# include <sys/time.h> 15778#endif 15779#include <time.h> 15780" 15781if test "x$ac_cv_type_struct_timespec" = xyes; then : 15782 15783cat >>confdefs.h <<_ACEOF 15784#define HAVE_STRUCT_TIMESPEC 1 15785_ACEOF 15786 15787 15788fi 15789 15790ac_fn_c_check_type "$LINENO" "struct in6_addr" "ac_cv_type_struct_in6_addr" "#include <sys/types.h> 15791#include <netinet/in.h> 15792" 15793if test "x$ac_cv_type_struct_in6_addr" = xyes; then : 15794 15795cat >>confdefs.h <<_ACEOF 15796#define HAVE_STRUCT_IN6_ADDR 1 15797_ACEOF 15798 15799 15800fi 15801 15802 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 15804$as_echo_n "checking for long long int... " >&6; } 15805if ${ac_cv_type_long_long_int+:} false; then : 15806 $as_echo_n "(cached) " >&6 15807else 15808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15809/* end confdefs.h. */ 15810 15811 /* For now, do not test the preprocessor; as of 2007 there are too many 15812 implementations with broken preprocessors. Perhaps this can 15813 be revisited in 2012. In the meantime, code should not expect 15814 #if to work with literals wider than 32 bits. */ 15815 /* Test literals. */ 15816 long long int ll = 9223372036854775807ll; 15817 long long int nll = -9223372036854775807LL; 15818 unsigned long long int ull = 18446744073709551615ULL; 15819 /* Test constant expressions. */ 15820 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 15821 ? 1 : -1)]; 15822 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 15823 ? 1 : -1)]; 15824 int i = 63; 15825int 15826main () 15827{ 15828/* Test availability of runtime routines for shift and division. */ 15829 long long int llmax = 9223372036854775807ll; 15830 unsigned long long int ullmax = 18446744073709551615ull; 15831 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 15832 | (llmax / ll) | (llmax % ll) 15833 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 15834 | (ullmax / ull) | (ullmax % ull)); 15835 ; 15836 return 0; 15837} 15838 15839_ACEOF 15840if ac_fn_c_try_link "$LINENO"; then : 15841 if test "$cross_compiling" = yes; then : 15842 ac_cv_type_long_long_int=yes 15843else 15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15845/* end confdefs.h. */ 15846#include <limits.h> 15847 #ifndef LLONG_MAX 15848 # define HALF \ 15849 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 15850 # define LLONG_MAX (HALF - 1 + HALF) 15851 #endif 15852int 15853main () 15854{ 15855long long int n = 1; 15856 int i; 15857 for (i = 0; ; i++) 15858 { 15859 long long int m = n << i; 15860 if (m >> i != n) 15861 return 1; 15862 if (LLONG_MAX / 2 < m) 15863 break; 15864 } 15865 return 0; 15866 ; 15867 return 0; 15868} 15869_ACEOF 15870if ac_fn_c_try_run "$LINENO"; then : 15871 ac_cv_type_long_long_int=yes 15872else 15873 ac_cv_type_long_long_int=no 15874fi 15875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15876 conftest.$ac_objext conftest.beam conftest.$ac_ext 15877fi 15878 15879else 15880 ac_cv_type_long_long_int=no 15881fi 15882rm -f core conftest.err conftest.$ac_objext \ 15883 conftest$ac_exeext conftest.$ac_ext 15884fi 15885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 15886$as_echo "$ac_cv_type_long_long_int" >&6; } 15887 if test $ac_cv_type_long_long_int = yes; then 15888 15889$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 15890 15891 fi 15892 15893# The cast to long int works around a bug in the HP C Compiler 15894# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15895# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15896# This bug is HP SR number 8606223364. 15897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5 15898$as_echo_n "checking size of long int... " >&6; } 15899if ${ac_cv_sizeof_long_int+:} false; then : 15900 $as_echo_n "(cached) " >&6 15901else 15902 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int" "$ac_includes_default"; then : 15903 15904else 15905 if test "$ac_cv_type_long_int" = yes; then 15906 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15907$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15908as_fn_error 77 "cannot compute sizeof (long int) 15909See \`config.log' for more details" "$LINENO" 5; } 15910 else 15911 ac_cv_sizeof_long_int=0 15912 fi 15913fi 15914 15915fi 15916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5 15917$as_echo "$ac_cv_sizeof_long_int" >&6; } 15918 15919 15920 15921cat >>confdefs.h <<_ACEOF 15922#define SIZEOF_LONG_INT $ac_cv_sizeof_long_int 15923_ACEOF 15924 15925 15926ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 15927if test "x$ac_cv_type_size_t" = xyes; then : 15928 15929else 15930 15931cat >>confdefs.h <<_ACEOF 15932#define size_t unsigned int 15933_ACEOF 15934 15935fi 15936 15937ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 15938if test "x$ac_cv_type_ssize_t" = xyes; then : 15939 15940else 15941 15942cat >>confdefs.h <<_ACEOF 15943#define ssize_t int 15944_ACEOF 15945 15946fi 15947 15948ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" 15949if test "x$ac_cv_type_dev_t" = xyes; then : 15950 15951else 15952 15953cat >>confdefs.h <<_ACEOF 15954#define dev_t int 15955_ACEOF 15956 15957fi 15958 15959ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" 15960if test "x$ac_cv_type_ino_t" = xyes; then : 15961 15962else 15963 15964cat >>confdefs.h <<_ACEOF 15965#define ino_t unsigned int 15966_ACEOF 15967 15968fi 15969 15970 15971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking max length of uid_t" >&5 15972$as_echo_n "checking max length of uid_t... " >&6; } 15973if ${sudo_cv_uid_t_len+:} false; then : 15974 $as_echo_n "(cached) " >&6 15975else 15976 rm -f conftestdata 15977if test "$cross_compiling" = yes; then : 15978 sudo_cv_uid_t_len=10 15979else 15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15981/* end confdefs.h. */ 15982#include <stdio.h> 15983#include <pwd.h> 15984#include <limits.h> 15985#include <sys/types.h> 15986#include <sys/param.h> 15987main() { 15988 FILE *f; 15989 char b[1024]; 15990 uid_t u = (uid_t) -1; 15991 15992 if ((f = fopen("conftestdata", "w")) == NULL) 15993 exit(1); 15994 15995 (void) sprintf(b, "%lu", (unsigned long) u); 15996 (void) fprintf(f, "%d\n", strlen(b)); 15997 (void) fclose(f); 15998 exit(0); 15999} 16000_ACEOF 16001if ac_fn_c_try_run "$LINENO"; then : 16002 sudo_cv_uid_t_len=`cat conftestdata` 16003else 16004 sudo_cv_uid_t_len=10 16005fi 16006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16007 conftest.$ac_objext conftest.beam conftest.$ac_ext 16008fi 16009 16010 16011fi 16012 16013rm -f conftestdata 16014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_uid_t_len" >&5 16015$as_echo "$sudo_cv_uid_t_len" >&6; } 16016 16017cat >>confdefs.h <<_ACEOF 16018#define MAX_UID_T_LEN $sudo_cv_uid_t_len 16019_ACEOF 16020 16021 16022 16023 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" " #include <sys/types.h> 16024 #include <sys/socket.h> 16025 16026" 16027if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 16028 16029$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h 16030 16031fi 16032 16033 16034case "$DEFS" in 16035 *"RETSIGTYPE"*) ;; 16036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 16037$as_echo_n "checking return type of signal handlers... " >&6; } 16038if ${ac_cv_type_signal+:} false; then : 16039 $as_echo_n "(cached) " >&6 16040else 16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16042/* end confdefs.h. */ 16043#include <sys/types.h> 16044#include <signal.h> 16045 16046int 16047main () 16048{ 16049return *(signal (0, 0)) (0) == 1; 16050 ; 16051 return 0; 16052} 16053_ACEOF 16054if ac_fn_c_try_compile "$LINENO"; then : 16055 ac_cv_type_signal=int 16056else 16057 ac_cv_type_signal=void 16058fi 16059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16060fi 16061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 16062$as_echo "$ac_cv_type_signal" >&6; } 16063 16064cat >>confdefs.h <<_ACEOF 16065#define RETSIGTYPE $ac_cv_type_signal 16066_ACEOF 16067 16068;; 16069esac 16070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5 16071$as_echo_n "checking type of array argument to getgroups... " >&6; } 16072if ${ac_cv_type_getgroups+:} false; then : 16073 $as_echo_n "(cached) " >&6 16074else 16075 if test "$cross_compiling" = yes; then : 16076 ac_cv_type_getgroups=cross 16077else 16078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16079/* end confdefs.h. */ 16080/* Thanks to Mike Rendell for this test. */ 16081$ac_includes_default 16082#define NGID 256 16083#undef MAX 16084#define MAX(x, y) ((x) > (y) ? (x) : (y)) 16085 16086int 16087main () 16088{ 16089 gid_t gidset[NGID]; 16090 int i, n; 16091 union { gid_t gval; long int lval; } val; 16092 16093 val.lval = -1; 16094 for (i = 0; i < NGID; i++) 16095 gidset[i] = val.gval; 16096 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, 16097 gidset); 16098 /* Exit non-zero if getgroups seems to require an array of ints. This 16099 happens when gid_t is short int but getgroups modifies an array 16100 of ints. */ 16101 return n > 0 && gidset[n] != val.gval; 16102} 16103_ACEOF 16104if ac_fn_c_try_run "$LINENO"; then : 16105 ac_cv_type_getgroups=gid_t 16106else 16107 ac_cv_type_getgroups=int 16108fi 16109rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16110 conftest.$ac_objext conftest.beam conftest.$ac_ext 16111fi 16112 16113if test $ac_cv_type_getgroups = cross; then 16114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16115/* end confdefs.h. */ 16116#include <unistd.h> 16117 16118_ACEOF 16119if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16120 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then : 16121 ac_cv_type_getgroups=gid_t 16122else 16123 ac_cv_type_getgroups=int 16124fi 16125rm -f conftest* 16126 16127fi 16128fi 16129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5 16130$as_echo "$ac_cv_type_getgroups" >&6; } 16131 16132cat >>confdefs.h <<_ACEOF 16133#define GETGROUPS_T $ac_cv_type_getgroups 16134_ACEOF 16135 16136 16137ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 16138if test "x$ac_cv_type_size_t" = xyes; then : 16139 16140else 16141 16142cat >>confdefs.h <<_ACEOF 16143#define size_t unsigned int 16144_ACEOF 16145 16146fi 16147 16148ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" 16149if test "x$ac_cv_func_getgroups" = xyes; then : 16150 16151fi 16152 16153 16154# If we don't yet have getgroups, see if it's in -lbsd. 16155# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1. 16156ac_save_LIBS=$LIBS 16157if test $ac_cv_func_getgroups = no; then 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgroups in -lbsd" >&5 16159$as_echo_n "checking for getgroups in -lbsd... " >&6; } 16160if ${ac_cv_lib_bsd_getgroups+:} false; then : 16161 $as_echo_n "(cached) " >&6 16162else 16163 ac_check_lib_save_LIBS=$LIBS 16164LIBS="-lbsd $LIBS" 16165cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16166/* end confdefs.h. */ 16167 16168/* Override any GCC internal prototype to avoid an error. 16169 Use char because int might match the return type of a GCC 16170 builtin and then its argument prototype would still apply. */ 16171#ifdef __cplusplus 16172extern "C" 16173#endif 16174char getgroups (); 16175int 16176main () 16177{ 16178return getgroups (); 16179 ; 16180 return 0; 16181} 16182_ACEOF 16183if ac_fn_c_try_link "$LINENO"; then : 16184 ac_cv_lib_bsd_getgroups=yes 16185else 16186 ac_cv_lib_bsd_getgroups=no 16187fi 16188rm -f core conftest.err conftest.$ac_objext \ 16189 conftest$ac_exeext conftest.$ac_ext 16190LIBS=$ac_check_lib_save_LIBS 16191fi 16192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_getgroups" >&5 16193$as_echo "$ac_cv_lib_bsd_getgroups" >&6; } 16194if test "x$ac_cv_lib_bsd_getgroups" = xyes; then : 16195 GETGROUPS_LIB=-lbsd 16196fi 16197 16198fi 16199 16200# Run the program to test the functionality of the system-supplied 16201# getgroups function only if there is such a function. 16202if test $ac_cv_func_getgroups = yes; then 16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getgroups" >&5 16204$as_echo_n "checking for working getgroups... " >&6; } 16205if ${ac_cv_func_getgroups_works+:} false; then : 16206 $as_echo_n "(cached) " >&6 16207else 16208 if test "$cross_compiling" = yes; then : 16209 ac_cv_func_getgroups_works=no 16210else 16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16212/* end confdefs.h. */ 16213$ac_includes_default 16214int 16215main () 16216{ 16217/* On Ultrix 4.3, getgroups (0, 0) always fails. */ 16218 return getgroups (0, 0) == -1; 16219 ; 16220 return 0; 16221} 16222_ACEOF 16223if ac_fn_c_try_run "$LINENO"; then : 16224 ac_cv_func_getgroups_works=yes 16225else 16226 ac_cv_func_getgroups_works=no 16227fi 16228rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16229 conftest.$ac_objext conftest.beam conftest.$ac_ext 16230fi 16231 16232 16233fi 16234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getgroups_works" >&5 16235$as_echo "$ac_cv_func_getgroups_works" >&6; } 16236else 16237 ac_cv_func_getgroups_works=no 16238fi 16239if test $ac_cv_func_getgroups_works = yes; then 16240 16241$as_echo "#define HAVE_GETGROUPS 1" >>confdefs.h 16242 16243fi 16244LIBS=$ac_save_LIBS 16245 16246for ac_func in glob strchr strrchr memchr memcpy memset sysconf tzset \ 16247 strftime setrlimit initgroups getgroups fstat gettimeofday \ 16248 regcomp setlocale nl_langinfo getaddrinfo getsid setenv \ 16249 mbr_check_membership setrlimit64 16250do : 16251 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16252ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16253if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16254 cat >>confdefs.h <<_ACEOF 16255#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16256_ACEOF 16257 16258fi 16259done 16260 16261for ac_func in getline 16262do : 16263 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline" 16264if test "x$ac_cv_func_getline" = xyes; then : 16265 cat >>confdefs.h <<_ACEOF 16266#define HAVE_GETLINE 1 16267_ACEOF 16268 16269else 16270 16271 case " $LIBOBJS " in 16272 *" getline.$ac_objext "* ) ;; 16273 *) LIBOBJS="$LIBOBJS getline.$ac_objext" 16274 ;; 16275esac 16276 16277 for ac_func in fgetln 16278do : 16279 ac_fn_c_check_func "$LINENO" "fgetln" "ac_cv_func_fgetln" 16280if test "x$ac_cv_func_fgetln" = xyes; then : 16281 cat >>confdefs.h <<_ACEOF 16282#define HAVE_FGETLN 1 16283_ACEOF 16284 16285fi 16286done 16287 16288 16289fi 16290done 16291 16292for ac_func in setsid 16293do : 16294 ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 16295if test "x$ac_cv_func_setsid" = xyes; then : 16296 cat >>confdefs.h <<_ACEOF 16297#define HAVE_SETSID 1 16298_ACEOF 16299 16300else 16301 16302 case " $LIBOBJS " in 16303 *" setsid.$ac_objext "* ) ;; 16304 *) LIBOBJS="$LIBOBJS setsid.$ac_objext" 16305 ;; 16306esac 16307 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 16309$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 16310if ${ac_cv_func_setpgrp_void+:} false; then : 16311 $as_echo_n "(cached) " >&6 16312else 16313 if test "$cross_compiling" = yes; then : 16314 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 16315else 16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16317/* end confdefs.h. */ 16318$ac_includes_default 16319int 16320main () 16321{ 16322/* If this system has a BSD-style setpgrp which takes arguments, 16323 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 16324 exit successfully. */ 16325 return setpgrp (1,1) != -1; 16326 ; 16327 return 0; 16328} 16329_ACEOF 16330if ac_fn_c_try_run "$LINENO"; then : 16331 ac_cv_func_setpgrp_void=no 16332else 16333 ac_cv_func_setpgrp_void=yes 16334fi 16335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16336 conftest.$ac_objext conftest.beam conftest.$ac_ext 16337fi 16338 16339fi 16340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 16341$as_echo "$ac_cv_func_setpgrp_void" >&6; } 16342if test $ac_cv_func_setpgrp_void = yes; then 16343 16344$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 16345 16346fi 16347 16348 16349fi 16350done 16351 16352if test "$enable_hardening" != "no"; then 16353 O_CPPFLAGS="$CPPFLAGS" 16354 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" 16355 ac_fn_c_check_func "$LINENO" "__sprintf_chk" "ac_cv_func___sprintf_chk" 16356if test "x$ac_cv_func___sprintf_chk" = xyes; then : 16357 16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16359/* end confdefs.h. */ 16360 16361int 16362main () 16363{ 16364char buf[4]; (void)sprintf(buf, "%s", "foo"); 16365 ; 16366 return 0; 16367} 16368_ACEOF 16369if ac_fn_c_try_link "$LINENO"; then : 16370 OSDEFS="${OSDEFS} -D_FORTIFY_SOURCE=2" 16371fi 16372rm -f core conftest.err conftest.$ac_objext \ 16373 conftest$ac_exeext conftest.$ac_ext 16374 16375fi 16376 16377 CPPFLAGS="$O_CPPFLAGS" 16378fi 16379 16380for ac_func in getutxid getutid 16381do : 16382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16383ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16384if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16385 cat >>confdefs.h <<_ACEOF 16386#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16387_ACEOF 16388 break 16389fi 16390done 16391 16392 16393for ac_func in sysctl 16394do : 16395 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl" 16396if test "x$ac_cv_func_sysctl" = xyes; then : 16397 cat >>confdefs.h <<_ACEOF 16398#define HAVE_SYSCTL 1 16399_ACEOF 16400 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_tdev" "ac_cv_member_struct_kinfo_proc_ki_tdev" " 16401 #include <sys/param.h> 16402 #include <sys/sysctl.h> 16403 #include <sys/user.h> 16404 16405" 16406if test "x$ac_cv_member_struct_kinfo_proc_ki_tdev" = xyes; then : 16407 16408cat >>confdefs.h <<_ACEOF 16409#define HAVE_STRUCT_KINFO_PROC_KI_TDEV 1 16410_ACEOF 16411 16412 16413else 16414 16415 ac_fn_c_check_member "$LINENO" "struct kinfo_proc2" "p_tdev" "ac_cv_member_struct_kinfo_proc2_p_tdev" " 16416 #include <sys/param.h> 16417 #include <sys/sysctl.h> 16418 16419" 16420if test "x$ac_cv_member_struct_kinfo_proc2_p_tdev" = xyes; then : 16421 16422cat >>confdefs.h <<_ACEOF 16423#define HAVE_STRUCT_KINFO_PROC2_P_TDEV 1 16424_ACEOF 16425 16426 16427else 16428 16429 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_tdev" "ac_cv_member_struct_kinfo_proc_p_tdev" " 16430 #include <sys/param.h> 16431 #include <sys/sysctl.h> 16432 16433" 16434if test "x$ac_cv_member_struct_kinfo_proc_p_tdev" = xyes; then : 16435 16436cat >>confdefs.h <<_ACEOF 16437#define HAVE_STRUCT_KINFO_PROC_P_TDEV 1 16438_ACEOF 16439 16440 16441else 16442 16443 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "kp_eproc.e_tdev" "ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" " 16444 #include <sys/param.h> 16445 #include <sys/sysctl.h> 16446 16447" 16448if test "x$ac_cv_member_struct_kinfo_proc_kp_eproc_e_tdev" = xyes; then : 16449 16450cat >>confdefs.h <<_ACEOF 16451#define HAVE_STRUCT_KINFO_PROC_KP_EPROC_E_TDEV 1 16452_ACEOF 16453 16454 16455fi 16456 16457 16458fi 16459 16460 16461fi 16462 16463 16464fi 16465 16466 16467fi 16468done 16469 16470 16471for ac_func in openpty 16472do : 16473 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 16474if test "x$ac_cv_func_openpty" = xyes; then : 16475 cat >>confdefs.h <<_ACEOF 16476#define HAVE_OPENPTY 1 16477_ACEOF 16478 for ac_header in libutil.h util.h pty.h 16479do : 16480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16483 cat >>confdefs.h <<_ACEOF 16484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16485_ACEOF 16486 break 16487fi 16488 16489done 16490 16491else 16492 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 16494$as_echo_n "checking for openpty in -lutil... " >&6; } 16495if ${ac_cv_lib_util_openpty+:} false; then : 16496 $as_echo_n "(cached) " >&6 16497else 16498 ac_check_lib_save_LIBS=$LIBS 16499LIBS="-lutil $LIBS" 16500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16501/* end confdefs.h. */ 16502 16503/* Override any GCC internal prototype to avoid an error. 16504 Use char because int might match the return type of a GCC 16505 builtin and then its argument prototype would still apply. */ 16506#ifdef __cplusplus 16507extern "C" 16508#endif 16509char openpty (); 16510int 16511main () 16512{ 16513return openpty (); 16514 ; 16515 return 0; 16516} 16517_ACEOF 16518if ac_fn_c_try_link "$LINENO"; then : 16519 ac_cv_lib_util_openpty=yes 16520else 16521 ac_cv_lib_util_openpty=no 16522fi 16523rm -f core conftest.err conftest.$ac_objext \ 16524 conftest$ac_exeext conftest.$ac_ext 16525LIBS=$ac_check_lib_save_LIBS 16526fi 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 16528$as_echo "$ac_cv_lib_util_openpty" >&6; } 16529if test "x$ac_cv_lib_util_openpty" = xyes; then : 16530 16531 for ac_header in libutil.h util.h pty.h 16532do : 16533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16534ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16536 cat >>confdefs.h <<_ACEOF 16537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16538_ACEOF 16539 break 16540fi 16541 16542done 16543 16544 SUDO_LIBS="${SUDO_LIBS} -lutil" 16545 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 16546 16547 16548else 16549 16550 for ac_func in _getpty 16551do : 16552 ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" 16553if test "x$ac_cv_func__getpty" = xyes; then : 16554 cat >>confdefs.h <<_ACEOF 16555#define HAVE__GETPTY 1 16556_ACEOF 16557 16558else 16559 16560 for ac_func in grantpt 16561do : 16562 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 16563if test "x$ac_cv_func_grantpt" = xyes; then : 16564 cat >>confdefs.h <<_ACEOF 16565#define HAVE_GRANTPT 1 16566_ACEOF 16567 16568 for ac_func in posix_openpt 16569do : 16570 ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" 16571if test "x$ac_cv_func_posix_openpt" = xyes; then : 16572 cat >>confdefs.h <<_ACEOF 16573#define HAVE_POSIX_OPENPT 1 16574_ACEOF 16575 16576fi 16577done 16578 16579 16580else 16581 16582 for ac_func in revoke 16583do : 16584 ac_fn_c_check_func "$LINENO" "revoke" "ac_cv_func_revoke" 16585if test "x$ac_cv_func_revoke" = xyes; then : 16586 cat >>confdefs.h <<_ACEOF 16587#define HAVE_REVOKE 1 16588_ACEOF 16589 16590fi 16591done 16592 16593 16594fi 16595done 16596 16597 16598fi 16599done 16600 16601 16602fi 16603 16604 16605fi 16606done 16607 16608for ac_func in unsetenv 16609do : 16610 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv" 16611if test "x$ac_cv_func_unsetenv" = xyes; then : 16612 cat >>confdefs.h <<_ACEOF 16613#define HAVE_UNSETENV 1 16614_ACEOF 16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv returns void" >&5 16616$as_echo_n "checking whether unsetenv returns void... " >&6; } 16617if ${sudo_cv_func_unsetenv_void+:} false; then : 16618 $as_echo_n "(cached) " >&6 16619else 16620 if test "$cross_compiling" = yes; then : 16621 sudo_cv_func_unsetenv_void=no 16622else 16623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625$ac_includes_default 16626 int unsetenv(); 16627 16628int 16629main () 16630{ 16631 16632 return unsetenv("FOO") != 0; 16633 16634 ; 16635 return 0; 16636} 16637 16638_ACEOF 16639if ac_fn_c_try_run "$LINENO"; then : 16640 sudo_cv_func_unsetenv_void=no 16641else 16642 sudo_cv_func_unsetenv_void=yes 16643fi 16644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16645 conftest.$ac_objext conftest.beam conftest.$ac_ext 16646fi 16647 16648fi 16649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_unsetenv_void" >&5 16650$as_echo "$sudo_cv_func_unsetenv_void" >&6; } 16651 if test $sudo_cv_func_unsetenv_void = yes; then 16652 16653$as_echo "#define UNSETENV_VOID 1" >>confdefs.h 16654 16655 fi 16656 16657fi 16658done 16659 16660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether putenv has a const argument" >&5 16661$as_echo_n "checking whether putenv has a const argument... " >&6; } 16662if ${sudo_cv_func_putenv_const+:} false; then : 16663 $as_echo_n "(cached) " >&6 16664else 16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16666/* end confdefs.h. */ 16667$ac_includes_default 16668int putenv(const char *string) {return 0;} 16669int 16670main () 16671{ 16672 16673 ; 16674 return 0; 16675} 16676_ACEOF 16677if ac_fn_c_try_compile "$LINENO"; then : 16678 sudo_cv_func_putenv_const=yes 16679else 16680 sudo_cv_func_putenv_const=no 16681fi 16682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16683 16684fi 16685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_putenv_const" >&5 16686$as_echo "$sudo_cv_func_putenv_const" >&6; } 16687 if test $sudo_cv_func_putenv_const = yes; then 16688 16689$as_echo "#define PUTENV_CONST 1" >>confdefs.h 16690 16691 fi 16692 16693if test -z "$SKIP_SETRESUID"; then 16694 for ac_func in setresuid 16695do : 16696 ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 16697if test "x$ac_cv_func_setresuid" = xyes; then : 16698 cat >>confdefs.h <<_ACEOF 16699#define HAVE_SETRESUID 1 16700_ACEOF 16701 SKIP_SETREUID=yes 16702fi 16703done 16704 16705fi 16706if test -z "$SKIP_SETREUID"; then 16707 for ac_func in setreuid 16708do : 16709 ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 16710if test "x$ac_cv_func_setreuid" = xyes; then : 16711 cat >>confdefs.h <<_ACEOF 16712#define HAVE_SETREUID 1 16713_ACEOF 16714 SKIP_SETEUID=yes 16715fi 16716done 16717 16718fi 16719if test -z "$SKIP_SETEUID"; then 16720 for ac_func in seteuid 16721do : 16722 ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 16723if test "x$ac_cv_func_seteuid" = xyes; then : 16724 cat >>confdefs.h <<_ACEOF 16725#define HAVE_SETEUID 1 16726_ACEOF 16727 16728fi 16729done 16730 16731fi 16732if test X"$with_interfaces" != X"no"; then 16733 for ac_func in getifaddrs 16734do : 16735 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs" 16736if test "x$ac_cv_func_getifaddrs" = xyes; then : 16737 cat >>confdefs.h <<_ACEOF 16738#define HAVE_GETIFADDRS 1 16739_ACEOF 16740 for ac_func in freeifaddrs 16741do : 16742 ac_fn_c_check_func "$LINENO" "freeifaddrs" "ac_cv_func_freeifaddrs" 16743if test "x$ac_cv_func_freeifaddrs" = xyes; then : 16744 cat >>confdefs.h <<_ACEOF 16745#define HAVE_FREEIFADDRS 1 16746_ACEOF 16747 16748fi 16749done 16750 16751fi 16752done 16753 16754fi 16755if test -z "$BROKEN_GETCWD"; then 16756 ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 16757if test "x$ac_cv_func_getcwd" = xyes; then : 16758 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h 16759 16760else 16761 case " $LIBOBJS " in 16762 *" getcwd.$ac_objext "* ) ;; 16763 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 16764 ;; 16765esac 16766 16767fi 16768 16769 16770fi 16771for ac_func in lockf flock 16772do : 16773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16774ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16775if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16776 cat >>confdefs.h <<_ACEOF 16777#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16778_ACEOF 16779 break 16780fi 16781done 16782 16783for ac_func in waitpid wait3 16784do : 16785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16786ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16787if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16788 cat >>confdefs.h <<_ACEOF 16789#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16790_ACEOF 16791 break 16792fi 16793done 16794 16795for ac_func in innetgr _innetgr 16796do : 16797 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16798ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16799if 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 for ac_func in getdomainname 16804do : 16805 ac_fn_c_check_func "$LINENO" "getdomainname" "ac_cv_func_getdomainname" 16806if test "x$ac_cv_func_getdomainname" = xyes; then : 16807 cat >>confdefs.h <<_ACEOF 16808#define HAVE_GETDOMAINNAME 1 16809_ACEOF 16810 16811fi 16812done 16813 break 16814fi 16815done 16816 16817for ac_func in utimes 16818do : 16819 ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 16820if test "x$ac_cv_func_utimes" = xyes; then : 16821 cat >>confdefs.h <<_ACEOF 16822#define HAVE_UTIMES 1 16823_ACEOF 16824 for ac_func in futimes futimesat 16825do : 16826 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16827ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16828if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 16829 cat >>confdefs.h <<_ACEOF 16830#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 16831_ACEOF 16832 break 16833fi 16834done 16835 16836else 16837 for ac_func in futime 16838do : 16839 ac_fn_c_check_func "$LINENO" "futime" "ac_cv_func_futime" 16840if test "x$ac_cv_func_futime" = xyes; then : 16841 cat >>confdefs.h <<_ACEOF 16842#define HAVE_FUTIME 1 16843_ACEOF 16844 16845fi 16846done 16847 case " $LIBOBJS " in 16848 *" utimes.$ac_objext "* ) ;; 16849 *) LIBOBJS="$LIBOBJS utimes.$ac_objext" 16850 ;; 16851esac 16852 16853fi 16854done 16855 16856for ac_func in killpg 16857do : 16858 ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" 16859if test "x$ac_cv_func_killpg" = xyes; then : 16860 cat >>confdefs.h <<_ACEOF 16861#define HAVE_KILLPG 1 16862_ACEOF 16863 16864else 16865 case " $LIBOBJS " in 16866 *" killpg.$ac_objext "* ) ;; 16867 *) LIBOBJS="$LIBOBJS killpg.$ac_objext" 16868 ;; 16869esac 16870 16871fi 16872done 16873 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fnmatch with FNM_CASEFOLD" >&5 16875$as_echo_n "checking for working fnmatch with FNM_CASEFOLD... " >&6; } 16876if ${sudo_cv_func_fnmatch+:} false; then : 16877 $as_echo_n "(cached) " >&6 16878else 16879 rm -f conftestdata; > conftestdata 16880if test "$cross_compiling" = yes; then : 16881 sudo_cv_func_fnmatch=no 16882else 16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16884/* end confdefs.h. */ 16885#include <fnmatch.h> 16886main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); } 16887_ACEOF 16888if ac_fn_c_try_run "$LINENO"; then : 16889 sudo_cv_func_fnmatch=yes 16890else 16891 sudo_cv_func_fnmatch=no 16892fi 16893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16894 conftest.$ac_objext conftest.beam conftest.$ac_ext 16895fi 16896 16897rm -f core core.* *.core 16898fi 16899 16900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_fnmatch" >&5 16901$as_echo "$sudo_cv_func_fnmatch" >&6; } 16902if test $sudo_cv_func_fnmatch = yes; then : 16903 $as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 16904 16905else 16906 case " $LIBOBJS " in 16907 *" fnmatch.$ac_objext "* ) ;; 16908 *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext" 16909 ;; 16910esac 16911 16912fi 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isblank" >&5 16914$as_echo_n "checking for isblank... " >&6; } 16915if ${sudo_cv_func_isblank+:} false; then : 16916 $as_echo_n "(cached) " >&6 16917else 16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16919/* end confdefs.h. */ 16920#include <ctype.h> 16921int 16922main () 16923{ 16924return (isblank('a')); 16925 ; 16926 return 0; 16927} 16928_ACEOF 16929if ac_fn_c_try_link "$LINENO"; then : 16930 sudo_cv_func_isblank=yes 16931else 16932 sudo_cv_func_isblank=no 16933fi 16934rm -f core conftest.err conftest.$ac_objext \ 16935 conftest$ac_exeext conftest.$ac_ext 16936fi 16937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_func_isblank" >&5 16938$as_echo "$sudo_cv_func_isblank" >&6; } 16939 16940 if test "$sudo_cv_func_isblank" = "yes"; then 16941 16942$as_echo "#define HAVE_ISBLANK 1" >>confdefs.h 16943 16944 else 16945 case " $LIBOBJS " in 16946 *" isblank.$ac_objext "* ) ;; 16947 *) LIBOBJS="$LIBOBJS isblank.$ac_objext" 16948 ;; 16949esac 16950 16951 fi 16952 16953ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 16954if test "x$ac_cv_func_memrchr" = xyes; then : 16955 $as_echo "#define HAVE_MEMRCHR 1" >>confdefs.h 16956 16957else 16958 case " $LIBOBJS " in 16959 *" memrchr.$ac_objext "* ) ;; 16960 *) LIBOBJS="$LIBOBJS memrchr.$ac_objext" 16961 ;; 16962esac 16963 16964fi 16965 16966ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" 16967if test "x$ac_cv_func_strerror" = xyes; then : 16968 $as_echo "#define HAVE_STRERROR 1" >>confdefs.h 16969 16970else 16971 case " $LIBOBJS " in 16972 *" strerror.$ac_objext "* ) ;; 16973 *) LIBOBJS="$LIBOBJS strerror.$ac_objext" 16974 ;; 16975esac 16976 16977fi 16978 16979ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 16980if test "x$ac_cv_func_strcasecmp" = xyes; then : 16981 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h 16982 16983else 16984 case " $LIBOBJS " in 16985 *" strcasecmp.$ac_objext "* ) ;; 16986 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext" 16987 ;; 16988esac 16989 16990fi 16991 16992ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 16993if test "x$ac_cv_func_sigaction" = xyes; then : 16994 $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h 16995 16996else 16997 case " $LIBOBJS " in 16998 *" sigaction.$ac_objext "* ) ;; 16999 *) LIBOBJS="$LIBOBJS sigaction.$ac_objext" 17000 ;; 17001esac 17002 17003fi 17004 17005ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 17006if test "x$ac_cv_func_strlcpy" = xyes; then : 17007 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h 17008 17009else 17010 case " $LIBOBJS " in 17011 *" strlcpy.$ac_objext "* ) ;; 17012 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext" 17013 ;; 17014esac 17015 17016fi 17017 17018ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat" 17019if test "x$ac_cv_func_strlcat" = xyes; then : 17020 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h 17021 17022else 17023 case " $LIBOBJS " in 17024 *" strlcat.$ac_objext "* ) ;; 17025 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext" 17026 ;; 17027esac 17028 17029fi 17030 17031 17032for ac_func in nanosleep 17033do : 17034 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 17035if test "x$ac_cv_func_nanosleep" = xyes; then : 17036 cat >>confdefs.h <<_ACEOF 17037#define HAVE_NANOSLEEP 1 17038_ACEOF 17039 17040else 17041 17042 # On Solaris, nanosleep is in librt 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 17044$as_echo_n "checking for nanosleep in -lrt... " >&6; } 17045if ${ac_cv_lib_rt_nanosleep+:} false; then : 17046 $as_echo_n "(cached) " >&6 17047else 17048 ac_check_lib_save_LIBS=$LIBS 17049LIBS="-lrt $LIBS" 17050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17051/* end confdefs.h. */ 17052 17053/* Override any GCC internal prototype to avoid an error. 17054 Use char because int might match the return type of a GCC 17055 builtin and then its argument prototype would still apply. */ 17056#ifdef __cplusplus 17057extern "C" 17058#endif 17059char nanosleep (); 17060int 17061main () 17062{ 17063return nanosleep (); 17064 ; 17065 return 0; 17066} 17067_ACEOF 17068if ac_fn_c_try_link "$LINENO"; then : 17069 ac_cv_lib_rt_nanosleep=yes 17070else 17071 ac_cv_lib_rt_nanosleep=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext \ 17074 conftest$ac_exeext conftest.$ac_ext 17075LIBS=$ac_check_lib_save_LIBS 17076fi 17077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 17078$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 17079if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 17080 LIBS="${LIBS} -lrt" 17081else 17082 case " $LIBOBJS " in 17083 *" nanosleep.$ac_objext "* ) ;; 17084 *) LIBOBJS="$LIBOBJS nanosleep.$ac_objext" 17085 ;; 17086esac 17087 17088fi 17089 17090 17091fi 17092done 17093 17094for ac_func in closefrom 17095do : 17096 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 17097if test "x$ac_cv_func_closefrom" = xyes; then : 17098 cat >>confdefs.h <<_ACEOF 17099#define HAVE_CLOSEFROM 1 17100_ACEOF 17101 17102else 17103 case " $LIBOBJS " in 17104 *" closefrom.$ac_objext "* ) ;; 17105 *) LIBOBJS="$LIBOBJS closefrom.$ac_objext" 17106 ;; 17107esac 17108 17109 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" " #include <limits.h> 17110 #include <fcntl.h> 17111" 17112if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then : 17113 $as_echo "#define HAVE_FCNTL_CLOSEM 1" >>confdefs.h 17114 17115fi 17116 17117 17118fi 17119done 17120 17121for ac_func in mkstemps 17122do : 17123 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps" 17124if test "x$ac_cv_func_mkstemps" = xyes; then : 17125 cat >>confdefs.h <<_ACEOF 17126#define HAVE_MKSTEMPS 1 17127_ACEOF 17128 17129else 17130 SUDO_OBJS="${SUDO_OBJS} mkstemps.o" 17131 for ac_func in random lrand48 17132do : 17133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17134ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17135if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17136 cat >>confdefs.h <<_ACEOF 17137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17138_ACEOF 17139 break 17140fi 17141done 17142 17143 17144fi 17145done 17146 17147for ac_func in snprintf vsnprintf asprintf vasprintf 17148do : 17149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17150ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17151if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17152 cat >>confdefs.h <<_ACEOF 17153#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17154_ACEOF 17155 17156else 17157 NEED_SNPRINTF=1 17158fi 17159done 17160 17161if test X"$ac_cv_type_struct_timespec" != X"no"; then 17162 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" 17163if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then : 17164 $as_echo "#define HAVE_ST_MTIM 1" >>confdefs.h 17165 17166 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.st__tim" "ac_cv_member_struct_stat_st_mtim_st__tim" "$ac_includes_default" 17167if test "x$ac_cv_member_struct_stat_st_mtim_st__tim" = xyes; then : 17168 $as_echo "#define HAVE_ST__TIM 1" >>confdefs.h 17169 17170fi 17171 17172else 17173 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" 17174if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes; then : 17175 $as_echo "#define HAVE_ST_MTIMESPEC 1" >>confdefs.h 17176 17177fi 17178 17179fi 17180 17181fi 17182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17183/* end confdefs.h. */ 17184#include <sys/types.h> 17185#include <$ac_header_dirent> 17186int 17187main () 17188{ 17189DIR *d; (void)dirfd(d); 17190 ; 17191 return 0; 17192} 17193_ACEOF 17194if ac_fn_c_try_link "$LINENO"; then : 17195 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h 17196 17197else 17198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17199/* end confdefs.h. */ 17200#include <sys/types.h> 17201#include <$ac_header_dirent> 17202int 17203main () 17204{ 17205DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd); 17206 ; 17207 return 0; 17208} 17209_ACEOF 17210if ac_fn_c_try_link "$LINENO"; then : 17211 $as_echo "#define HAVE_DD_FD 1" >>confdefs.h 17212 17213fi 17214rm -f core conftest.err conftest.$ac_objext \ 17215 conftest$ac_exeext conftest.$ac_ext 17216fi 17217rm -f core conftest.err conftest.$ac_objext \ 17218 conftest$ac_exeext conftest.$ac_ext 17219ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" " 17220$ac_includes_default 17221#include <$ac_header_dirent> 17222 17223" 17224if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then : 17225 17226cat >>confdefs.h <<_ACEOF 17227#define HAVE_STRUCT_DIRENT_D_TYPE 1 17228_ACEOF 17229 17230 17231fi 17232 17233if test -n "$NEED_SNPRINTF"; then 17234 case " $LIBOBJS " in 17235 *" snprintf.$ac_objext "* ) ;; 17236 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" 17237 ;; 17238esac 17239 17240fi 17241ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 17242if test "x$ac_cv_func_socket" = xyes; then : 17243 17244else 17245 17246 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do 17247 _libs= 17248 for lib in $libs; do 17249 case "$NET_LIBS" in 17250 *"$lib"*) ;; 17251 *) _libs="$_libs $lib";; 17252 esac 17253 done 17254 libs="${_libs# }" 17255 test -z "$libs" && continue 17256 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`" 17257 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`" 17258 17259 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'` 17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -l$lib${5+ }$extralibs" >&5 17261$as_echo_n "checking for socket in -l$lib${5+ }$extralibs... " >&6; } 17262 if { as_var=sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then : 17263 $as_echo_n "(cached) " >&6 17264else 17265 17266 SUDO_CHECK_LIB_OLIBS="$LIBS" 17267 LIBS="$LIBS -l$lib${5+ }$extralibs" 17268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17269/* end confdefs.h. */ 17270 17271/* Override any GCC internal prototype to avoid an error. 17272 Use char because int might match the return type of a GCC 17273 builtin and then its argument prototype would still apply. */ 17274#ifdef __cplusplus 17275extern "C" 17276#endif 17277char socket (); 17278int 17279main () 17280{ 17281return socket (); 17282 ; 17283 return 0; 17284} 17285_ACEOF 17286if ac_fn_c_try_link "$LINENO"; then : 17287 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=yes 17288else 17289 eval sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras=no 17290 17291fi 17292rm -f core conftest.err conftest.$ac_objext \ 17293 conftest$ac_exeext conftest.$ac_ext 17294 LIBS="$SUDO_CHECK_LIB_OLIBS" 17295 17296fi 17297 17298 if eval test \$sudo_cv_lib_$lib''_socket$_sudo_check_lib_extras = "yes"; then 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17300$as_echo "yes" >&6; } 17301 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break 17302 else 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17304$as_echo "no" >&6; } 17305 17306 fi 17307 17308 done 17309 17310fi 17311 17312ac_fn_c_check_func "$LINENO" "inet_addr" "ac_cv_func_inet_addr" 17313if test "x$ac_cv_func_inet_addr" = xyes; then : 17314 17315else 17316 17317 ac_fn_c_check_func "$LINENO" "__inet_addr" "ac_cv_func___inet_addr" 17318if test "x$ac_cv_func___inet_addr" = xyes; then : 17319 17320else 17321 17322 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do 17323 _libs= 17324 for lib in $libs; do 17325 case "$NET_LIBS" in 17326 *"$lib"*) ;; 17327 *) _libs="$_libs $lib";; 17328 esac 17329 done 17330 libs="${_libs# }" 17331 test -z "$libs" && continue 17332 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`" 17333 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`" 17334 17335 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'` 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -l$lib${5+ }$extralibs" >&5 17337$as_echo_n "checking for inet_addr in -l$lib${5+ }$extralibs... " >&6; } 17338 if { as_var=sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then : 17339 $as_echo_n "(cached) " >&6 17340else 17341 17342 SUDO_CHECK_LIB_OLIBS="$LIBS" 17343 LIBS="$LIBS -l$lib${5+ }$extralibs" 17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17345/* end confdefs.h. */ 17346 17347/* Override any GCC internal prototype to avoid an error. 17348 Use char because int might match the return type of a GCC 17349 builtin and then its argument prototype would still apply. */ 17350#ifdef __cplusplus 17351extern "C" 17352#endif 17353char inet_addr (); 17354int 17355main () 17356{ 17357return inet_addr (); 17358 ; 17359 return 0; 17360} 17361_ACEOF 17362if ac_fn_c_try_link "$LINENO"; then : 17363 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=yes 17364else 17365 eval sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras=no 17366 17367fi 17368rm -f core conftest.err conftest.$ac_objext \ 17369 conftest$ac_exeext conftest.$ac_ext 17370 LIBS="$SUDO_CHECK_LIB_OLIBS" 17371 17372fi 17373 17374 if eval test \$sudo_cv_lib_$lib''_inet_addr$_sudo_check_lib_extras = "yes"; then 17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17376$as_echo "yes" >&6; } 17377 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break 17378 else 17379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17380$as_echo "no" >&6; } 17381 17382 fi 17383 17384 done 17385 17386fi 17387 17388 17389fi 17390 17391ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog" 17392if test "x$ac_cv_func_syslog" = xyes; then : 17393 17394else 17395 17396 for libs in "-lsocket" "-linet" "-lsocket -lnsl"; do 17397 _libs= 17398 for lib in $libs; do 17399 case "$NET_LIBS" in 17400 *"$lib"*) ;; 17401 *) _libs="$_libs $lib";; 17402 esac 17403 done 17404 libs="${_libs# }" 17405 test -z "$libs" && continue 17406 lib="`echo \"$libs\"|sed -e 's/^-l//' -e 's/ .*$//'`" 17407 extralibs="`echo \"$libs\"|sed 's/^-l[^ ]*//'`" 17408 17409 _sudo_check_lib_extras=`echo "$extralibs"|sed -e 's/ *//g' -e 's/-l/_/g'` 17410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for syslog in -l$lib${5+ }$extralibs" >&5 17411$as_echo_n "checking for syslog in -l$lib${5+ }$extralibs... " >&6; } 17412 if { as_var=sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras; eval \${$as_var+:} false; }; then : 17413 $as_echo_n "(cached) " >&6 17414else 17415 17416 SUDO_CHECK_LIB_OLIBS="$LIBS" 17417 LIBS="$LIBS -l$lib${5+ }$extralibs" 17418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17419/* end confdefs.h. */ 17420 17421/* Override any GCC internal prototype to avoid an error. 17422 Use char because int might match the return type of a GCC 17423 builtin and then its argument prototype would still apply. */ 17424#ifdef __cplusplus 17425extern "C" 17426#endif 17427char syslog (); 17428int 17429main () 17430{ 17431return syslog (); 17432 ; 17433 return 0; 17434} 17435_ACEOF 17436if ac_fn_c_try_link "$LINENO"; then : 17437 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=yes 17438else 17439 eval sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras=no 17440 17441fi 17442rm -f core conftest.err conftest.$ac_objext \ 17443 conftest$ac_exeext conftest.$ac_ext 17444 LIBS="$SUDO_CHECK_LIB_OLIBS" 17445 17446fi 17447 17448 if eval test \$sudo_cv_lib_$lib''_syslog$_sudo_check_lib_extras = "yes"; then 17449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17450$as_echo "yes" >&6; } 17451 NET_LIBS="${NET_LIBS} $libs"; LIBS="${LIBS} $libs"; break 17452 else 17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17454$as_echo "no" >&6; } 17455 17456 fi 17457 17458 done 17459 17460fi 17461 17462for ac_func in getprogname 17463do : 17464 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname" 17465if test "x$ac_cv_func_getprogname" = xyes; then : 17466 cat >>confdefs.h <<_ACEOF 17467#define HAVE_GETPROGNAME 1 17468_ACEOF 17469 17470else 17471 17472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __progname" >&5 17473$as_echo_n "checking for __progname... " >&6; } 17474 if ${sudo_cv___progname+:} false; then : 17475 $as_echo_n "(cached) " >&6 17476else 17477 17478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17479/* end confdefs.h. */ 17480 17481int 17482main () 17483{ 17484extern char *__progname; (void)puts(__progname); 17485 ; 17486 return 0; 17487} 17488_ACEOF 17489if ac_fn_c_try_link "$LINENO"; then : 17490 sudo_cv___progname=yes 17491else 17492 sudo_cv___progname=no 17493fi 17494rm -f core conftest.err conftest.$ac_objext \ 17495 conftest$ac_exeext conftest.$ac_ext 17496fi 17497 17498 if test "$sudo_cv___progname" = "yes"; then 17499 $as_echo "#define HAVE___PROGNAME 1" >>confdefs.h 17500 17501 else 17502 case " $LIBOBJS " in 17503 *" getprogname.$ac_objext "* ) ;; 17504 *) LIBOBJS="$LIBOBJS getprogname.$ac_objext" 17505 ;; 17506esac 17507 17508 fi 17509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv___progname" >&5 17510$as_echo "$sudo_cv___progname" >&6; } 17511 17512fi 17513done 17514 17515 17516ac_fn_c_check_decl "$LINENO" "errno" "ac_cv_have_decl_errno" " 17517$ac_includes_default 17518#include <errno.h> 17519 17520" 17521if test "x$ac_cv_have_decl_errno" = xyes; then : 17522 ac_have_decl=1 17523else 17524 ac_have_decl=0 17525fi 17526 17527cat >>confdefs.h <<_ACEOF 17528#define HAVE_DECL_ERRNO $ac_have_decl 17529_ACEOF 17530 17531 17532for ac_func in strsignal 17533do : 17534 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" 17535if test "x$ac_cv_func_strsignal" = xyes; then : 17536 cat >>confdefs.h <<_ACEOF 17537#define HAVE_STRSIGNAL 1 17538_ACEOF 17539 17540else 17541 17542 case " $LIBOBJS " in 17543 *" strsignal.$ac_objext "* ) ;; 17544 *) LIBOBJS="$LIBOBJS strsignal.$ac_objext" 17545 ;; 17546esac 17547 17548 HAVE_SIGLIST="false" 17549 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" " 17550$ac_includes_default 17551#include <signal.h> 17552 17553" 17554if test "x$ac_cv_have_decl_sys_siglist" = xyes; then : 17555 ac_have_decl=1 17556else 17557 ac_have_decl=0 17558fi 17559 17560cat >>confdefs.h <<_ACEOF 17561#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 17562_ACEOF 17563if test $ac_have_decl = 1; then : 17564 17565 HAVE_SIGLIST="true" 17566 break 17567 17568fi 17569ac_fn_c_check_decl "$LINENO" "_sys_siglist" "ac_cv_have_decl__sys_siglist" " 17570$ac_includes_default 17571#include <signal.h> 17572 17573" 17574if test "x$ac_cv_have_decl__sys_siglist" = xyes; then : 17575 ac_have_decl=1 17576else 17577 ac_have_decl=0 17578fi 17579 17580cat >>confdefs.h <<_ACEOF 17581#define HAVE_DECL__SYS_SIGLIST $ac_have_decl 17582_ACEOF 17583if test $ac_have_decl = 1; then : 17584 17585 HAVE_SIGLIST="true" 17586 break 17587 17588fi 17589ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" " 17590$ac_includes_default 17591#include <signal.h> 17592 17593" 17594if test "x$ac_cv_have_decl___sys_siglist" = xyes; then : 17595 ac_have_decl=1 17596else 17597 ac_have_decl=0 17598fi 17599 17600cat >>confdefs.h <<_ACEOF 17601#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 17602_ACEOF 17603if test $ac_have_decl = 1; then : 17604 17605 HAVE_SIGLIST="true" 17606 break 17607 17608fi 17609 17610 if test "$HAVE_SIGLIST" != "true"; then 17611 case " $LIBOBJS " in 17612 *" siglist.$ac_objext "* ) ;; 17613 *) LIBOBJS="$LIBOBJS siglist.$ac_objext" 17614 ;; 17615esac 17616 17617 fi 17618 17619fi 17620done 17621 17622 17623if test ${with_netsvc-"no"} != "no"; then 17624 cat >>confdefs.h <<EOF 17625#define _PATH_NETSVC_CONF "${with_netsvc-/etc/netsvc.conf}" 17626EOF 17627 17628 netsvc_conf=${with_netsvc-/etc/netsvc.conf} 17629elif test ${with_nsswitch-"yes"} != "no"; then 17630 cat >>confdefs.h <<EOF 17631#define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}" 17632EOF 17633 17634 nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf} 17635fi 17636 17637 17638if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then 17639 for auth in $AUTH_EXCL_DEF; do 17640 case $auth in 17641 AIX_AUTH) with_aixauth=maybe;; 17642 BSD_AUTH) with_bsdauth=maybe;; 17643 PAM) with_pam=maybe;; 17644 SIA) CHECKSIA=true;; 17645 esac 17646 done 17647fi 17648 17649if test ${with_pam-"no"} != "no"; then 17650 # 17651 # Check for pam_start() in libpam first, then for pam_appl.h. 17652 # 17653 found_pam_lib=no 17654 as_ac_Lib=`$as_echo "ac_cv_lib_pam_pam_start$lt_cv_dlopen_libs" | $as_tr_sh` 17655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 17656$as_echo_n "checking for pam_start in -lpam... " >&6; } 17657if eval \${$as_ac_Lib+:} false; then : 17658 $as_echo_n "(cached) " >&6 17659else 17660 ac_check_lib_save_LIBS=$LIBS 17661LIBS="-lpam $lt_cv_dlopen_libs $LIBS" 17662cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17663/* end confdefs.h. */ 17664 17665/* Override any GCC internal prototype to avoid an error. 17666 Use char because int might match the return type of a GCC 17667 builtin and then its argument prototype would still apply. */ 17668#ifdef __cplusplus 17669extern "C" 17670#endif 17671char pam_start (); 17672int 17673main () 17674{ 17675return pam_start (); 17676 ; 17677 return 0; 17678} 17679_ACEOF 17680if ac_fn_c_try_link "$LINENO"; then : 17681 eval "$as_ac_Lib=yes" 17682else 17683 eval "$as_ac_Lib=no" 17684fi 17685rm -f core conftest.err conftest.$ac_objext \ 17686 conftest$ac_exeext conftest.$ac_ext 17687LIBS=$ac_check_lib_save_LIBS 17688fi 17689eval ac_res=\$$as_ac_Lib 17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17691$as_echo "$ac_res" >&6; } 17692if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 17693 found_pam_lib=yes 17694fi 17695 17696 # 17697 # Some PAM implementations (MacOS X for example) put the PAM headers 17698 # in /usr/include/pam instead of /usr/include/security... 17699 # 17700 found_pam_hdrs=no 17701 for ac_header in security/pam_appl.h pam/pam_appl.h 17702do : 17703 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17704ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17706 cat >>confdefs.h <<_ACEOF 17707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17708_ACEOF 17709 found_pam_hdrs=yes; break 17710fi 17711 17712done 17713 17714 if test "$found_pam_lib" = "yes" -a "$found_pam_hdrs" = "yes"; then 17715 # Found both PAM libs and headers 17716 with_pam=yes 17717 elif test "$with_pam" = "yes"; then 17718 if test "$found_pam_lib" = "no"; then 17719 as_fn_error $? "\"--with-pam specified but unable to locate PAM development library.\"" "$LINENO" 5 17720 fi 17721 if test "$found_pam_hdrs" = "no"; then 17722 as_fn_error $? "\"--with-pam specified but unable to locate PAM development headers.\"" "$LINENO" 5 17723 fi 17724 elif test "$found_pam_lib" != "$found_pam_hdrs"; then 17725 if test "$found_pam_lib" = "no"; then 17726 as_fn_error $? "\"found PAM headers but no PAM development library; specify --without-pam to build without PAM\"" "$LINENO" 5 17727 fi 17728 if test "$found_pam_hdrs" = "no"; then 17729 as_fn_error $? "\"found PAM library but no PAM development headers; specify --without-pam to build without PAM\"" "$LINENO" 5 17730 fi 17731 fi 17732 17733 if test "$with_pam" = "yes"; then 17734 # Older PAM implementations lack pam_getenvlist 17735 OLIBS="$LIBS" 17736 LIBS="$LIBS -lpam $lt_cv_dlopen_libs" 17737 for ac_func in pam_getenvlist 17738do : 17739 ac_fn_c_check_func "$LINENO" "pam_getenvlist" "ac_cv_func_pam_getenvlist" 17740if test "x$ac_cv_func_pam_getenvlist" = xyes; then : 17741 cat >>confdefs.h <<_ACEOF 17742#define HAVE_PAM_GETENVLIST 1 17743_ACEOF 17744 17745fi 17746done 17747 17748 LIBS="$OLIBS" 17749 SUDO_LIBS="${SUDO_LIBS} -lpam $lt_cv_dlopen_libs" 17750 $as_echo "#define HAVE_PAM 1" >>confdefs.h 17751 17752 AUTH_OBJS="$AUTH_OBJS pam.o"; 17753 AUTH_EXCL=PAM 17754 17755 17756# Check whether --with-pam-login was given. 17757if test "${with_pam_login+set}" = set; then : 17758 withval=$with_pam_login; case $with_pam_login in 17759 yes) $as_echo "#define HAVE_PAM_LOGIN 1" >>confdefs.h 17760 17761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM login" >&5 17762$as_echo_n "checking whether to use PAM login... " >&6; } 17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17764$as_echo "yes" >&6; } 17765 ;; 17766 no) ;; 17767 *) as_fn_error $? "\"--with-pam-login does not take an argument.\"" "$LINENO" 5 17768 ;; 17769 esac 17770fi 17771 17772 17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use PAM session support" >&5 17774$as_echo_n "checking whether to use PAM session support... " >&6; } 17775 # Check whether --enable-pam_session was given. 17776if test "${enable_pam_session+set}" = set; then : 17777 enableval=$enable_pam_session; case "$enableval" in 17778 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17779$as_echo "yes" >&6; } 17780 ;; 17781 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17782$as_echo "no" >&6; } 17783 17784$as_echo "#define NO_PAM_SESSION /**/" >>confdefs.h 17785 17786 ;; 17787 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17788$as_echo "no" >&6; } 17789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5 17790$as_echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;} 17791 ;; 17792 esac 17793else 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17795$as_echo "yes" >&6; } 17796fi 17797 17798 17799 case $host in 17800 *-*-linux*|*-*-solaris*) 17801 # dgettext() may be defined to dgettext_libintl in the 17802 # header file, so first check that it links w/ additional 17803 # libs, then try with -lintl 17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17805/* end confdefs.h. */ 17806#include <libintl.h> 17807int 17808main () 17809{ 17810(void)dgettext((char *)0, (char *)0); 17811 ; 17812 return 0; 17813} 17814_ACEOF 17815if ac_fn_c_try_link "$LINENO"; then : 17816 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h 17817 17818else 17819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 17820$as_echo_n "checking for dgettext in -lintl... " >&6; } 17821if ${ac_cv_lib_intl_dgettext+:} false; then : 17822 $as_echo_n "(cached) " >&6 17823else 17824 ac_check_lib_save_LIBS=$LIBS 17825LIBS="-lintl $LIBS" 17826cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17827/* end confdefs.h. */ 17828 17829/* Override any GCC internal prototype to avoid an error. 17830 Use char because int might match the return type of a GCC 17831 builtin and then its argument prototype would still apply. */ 17832#ifdef __cplusplus 17833extern "C" 17834#endif 17835char dgettext (); 17836int 17837main () 17838{ 17839return dgettext (); 17840 ; 17841 return 0; 17842} 17843_ACEOF 17844if ac_fn_c_try_link "$LINENO"; then : 17845 ac_cv_lib_intl_dgettext=yes 17846else 17847 ac_cv_lib_intl_dgettext=no 17848fi 17849rm -f core conftest.err conftest.$ac_objext \ 17850 conftest$ac_exeext conftest.$ac_ext 17851LIBS=$ac_check_lib_save_LIBS 17852fi 17853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 17854$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 17855if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 17856 LIBS="${LIBS} -lintl" 17857 $as_echo "#define HAVE_DGETTEXT 1" >>confdefs.h 17858 17859fi 17860 17861fi 17862rm -f core conftest.err conftest.$ac_objext \ 17863 conftest$ac_exeext conftest.$ac_ext 17864 ;; 17865 esac 17866 fi 17867fi 17868 17869if test ${with_aixauth-'no'} != "no"; then 17870 if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then 17871 { $as_echo "$as_me:${as_lineno-$LINENO}: using AIX general authentication" >&5 17872$as_echo "$as_me: using AIX general authentication" >&6;} 17873 $as_echo "#define HAVE_AIXAUTH 1" >>confdefs.h 17874 17875 AUTH_OBJS="$AUTH_OBJS aix_auth.o"; 17876 SUDO_LIBS="${SUDO_LIBS} -ls" 17877 AUTH_EXCL=AIX_AUTH 17878 fi 17879fi 17880 17881if test ${with_bsdauth-'no'} != "no"; then 17882 ac_fn_c_check_header_mongrel "$LINENO" "bsd_auth.h" "ac_cv_header_bsd_auth_h" "$ac_includes_default" 17883if test "x$ac_cv_header_bsd_auth_h" = xyes; then : 17884 $as_echo "#define HAVE_BSD_AUTH_H 1" >>confdefs.h 17885 17886 AUTH_OBJS="$AUTH_OBJS bsdauth.o" 17887 BSDAUTH_USAGE='[-a auth_type] ' 17888 AUTH_EXCL=BSD_AUTH; BAMAN=1 17889else 17890 as_fn_error $? "BSD authentication was specified but bsd_auth.h could not be found" "$LINENO" 5 17891fi 17892 17893 17894fi 17895 17896if test ${CHECKSIA-'false'} = "true"; then 17897 for ac_func in sia_ses_init 17898do : 17899 ac_fn_c_check_func "$LINENO" "sia_ses_init" "ac_cv_func_sia_ses_init" 17900if test "x$ac_cv_func_sia_ses_init" = xyes; then : 17901 cat >>confdefs.h <<_ACEOF 17902#define HAVE_SIA_SES_INIT 1 17903_ACEOF 17904 found=true 17905else 17906 found=false 17907fi 17908done 17909 17910 if test "$found" = "true"; then 17911 AUTH_EXCL=SIA 17912 AUTH_OBJS="$AUTH_OBJS sia.o" 17913 fi 17914fi 17915 17916if test ${with_fwtk-'no'} != "no"; then 17917 if test "$with_fwtk" != "yes"; then 17918 17919 if test X"$with_rpath" = X"yes"; then 17920 case "$host" in 17921 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,+b,${with_fwtk}" 17922 ;; 17923 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -Wl,-R${with_fwtk}" 17924 ;; 17925 esac 17926 else 17927 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}" 17928 fi 17929 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 17930 blibpath_add="${blibpath_add}:${with_fwtk}" 17931 fi 17932 17933 CPPFLAGS="${CPPFLAGS} -I${with_fwtk}" 17934 with_fwtk=yes 17935 fi 17936 SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall" 17937 AUTH_OBJS="$AUTH_OBJS fwtk.o" 17938fi 17939 17940if test ${with_SecurID-'no'} != "no"; then 17941 if test "$with_SecurID" != "yes"; then 17942 : 17943 elif test -d /usr/ace/examples; then 17944 with_SecurID=/usr/ace/examples 17945 else 17946 with_SecurID=/usr/ace 17947 fi 17948 CPPFLAGS="${CPPFLAGS} -I${with_SecurID}" 17949 _LDFLAGS="${LDFLAGS}" 17950 17951 if test X"$with_rpath" = X"yes"; then 17952 case "$host" in 17953 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}" 17954 ;; 17955 *) LDFLAGS="${LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}" 17956 ;; 17957 esac 17958 else 17959 LDFLAGS="${LDFLAGS} -L${with_SecurID}" 17960 fi 17961 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 17962 blibpath_add="${blibpath_add}:${with_SecurID}" 17963 fi 17964 17965 # 17966 # Determine whether to use the new or old SecurID API 17967 # 17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SD_Init in -laceclnt" >&5 17969$as_echo_n "checking for SD_Init in -laceclnt... " >&6; } 17970if ${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+:} false; then : 17971 $as_echo_n "(cached) " >&6 17972else 17973 ac_check_lib_save_LIBS=$LIBS 17974LIBS="-laceclnt 17975 -lpthread 17976 17977 $LIBS" 17978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17979/* end confdefs.h. */ 17980 17981/* Override any GCC internal prototype to avoid an error. 17982 Use char because int might match the return type of a GCC 17983 builtin and then its argument prototype would still apply. */ 17984#ifdef __cplusplus 17985extern "C" 17986#endif 17987char SD_Init (); 17988int 17989main () 17990{ 17991return SD_Init (); 17992 ; 17993 return 0; 17994} 17995_ACEOF 17996if ac_fn_c_try_link "$LINENO"; then : 17997 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes 17998else 17999 ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no 18000fi 18001rm -f core conftest.err conftest.$ac_objext \ 18002 conftest$ac_exeext conftest.$ac_ext 18003LIBS=$ac_check_lib_save_LIBS 18004fi 18005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5 18006$as_echo "$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; } 18007if test "x$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" = xyes; then : 18008 18009 AUTH_OBJS="$AUTH_OBJS securid5.o"; 18010 SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread" 18011 18012 18013 18014 if test X"$with_rpath" = X"yes"; then 18015 case "$host" in 18016 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,+b,${with_SecurID}" 18017 ;; 18018 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -Wl,-R${with_SecurID}" 18019 ;; 18020 esac 18021 else 18022 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}" 18023 fi 18024 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18025 blibpath_add="${blibpath_add}:${with_SecurID}" 18026 fi 18027 18028 18029else 18030 18031 AUTH_OBJS="$AUTH_OBJS securid.o"; 18032 SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a" 18033 18034fi 18035 18036 LDFLAGS="${_LDFLAGS}" 18037fi 18038 18039 18040if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then 18041 for auth in $AUTH_DEF; do 18042 case $auth in 18043 passwd) : ${with_passwd='maybe'};; 18044 esac 18045 done 18046fi 18047 18048if test ${with_kerb4-'no'} != "no"; then 18049 $as_echo "#define HAVE_KERB4 1" >>confdefs.h 18050 18051 O_LDFLAGS="$LDFLAGS" 18052 if test "$with_kerb4" = "yes"; then 18053 found=no 18054 O_CPPFLAGS="$CPPFLAGS" 18055 for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do 18056 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}" 18057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18058/* end confdefs.h. */ 18059#include <krb.h> 18060int 18061main () 18062{ 18063 18064 ; 18065 return 0; 18066} 18067_ACEOF 18068if ac_fn_c_try_cpp "$LINENO"; then : 18069 found=yes; break 18070fi 18071rm -f conftest.err conftest.i conftest.$ac_ext 18072 done 18073 test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS" 18074 else 18075 18076 if test X"$with_rpath" = X"yes"; then 18077 case "$host" in 18078 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib" 18079 ;; 18080 *) LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib" 18081 ;; 18082 esac 18083 else 18084 LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib" 18085 fi 18086 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 18087 blibpath_add="${blibpath_add}:${with_kerb4}/lib" 18088 fi 18089 18090 18091 if test X"$with_rpath" = X"yes"; then 18092 case "$host" in 18093 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,+b,${with_kerb4}/lib" 18094 ;; 18095 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -Wl,-R${with_kerb4}/lib" 18096 ;; 18097 esac 18098 else 18099 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib" 18100 fi 18101 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18102 blibpath_add="${blibpath_add}:${with_kerb4}/lib" 18103 fi 18104 18105 CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include" 18106 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 18107if test "x$ac_cv_header_krb_h" = xyes; then : 18108 found=yes 18109else 18110 found=no 18111fi 18112 18113 18114 fi 18115 if test X"$found" = X"no"; then 18116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5 18117$as_echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;} 18118 fi 18119 18120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 18121$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 18122if ${ac_cv_lib_des_des_cbc_encrypt+:} false; then : 18123 $as_echo_n "(cached) " >&6 18124else 18125 ac_check_lib_save_LIBS=$LIBS 18126LIBS="-ldes $LIBS" 18127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18128/* end confdefs.h. */ 18129 18130/* Override any GCC internal prototype to avoid an error. 18131 Use char because int might match the return type of a GCC 18132 builtin and then its argument prototype would still apply. */ 18133#ifdef __cplusplus 18134extern "C" 18135#endif 18136char des_cbc_encrypt (); 18137int 18138main () 18139{ 18140return des_cbc_encrypt (); 18141 ; 18142 return 0; 18143} 18144_ACEOF 18145if ac_fn_c_try_link "$LINENO"; then : 18146 ac_cv_lib_des_des_cbc_encrypt=yes 18147else 18148 ac_cv_lib_des_des_cbc_encrypt=no 18149fi 18150rm -f core conftest.err conftest.$ac_objext \ 18151 conftest$ac_exeext conftest.$ac_ext 18152LIBS=$ac_check_lib_save_LIBS 18153fi 18154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 18155$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 18156if test "x$ac_cv_lib_des_des_cbc_encrypt" = xyes; then : 18157 K4LIBS="-ldes" 18158else 18159 18160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 18161$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 18162if ${ac_cv_lib_des425_des_cbc_encrypt+:} false; then : 18163 $as_echo_n "(cached) " >&6 18164else 18165 ac_check_lib_save_LIBS=$LIBS 18166LIBS="-ldes425 $LIBS" 18167cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18168/* end confdefs.h. */ 18169 18170/* Override any GCC internal prototype to avoid an error. 18171 Use char because int might match the return type of a GCC 18172 builtin and then its argument prototype would still apply. */ 18173#ifdef __cplusplus 18174extern "C" 18175#endif 18176char des_cbc_encrypt (); 18177int 18178main () 18179{ 18180return des_cbc_encrypt (); 18181 ; 18182 return 0; 18183} 18184_ACEOF 18185if ac_fn_c_try_link "$LINENO"; then : 18186 ac_cv_lib_des425_des_cbc_encrypt=yes 18187else 18188 ac_cv_lib_des425_des_cbc_encrypt=no 18189fi 18190rm -f core conftest.err conftest.$ac_objext \ 18191 conftest$ac_exeext conftest.$ac_ext 18192LIBS=$ac_check_lib_save_LIBS 18193fi 18194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 18195$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 18196if test "x$ac_cv_lib_des425_des_cbc_encrypt" = xyes; then : 18197 K4LIBS="-ldes425" 18198else 18199 K4LIBS="" 18200fi 18201 18202 18203fi 18204 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using KTH Kerberos IV" >&5 18206$as_echo_n "checking whether we are using KTH Kerberos IV... " >&6; } 18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18208/* end confdefs.h. */ 18209#include <krb.h> 18210int 18211main () 18212{ 18213const char *tmp = krb4_version; 18214 ; 18215 return 0; 18216} 18217_ACEOF 18218if ac_fn_c_try_compile "$LINENO"; then : 18219 18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18221$as_echo "yes" >&6; } 18222 K4LIBS="${K4LIBS} -lcom_err" 18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5 18224$as_echo_n "checking for main in -lroken... " >&6; } 18225if ${ac_cv_lib_roken_main+:} false; then : 18226 $as_echo_n "(cached) " >&6 18227else 18228 ac_check_lib_save_LIBS=$LIBS 18229LIBS="-lroken $LIBS" 18230cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18231/* end confdefs.h. */ 18232 18233 18234int 18235main () 18236{ 18237return main (); 18238 ; 18239 return 0; 18240} 18241_ACEOF 18242if ac_fn_c_try_link "$LINENO"; then : 18243 ac_cv_lib_roken_main=yes 18244else 18245 ac_cv_lib_roken_main=no 18246fi 18247rm -f core conftest.err conftest.$ac_objext \ 18248 conftest$ac_exeext conftest.$ac_ext 18249LIBS=$ac_check_lib_save_LIBS 18250fi 18251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5 18252$as_echo "$ac_cv_lib_roken_main" >&6; } 18253if test "x$ac_cv_lib_roken_main" = xyes; then : 18254 K4LIBS="${K4LIBS} -lroken" 18255fi 18256 18257 18258else 18259 18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18261$as_echo "no" >&6; } 18262 18263 18264fi 18265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18266 as_ac_Lib=`$as_echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh` 18267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb" >&5 18268$as_echo_n "checking for main in -lkrb... " >&6; } 18269if eval \${$as_ac_Lib+:} false; then : 18270 $as_echo_n "(cached) " >&6 18271else 18272 ac_check_lib_save_LIBS=$LIBS 18273LIBS="-lkrb $K4LIBS $LIBS" 18274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18275/* end confdefs.h. */ 18276 18277 18278int 18279main () 18280{ 18281return main (); 18282 ; 18283 return 0; 18284} 18285_ACEOF 18286if ac_fn_c_try_link "$LINENO"; then : 18287 eval "$as_ac_Lib=yes" 18288else 18289 eval "$as_ac_Lib=no" 18290fi 18291rm -f core conftest.err conftest.$ac_objext \ 18292 conftest$ac_exeext conftest.$ac_ext 18293LIBS=$ac_check_lib_save_LIBS 18294fi 18295eval ac_res=\$$as_ac_Lib 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18297$as_echo "$ac_res" >&6; } 18298if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18299 K4LIBS="-lkrb $K4LIBS" 18300else 18301 18302 as_ac_Lib=`$as_echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh` 18303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb4" >&5 18304$as_echo_n "checking for main in -lkrb4... " >&6; } 18305if eval \${$as_ac_Lib+:} false; then : 18306 $as_echo_n "(cached) " >&6 18307else 18308 ac_check_lib_save_LIBS=$LIBS 18309LIBS="-lkrb4 $K4LIBS $LIBS" 18310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18311/* end confdefs.h. */ 18312 18313 18314int 18315main () 18316{ 18317return main (); 18318 ; 18319 return 0; 18320} 18321_ACEOF 18322if ac_fn_c_try_link "$LINENO"; then : 18323 eval "$as_ac_Lib=yes" 18324else 18325 eval "$as_ac_Lib=no" 18326fi 18327rm -f core conftest.err conftest.$ac_objext \ 18328 conftest$ac_exeext conftest.$ac_ext 18329LIBS=$ac_check_lib_save_LIBS 18330fi 18331eval ac_res=\$$as_ac_Lib 18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18333$as_echo "$ac_res" >&6; } 18334if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then : 18335 K4LIBS="-lkrb4 $K4LIBS" 18336else 18337 K4LIBS="-lkrb $K4LIBS" 18338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5 18339$as_echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;} 18340 18341fi 18342 18343 18344fi 18345 18346 LDFLAGS="$O_LDFLAGS" 18347 SUDO_LIBS="${SUDO_LIBS} $K4LIBS" 18348 AUTH_OBJS="$AUTH_OBJS kerb4.o" 18349fi 18350 18351if test ${with_kerb5-'no'} != "no"; then 18352 # Extract the first word of "krb5-config", so it can be a program name with args. 18353set dummy krb5-config; ac_word=$2 18354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18355$as_echo_n "checking for $ac_word... " >&6; } 18356if ${ac_cv_prog_KRB5CONFIG+:} false; then : 18357 $as_echo_n "(cached) " >&6 18358else 18359 if test -n "$KRB5CONFIG"; then 18360 ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test. 18361else 18362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18363for as_dir in $PATH 18364do 18365 IFS=$as_save_IFS 18366 test -z "$as_dir" && as_dir=. 18367 for ac_exec_ext in '' $ac_executable_extensions; do 18368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 18369 ac_cv_prog_KRB5CONFIG="yes" 18370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18371 break 2 18372 fi 18373done 18374 done 18375IFS=$as_save_IFS 18376 18377 test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG="""" 18378fi 18379fi 18380KRB5CONFIG=$ac_cv_prog_KRB5CONFIG 18381if test -n "$KRB5CONFIG"; then 18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 18383$as_echo "$KRB5CONFIG" >&6; } 18384else 18385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18386$as_echo "no" >&6; } 18387fi 18388 18389 18390 if test -n "$KRB5CONFIG"; then 18391 $as_echo "#define HAVE_KERB5 1" >>confdefs.h 18392 18393 AUTH_OBJS="$AUTH_OBJS kerb5.o" 18394 CPPFLAGS="$CPPFLAGS `krb5-config --cflags`" 18395 SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`" 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 18397$as_echo_n "checking whether we are using Heimdal... " >&6; } 18398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18399/* end confdefs.h. */ 18400#include <krb5.h> 18401int 18402main () 18403{ 18404const char *tmp = heimdal_version; 18405 ; 18406 return 0; 18407} 18408_ACEOF 18409if ac_fn_c_try_compile "$LINENO"; then : 18410 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18412$as_echo "yes" >&6; } 18413 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h 18414 18415 18416else 18417 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18419$as_echo "no" >&6; } 18420 18421 18422fi 18423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18424 else 18425 $as_echo "#define HAVE_KERB5 1" >>confdefs.h 18426 18427 if test "$with_kerb5" = "yes"; then 18428 found=no 18429 O_CPPFLAGS="$CPPFLAGS" 18430 for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do 18431 CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}" 18432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18433/* end confdefs.h. */ 18434#include <krb5.h> 18435int 18436main () 18437{ 18438 18439 ; 18440 return 0; 18441} 18442_ACEOF 18443if ac_fn_c_try_cpp "$LINENO"; then : 18444 found=yes; break 18445fi 18446rm -f conftest.err conftest.i conftest.$ac_ext 18447 done 18448 if test X"$found" = X"no"; then 18449 CPPFLAGS="$O_CPPFLAGS" 18450 { $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 18451$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;} 18452 fi 18453 else 18454 18455 if test X"$with_rpath" = X"yes"; then 18456 case "$host" in 18457 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,+b,${with_kerb5}/lib" 18458 ;; 18459 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -Wl,-R${with_kerb5}/lib" 18460 ;; 18461 esac 18462 else 18463 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib" 18464 fi 18465 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18466 blibpath_add="${blibpath_add}:${with_kerb5}/lib" 18467 fi 18468 18469 CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include" 18470 fi 18471 18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Heimdal" >&5 18473$as_echo_n "checking whether we are using Heimdal... " >&6; } 18474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18475/* end confdefs.h. */ 18476#include <krb5.h> 18477int 18478main () 18479{ 18480const char *tmp = heimdal_version; 18481 ; 18482 return 0; 18483} 18484_ACEOF 18485if ac_fn_c_try_compile "$LINENO"; then : 18486 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18488$as_echo "yes" >&6; } 18489 $as_echo "#define HAVE_HEIMDAL 1" >>confdefs.h 18490 18491 # XXX - need to check whether -lcrypo is needed! 18492 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1" 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lroken" >&5 18494$as_echo_n "checking for main in -lroken... " >&6; } 18495if ${ac_cv_lib_roken_main+:} false; then : 18496 $as_echo_n "(cached) " >&6 18497else 18498 ac_check_lib_save_LIBS=$LIBS 18499LIBS="-lroken $LIBS" 18500cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18501/* end confdefs.h. */ 18502 18503 18504int 18505main () 18506{ 18507return main (); 18508 ; 18509 return 0; 18510} 18511_ACEOF 18512if ac_fn_c_try_link "$LINENO"; then : 18513 ac_cv_lib_roken_main=yes 18514else 18515 ac_cv_lib_roken_main=no 18516fi 18517rm -f core conftest.err conftest.$ac_objext \ 18518 conftest$ac_exeext conftest.$ac_ext 18519LIBS=$ac_check_lib_save_LIBS 18520fi 18521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_roken_main" >&5 18522$as_echo "$ac_cv_lib_roken_main" >&6; } 18523if test "x$ac_cv_lib_roken_main" = xyes; then : 18524 SUDO_LIBS="${SUDO_LIBS} -lroken" 18525fi 18526 18527 18528else 18529 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18531$as_echo "no" >&6; } 18532 SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err" 18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkrb5support" >&5 18534$as_echo_n "checking for main in -lkrb5support... " >&6; } 18535if ${ac_cv_lib_krb5support_main+:} false; then : 18536 $as_echo_n "(cached) " >&6 18537else 18538 ac_check_lib_save_LIBS=$LIBS 18539LIBS="-lkrb5support $LIBS" 18540cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18541/* end confdefs.h. */ 18542 18543 18544int 18545main () 18546{ 18547return main (); 18548 ; 18549 return 0; 18550} 18551_ACEOF 18552if ac_fn_c_try_link "$LINENO"; then : 18553 ac_cv_lib_krb5support_main=yes 18554else 18555 ac_cv_lib_krb5support_main=no 18556fi 18557rm -f core conftest.err conftest.$ac_objext \ 18558 conftest$ac_exeext conftest.$ac_ext 18559LIBS=$ac_check_lib_save_LIBS 18560fi 18561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5support_main" >&5 18562$as_echo "$ac_cv_lib_krb5support_main" >&6; } 18563if test "x$ac_cv_lib_krb5support_main" = xyes; then : 18564 SUDO_LIBS="${SUDO_LIBS} -lkrb5support" 18565fi 18566 18567 18568fi 18569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18570 AUTH_OBJS="$AUTH_OBJS kerb5.o" 18571 fi 18572 _LIBS="$LIBS" 18573 LIBS="${LIBS} ${SUDO_LIBS}" 18574 for ac_func in krb5_verify_user krb5_init_secure_context 18575do : 18576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 18577ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 18578if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 18579 cat >>confdefs.h <<_ACEOF 18580#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18581_ACEOF 18582 18583fi 18584done 18585 18586 for ac_func in krb5_get_init_creds_opt_alloc 18587do : 18588 ac_fn_c_check_func "$LINENO" "krb5_get_init_creds_opt_alloc" "ac_cv_func_krb5_get_init_creds_opt_alloc" 18589if test "x$ac_cv_func_krb5_get_init_creds_opt_alloc" = xyes; then : 18590 cat >>confdefs.h <<_ACEOF 18591#define HAVE_KRB5_GET_INIT_CREDS_OPT_ALLOC 1 18592_ACEOF 18593 18594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether krb5_get_init_creds_opt_free takes a context" >&5 18595$as_echo_n "checking whether krb5_get_init_creds_opt_free takes a context... " >&6; } 18596if ${sudo_cv_krb5_get_init_creds_opt_free_two_args+:} false; then : 18597 $as_echo_n "(cached) " >&6 18598else 18599 18600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18601/* end confdefs.h. */ 18602#include <krb5.h> 18603int 18604main () 18605{ 18606krb5_get_init_creds_opt_free(NULL, NULL); 18607 18608 ; 18609 return 0; 18610} 18611_ACEOF 18612if ac_fn_c_try_compile "$LINENO"; then : 18613 sudo_cv_krb5_get_init_creds_opt_free_two_args=yes 18614else 18615 sudo_cv_krb5_get_init_creds_opt_free_two_args=no 18616 18617fi 18618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18619 18620 18621fi 18622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5 18623$as_echo "$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; } 18624 18625fi 18626done 18627 18628 if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then 18629 $as_echo "#define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1" >>confdefs.h 18630 18631 fi 18632 LIBS="$_LIBS" 18633fi 18634 18635if test ${with_AFS-'no'} = "yes"; then 18636 18637 # looks like the "standard" place for AFS libs is /usr/afsws/lib 18638 AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs" 18639 for i in $AFSLIBDIRS; do 18640 if test -d ${i}; then 18641 18642 if test X"$with_rpath" = X"yes"; then 18643 case "$host" in 18644 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,+b,$i" 18645 ;; 18646 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -Wl,-R$i" 18647 ;; 18648 esac 18649 else 18650 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i" 18651 fi 18652 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18653 blibpath_add="${blibpath_add}:$i" 18654 fi 18655 18656 FOUND_AFSLIBDIR=true 18657 fi 18658 done 18659 if test -z "$FOUND_AFSLIBDIR"; then 18660 { $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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5 18661$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 SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;} 18662 fi 18663 18664 # Order is important here. Note that we build AFS_LIBS from right to left 18665 # since AFS_LIBS may be initialized with BSD compat libs that must go last 18666 AFS_LIBS="-laudit ${AFS_LIBS}" 18667 for i in $AFSLIBDIRS; do 18668 if test -f ${i}/util.a; then 18669 AFS_LIBS="${i}/util.a ${AFS_LIBS}" 18670 FOUND_UTIL_A=true 18671 break; 18672 fi 18673 done 18674 if test -z "$FOUND_UTIL_A"; then 18675 AFS_LIBS="-lutil ${AFS_LIBS}" 18676 fi 18677 AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}" 18678 18679 # AFS includes may live in /usr/include on some machines... 18680 for i in /usr/afsws/include; do 18681 if test -d ${i}; then 18682 CPPFLAGS="${CPPFLAGS} -I${i}" 18683 FOUND_AFSINCDIR=true 18684 fi 18685 done 18686 18687 if test -z "$FOUND_AFSLIBDIR"; then 18688 { $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 18689$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;} 18690 fi 18691 18692 AUTH_OBJS="$AUTH_OBJS afs.o" 18693fi 18694 18695if test ${with_DCE-'no'} = "yes"; then 18696 DCE_OBJS="${DCE_OBJS} dce_pwent.o" 18697 SUDO_LIBS="${SUDO_LIBS} -ldce" 18698 AUTH_OBJS="$AUTH_OBJS dce.o" 18699fi 18700 18701if test "${with_skey-'no'}" = "yes"; then 18702 O_LDFLAGS="$LDFLAGS" 18703 if test "$with_skey" != "yes"; then 18704 CPPFLAGS="${CPPFLAGS} -I${with_skey}/include" 18705 18706 if test X"$with_rpath" = X"yes"; then 18707 case "$host" in 18708 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib" 18709 ;; 18710 *) LDFLAGS="${LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib" 18711 ;; 18712 esac 18713 else 18714 LDFLAGS="${LDFLAGS} -L${with_skey}/lib" 18715 fi 18716 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 18717 blibpath_add="${blibpath_add}:${with_skey}/lib" 18718 fi 18719 18720 18721 if test X"$with_rpath" = X"yes"; then 18722 case "$host" in 18723 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,+b,${with_skey}/lib" 18724 ;; 18725 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -Wl,-R${with_skey}/lib" 18726 ;; 18727 esac 18728 else 18729 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib" 18730 fi 18731 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18732 blibpath_add="${blibpath_add}:${with_skey}/lib" 18733 fi 18734 18735 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h> 18736" 18737if test "x$ac_cv_header_skey_h" = xyes; then : 18738 found=yes 18739else 18740 found=no 18741fi 18742 18743 18744 else 18745 found=no 18746 O_CPPFLAGS="$CPPFLAGS" 18747 for dir in "" "/usr/local" "/usr/contrib"; do 18748 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include" 18749 ac_fn_c_check_header_compile "$LINENO" "skey.h" "ac_cv_header_skey_h" "#include <stdio.h> 18750" 18751if test "x$ac_cv_header_skey_h" = xyes; then : 18752 found=yes; break 18753fi 18754 18755 18756 done 18757 if test "$found" = "no" -o -z "$dir"; then 18758 CPPFLAGS="$O_CPPFLAGS" 18759 else 18760 18761 if test X"$with_rpath" = X"yes"; then 18762 case "$host" in 18763 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib" 18764 ;; 18765 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib" 18766 ;; 18767 esac 18768 else 18769 LDFLAGS="${LDFLAGS} -L${dir}/lib" 18770 fi 18771 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 18772 blibpath_add="${blibpath_add}:${dir}/lib" 18773 fi 18774 18775 18776 if test X"$with_rpath" = X"yes"; then 18777 case "$host" in 18778 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib" 18779 ;; 18780 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib" 18781 ;; 18782 esac 18783 else 18784 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib" 18785 fi 18786 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18787 blibpath_add="${blibpath_add}:${dir}/lib" 18788 fi 18789 18790 fi 18791 fi 18792 if test "$found" = "no"; then 18793 { $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 18794$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;} 18795 fi 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lskey" >&5 18797$as_echo_n "checking for main in -lskey... " >&6; } 18798if ${ac_cv_lib_skey_main+:} false; then : 18799 $as_echo_n "(cached) " >&6 18800else 18801 ac_check_lib_save_LIBS=$LIBS 18802LIBS="-lskey $LIBS" 18803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18804/* end confdefs.h. */ 18805 18806 18807int 18808main () 18809{ 18810return main (); 18811 ; 18812 return 0; 18813} 18814_ACEOF 18815if ac_fn_c_try_link "$LINENO"; then : 18816 ac_cv_lib_skey_main=yes 18817else 18818 ac_cv_lib_skey_main=no 18819fi 18820rm -f core conftest.err conftest.$ac_objext \ 18821 conftest$ac_exeext conftest.$ac_ext 18822LIBS=$ac_check_lib_save_LIBS 18823fi 18824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_main" >&5 18825$as_echo "$ac_cv_lib_skey_main" >&6; } 18826if test "x$ac_cv_lib_skey_main" = xyes; then : 18827 found=yes 18828else 18829 { $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 SUDO_LDFLAGS" >&5 18830$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 SUDO_LDFLAGS" >&2;} 18831fi 18832 18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for skeyaccess in -lskey" >&5 18834$as_echo_n "checking for skeyaccess in -lskey... " >&6; } 18835if ${ac_cv_lib_skey_skeyaccess+:} false; then : 18836 $as_echo_n "(cached) " >&6 18837else 18838 ac_check_lib_save_LIBS=$LIBS 18839LIBS="-lskey $LIBS" 18840cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18841/* end confdefs.h. */ 18842 18843/* Override any GCC internal prototype to avoid an error. 18844 Use char because int might match the return type of a GCC 18845 builtin and then its argument prototype would still apply. */ 18846#ifdef __cplusplus 18847extern "C" 18848#endif 18849char skeyaccess (); 18850int 18851main () 18852{ 18853return skeyaccess (); 18854 ; 18855 return 0; 18856} 18857_ACEOF 18858if ac_fn_c_try_link "$LINENO"; then : 18859 ac_cv_lib_skey_skeyaccess=yes 18860else 18861 ac_cv_lib_skey_skeyaccess=no 18862fi 18863rm -f core conftest.err conftest.$ac_objext \ 18864 conftest$ac_exeext conftest.$ac_ext 18865LIBS=$ac_check_lib_save_LIBS 18866fi 18867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_skey_skeyaccess" >&5 18868$as_echo "$ac_cv_lib_skey_skeyaccess" >&6; } 18869if test "x$ac_cv_lib_skey_skeyaccess" = xyes; then : 18870 $as_echo "#define HAVE_SKEYACCESS 1" >>confdefs.h 18871 18872fi 18873 18874 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RFC1938-compliant skeychallenge" >&5 18876$as_echo_n "checking for RFC1938-compliant skeychallenge... " >&6; } 18877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18878/* end confdefs.h. */ 18879#include <stdio.h> 18880 #include <skey.h> 18881int 18882main () 18883{ 18884skeychallenge(NULL, NULL, NULL, 0); 18885 18886 ; 18887 return 0; 18888} 18889_ACEOF 18890if ac_fn_c_try_compile "$LINENO"; then : 18891 18892 $as_echo "#define HAVE_RFC1938_SKEYCHALLENGE 1" >>confdefs.h 18893 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18895$as_echo "yes" >&6; } 18896 18897else 18898 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18900$as_echo "no" >&6; } 18901 18902 18903fi 18904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18905 18906 LDFLAGS="$O_LDFLAGS" 18907 SUDO_LIBS="${SUDO_LIBS} -lskey" 18908 AUTH_OBJS="$AUTH_OBJS rfc1938.o" 18909fi 18910 18911if test "${with_opie-'no'}" = "yes"; then 18912 O_LDFLAGS="$LDFLAGS" 18913 if test "$with_opie" != "yes"; then 18914 CPPFLAGS="${CPPFLAGS} -I${with_opie}/include" 18915 18916 if test X"$with_rpath" = X"yes"; then 18917 case "$host" in 18918 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib" 18919 ;; 18920 *) LDFLAGS="${LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib" 18921 ;; 18922 esac 18923 else 18924 LDFLAGS="${LDFLAGS} -L${with_opie}/lib" 18925 fi 18926 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 18927 blibpath_add="${blibpath_add}:${with_opie}/lib" 18928 fi 18929 18930 18931 if test X"$with_rpath" = X"yes"; then 18932 case "$host" in 18933 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,+b,${with_opie}/lib" 18934 ;; 18935 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -Wl,-R${with_opie}/lib" 18936 ;; 18937 esac 18938 else 18939 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib" 18940 fi 18941 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 18942 blibpath_add="${blibpath_add}:${with_opie}/lib" 18943 fi 18944 18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18946/* end confdefs.h. */ 18947#include <opie.h> 18948int 18949main () 18950{ 18951 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956if ac_fn_c_try_cpp "$LINENO"; then : 18957 found=yes 18958else 18959 found=no 18960fi 18961rm -f conftest.err conftest.i conftest.$ac_ext 18962 else 18963 found=no 18964 O_CPPFLAGS="$CPPFLAGS" 18965 for dir in "" "/usr/local" "/usr/contrib"; do 18966 test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include" 18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18968/* end confdefs.h. */ 18969#include <opie.h> 18970int 18971main () 18972{ 18973 18974 ; 18975 return 0; 18976} 18977_ACEOF 18978if ac_fn_c_try_cpp "$LINENO"; then : 18979 found=yes; break 18980fi 18981rm -f conftest.err conftest.i conftest.$ac_ext 18982 done 18983 if test "$found" = "no" -o -z "$dir"; then 18984 CPPFLAGS="$O_CPPFLAGS" 18985 else 18986 18987 if test X"$with_rpath" = X"yes"; then 18988 case "$host" in 18989 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib" 18990 ;; 18991 *) LDFLAGS="${LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib" 18992 ;; 18993 esac 18994 else 18995 LDFLAGS="${LDFLAGS} -L${dir}/lib" 18996 fi 18997 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 18998 blibpath_add="${blibpath_add}:${dir}/lib" 18999 fi 19000 19001 19002 if test X"$with_rpath" = X"yes"; then 19003 case "$host" in 19004 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,+b,${dir}/lib" 19005 ;; 19006 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -Wl,-R${dir}/lib" 19007 ;; 19008 esac 19009 else 19010 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib" 19011 fi 19012 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 19013 blibpath_add="${blibpath_add}:${dir}/lib" 19014 fi 19015 19016 fi 19017 fi 19018 if test "$found" = "no"; then 19019 { $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 19020$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;} 19021 fi 19022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lopie" >&5 19023$as_echo_n "checking for main in -lopie... " >&6; } 19024if ${ac_cv_lib_opie_main+:} false; then : 19025 $as_echo_n "(cached) " >&6 19026else 19027 ac_check_lib_save_LIBS=$LIBS 19028LIBS="-lopie $LIBS" 19029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19030/* end confdefs.h. */ 19031 19032 19033int 19034main () 19035{ 19036return main (); 19037 ; 19038 return 0; 19039} 19040_ACEOF 19041if ac_fn_c_try_link "$LINENO"; then : 19042 ac_cv_lib_opie_main=yes 19043else 19044 ac_cv_lib_opie_main=no 19045fi 19046rm -f core conftest.err conftest.$ac_objext \ 19047 conftest$ac_exeext conftest.$ac_ext 19048LIBS=$ac_check_lib_save_LIBS 19049fi 19050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_opie_main" >&5 19051$as_echo "$ac_cv_lib_opie_main" >&6; } 19052if test "x$ac_cv_lib_opie_main" = xyes; then : 19053 found=yes 19054else 19055 { $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 SUDO_LDFLAGS" >&5 19056$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 SUDO_LDFLAGS" >&2;} 19057fi 19058 19059 LDFLAGS="$O_LDFLAGS" 19060 SUDO_LIBS="${SUDO_LIBS} -lopie" 19061 AUTH_OBJS="$AUTH_OBJS rfc1938.o" 19062fi 19063 19064if test ${with_passwd-'no'} != "no"; then 19065 if test -z "$LIB_CRYPT"; then 19066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 19067$as_echo_n "checking for library containing crypt... " >&6; } 19068if ${ac_cv_search_crypt+:} false; then : 19069 $as_echo_n "(cached) " >&6 19070else 19071 ac_func_search_save_LIBS=$LIBS 19072cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19073/* end confdefs.h. */ 19074 19075/* Override any GCC internal prototype to avoid an error. 19076 Use char because int might match the return type of a GCC 19077 builtin and then its argument prototype would still apply. */ 19078#ifdef __cplusplus 19079extern "C" 19080#endif 19081char crypt (); 19082int 19083main () 19084{ 19085return crypt (); 19086 ; 19087 return 0; 19088} 19089_ACEOF 19090for ac_lib in '' crypt crypt_d ufc; do 19091 if test -z "$ac_lib"; then 19092 ac_res="none required" 19093 else 19094 ac_res=-l$ac_lib 19095 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19096 fi 19097 if ac_fn_c_try_link "$LINENO"; then : 19098 ac_cv_search_crypt=$ac_res 19099fi 19100rm -f core conftest.err conftest.$ac_objext \ 19101 conftest$ac_exeext 19102 if ${ac_cv_search_crypt+:} false; then : 19103 break 19104fi 19105done 19106if ${ac_cv_search_crypt+:} false; then : 19107 19108else 19109 ac_cv_search_crypt=no 19110fi 19111rm conftest.$ac_ext 19112LIBS=$ac_func_search_save_LIBS 19113fi 19114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 19115$as_echo "$ac_cv_search_crypt" >&6; } 19116ac_res=$ac_cv_search_crypt 19117if test "$ac_res" != no; then : 19118 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19119 test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res" 19120fi 19121 19122 fi 19123 19124 if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then 19125 _LIBS="$LIBS" 19126 LIBS="$LIBS $shadow_libs" 19127 found=no 19128 for ac_func in $shadow_funcs 19129do : 19130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19131ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19132if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19133 cat >>confdefs.h <<_ACEOF 19134#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19135_ACEOF 19136 found=yes 19137fi 19138done 19139 19140 if test "$found" = "yes"; then 19141 SUDO_LIBS="$SUDO_LIBS $shadow_libs" 19142 elif test -n "$shadow_libs_optional"; then 19143 LIBS="$LIBS $shadow_libs_optional" 19144 for ac_func in $shadow_funcs 19145do : 19146 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19147ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19148if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19149 cat >>confdefs.h <<_ACEOF 19150#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19151_ACEOF 19152 found=yes 19153fi 19154done 19155 19156 if test "$found" = "yes"; then 19157 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional" 19158 fi 19159 fi 19160 if test "$found" = "yes"; then 19161 case "$shadow_funcs" in 19162 *getprpwnam*) SECUREWARE=1;; 19163 esac 19164 test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs" 19165 else 19166 LIBS="$_LIBS" 19167 fi 19168 CHECKSHADOW=false 19169 fi 19170 if test "$CHECKSHADOW" = "true"; then 19171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspnam" >&5 19172$as_echo_n "checking for library containing getspnam... " >&6; } 19173if ${ac_cv_search_getspnam+:} false; then : 19174 $as_echo_n "(cached) " >&6 19175else 19176 ac_func_search_save_LIBS=$LIBS 19177cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19178/* end confdefs.h. */ 19179 19180/* Override any GCC internal prototype to avoid an error. 19181 Use char because int might match the return type of a GCC 19182 builtin and then its argument prototype would still apply. */ 19183#ifdef __cplusplus 19184extern "C" 19185#endif 19186char getspnam (); 19187int 19188main () 19189{ 19190return getspnam (); 19191 ; 19192 return 0; 19193} 19194_ACEOF 19195for ac_lib in '' gen; do 19196 if test -z "$ac_lib"; then 19197 ac_res="none required" 19198 else 19199 ac_res=-l$ac_lib 19200 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19201 fi 19202 if ac_fn_c_try_link "$LINENO"; then : 19203 ac_cv_search_getspnam=$ac_res 19204fi 19205rm -f core conftest.err conftest.$ac_objext \ 19206 conftest$ac_exeext 19207 if ${ac_cv_search_getspnam+:} false; then : 19208 break 19209fi 19210done 19211if ${ac_cv_search_getspnam+:} false; then : 19212 19213else 19214 ac_cv_search_getspnam=no 19215fi 19216rm conftest.$ac_ext 19217LIBS=$ac_func_search_save_LIBS 19218fi 19219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspnam" >&5 19220$as_echo "$ac_cv_search_getspnam" >&6; } 19221ac_res=$ac_cv_search_getspnam 19222if test "$ac_res" != no; then : 19223 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19224 $as_echo "#define HAVE_GETSPNAM 1" >>confdefs.h 19225 CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res" 19226fi 19227 19228 fi 19229 if test "$CHECKSHADOW" = "true"; then 19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getprpwnam" >&5 19231$as_echo_n "checking for library containing getprpwnam... " >&6; } 19232if ${ac_cv_search_getprpwnam+:} false; then : 19233 $as_echo_n "(cached) " >&6 19234else 19235 ac_func_search_save_LIBS=$LIBS 19236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19237/* end confdefs.h. */ 19238 19239/* Override any GCC internal prototype to avoid an error. 19240 Use char because int might match the return type of a GCC 19241 builtin and then its argument prototype would still apply. */ 19242#ifdef __cplusplus 19243extern "C" 19244#endif 19245char getprpwnam (); 19246int 19247main () 19248{ 19249return getprpwnam (); 19250 ; 19251 return 0; 19252} 19253_ACEOF 19254for ac_lib in '' sec security prot; do 19255 if test -z "$ac_lib"; then 19256 ac_res="none required" 19257 else 19258 ac_res=-l$ac_lib 19259 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19260 fi 19261 if ac_fn_c_try_link "$LINENO"; then : 19262 ac_cv_search_getprpwnam=$ac_res 19263fi 19264rm -f core conftest.err conftest.$ac_objext \ 19265 conftest$ac_exeext 19266 if ${ac_cv_search_getprpwnam+:} false; then : 19267 break 19268fi 19269done 19270if ${ac_cv_search_getprpwnam+:} false; then : 19271 19272else 19273 ac_cv_search_getprpwnam=no 19274fi 19275rm conftest.$ac_ext 19276LIBS=$ac_func_search_save_LIBS 19277fi 19278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getprpwnam" >&5 19279$as_echo "$ac_cv_search_getprpwnam" >&6; } 19280ac_res=$ac_cv_search_getprpwnam 19281if test "$ac_res" != no; then : 19282 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19283 $as_echo "#define HAVE_GETPRPWNAM 1" >>confdefs.h 19284 CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res" 19285fi 19286 19287 fi 19288 if test -n "$SECUREWARE"; then 19289 for ac_func in bigcrypt set_auth_parameters initprivs 19290do : 19291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19292ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19293if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19294 cat >>confdefs.h <<_ACEOF 19295#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19296_ACEOF 19297 19298fi 19299done 19300 19301 AUTH_OBJS="$AUTH_OBJS secureware.o" 19302 fi 19303fi 19304 19305if test ${with_ldap-'no'} != "no"; then 19306 _LDFLAGS="$LDFLAGS" 19307 if test "$with_ldap" != "yes"; then 19308 19309 if test X"$with_rpath" = X"yes"; then 19310 case "$host" in 19311 *-*-hpux*) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib" 19312 ;; 19313 *) SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib" 19314 ;; 19315 esac 19316 else 19317 SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib" 19318 fi 19319 if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then 19320 blibpath_add="${blibpath_add}:${with_ldap}/lib" 19321 fi 19322 19323 19324 if test X"$with_rpath" = X"yes"; then 19325 case "$host" in 19326 *-*-hpux*) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,+b,${with_ldap}/lib" 19327 ;; 19328 *) LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -Wl,-R${with_ldap}/lib" 19329 ;; 19330 esac 19331 else 19332 LDFLAGS="${LDFLAGS} -L${with_ldap}/lib" 19333 fi 19334 if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then 19335 blibpath_add="${blibpath_add}:${with_ldap}/lib" 19336 fi 19337 19338 CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include" 19339 with_ldap=yes 19340 fi 19341 SUDO_OBJS="${SUDO_OBJS} ldap.o" 19342 LDAP="" 19343 19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5 19345$as_echo_n "checking for LDAP libraries... " >&6; } 19346 LDAP_LIBS="" 19347 _LIBS="$LIBS" 19348 found=no 19349 for l in -lldap -llber '-lssl -lcrypto'; do 19350 LIBS="${LIBS} $l" 19351 LDAP_LIBS="${LDAP_LIBS} $l" 19352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19353/* end confdefs.h. */ 19354#include <sys/types.h> 19355 #include <lber.h> 19356 #include <ldap.h> 19357int 19358main () 19359{ 19360(void)ldap_init(0, 0) 19361 ; 19362 return 0; 19363} 19364_ACEOF 19365if ac_fn_c_try_link "$LINENO"; then : 19366 found=yes; break 19367fi 19368rm -f core conftest.err conftest.$ac_objext \ 19369 conftest$ac_exeext conftest.$ac_ext 19370 done 19371 if test "$found" = "no"; then 19372 LDAP_LIBS="" 19373 LIBS="$_LIBS" 19374 for l in -libmldap -lidsldif; do 19375 LIBS="${LIBS} $l" 19376 LDAP_LIBS="${LDAP_LIBS} $l" 19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19378/* end confdefs.h. */ 19379#include <sys/types.h> 19380 #include <lber.h> 19381 #include <ldap.h> 19382int 19383main () 19384{ 19385(void)ldap_init(0, 0) 19386 ; 19387 return 0; 19388} 19389_ACEOF 19390if ac_fn_c_try_link "$LINENO"; then : 19391 found=yes; break 19392fi 19393rm -f core conftest.err conftest.$ac_objext \ 19394 conftest$ac_exeext conftest.$ac_ext 19395 done 19396 fi 19397 if test "$found" = "no"; then 19398 LIBS="${_LIBS} -lldap" 19399 LDAP_LIBS="-lldap" 19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using -lldap" >&5 19401$as_echo "not found, using -lldap" >&6; } 19402 else 19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDAP_LIBS" >&5 19404$as_echo "$LDAP_LIBS" >&6; } 19405 fi 19406 OLIBS="$LIBS" 19407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ber_set_option" >&5 19408$as_echo_n "checking for library containing ber_set_option... " >&6; } 19409if ${ac_cv_search_ber_set_option+:} false; then : 19410 $as_echo_n "(cached) " >&6 19411else 19412 ac_func_search_save_LIBS=$LIBS 19413cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19414/* end confdefs.h. */ 19415 19416/* Override any GCC internal prototype to avoid an error. 19417 Use char because int might match the return type of a GCC 19418 builtin and then its argument prototype would still apply. */ 19419#ifdef __cplusplus 19420extern "C" 19421#endif 19422char ber_set_option (); 19423int 19424main () 19425{ 19426return ber_set_option (); 19427 ; 19428 return 0; 19429} 19430_ACEOF 19431for ac_lib in '' lber; do 19432 if test -z "$ac_lib"; then 19433 ac_res="none required" 19434 else 19435 ac_res=-l$ac_lib 19436 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19437 fi 19438 if ac_fn_c_try_link "$LINENO"; then : 19439 ac_cv_search_ber_set_option=$ac_res 19440fi 19441rm -f core conftest.err conftest.$ac_objext \ 19442 conftest$ac_exeext 19443 if ${ac_cv_search_ber_set_option+:} false; then : 19444 break 19445fi 19446done 19447if ${ac_cv_search_ber_set_option+:} false; then : 19448 19449else 19450 ac_cv_search_ber_set_option=no 19451fi 19452rm conftest.$ac_ext 19453LIBS=$ac_func_search_save_LIBS 19454fi 19455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ber_set_option" >&5 19456$as_echo "$ac_cv_search_ber_set_option" >&6; } 19457ac_res=$ac_cv_search_ber_set_option 19458if test "$ac_res" != no; then : 19459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19460 found=yes 19461else 19462 found=no 19463fi 19464 19465 if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then 19466 LDAP_LIBS="$LDAP_LIBS -llber" 19467 fi 19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lber.h is needed" >&5 19469$as_echo_n "checking whether lber.h is needed... " >&6; } 19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19471/* end confdefs.h. */ 19472#include <sys/types.h> 19473 #include <ldap.h> 19474int 19475main () 19476{ 19477(void)ldap_init(0, 0) 19478 ; 19479 return 0; 19480} 19481_ACEOF 19482if ac_fn_c_try_link "$LINENO"; then : 19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19484$as_echo "no" >&6; } 19485else 19486 19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19488$as_echo "yes" >&6; } 19489 $as_echo "#define HAVE_LBER_H 1" >>confdefs.h 19490 19491fi 19492rm -f core conftest.err conftest.$ac_objext \ 19493 conftest$ac_exeext conftest.$ac_ext 19494 19495 for ac_header in sasl/sasl.h sasl.h 19496do : 19497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19498ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19499if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19500 cat >>confdefs.h <<_ACEOF 19501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19502_ACEOF 19503 for ac_func in ldap_sasl_interactive_bind_s 19504do : 19505 ac_fn_c_check_func "$LINENO" "ldap_sasl_interactive_bind_s" "ac_cv_func_ldap_sasl_interactive_bind_s" 19506if test "x$ac_cv_func_ldap_sasl_interactive_bind_s" = xyes; then : 19507 cat >>confdefs.h <<_ACEOF 19508#define HAVE_LDAP_SASL_INTERACTIVE_BIND_S 1 19509_ACEOF 19510 19511fi 19512done 19513 19514else 19515 break 19516fi 19517 19518done 19519 19520 for ac_header in ldap_ssl.h mps/ldap_ssl.h 19521do : 19522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19523ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <ldap.h> 19524" 19525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19526 cat >>confdefs.h <<_ACEOF 19527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19528_ACEOF 19529 break 19530fi 19531 19532done 19533 19534 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 19535do : 19536 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19537ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19538if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19539 cat >>confdefs.h <<_ACEOF 19540#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19541_ACEOF 19542 19543fi 19544done 19545 19546 for ac_func in ldap_search_ext_s ldap_search_st 19547do : 19548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19549ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19550if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19551 cat >>confdefs.h <<_ACEOF 19552#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19553_ACEOF 19554 break 19555fi 19556done 19557 19558 19559 if test X"$check_gss_krb5_ccache_name" = X"yes"; then 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi" >&5 19561$as_echo_n "checking for gss_krb5_ccache_name in -lgssapi... " >&6; } 19562if ${ac_cv_lib_gssapi_gss_krb5_ccache_name+:} false; then : 19563 $as_echo_n "(cached) " >&6 19564else 19565 ac_check_lib_save_LIBS=$LIBS 19566LIBS="-lgssapi $LIBS" 19567cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19568/* end confdefs.h. */ 19569 19570/* Override any GCC internal prototype to avoid an error. 19571 Use char because int might match the return type of a GCC 19572 builtin and then its argument prototype would still apply. */ 19573#ifdef __cplusplus 19574extern "C" 19575#endif 19576char gss_krb5_ccache_name (); 19577int 19578main () 19579{ 19580return gss_krb5_ccache_name (); 19581 ; 19582 return 0; 19583} 19584_ACEOF 19585if ac_fn_c_try_link "$LINENO"; then : 19586 ac_cv_lib_gssapi_gss_krb5_ccache_name=yes 19587else 19588 ac_cv_lib_gssapi_gss_krb5_ccache_name=no 19589fi 19590rm -f core conftest.err conftest.$ac_objext \ 19591 conftest$ac_exeext conftest.$ac_ext 19592LIBS=$ac_check_lib_save_LIBS 19593fi 19594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5 19595$as_echo "$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; } 19596if test "x$ac_cv_lib_gssapi_gss_krb5_ccache_name" = xyes; then : 19597 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h 19598 19599 LDAP_LIBS="${LDAP_LIBS} -lgssapi" 19600else 19601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5 19602$as_echo_n "checking for gss_krb5_ccache_name in -lgssapi_krb5... " >&6; } 19603if ${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+:} false; then : 19604 $as_echo_n "(cached) " >&6 19605else 19606 ac_check_lib_save_LIBS=$LIBS 19607LIBS="-lgssapi_krb5 $LIBS" 19608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19609/* end confdefs.h. */ 19610 19611/* Override any GCC internal prototype to avoid an error. 19612 Use char because int might match the return type of a GCC 19613 builtin and then its argument prototype would still apply. */ 19614#ifdef __cplusplus 19615extern "C" 19616#endif 19617char gss_krb5_ccache_name (); 19618int 19619main () 19620{ 19621return gss_krb5_ccache_name (); 19622 ; 19623 return 0; 19624} 19625_ACEOF 19626if ac_fn_c_try_link "$LINENO"; then : 19627 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes 19628else 19629 ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no 19630fi 19631rm -f core conftest.err conftest.$ac_objext \ 19632 conftest$ac_exeext conftest.$ac_ext 19633LIBS=$ac_check_lib_save_LIBS 19634fi 19635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5 19636$as_echo "$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; } 19637if test "x$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" = xyes; then : 19638 $as_echo "#define HAVE_GSS_KRB5_CCACHE_NAME 1" >>confdefs.h 19639 19640 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5" 19641fi 19642 19643 19644fi 19645 19646 19647 # gssapi headers may be separate or part of Kerberos V 19648 found=no 19649 O_CPPFLAGS="$CPPFLAGS" 19650 for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do 19651 test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}" 19652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19653/* end confdefs.h. */ 19654#include <gssapi/gssapi.h> 19655int 19656main () 19657{ 19658 19659 ; 19660 return 0; 19661} 19662_ACEOF 19663if ac_fn_c_try_cpp "$LINENO"; then : 19664 found="gssapi/gssapi.h"; break 19665else 19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19667/* end confdefs.h. */ 19668#include <gssapi.h> 19669int 19670main () 19671{ 19672 19673 ; 19674 return 0; 19675} 19676_ACEOF 19677if ac_fn_c_try_cpp "$LINENO"; then : 19678 found="gssapi.h"; break 19679fi 19680rm -f conftest.err conftest.i conftest.$ac_ext 19681fi 19682rm -f conftest.err conftest.i conftest.$ac_ext 19683 done 19684 if test X"$found" != X"no"; then 19685 for ac_header in $found 19686do : 19687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19688ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19689if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19690 cat >>confdefs.h <<_ACEOF 19691#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19692_ACEOF 19693 19694fi 19695 19696done 19697 19698 if test X"$found" = X"gssapi/gssapi.h"; then 19699 for ac_header in gssapi/gssapi_krb5.h 19700do : 19701 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default" 19702if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then : 19703 cat >>confdefs.h <<_ACEOF 19704#define HAVE_GSSAPI_GSSAPI_KRB5_H 1 19705_ACEOF 19706 19707fi 19708 19709done 19710 19711 fi 19712 else 19713 CPPFLAGS="$O_CPPFLAGS" 19714 { $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 19715$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;} 19716 fi 19717 fi 19718 19719 SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}" 19720 LIBS="$_LIBS" 19721 LDFLAGS="$_LDFLAGS" 19722fi 19723 19724if test X"$LIBVAS_RPATH" != X""; then 19725 if test -n "$blibpath"; then 19726 blibpath_add="${blibpath_add}:$LIBVAS_RPATH" 19727 else 19728 case "$host" in 19729 *-*-hpux*) LDFLAGS="$LDFLAGS -Wl,+b,$LIBVAS_RPATH" 19730 ;; 19731 *) LDFLAGS="$LDFLAGS -Wl,-R$LIBVAS_RPATH" 19732 ;; 19733 esac 19734 fi 19735fi 19736 19737if test -n "$blibpath"; then 19738 if test -n "$blibpath_add"; then 19739 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}" 19740 elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then 19741 SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}" 19742 fi 19743fi 19744 19745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log file location" >&5 19746$as_echo_n "checking for log file location... " >&6; } 19747if test -n "$with_logpath"; then 19748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_logpath" >&5 19749$as_echo "$with_logpath" >&6; } 19750 cat >>confdefs.h <<EOF 19751#define _PATH_SUDO_LOGFILE "$with_logpath" 19752EOF 19753 19754elif test -d "/var/log"; then 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/log/sudo.log" >&5 19756$as_echo "/var/log/sudo.log" >&6; } 19757 cat >>confdefs.h <<\EOF 19758#define _PATH_SUDO_LOGFILE "/var/log/sudo.log" 19759EOF 19760 19761elif test -d "/var/adm"; then 19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /var/adm/sudo.log" >&5 19763$as_echo "/var/adm/sudo.log" >&6; } 19764 cat >>confdefs.h <<\EOF 19765#define _PATH_SUDO_LOGFILE "/var/adm/sudo.log" 19766EOF 19767 19768elif test -d "/usr/adm"; then 19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /usr/adm/sudo.log" >&5 19770$as_echo "/usr/adm/sudo.log" >&6; } 19771 cat >>confdefs.h <<\EOF 19772#define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log" 19773EOF 19774 19775else 19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 19777$as_echo "unknown" >&6; } 19778fi 19779 19780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timestamp file location" >&5 19781$as_echo_n "checking for timestamp file location... " >&6; } 19782timedir="$with_timedir" 19783if test -z "$timedir"; then 19784 for d in /var/db /var/lib /var/adm /usr/adm; do 19785 if test -d "$d"; then 19786 timedir="$d/sudo" 19787 break 19788 fi 19789 done 19790fi 19791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $timedir" >&5 19792$as_echo "$timedir" >&6; } 19793cat >>confdefs.h <<EOF 19794#define _PATH_SUDO_TIMEDIR "$timedir" 19795EOF 19796 19797 19798 19799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for I/O log dir location" >&5 19800$as_echo_n "checking for I/O log dir location... " >&6; } 19801 if test "${with_iologdir-yes}" != "yes"; then 19802 iolog_dir="$with_iologdir" 19803 elif test -d "/var/log"; then 19804 iolog_dir="/var/log/sudo-io" 19805 elif test -d "/var/adm"; then 19806 iolog_dir="/var/adm/sudo-io" 19807 else 19808 iolog_dir="/usr/adm/sudo-io" 19809 fi 19810 if test "${with_iologdir}" != "no"; then 19811 cat >>confdefs.h <<EOF 19812#define _PATH_SUDO_IO_LOGDIR "$iolog_dir" 19813EOF 19814 19815 fi 19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iolog_dir" >&5 19817$as_echo "$iolog_dir" >&6; } 19818 19819 19820if test "${with_iologdir-yes}" != "no"; then 19821 # Require POSIX job control for I/O log support 19822 for ac_func in tcsetpgrp 19823do : 19824 ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp" 19825if test "x$ac_cv_func_tcsetpgrp" = xyes; then : 19826 cat >>confdefs.h <<_ACEOF 19827#define HAVE_TCSETPGRP 1 19828_ACEOF 19829 19830 SUDO_OBJS="${SUDO_OBJS} exec_pty.o get_pty.o iolog.o" 19831 PROGS="$PROGS sudoreplay" 19832 REPLAY="" 19833 19834 # Check whether --enable-zlib was given. 19835if test "${enable_zlib+set}" = set; then : 19836 enableval=$enable_zlib; 19837fi 19838 19839 case ${enable_zlib-"yes"} in 19840 yes) 19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzdopen in -lz" >&5 19842$as_echo_n "checking for gzdopen in -lz... " >&6; } 19843if ${ac_cv_lib_z_gzdopen+:} false; then : 19844 $as_echo_n "(cached) " >&6 19845else 19846 ac_check_lib_save_LIBS=$LIBS 19847LIBS="-lz $LIBS" 19848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19849/* end confdefs.h. */ 19850 19851/* Override any GCC internal prototype to avoid an error. 19852 Use char because int might match the return type of a GCC 19853 builtin and then its argument prototype would still apply. */ 19854#ifdef __cplusplus 19855extern "C" 19856#endif 19857char gzdopen (); 19858int 19859main () 19860{ 19861return gzdopen (); 19862 ; 19863 return 0; 19864} 19865_ACEOF 19866if ac_fn_c_try_link "$LINENO"; then : 19867 ac_cv_lib_z_gzdopen=yes 19868else 19869 ac_cv_lib_z_gzdopen=no 19870fi 19871rm -f core conftest.err conftest.$ac_objext \ 19872 conftest$ac_exeext conftest.$ac_ext 19873LIBS=$ac_check_lib_save_LIBS 19874fi 19875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzdopen" >&5 19876$as_echo "$ac_cv_lib_z_gzdopen" >&6; } 19877if test "x$ac_cv_lib_z_gzdopen" = xyes; then : 19878 19879 for ac_header in zlib.h 19880do : 19881 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 19882if test "x$ac_cv_header_zlib_h" = xyes; then : 19883 cat >>confdefs.h <<_ACEOF 19884#define HAVE_ZLIB_H 1 19885_ACEOF 19886 ZLIB="-lz" 19887else 19888 enable_zlib=builtin 19889fi 19890 19891done 19892 19893 19894fi 19895 19896 ;; 19897 no) 19898 ;; 19899 system) 19900 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 19901 19902 ZLIB="-lz" 19903 ;; 19904 builtin) 19905 # handled below 19906 ;; 19907 *) 19908 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 19909 19910 CPPFLAGS="${CPPFLAGS} -I${enable_zlib}/include" 19911 19912 if test X"$with_rpath" = X"yes"; then 19913 case "$host" in 19914 *-*-hpux*) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,+b,$enable_zlib/lib" 19915 ;; 19916 *) ZLIB="${ZLIB} -L$enable_zlib/lib -Wl,-R$enable_zlib/lib" 19917 ;; 19918 esac 19919 else 19920 ZLIB="${ZLIB} -L$enable_zlib/lib" 19921 fi 19922 if test X"$blibpath" != X"" -a "ZLIB" = "SUDO_LDFLAGS"; then 19923 blibpath_add="${blibpath_add}:$enable_zlib/lib" 19924 fi 19925 19926 ZLIB="${ZLIB} -lz" 19927 ;; 19928 esac 19929 if test X"$enable_zlib" = X"builtin"; then 19930 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h 19931 19932 CPPFLAGS="${CPPFLAGS}"' -I$(srcdir)/zlib' 19933 ZLIB="${ZLIB} libz.a" 19934 ZLIB_DEP=libz.a 19935 fi 19936 19937else 19938 19939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&5 19940$as_echo "$as_me: WARNING: Disabling I/O log support due to lack of tcsetpgrp function" >&2;} 19941 with_iologdir=no 19942 19943fi 19944done 19945 19946fi 19947 19948if test "$enable_pie" != "no" -a -n "$GCC"; then 19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fPIE" >&5 19950$as_echo_n "checking whether C compiler accepts -fPIE... " >&6; } 19951if ${ax_cv_check_cflags___fPIE+:} false; then : 19952 $as_echo_n "(cached) " >&6 19953else 19954 19955 ax_check_save_flags=$CFLAGS 19956 CFLAGS="$CFLAGS -fPIE" 19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19958/* end confdefs.h. */ 19959 19960int 19961main () 19962{ 19963 19964 ; 19965 return 0; 19966} 19967_ACEOF 19968if ac_fn_c_try_compile "$LINENO"; then : 19969 ax_cv_check_cflags___fPIE=yes 19970else 19971 ax_cv_check_cflags___fPIE=no 19972fi 19973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19974 CFLAGS=$ax_check_save_flags 19975fi 19976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fPIE" >&5 19977$as_echo "$ax_cv_check_cflags___fPIE" >&6; } 19978if test x"$ax_cv_check_cflags___fPIE" = xyes; then : 19979 19980 _CFLAGS="$CFLAGS" 19981 CFLAGS="$CFLAGS -fPIE" 19982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -pie" >&5 19983$as_echo_n "checking whether the linker accepts -pie... " >&6; } 19984if ${ax_cv_check_ldflags___pie+:} false; then : 19985 $as_echo_n "(cached) " >&6 19986else 19987 19988 ax_check_save_flags=$LDFLAGS 19989 LDFLAGS="$LDFLAGS -pie" 19990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19991/* end confdefs.h. */ 19992 19993int 19994main () 19995{ 19996 19997 ; 19998 return 0; 19999} 20000_ACEOF 20001if ac_fn_c_try_link "$LINENO"; then : 20002 ax_cv_check_ldflags___pie=yes 20003else 20004 ax_cv_check_ldflags___pie=no 20005fi 20006rm -f core conftest.err conftest.$ac_objext \ 20007 conftest$ac_exeext conftest.$ac_ext 20008 LDFLAGS=$ax_check_save_flags 20009fi 20010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___pie" >&5 20011$as_echo "$ax_cv_check_ldflags___pie" >&6; } 20012if test x"$ax_cv_check_ldflags___pie" = xyes; then : 20013 20014 PIE_CFLAGS="-fPIE" 20015 PIE_LDFLAGS="-pie" 20016 20017else 20018 : 20019fi 20020 20021 CFLAGS="$_CFLAGS" 20022 20023else 20024 : 20025fi 20026 20027fi 20028 20029if test "$enable_hardening" != "no"; then 20030 20031ac_c_werror_flag=yes 20032 if test -n "$GCC"; then 20033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector-all" >&5 20034$as_echo_n "checking whether C compiler accepts -fstack-protector-all... " >&6; } 20035if ${ax_cv_check_cflags___fstack_protector_all+:} false; then : 20036 $as_echo_n "(cached) " >&6 20037else 20038 20039 ax_check_save_flags=$CFLAGS 20040 CFLAGS="$CFLAGS -fstack-protector-all" 20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20042/* end confdefs.h. */ 20043 20044int 20045main () 20046{ 20047 20048 ; 20049 return 0; 20050} 20051_ACEOF 20052if ac_fn_c_try_compile "$LINENO"; then : 20053 ax_cv_check_cflags___fstack_protector_all=yes 20054else 20055 ax_cv_check_cflags___fstack_protector_all=no 20056fi 20057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20058 CFLAGS=$ax_check_save_flags 20059fi 20060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector_all" >&5 20061$as_echo "$ax_cv_check_cflags___fstack_protector_all" >&6; } 20062if test x"$ax_cv_check_cflags___fstack_protector_all" = xyes; then : 20063 20064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector-all" >&5 20065$as_echo_n "checking whether the linker accepts -fstack-protector-all... " >&6; } 20066if ${ax_cv_check_ldflags___fstack_protector_all+:} false; then : 20067 $as_echo_n "(cached) " >&6 20068else 20069 20070 ax_check_save_flags=$LDFLAGS 20071 LDFLAGS="$LDFLAGS -fstack-protector-all" 20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20073/* end confdefs.h. */ 20074 20075int 20076main () 20077{ 20078 20079 ; 20080 return 0; 20081} 20082_ACEOF 20083if ac_fn_c_try_link "$LINENO"; then : 20084 ax_cv_check_ldflags___fstack_protector_all=yes 20085else 20086 ax_cv_check_ldflags___fstack_protector_all=no 20087fi 20088rm -f core conftest.err conftest.$ac_objext \ 20089 conftest$ac_exeext conftest.$ac_ext 20090 LDFLAGS=$ax_check_save_flags 20091fi 20092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector_all" >&5 20093$as_echo "$ax_cv_check_ldflags___fstack_protector_all" >&6; } 20094if test x"$ax_cv_check_ldflags___fstack_protector_all" = xyes; then : 20095 20096 SSP_CFLAGS="-fstack-protector-all" 20097 SSP_LDFLAGS="-fstack-protector-all" 20098 20099else 20100 : 20101fi 20102 20103 20104else 20105 : 20106fi 20107 20108 if test -z "$SSP_CFLAGS"; then 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstack-protector" >&5 20110$as_echo_n "checking whether C compiler accepts -fstack-protector... " >&6; } 20111if ${ax_cv_check_cflags___fstack_protector+:} false; then : 20112 $as_echo_n "(cached) " >&6 20113else 20114 20115 ax_check_save_flags=$CFLAGS 20116 CFLAGS="$CFLAGS -fstack-protector" 20117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20118/* end confdefs.h. */ 20119 20120int 20121main () 20122{ 20123 20124 ; 20125 return 0; 20126} 20127_ACEOF 20128if ac_fn_c_try_compile "$LINENO"; then : 20129 ax_cv_check_cflags___fstack_protector=yes 20130else 20131 ax_cv_check_cflags___fstack_protector=no 20132fi 20133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20134 CFLAGS=$ax_check_save_flags 20135fi 20136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstack_protector" >&5 20137$as_echo "$ax_cv_check_cflags___fstack_protector" >&6; } 20138if test x"$ax_cv_check_cflags___fstack_protector" = xyes; then : 20139 20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -fstack-protector" >&5 20141$as_echo_n "checking whether the linker accepts -fstack-protector... " >&6; } 20142if ${ax_cv_check_ldflags___fstack_protector+:} false; then : 20143 $as_echo_n "(cached) " >&6 20144else 20145 20146 ax_check_save_flags=$LDFLAGS 20147 LDFLAGS="$LDFLAGS -fstack-protector" 20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20149/* end confdefs.h. */ 20150 20151int 20152main () 20153{ 20154 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159if ac_fn_c_try_link "$LINENO"; then : 20160 ax_cv_check_ldflags___fstack_protector=yes 20161else 20162 ax_cv_check_ldflags___fstack_protector=no 20163fi 20164rm -f core conftest.err conftest.$ac_objext \ 20165 conftest$ac_exeext conftest.$ac_ext 20166 LDFLAGS=$ax_check_save_flags 20167fi 20168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___fstack_protector" >&5 20169$as_echo "$ax_cv_check_ldflags___fstack_protector" >&6; } 20170if test x"$ax_cv_check_ldflags___fstack_protector" = xyes; then : 20171 20172 SSP_CFLAGS="-fstack-protector" 20173 SSP_LDFLAGS="-fstack-protector" 20174 20175else 20176 : 20177fi 20178 20179 20180else 20181 : 20182fi 20183 20184 fi 20185 fi 20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-z,relro" >&5 20187$as_echo_n "checking whether the linker accepts -Wl,-z,relro... " >&6; } 20188if ${ax_cv_check_ldflags___Wl__z_relro+:} false; then : 20189 $as_echo_n "(cached) " >&6 20190else 20191 20192 ax_check_save_flags=$LDFLAGS 20193 LDFLAGS="$LDFLAGS -Wl,-z,relro" 20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20195/* end confdefs.h. */ 20196 20197int 20198main () 20199{ 20200 20201 ; 20202 return 0; 20203} 20204_ACEOF 20205if ac_fn_c_try_link "$LINENO"; then : 20206 ax_cv_check_ldflags___Wl__z_relro=yes 20207else 20208 ax_cv_check_ldflags___Wl__z_relro=no 20209fi 20210rm -f core conftest.err conftest.$ac_objext \ 20211 conftest$ac_exeext conftest.$ac_ext 20212 LDFLAGS=$ax_check_save_flags 20213fi 20214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__z_relro" >&5 20215$as_echo "$ax_cv_check_ldflags___Wl__z_relro" >&6; } 20216if test x"$ax_cv_check_ldflags___Wl__z_relro" = xyes; then : 20217 LDFLAGS="${LDFLAGS} -Wl,-z,relro" 20218else 20219 : 20220fi 20221 20222fi 20223 20224case "$with_passwd" in 20225yes|maybe) 20226 AUTH_OBJS="$AUTH_OBJS getspwuid.o passwd.o" 20227 ;; 20228*) 20229 $as_echo "#define WITHOUT_PASSWD 1" >>confdefs.h 20230 20231 if test -z "$AUTH_OBJS"; then 20232 as_fn_error $? "no authentication methods defined." "$LINENO" 5 20233 fi 20234 ;; 20235esac 20236AUTH_OBJS=${AUTH_OBJS# } 20237_AUTH=`echo "$AUTH_OBJS" | sed -e 's/\.o//g' -e 's/getspwuid *//'` 20238{ $as_echo "$as_me:${as_lineno-$LINENO}: using the following authentication methods: $_AUTH" >&5 20239$as_echo "$as_me: using the following authentication methods: $_AUTH" >&6;} 20240 20241if test -n "$LIBS"; then 20242 L="$LIBS" 20243 LIBS= 20244 for l in ${L}; do 20245 dupe=0 20246 for sl in ${SUDO_LIBS} ${NET_LIBS}; do 20247 test $l = $sl && dupe=1 20248 done 20249 test $dupe = 0 && LIBS="${LIBS} $l" 20250 done 20251fi 20252 20253if test -n "$GCC"; then 20254 if test X"$enable_warnings" = X"yes" -o X"$with_devel" = X"yes"; then 20255 CFLAGS="${CFLAGS} -Wall" 20256 fi 20257 if test X"$enable_werror" = X"yes"; then 20258 CFLAGS="${CFLAGS} -Werror" 20259 fi 20260fi 20261 20262test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)' 20263 20264if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then 20265 oexec_prefix="$exec_prefix" 20266 if test "$exec_prefix" = '$(prefix)'; then 20267 if test "$prefix" = "NONE"; then 20268 exec_prefix="$ac_default_prefix" 20269 else 20270 exec_prefix="$prefix" 20271 fi 20272 fi 20273 if test X"$with_noexec" != X"no"; then 20274 PROGS="${PROGS} libsudo_noexec.la" 20275 INSTALL_NOEXEC="install-noexec" 20276 20277 noexec_file="$with_noexec" 20278 _noexec_file= 20279 while test X"$noexec_file" != X"$_noexec_file"; do 20280 _noexec_file="$noexec_file" 20281 eval noexec_file="$_noexec_file" 20282 done 20283 cat >>confdefs.h <<EOF 20284#define _PATH_SUDO_NOEXEC "$noexec_file" 20285EOF 20286 20287 fi 20288 if test X"$with_selinux" != X"no"; then 20289 sesh_file="$libexecdir/sesh" 20290 _sesh_file= 20291 while test X"$sesh_file" != X"$_sesh_file"; do 20292 _sesh_file="$sesh_file" 20293 eval sesh_file="$_sesh_file" 20294 done 20295 cat >>confdefs.h <<EOF 20296#define _PATH_SUDO_SESH "$sesh_file" 20297EOF 20298 20299 fi 20300 exec_prefix="$oexec_prefix" 20301fi 20302 20303if test X"$prefix" = X"NONE"; then 20304 test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man' 20305else 20306 test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man' 20307fi 20308test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin' 20309test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin' 20310test "$libexecdir" = '${exec_prefix}/libexec' && libexecdir='$(exec_prefix)/libexec' 20311test "$includedir" = '${prefix}/include' && includedir='$(prefix)/include' 20312test "$datarootdir" = '${prefix}/share' && datarootdir='$(prefix)/share' 20313test "$docdir" = '${datarootdir}/doc/${PACKAGE_TARNAME}' && docdir='$(datarootdir)/doc/$(PACKAGE_TARNAME)' 20314test "$localedir" = '${datarootdir}/locale' && localedir='$(datarootdir)/locale' 20315test "$localstatedir" = '${prefix}/var' && localstatedir='$(prefix)/var' 20316test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc' 20317 20318ac_config_files="$ac_config_files Makefile sudo_usage.h sudoers" 20319 20320cat >confcache <<\_ACEOF 20321# This file is a shell script that caches the results of configure 20322# tests run on this system so they can be shared between configure 20323# scripts and configure runs, see configure's option --config-cache. 20324# It is not useful on other systems. If it contains results you don't 20325# want to keep, you may remove or edit it. 20326# 20327# config.status only pays attention to the cache file if you give it 20328# the --recheck option to rerun configure. 20329# 20330# `ac_cv_env_foo' variables (set or unset) will be overridden when 20331# loading this file, other *unset* `ac_cv_foo' will be assigned the 20332# following values. 20333 20334_ACEOF 20335 20336# The following way of writing the cache mishandles newlines in values, 20337# but we know of no workaround that is simple, portable, and efficient. 20338# So, we kill variables containing newlines. 20339# Ultrix sh set writes to stderr and can't be redirected directly, 20340# and sets the high bit in the cache file unless we assign to the vars. 20341( 20342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20343 eval ac_val=\$$ac_var 20344 case $ac_val in #( 20345 *${as_nl}*) 20346 case $ac_var in #( 20347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20348$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20349 esac 20350 case $ac_var in #( 20351 _ | IFS | as_nl) ;; #( 20352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20353 *) { eval $ac_var=; unset $ac_var;} ;; 20354 esac ;; 20355 esac 20356 done 20357 20358 (set) 2>&1 | 20359 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20360 *${as_nl}ac_space=\ *) 20361 # `set' does not quote correctly, so add quotes: double-quote 20362 # substitution turns \\\\ into \\, and sed turns \\ into \. 20363 sed -n \ 20364 "s/'/'\\\\''/g; 20365 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20366 ;; #( 20367 *) 20368 # `set' quotes correctly as required by POSIX, so do not add quotes. 20369 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20370 ;; 20371 esac | 20372 sort 20373) | 20374 sed ' 20375 /^ac_cv_env_/b end 20376 t clear 20377 :clear 20378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20379 t end 20380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20381 :end' >>confcache 20382if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20383 if test -w "$cache_file"; then 20384 if test "x$cache_file" != "x/dev/null"; then 20385 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20386$as_echo "$as_me: updating cache $cache_file" >&6;} 20387 if test ! -f "$cache_file" || test -h "$cache_file"; then 20388 cat confcache >"$cache_file" 20389 else 20390 case $cache_file in #( 20391 */* | ?:*) 20392 mv -f confcache "$cache_file"$$ && 20393 mv -f "$cache_file"$$ "$cache_file" ;; #( 20394 *) 20395 mv -f confcache "$cache_file" ;; 20396 esac 20397 fi 20398 fi 20399 else 20400 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20401$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20402 fi 20403fi 20404rm -f confcache 20405 20406test "x$prefix" = xNONE && prefix=$ac_default_prefix 20407# Let make expand exec_prefix. 20408test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20409 20410DEFS=-DHAVE_CONFIG_H 20411 20412ac_libobjs= 20413ac_ltlibobjs= 20414U= 20415for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20416 # 1. Remove the extension, and $U if already installed. 20417 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20418 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20419 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20420 # will be set to the directory where LIBOBJS objects are built. 20421 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20422 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20423done 20424LIBOBJS=$ac_libobjs 20425 20426LTLIBOBJS=$ac_ltlibobjs 20427 20428 20429 20430: "${CONFIG_STATUS=./config.status}" 20431ac_write_fail=0 20432ac_clean_files_save=$ac_clean_files 20433ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20434{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20435$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20436as_write_fail=0 20437cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20438#! $SHELL 20439# Generated by $as_me. 20440# Run this file to recreate the current configuration. 20441# Compiler output produced by configure, useful for debugging 20442# configure, is in config.log if it exists. 20443 20444debug=false 20445ac_cs_recheck=false 20446ac_cs_silent=false 20447 20448SHELL=\${CONFIG_SHELL-$SHELL} 20449export SHELL 20450_ASEOF 20451cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20452## -------------------- ## 20453## M4sh Initialization. ## 20454## -------------------- ## 20455 20456# Be more Bourne compatible 20457DUALCASE=1; export DUALCASE # for MKS sh 20458if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20459 emulate sh 20460 NULLCMD=: 20461 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20462 # is contrary to our usage. Disable this feature. 20463 alias -g '${1+"$@"}'='"$@"' 20464 setopt NO_GLOB_SUBST 20465else 20466 case `(set -o) 2>/dev/null` in #( 20467 *posix*) : 20468 set -o posix ;; #( 20469 *) : 20470 ;; 20471esac 20472fi 20473 20474 20475as_nl=' 20476' 20477export as_nl 20478# Printing a long string crashes Solaris 7 /usr/bin/printf. 20479as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20480as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20481as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20482# Prefer a ksh shell builtin over an external printf program on Solaris, 20483# but without wasting forks for bash or zsh. 20484if test -z "$BASH_VERSION$ZSH_VERSION" \ 20485 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20486 as_echo='print -r --' 20487 as_echo_n='print -rn --' 20488elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20489 as_echo='printf %s\n' 20490 as_echo_n='printf %s' 20491else 20492 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20493 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20494 as_echo_n='/usr/ucb/echo -n' 20495 else 20496 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20497 as_echo_n_body='eval 20498 arg=$1; 20499 case $arg in #( 20500 *"$as_nl"*) 20501 expr "X$arg" : "X\\(.*\\)$as_nl"; 20502 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20503 esac; 20504 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20505 ' 20506 export as_echo_n_body 20507 as_echo_n='sh -c $as_echo_n_body as_echo' 20508 fi 20509 export as_echo_body 20510 as_echo='sh -c $as_echo_body as_echo' 20511fi 20512 20513# The user is always right. 20514if test "${PATH_SEPARATOR+set}" != set; then 20515 PATH_SEPARATOR=: 20516 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20517 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20518 PATH_SEPARATOR=';' 20519 } 20520fi 20521 20522 20523# IFS 20524# We need space, tab and new line, in precisely that order. Quoting is 20525# there to prevent editors from complaining about space-tab. 20526# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20527# splitting by setting IFS to empty value.) 20528IFS=" "" $as_nl" 20529 20530# Find who we are. Look in the path if we contain no directory separator. 20531as_myself= 20532case $0 in #(( 20533 *[\\/]* ) as_myself=$0 ;; 20534 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20535for as_dir in $PATH 20536do 20537 IFS=$as_save_IFS 20538 test -z "$as_dir" && as_dir=. 20539 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20540 done 20541IFS=$as_save_IFS 20542 20543 ;; 20544esac 20545# We did not find ourselves, most probably we were run as `sh COMMAND' 20546# in which case we are not to be found in the path. 20547if test "x$as_myself" = x; then 20548 as_myself=$0 20549fi 20550if test ! -f "$as_myself"; then 20551 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20552 exit 1 20553fi 20554 20555# Unset variables that we do not need and which cause bugs (e.g. in 20556# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20557# suppresses any "Segmentation fault" message there. '((' could 20558# trigger a bug in pdksh 5.2.14. 20559for as_var in BASH_ENV ENV MAIL MAILPATH 20560do eval test x\${$as_var+set} = xset \ 20561 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20562done 20563PS1='$ ' 20564PS2='> ' 20565PS4='+ ' 20566 20567# NLS nuisances. 20568LC_ALL=C 20569export LC_ALL 20570LANGUAGE=C 20571export LANGUAGE 20572 20573# CDPATH. 20574(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20575 20576 20577# as_fn_error STATUS ERROR [LINENO LOG_FD] 20578# ---------------------------------------- 20579# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20580# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20581# script with STATUS, using 1 if that was 0. 20582as_fn_error () 20583{ 20584 as_status=$1; test $as_status -eq 0 && as_status=1 20585 if test "$4"; then 20586 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20587 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20588 fi 20589 $as_echo "$as_me: error: $2" >&2 20590 as_fn_exit $as_status 20591} # as_fn_error 20592 20593 20594# as_fn_set_status STATUS 20595# ----------------------- 20596# Set $? to STATUS, without forking. 20597as_fn_set_status () 20598{ 20599 return $1 20600} # as_fn_set_status 20601 20602# as_fn_exit STATUS 20603# ----------------- 20604# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20605as_fn_exit () 20606{ 20607 set +e 20608 as_fn_set_status $1 20609 exit $1 20610} # as_fn_exit 20611 20612# as_fn_unset VAR 20613# --------------- 20614# Portably unset VAR. 20615as_fn_unset () 20616{ 20617 { eval $1=; unset $1;} 20618} 20619as_unset=as_fn_unset 20620# as_fn_append VAR VALUE 20621# ---------------------- 20622# Append the text in VALUE to the end of the definition contained in VAR. Take 20623# advantage of any shell optimizations that allow amortized linear growth over 20624# repeated appends, instead of the typical quadratic growth present in naive 20625# implementations. 20626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20627 eval 'as_fn_append () 20628 { 20629 eval $1+=\$2 20630 }' 20631else 20632 as_fn_append () 20633 { 20634 eval $1=\$$1\$2 20635 } 20636fi # as_fn_append 20637 20638# as_fn_arith ARG... 20639# ------------------ 20640# Perform arithmetic evaluation on the ARGs, and store the result in the 20641# global $as_val. Take advantage of shells that can avoid forks. The arguments 20642# must be portable across $(()) and expr. 20643if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20644 eval 'as_fn_arith () 20645 { 20646 as_val=$(( $* )) 20647 }' 20648else 20649 as_fn_arith () 20650 { 20651 as_val=`expr "$@" || test $? -eq 1` 20652 } 20653fi # as_fn_arith 20654 20655 20656if expr a : '\(a\)' >/dev/null 2>&1 && 20657 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20658 as_expr=expr 20659else 20660 as_expr=false 20661fi 20662 20663if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20664 as_basename=basename 20665else 20666 as_basename=false 20667fi 20668 20669if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20670 as_dirname=dirname 20671else 20672 as_dirname=false 20673fi 20674 20675as_me=`$as_basename -- "$0" || 20676$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20677 X"$0" : 'X\(//\)$' \| \ 20678 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20679$as_echo X/"$0" | 20680 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20681 s//\1/ 20682 q 20683 } 20684 /^X\/\(\/\/\)$/{ 20685 s//\1/ 20686 q 20687 } 20688 /^X\/\(\/\).*/{ 20689 s//\1/ 20690 q 20691 } 20692 s/.*/./; q'` 20693 20694# Avoid depending upon Character Ranges. 20695as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20696as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20697as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20698as_cr_digits='0123456789' 20699as_cr_alnum=$as_cr_Letters$as_cr_digits 20700 20701ECHO_C= ECHO_N= ECHO_T= 20702case `echo -n x` in #((((( 20703-n*) 20704 case `echo 'xy\c'` in 20705 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20706 xy) ECHO_C='\c';; 20707 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20708 ECHO_T=' ';; 20709 esac;; 20710*) 20711 ECHO_N='-n';; 20712esac 20713 20714rm -f conf$$ conf$$.exe conf$$.file 20715if test -d conf$$.dir; then 20716 rm -f conf$$.dir/conf$$.file 20717else 20718 rm -f conf$$.dir 20719 mkdir conf$$.dir 2>/dev/null 20720fi 20721if (echo >conf$$.file) 2>/dev/null; then 20722 if ln -s conf$$.file conf$$ 2>/dev/null; then 20723 as_ln_s='ln -s' 20724 # ... but there are two gotchas: 20725 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20726 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20727 # In both cases, we have to default to `cp -p'. 20728 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20729 as_ln_s='cp -p' 20730 elif ln conf$$.file conf$$ 2>/dev/null; then 20731 as_ln_s=ln 20732 else 20733 as_ln_s='cp -p' 20734 fi 20735else 20736 as_ln_s='cp -p' 20737fi 20738rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20739rmdir conf$$.dir 2>/dev/null 20740 20741 20742# as_fn_mkdir_p 20743# ------------- 20744# Create "$as_dir" as a directory, including parents if necessary. 20745as_fn_mkdir_p () 20746{ 20747 20748 case $as_dir in #( 20749 -*) as_dir=./$as_dir;; 20750 esac 20751 test -d "$as_dir" || eval $as_mkdir_p || { 20752 as_dirs= 20753 while :; do 20754 case $as_dir in #( 20755 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20756 *) as_qdir=$as_dir;; 20757 esac 20758 as_dirs="'$as_qdir' $as_dirs" 20759 as_dir=`$as_dirname -- "$as_dir" || 20760$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20761 X"$as_dir" : 'X\(//\)[^/]' \| \ 20762 X"$as_dir" : 'X\(//\)$' \| \ 20763 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20764$as_echo X"$as_dir" | 20765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20766 s//\1/ 20767 q 20768 } 20769 /^X\(\/\/\)[^/].*/{ 20770 s//\1/ 20771 q 20772 } 20773 /^X\(\/\/\)$/{ 20774 s//\1/ 20775 q 20776 } 20777 /^X\(\/\).*/{ 20778 s//\1/ 20779 q 20780 } 20781 s/.*/./; q'` 20782 test -d "$as_dir" && break 20783 done 20784 test -z "$as_dirs" || eval "mkdir $as_dirs" 20785 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20786 20787 20788} # as_fn_mkdir_p 20789if mkdir -p . 2>/dev/null; then 20790 as_mkdir_p='mkdir -p "$as_dir"' 20791else 20792 test -d ./-p && rmdir ./-p 20793 as_mkdir_p=false 20794fi 20795 20796if test -x / >/dev/null 2>&1; then 20797 as_test_x='test -x' 20798else 20799 if ls -dL / >/dev/null 2>&1; then 20800 as_ls_L_option=L 20801 else 20802 as_ls_L_option= 20803 fi 20804 as_test_x=' 20805 eval sh -c '\'' 20806 if test -d "$1"; then 20807 test -d "$1/."; 20808 else 20809 case $1 in #( 20810 -*)set "./$1";; 20811 esac; 20812 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 20813 ???[sx]*):;;*)false;;esac;fi 20814 '\'' sh 20815 ' 20816fi 20817as_executable_p=$as_test_x 20818 20819# Sed expression to map a string onto a valid CPP name. 20820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20821 20822# Sed expression to map a string onto a valid variable name. 20823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20824 20825 20826exec 6>&1 20827## ----------------------------------- ## 20828## Main body of $CONFIG_STATUS script. ## 20829## ----------------------------------- ## 20830_ASEOF 20831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20832 20833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20834# Save the log message, to keep $0 and so on meaningful, and to 20835# report actual input values of CONFIG_FILES etc. instead of their 20836# values after options handling. 20837ac_log=" 20838This file was extended by sudo $as_me 1.7.10p7, which was 20839generated by GNU Autoconf 2.68. Invocation command line was 20840 20841 CONFIG_FILES = $CONFIG_FILES 20842 CONFIG_HEADERS = $CONFIG_HEADERS 20843 CONFIG_LINKS = $CONFIG_LINKS 20844 CONFIG_COMMANDS = $CONFIG_COMMANDS 20845 $ $0 $@ 20846 20847on `(hostname || uname -n) 2>/dev/null | sed 1q` 20848" 20849 20850_ACEOF 20851 20852case $ac_config_files in *" 20853"*) set x $ac_config_files; shift; ac_config_files=$*;; 20854esac 20855 20856case $ac_config_headers in *" 20857"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20858esac 20859 20860 20861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20862# Files that config.status was made for. 20863config_files="$ac_config_files" 20864config_headers="$ac_config_headers" 20865config_commands="$ac_config_commands" 20866 20867_ACEOF 20868 20869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20870ac_cs_usage="\ 20871\`$as_me' instantiates files and other configuration actions 20872from templates according to the current configuration. Unless the files 20873and actions are specified as TAGs, all are instantiated by default. 20874 20875Usage: $0 [OPTION]... [TAG]... 20876 20877 -h, --help print this help, then exit 20878 -V, --version print version number and configuration settings, then exit 20879 --config print configuration, then exit 20880 -q, --quiet, --silent 20881 do not print progress messages 20882 -d, --debug don't remove temporary files 20883 --recheck update $as_me by reconfiguring in the same conditions 20884 --file=FILE[:TEMPLATE] 20885 instantiate the configuration file FILE 20886 --header=FILE[:TEMPLATE] 20887 instantiate the configuration header FILE 20888 20889Configuration files: 20890$config_files 20891 20892Configuration headers: 20893$config_headers 20894 20895Configuration commands: 20896$config_commands 20897 20898Report bugs to <http://www.sudo.ws/bugs/>." 20899 20900_ACEOF 20901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20902ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20903ac_cs_version="\\ 20904sudo config.status 1.7.10p7 20905configured by $0, generated by GNU Autoconf 2.68, 20906 with options \\"\$ac_cs_config\\" 20907 20908Copyright (C) 2010 Free Software Foundation, Inc. 20909This config.status script is free software; the Free Software Foundation 20910gives unlimited permission to copy, distribute and modify it." 20911 20912ac_pwd='$ac_pwd' 20913srcdir='$srcdir' 20914AWK='$AWK' 20915test -n "\$AWK" || AWK=awk 20916_ACEOF 20917 20918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20919# The default lists apply if the user does not specify any file. 20920ac_need_defaults=: 20921while test $# != 0 20922do 20923 case $1 in 20924 --*=?*) 20925 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20926 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20927 ac_shift=: 20928 ;; 20929 --*=) 20930 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20931 ac_optarg= 20932 ac_shift=: 20933 ;; 20934 *) 20935 ac_option=$1 20936 ac_optarg=$2 20937 ac_shift=shift 20938 ;; 20939 esac 20940 20941 case $ac_option in 20942 # Handling of the options. 20943 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20944 ac_cs_recheck=: ;; 20945 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20946 $as_echo "$ac_cs_version"; exit ;; 20947 --config | --confi | --conf | --con | --co | --c ) 20948 $as_echo "$ac_cs_config"; exit ;; 20949 --debug | --debu | --deb | --de | --d | -d ) 20950 debug=: ;; 20951 --file | --fil | --fi | --f ) 20952 $ac_shift 20953 case $ac_optarg in 20954 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20955 '') as_fn_error $? "missing file argument" ;; 20956 esac 20957 as_fn_append CONFIG_FILES " '$ac_optarg'" 20958 ac_need_defaults=false;; 20959 --header | --heade | --head | --hea ) 20960 $ac_shift 20961 case $ac_optarg in 20962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20963 esac 20964 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20965 ac_need_defaults=false;; 20966 --he | --h) 20967 # Conflict between --help and --header 20968 as_fn_error $? "ambiguous option: \`$1' 20969Try \`$0 --help' for more information.";; 20970 --help | --hel | -h ) 20971 $as_echo "$ac_cs_usage"; exit ;; 20972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20973 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20974 ac_cs_silent=: ;; 20975 20976 # This is an error. 20977 -*) as_fn_error $? "unrecognized option: \`$1' 20978Try \`$0 --help' for more information." ;; 20979 20980 *) as_fn_append ac_config_targets " $1" 20981 ac_need_defaults=false ;; 20982 20983 esac 20984 shift 20985done 20986 20987ac_configure_extra_args= 20988 20989if $ac_cs_silent; then 20990 exec 6>/dev/null 20991 ac_configure_extra_args="$ac_configure_extra_args --silent" 20992fi 20993 20994_ACEOF 20995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20996if \$ac_cs_recheck; then 20997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20998 shift 20999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 21000 CONFIG_SHELL='$SHELL' 21001 export CONFIG_SHELL 21002 exec "\$@" 21003fi 21004 21005_ACEOF 21006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21007exec 5>>config.log 21008{ 21009 echo 21010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 21011## Running $as_me. ## 21012_ASBOX 21013 $as_echo "$ac_log" 21014} >&5 21015 21016_ACEOF 21017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21018# 21019# INIT-COMMANDS 21020# 21021 21022 21023# The HP-UX ksh and POSIX shell print the target directory to stdout 21024# if CDPATH is set. 21025(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 21026 21027sed_quote_subst='$sed_quote_subst' 21028double_quote_subst='$double_quote_subst' 21029delay_variable_subst='$delay_variable_subst' 21030macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 21031macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 21032enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 21033enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 21034pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 21035enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 21036SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 21037ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 21038PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 21039host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 21040host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 21041host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 21042build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 21043build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 21044build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 21045SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 21046Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 21047GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 21048EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 21049FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 21050LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 21051NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 21052LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 21053max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 21054ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 21055exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 21056lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 21057lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 21058lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 21059lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 21060lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 21061reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 21062reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 21063OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 21064deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 21065file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 21066file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 21067want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 21068DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 21069sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 21070AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 21071AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 21072archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 21073STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 21074RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 21075old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21076old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21077old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 21078lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 21079CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 21080CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 21081compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 21082GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 21083lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 21084lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 21085lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 21086lt_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"`' 21087nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 21088lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 21089objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 21090MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 21091lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 21092lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 21093lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 21094lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 21095lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 21096need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 21097MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 21098DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 21099NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 21100LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 21101OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 21102OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 21103libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 21104shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 21105extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21106archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 21107enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 21108export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 21109whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 21110compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 21111old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 21112old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 21113archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 21114archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21115module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 21116module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 21117with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 21118allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 21119no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 21120hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 21121hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 21122hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 21123hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 21124hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 21125hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 21126hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 21127inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 21128link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 21129always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 21130export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 21131exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 21132include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 21133prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 21134postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 21135file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 21136variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 21137need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 21138need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 21139version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 21140runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 21141shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 21142shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 21143libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 21144library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 21145soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 21146install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 21147postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 21148postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 21149finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 21150finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 21151hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 21152sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 21153sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 21154hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 21155enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 21156enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 21157enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 21158old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 21159striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 21160 21161LTCC='$LTCC' 21162LTCFLAGS='$LTCFLAGS' 21163compiler='$compiler_DEFAULT' 21164 21165# A function that is used when there is no print builtin or printf. 21166func_fallback_echo () 21167{ 21168 eval 'cat <<_LTECHO_EOF 21169\$1 21170_LTECHO_EOF' 21171} 21172 21173# Quote evaled strings. 21174for var in SHELL \ 21175ECHO \ 21176PATH_SEPARATOR \ 21177SED \ 21178GREP \ 21179EGREP \ 21180FGREP \ 21181LD \ 21182NM \ 21183LN_S \ 21184lt_SP2NL \ 21185lt_NL2SP \ 21186reload_flag \ 21187OBJDUMP \ 21188deplibs_check_method \ 21189file_magic_cmd \ 21190file_magic_glob \ 21191want_nocaseglob \ 21192DLLTOOL \ 21193sharedlib_from_linklib_cmd \ 21194AR \ 21195AR_FLAGS \ 21196archiver_list_spec \ 21197STRIP \ 21198RANLIB \ 21199CC \ 21200CFLAGS \ 21201compiler \ 21202lt_cv_sys_global_symbol_pipe \ 21203lt_cv_sys_global_symbol_to_cdecl \ 21204lt_cv_sys_global_symbol_to_c_name_address \ 21205lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 21206nm_file_list_spec \ 21207lt_prog_compiler_no_builtin_flag \ 21208lt_prog_compiler_pic \ 21209lt_prog_compiler_wl \ 21210lt_prog_compiler_static \ 21211lt_cv_prog_compiler_c_o \ 21212need_locks \ 21213MANIFEST_TOOL \ 21214DSYMUTIL \ 21215NMEDIT \ 21216LIPO \ 21217OTOOL \ 21218OTOOL64 \ 21219shrext_cmds \ 21220export_dynamic_flag_spec \ 21221whole_archive_flag_spec \ 21222compiler_needs_object \ 21223with_gnu_ld \ 21224allow_undefined_flag \ 21225no_undefined_flag \ 21226hardcode_libdir_flag_spec \ 21227hardcode_libdir_separator \ 21228exclude_expsyms \ 21229include_expsyms \ 21230file_list_spec \ 21231variables_saved_for_relink \ 21232libname_spec \ 21233library_names_spec \ 21234soname_spec \ 21235install_override_mode \ 21236finish_eval \ 21237old_striplib \ 21238striplib; do 21239 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21240 *[\\\\\\\`\\"\\\$]*) 21241 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 21242 ;; 21243 *) 21244 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21245 ;; 21246 esac 21247done 21248 21249# Double-quote double-evaled strings. 21250for var in reload_cmds \ 21251old_postinstall_cmds \ 21252old_postuninstall_cmds \ 21253old_archive_cmds \ 21254extract_expsyms_cmds \ 21255old_archive_from_new_cmds \ 21256old_archive_from_expsyms_cmds \ 21257archive_cmds \ 21258archive_expsym_cmds \ 21259module_cmds \ 21260module_expsym_cmds \ 21261export_symbols_cmds \ 21262prelink_cmds \ 21263postlink_cmds \ 21264postinstall_cmds \ 21265postuninstall_cmds \ 21266finish_cmds \ 21267sys_lib_search_path_spec \ 21268sys_lib_dlsearch_path_spec; do 21269 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21270 *[\\\\\\\`\\"\\\$]*) 21271 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 21272 ;; 21273 *) 21274 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21275 ;; 21276 esac 21277done 21278 21279ac_aux_dir='$ac_aux_dir' 21280xsi_shell='$xsi_shell' 21281lt_shell_append='$lt_shell_append' 21282 21283# See if we are running on zsh, and set the options which allow our 21284# commands through without removal of \ escapes INIT. 21285if test -n "\${ZSH_VERSION+set}" ; then 21286 setopt NO_GLOB_SUBST 21287fi 21288 21289 21290 PACKAGE='$PACKAGE' 21291 VERSION='$VERSION' 21292 TIMESTAMP='$TIMESTAMP' 21293 RM='$RM' 21294 ofile='$ofile' 21295 21296 21297 21298 21299_ACEOF 21300 21301cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21302 21303# Handling of arguments. 21304for ac_config_target in $ac_config_targets 21305do 21306 case $ac_config_target in 21307 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 21308 "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;; 21309 "zlib/zconf.h") CONFIG_HEADERS="$CONFIG_HEADERS zlib/zconf.h" ;; 21310 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21311 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21312 "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;; 21313 "sudoers") CONFIG_FILES="$CONFIG_FILES sudoers" ;; 21314 21315 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21316 esac 21317done 21318 21319 21320# If the user did not use the arguments to specify the items to instantiate, 21321# then the envvar interface is used. Set only those that are not. 21322# We use the long form for the default assignment because of an extremely 21323# bizarre bug on SunOS 4.1.3. 21324if $ac_need_defaults; then 21325 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21326 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21327 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21328fi 21329 21330# Have a temporary directory for convenience. Make it in the build tree 21331# simply because there is no reason against having it here, and in addition, 21332# creating and moving files from /tmp can sometimes cause problems. 21333# Hook for its removal unless debugging. 21334# Note that there is a small window in which the directory will not be cleaned: 21335# after its creation but before its name has been assigned to `$tmp'. 21336$debug || 21337{ 21338 tmp= ac_tmp= 21339 trap 'exit_status=$? 21340 : "${ac_tmp:=$tmp}" 21341 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21342' 0 21343 trap 'as_fn_exit 1' 1 2 13 15 21344} 21345# Create a (secure) tmp directory for tmp files. 21346 21347{ 21348 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21349 test -d "$tmp" 21350} || 21351{ 21352 tmp=./conf$$-$RANDOM 21353 (umask 077 && mkdir "$tmp") 21354} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21355ac_tmp=$tmp 21356 21357# Set up the scripts for CONFIG_FILES section. 21358# No need to generate them if there are no CONFIG_FILES. 21359# This happens for instance with `./config.status config.h'. 21360if test -n "$CONFIG_FILES"; then 21361 21362 21363ac_cr=`echo X | tr X '\015'` 21364# On cygwin, bash can eat \r inside `` if the user requested igncr. 21365# But we know of no other shell where ac_cr would be empty at this 21366# point, so we can use a bashism as a fallback. 21367if test "x$ac_cr" = x; then 21368 eval ac_cr=\$\'\\r\' 21369fi 21370ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21371if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21372 ac_cs_awk_cr='\\r' 21373else 21374 ac_cs_awk_cr=$ac_cr 21375fi 21376 21377echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21378_ACEOF 21379 21380 21381{ 21382 echo "cat >conf$$subs.awk <<_ACEOF" && 21383 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21384 echo "_ACEOF" 21385} >conf$$subs.sh || 21386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21387ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21388ac_delim='%!_!# ' 21389for ac_last_try in false false false false false :; do 21390 . ./conf$$subs.sh || 21391 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21392 21393 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21394 if test $ac_delim_n = $ac_delim_num; then 21395 break 21396 elif $ac_last_try; then 21397 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21398 else 21399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21400 fi 21401done 21402rm -f conf$$subs.sh 21403 21404cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21405cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21406_ACEOF 21407sed -n ' 21408h 21409s/^/S["/; s/!.*/"]=/ 21410p 21411g 21412s/^[^!]*!// 21413:repl 21414t repl 21415s/'"$ac_delim"'$// 21416t delim 21417:nl 21418h 21419s/\(.\{148\}\)..*/\1/ 21420t more1 21421s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21422p 21423n 21424b repl 21425:more1 21426s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21427p 21428g 21429s/.\{148\}// 21430t nl 21431:delim 21432h 21433s/\(.\{148\}\)..*/\1/ 21434t more2 21435s/["\\]/\\&/g; s/^/"/; s/$/"/ 21436p 21437b 21438:more2 21439s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21440p 21441g 21442s/.\{148\}// 21443t delim 21444' <conf$$subs.awk | sed ' 21445/^[^""]/{ 21446 N 21447 s/\n// 21448} 21449' >>$CONFIG_STATUS || ac_write_fail=1 21450rm -f conf$$subs.awk 21451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21452_ACAWK 21453cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21454 for (key in S) S_is_set[key] = 1 21455 FS = "" 21456 21457} 21458{ 21459 line = $ 0 21460 nfields = split(line, field, "@") 21461 substed = 0 21462 len = length(field[1]) 21463 for (i = 2; i < nfields; i++) { 21464 key = field[i] 21465 keylen = length(key) 21466 if (S_is_set[key]) { 21467 value = S[key] 21468 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21469 len += length(value) + length(field[++i]) 21470 substed = 1 21471 } else 21472 len += 1 + keylen 21473 } 21474 21475 print line 21476} 21477 21478_ACAWK 21479_ACEOF 21480cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21481if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21482 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21483else 21484 cat 21485fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21486 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21487_ACEOF 21488 21489# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21490# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21491# trailing colons and then remove the whole line if VPATH becomes empty 21492# (actually we leave an empty line to preserve line numbers). 21493if test "x$srcdir" = x.; then 21494 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21495h 21496s/// 21497s/^/:/ 21498s/[ ]*$/:/ 21499s/:\$(srcdir):/:/g 21500s/:\${srcdir}:/:/g 21501s/:@srcdir@:/:/g 21502s/^:*// 21503s/:*$// 21504x 21505s/\(=[ ]*\).*/\1/ 21506G 21507s/\n// 21508s/^[^=]*=[ ]*$// 21509}' 21510fi 21511 21512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21513fi # test -n "$CONFIG_FILES" 21514 21515# Set up the scripts for CONFIG_HEADERS section. 21516# No need to generate them if there are no CONFIG_HEADERS. 21517# This happens for instance with `./config.status Makefile'. 21518if test -n "$CONFIG_HEADERS"; then 21519cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21520BEGIN { 21521_ACEOF 21522 21523# Transform confdefs.h into an awk script `defines.awk', embedded as 21524# here-document in config.status, that substitutes the proper values into 21525# config.h.in to produce config.h. 21526 21527# Create a delimiter string that does not exist in confdefs.h, to ease 21528# handling of long lines. 21529ac_delim='%!_!# ' 21530for ac_last_try in false false :; do 21531 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21532 if test -z "$ac_tt"; then 21533 break 21534 elif $ac_last_try; then 21535 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21536 else 21537 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21538 fi 21539done 21540 21541# For the awk script, D is an array of macro values keyed by name, 21542# likewise P contains macro parameters if any. Preserve backslash 21543# newline sequences. 21544 21545ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21546sed -n ' 21547s/.\{148\}/&'"$ac_delim"'/g 21548t rset 21549:rset 21550s/^[ ]*#[ ]*define[ ][ ]*/ / 21551t def 21552d 21553:def 21554s/\\$// 21555t bsnl 21556s/["\\]/\\&/g 21557s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21558D["\1"]=" \3"/p 21559s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21560d 21561:bsnl 21562s/["\\]/\\&/g 21563s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21564D["\1"]=" \3\\\\\\n"\\/p 21565t cont 21566s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21567t cont 21568d 21569:cont 21570n 21571s/.\{148\}/&'"$ac_delim"'/g 21572t clear 21573:clear 21574s/\\$// 21575t bsnlc 21576s/["\\]/\\&/g; s/^/"/; s/$/"/p 21577d 21578:bsnlc 21579s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21580b cont 21581' <confdefs.h | sed ' 21582s/'"$ac_delim"'/"\\\ 21583"/g' >>$CONFIG_STATUS || ac_write_fail=1 21584 21585cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21586 for (key in D) D_is_set[key] = 1 21587 FS = "" 21588} 21589/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21590 line = \$ 0 21591 split(line, arg, " ") 21592 if (arg[1] == "#") { 21593 defundef = arg[2] 21594 mac1 = arg[3] 21595 } else { 21596 defundef = substr(arg[1], 2) 21597 mac1 = arg[2] 21598 } 21599 split(mac1, mac2, "(") #) 21600 macro = mac2[1] 21601 prefix = substr(line, 1, index(line, defundef) - 1) 21602 if (D_is_set[macro]) { 21603 # Preserve the white space surrounding the "#". 21604 print prefix "define", macro P[macro] D[macro] 21605 next 21606 } else { 21607 # Replace #undef with comments. This is necessary, for example, 21608 # in the case of _POSIX_SOURCE, which is predefined and required 21609 # on some systems where configure will not decide to define it. 21610 if (defundef == "undef") { 21611 print "/*", prefix defundef, macro, "*/" 21612 next 21613 } 21614 } 21615} 21616{ print } 21617_ACAWK 21618_ACEOF 21619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21620 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21621fi # test -n "$CONFIG_HEADERS" 21622 21623 21624eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21625shift 21626for ac_tag 21627do 21628 case $ac_tag in 21629 :[FHLC]) ac_mode=$ac_tag; continue;; 21630 esac 21631 case $ac_mode$ac_tag in 21632 :[FHL]*:*);; 21633 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21634 :[FH]-) ac_tag=-:-;; 21635 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21636 esac 21637 ac_save_IFS=$IFS 21638 IFS=: 21639 set x $ac_tag 21640 IFS=$ac_save_IFS 21641 shift 21642 ac_file=$1 21643 shift 21644 21645 case $ac_mode in 21646 :L) ac_source=$1;; 21647 :[FH]) 21648 ac_file_inputs= 21649 for ac_f 21650 do 21651 case $ac_f in 21652 -) ac_f="$ac_tmp/stdin";; 21653 *) # Look for the file first in the build tree, then in the source tree 21654 # (if the path is not absolute). The absolute path cannot be DOS-style, 21655 # because $ac_f cannot contain `:'. 21656 test -f "$ac_f" || 21657 case $ac_f in 21658 [\\/$]*) false;; 21659 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21660 esac || 21661 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21662 esac 21663 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21664 as_fn_append ac_file_inputs " '$ac_f'" 21665 done 21666 21667 # Let's still pretend it is `configure' which instantiates (i.e., don't 21668 # use $as_me), people would be surprised to read: 21669 # /* config.h. Generated by config.status. */ 21670 configure_input='Generated from '` 21671 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21672 `' by configure.' 21673 if test x"$ac_file" != x-; then 21674 configure_input="$ac_file. $configure_input" 21675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21676$as_echo "$as_me: creating $ac_file" >&6;} 21677 fi 21678 # Neutralize special characters interpreted by sed in replacement strings. 21679 case $configure_input in #( 21680 *\&* | *\|* | *\\* ) 21681 ac_sed_conf_input=`$as_echo "$configure_input" | 21682 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21683 *) ac_sed_conf_input=$configure_input;; 21684 esac 21685 21686 case $ac_tag in 21687 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21689 esac 21690 ;; 21691 esac 21692 21693 ac_dir=`$as_dirname -- "$ac_file" || 21694$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21695 X"$ac_file" : 'X\(//\)[^/]' \| \ 21696 X"$ac_file" : 'X\(//\)$' \| \ 21697 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21698$as_echo X"$ac_file" | 21699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21700 s//\1/ 21701 q 21702 } 21703 /^X\(\/\/\)[^/].*/{ 21704 s//\1/ 21705 q 21706 } 21707 /^X\(\/\/\)$/{ 21708 s//\1/ 21709 q 21710 } 21711 /^X\(\/\).*/{ 21712 s//\1/ 21713 q 21714 } 21715 s/.*/./; q'` 21716 as_dir="$ac_dir"; as_fn_mkdir_p 21717 ac_builddir=. 21718 21719case "$ac_dir" in 21720.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21721*) 21722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21723 # A ".." for each directory in $ac_dir_suffix. 21724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21725 case $ac_top_builddir_sub in 21726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21728 esac ;; 21729esac 21730ac_abs_top_builddir=$ac_pwd 21731ac_abs_builddir=$ac_pwd$ac_dir_suffix 21732# for backward compatibility: 21733ac_top_builddir=$ac_top_build_prefix 21734 21735case $srcdir in 21736 .) # We are building in place. 21737 ac_srcdir=. 21738 ac_top_srcdir=$ac_top_builddir_sub 21739 ac_abs_top_srcdir=$ac_pwd ;; 21740 [\\/]* | ?:[\\/]* ) # Absolute name. 21741 ac_srcdir=$srcdir$ac_dir_suffix; 21742 ac_top_srcdir=$srcdir 21743 ac_abs_top_srcdir=$srcdir ;; 21744 *) # Relative name. 21745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21746 ac_top_srcdir=$ac_top_build_prefix$srcdir 21747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21748esac 21749ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21750 21751 21752 case $ac_mode in 21753 :F) 21754 # 21755 # CONFIG_FILE 21756 # 21757 21758_ACEOF 21759 21760cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21761# If the template does not know about datarootdir, expand it. 21762# FIXME: This hack should be removed a few years after 2.60. 21763ac_datarootdir_hack=; ac_datarootdir_seen= 21764ac_sed_dataroot=' 21765/datarootdir/ { 21766 p 21767 q 21768} 21769/@datadir@/p 21770/@docdir@/p 21771/@infodir@/p 21772/@localedir@/p 21773/@mandir@/p' 21774case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21775*datarootdir*) ac_datarootdir_seen=yes;; 21776*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21778$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21779_ACEOF 21780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21781 ac_datarootdir_hack=' 21782 s&@datadir@&$datadir&g 21783 s&@docdir@&$docdir&g 21784 s&@infodir@&$infodir&g 21785 s&@localedir@&$localedir&g 21786 s&@mandir@&$mandir&g 21787 s&\\\${datarootdir}&$datarootdir&g' ;; 21788esac 21789_ACEOF 21790 21791# Neutralize VPATH when `$srcdir' = `.'. 21792# Shell code in configure.ac might set extrasub. 21793# FIXME: do we really want to maintain this feature? 21794cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21795ac_sed_extra="$ac_vpsub 21796$extrasub 21797_ACEOF 21798cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21799:t 21800/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21801s|@configure_input@|$ac_sed_conf_input|;t t 21802s&@top_builddir@&$ac_top_builddir_sub&;t t 21803s&@top_build_prefix@&$ac_top_build_prefix&;t t 21804s&@srcdir@&$ac_srcdir&;t t 21805s&@abs_srcdir@&$ac_abs_srcdir&;t t 21806s&@top_srcdir@&$ac_top_srcdir&;t t 21807s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21808s&@builddir@&$ac_builddir&;t t 21809s&@abs_builddir@&$ac_abs_builddir&;t t 21810s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21811$ac_datarootdir_hack 21812" 21813eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21814 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21815 21816test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21817 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21819 "$ac_tmp/out"`; test -z "$ac_out"; } && 21820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21821which seems to be undefined. Please make sure it is defined" >&5 21822$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21823which seems to be undefined. Please make sure it is defined" >&2;} 21824 21825 rm -f "$ac_tmp/stdin" 21826 case $ac_file in 21827 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21828 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21829 esac \ 21830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21831 ;; 21832 :H) 21833 # 21834 # CONFIG_HEADER 21835 # 21836 if test x"$ac_file" != x-; then 21837 { 21838 $as_echo "/* $configure_input */" \ 21839 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21840 } >"$ac_tmp/config.h" \ 21841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21842 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21844$as_echo "$as_me: $ac_file is unchanged" >&6;} 21845 else 21846 rm -f "$ac_file" 21847 mv "$ac_tmp/config.h" "$ac_file" \ 21848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21849 fi 21850 else 21851 $as_echo "/* $configure_input */" \ 21852 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21853 || as_fn_error $? "could not create -" "$LINENO" 5 21854 fi 21855 ;; 21856 21857 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21858$as_echo "$as_me: executing $ac_file commands" >&6;} 21859 ;; 21860 esac 21861 21862 21863 case $ac_file$ac_mode in 21864 "libtool":C) 21865 21866 # See if we are running on zsh, and set the options which allow our 21867 # commands through without removal of \ escapes. 21868 if test -n "${ZSH_VERSION+set}" ; then 21869 setopt NO_GLOB_SUBST 21870 fi 21871 21872 cfgfile="${ofile}T" 21873 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21874 $RM "$cfgfile" 21875 21876 cat <<_LT_EOF >> "$cfgfile" 21877#! $SHELL 21878 21879# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21880# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 21881# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21882# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21883# 21884# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21885# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 21886# Foundation, Inc. 21887# Written by Gordon Matzigkeit, 1996 21888# 21889# This file is part of GNU Libtool. 21890# 21891# GNU Libtool is free software; you can redistribute it and/or 21892# modify it under the terms of the GNU General Public License as 21893# published by the Free Software Foundation; either version 2 of 21894# the License, or (at your option) any later version. 21895# 21896# As a special exception to the GNU General Public License, 21897# if you distribute this file as part of a program or library that 21898# is built using GNU Libtool, you may include this file under the 21899# same distribution terms that you use for the rest of that program. 21900# 21901# GNU Libtool is distributed in the hope that it will be useful, 21902# but WITHOUT ANY WARRANTY; without even the implied warranty of 21903# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21904# GNU General Public License for more details. 21905# 21906# You should have received a copy of the GNU General Public License 21907# along with GNU Libtool; see the file COPYING. If not, a copy 21908# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 21909# obtained by writing to the Free Software Foundation, Inc., 21910# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21911 21912 21913# The names of the tagged configurations supported by this script. 21914available_tags="" 21915 21916# ### BEGIN LIBTOOL CONFIG 21917 21918# Which release of libtool.m4 was used? 21919macro_version=$macro_version 21920macro_revision=$macro_revision 21921 21922# Whether or not to build shared libraries. 21923build_libtool_libs=$enable_shared 21924 21925# Whether or not to build static libraries. 21926build_old_libs=$enable_static 21927 21928# What type of objects to build. 21929pic_mode=$pic_mode 21930 21931# Whether or not to optimize for fast installation. 21932fast_install=$enable_fast_install 21933 21934# Shell to use when invoking shell scripts. 21935SHELL=$lt_SHELL 21936 21937# An echo program that protects backslashes. 21938ECHO=$lt_ECHO 21939 21940# The PATH separator for the build system. 21941PATH_SEPARATOR=$lt_PATH_SEPARATOR 21942 21943# The host system. 21944host_alias=$host_alias 21945host=$host 21946host_os=$host_os 21947 21948# The build system. 21949build_alias=$build_alias 21950build=$build 21951build_os=$build_os 21952 21953# A sed program that does not truncate output. 21954SED=$lt_SED 21955 21956# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21957Xsed="\$SED -e 1s/^X//" 21958 21959# A grep program that handles long lines. 21960GREP=$lt_GREP 21961 21962# An ERE matcher. 21963EGREP=$lt_EGREP 21964 21965# A literal string matcher. 21966FGREP=$lt_FGREP 21967 21968# A BSD- or MS-compatible name lister. 21969NM=$lt_NM 21970 21971# Whether we need soft or hard links. 21972LN_S=$lt_LN_S 21973 21974# What is the maximum length of a command? 21975max_cmd_len=$max_cmd_len 21976 21977# Object file suffix (normally "o"). 21978objext=$ac_objext 21979 21980# Executable file suffix (normally ""). 21981exeext=$exeext 21982 21983# whether the shell understands "unset". 21984lt_unset=$lt_unset 21985 21986# turn spaces into newlines. 21987SP2NL=$lt_lt_SP2NL 21988 21989# turn newlines into spaces. 21990NL2SP=$lt_lt_NL2SP 21991 21992# convert \$build file names to \$host format. 21993to_host_file_cmd=$lt_cv_to_host_file_cmd 21994 21995# convert \$build files to toolchain format. 21996to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21997 21998# An object symbol dumper. 21999OBJDUMP=$lt_OBJDUMP 22000 22001# Method to check whether dependent libraries are shared objects. 22002deplibs_check_method=$lt_deplibs_check_method 22003 22004# Command to use when deplibs_check_method = "file_magic". 22005file_magic_cmd=$lt_file_magic_cmd 22006 22007# How to find potential files when deplibs_check_method = "file_magic". 22008file_magic_glob=$lt_file_magic_glob 22009 22010# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 22011want_nocaseglob=$lt_want_nocaseglob 22012 22013# DLL creation program. 22014DLLTOOL=$lt_DLLTOOL 22015 22016# Command to associate shared and link libraries. 22017sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 22018 22019# The archiver. 22020AR=$lt_AR 22021 22022# Flags to create an archive. 22023AR_FLAGS=$lt_AR_FLAGS 22024 22025# How to feed a file listing to the archiver. 22026archiver_list_spec=$lt_archiver_list_spec 22027 22028# A symbol stripping program. 22029STRIP=$lt_STRIP 22030 22031# Commands used to install an old-style archive. 22032RANLIB=$lt_RANLIB 22033old_postinstall_cmds=$lt_old_postinstall_cmds 22034old_postuninstall_cmds=$lt_old_postuninstall_cmds 22035 22036# Whether to use a lock for old archive extraction. 22037lock_old_archive_extraction=$lock_old_archive_extraction 22038 22039# A C compiler. 22040LTCC=$lt_CC 22041 22042# LTCC compiler flags. 22043LTCFLAGS=$lt_CFLAGS 22044 22045# Take the output of nm and produce a listing of raw symbols and C names. 22046global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 22047 22048# Transform the output of nm in a proper C declaration. 22049global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 22050 22051# Transform the output of nm in a C name address pair. 22052global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 22053 22054# Transform the output of nm in a C name address pair when lib prefix is needed. 22055global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 22056 22057# Specify filename containing input files for \$NM. 22058nm_file_list_spec=$lt_nm_file_list_spec 22059 22060# The root where to search for dependent libraries,and in which our libraries should be installed. 22061lt_sysroot=$lt_sysroot 22062 22063# The name of the directory that contains temporary libtool files. 22064objdir=$objdir 22065 22066# Used to examine libraries when file_magic_cmd begins with "file". 22067MAGIC_CMD=$MAGIC_CMD 22068 22069# Must we lock files when doing compilation? 22070need_locks=$lt_need_locks 22071 22072# Manifest tool. 22073MANIFEST_TOOL=$lt_MANIFEST_TOOL 22074 22075# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 22076DSYMUTIL=$lt_DSYMUTIL 22077 22078# Tool to change global to local symbols on Mac OS X. 22079NMEDIT=$lt_NMEDIT 22080 22081# Tool to manipulate fat objects and archives on Mac OS X. 22082LIPO=$lt_LIPO 22083 22084# ldd/readelf like tool for Mach-O binaries on Mac OS X. 22085OTOOL=$lt_OTOOL 22086 22087# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 22088OTOOL64=$lt_OTOOL64 22089 22090# Old archive suffix (normally "a"). 22091libext=$libext 22092 22093# Shared library suffix (normally ".so"). 22094shrext_cmds=$lt_shrext_cmds 22095 22096# The commands to extract the exported symbol list from a shared archive. 22097extract_expsyms_cmds=$lt_extract_expsyms_cmds 22098 22099# Variables whose values should be saved in libtool wrapper scripts and 22100# restored at link time. 22101variables_saved_for_relink=$lt_variables_saved_for_relink 22102 22103# Do we need the "lib" prefix for modules? 22104need_lib_prefix=$need_lib_prefix 22105 22106# Do we need a version for libraries? 22107need_version=$need_version 22108 22109# Library versioning type. 22110version_type=$version_type 22111 22112# Shared library runtime path variable. 22113runpath_var=$runpath_var 22114 22115# Shared library path variable. 22116shlibpath_var=$shlibpath_var 22117 22118# Is shlibpath searched before the hard-coded library search path? 22119shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22120 22121# Format of library name prefix. 22122libname_spec=$lt_libname_spec 22123 22124# List of archive names. First name is the real one, the rest are links. 22125# The last name is the one that the linker finds with -lNAME 22126library_names_spec=$lt_library_names_spec 22127 22128# The coded name of the library, if different from the real name. 22129soname_spec=$lt_soname_spec 22130 22131# Permission mode override for installation of shared libraries. 22132install_override_mode=$lt_install_override_mode 22133 22134# Command to use after installation of a shared archive. 22135postinstall_cmds=$lt_postinstall_cmds 22136 22137# Command to use after uninstallation of a shared archive. 22138postuninstall_cmds=$lt_postuninstall_cmds 22139 22140# Commands used to finish a libtool library installation in a directory. 22141finish_cmds=$lt_finish_cmds 22142 22143# As "finish_cmds", except a single script fragment to be evaled but 22144# not shown. 22145finish_eval=$lt_finish_eval 22146 22147# Whether we should hardcode library paths into libraries. 22148hardcode_into_libs=$hardcode_into_libs 22149 22150# Compile-time system search path for libraries. 22151sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22152 22153# Run-time system search path for libraries. 22154sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 22155 22156# Whether dlopen is supported. 22157dlopen_support=$enable_dlopen 22158 22159# Whether dlopen of programs is supported. 22160dlopen_self=$enable_dlopen_self 22161 22162# Whether dlopen of statically linked programs is supported. 22163dlopen_self_static=$enable_dlopen_self_static 22164 22165# Commands to strip libraries. 22166old_striplib=$lt_old_striplib 22167striplib=$lt_striplib 22168 22169 22170# The linker used to build libraries. 22171LD=$lt_LD 22172 22173# How to create reloadable object files. 22174reload_flag=$lt_reload_flag 22175reload_cmds=$lt_reload_cmds 22176 22177# Commands used to build an old-style archive. 22178old_archive_cmds=$lt_old_archive_cmds 22179 22180# A language specific compiler. 22181CC=$lt_compiler 22182 22183# Is the compiler the GNU compiler? 22184with_gcc=$GCC 22185 22186# Compiler flag to turn off builtin functions. 22187no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22188 22189# Additional compiler flags for building library objects. 22190pic_flag=$lt_lt_prog_compiler_pic 22191 22192# How to pass a linker flag through the compiler. 22193wl=$lt_lt_prog_compiler_wl 22194 22195# Compiler flag to prevent dynamic linking. 22196link_static_flag=$lt_lt_prog_compiler_static 22197 22198# Does compiler simultaneously support -c and -o options? 22199compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22200 22201# Whether or not to add -lc for building shared libraries. 22202build_libtool_need_lc=$archive_cmds_need_lc 22203 22204# Whether or not to disallow shared libs when runtime libs are static. 22205allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22206 22207# Compiler flag to allow reflexive dlopens. 22208export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22209 22210# Compiler flag to generate shared objects directly from archives. 22211whole_archive_flag_spec=$lt_whole_archive_flag_spec 22212 22213# Whether the compiler copes with passing no objects directly. 22214compiler_needs_object=$lt_compiler_needs_object 22215 22216# Create an old-style archive from a shared archive. 22217old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22218 22219# Create a temporary old-style archive to link instead of a shared archive. 22220old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22221 22222# Commands used to build a shared archive. 22223archive_cmds=$lt_archive_cmds 22224archive_expsym_cmds=$lt_archive_expsym_cmds 22225 22226# Commands used to build a loadable module if different from building 22227# a shared archive. 22228module_cmds=$lt_module_cmds 22229module_expsym_cmds=$lt_module_expsym_cmds 22230 22231# Whether we are building with GNU ld or not. 22232with_gnu_ld=$lt_with_gnu_ld 22233 22234# Flag that allows shared libraries with undefined symbols to be built. 22235allow_undefined_flag=$lt_allow_undefined_flag 22236 22237# Flag that enforces no undefined symbols. 22238no_undefined_flag=$lt_no_undefined_flag 22239 22240# Flag to hardcode \$libdir into a binary during linking. 22241# This must work even if \$libdir does not exist 22242hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22243 22244# Whether we need a single "-rpath" flag with a separated argument. 22245hardcode_libdir_separator=$lt_hardcode_libdir_separator 22246 22247# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22248# DIR into the resulting binary. 22249hardcode_direct=$hardcode_direct 22250 22251# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 22252# DIR into the resulting binary and the resulting library dependency is 22253# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 22254# library is relocated. 22255hardcode_direct_absolute=$hardcode_direct_absolute 22256 22257# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22258# into the resulting binary. 22259hardcode_minus_L=$hardcode_minus_L 22260 22261# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22262# into the resulting binary. 22263hardcode_shlibpath_var=$hardcode_shlibpath_var 22264 22265# Set to "yes" if building a shared library automatically hardcodes DIR 22266# into the library and all subsequent libraries and executables linked 22267# against it. 22268hardcode_automatic=$hardcode_automatic 22269 22270# Set to yes if linker adds runtime paths of dependent libraries 22271# to runtime path list. 22272inherit_rpath=$inherit_rpath 22273 22274# Whether libtool must link a program against all its dependency libraries. 22275link_all_deplibs=$link_all_deplibs 22276 22277# Set to "yes" if exported symbols are required. 22278always_export_symbols=$always_export_symbols 22279 22280# The commands to list exported symbols. 22281export_symbols_cmds=$lt_export_symbols_cmds 22282 22283# Symbols that should not be listed in the preloaded symbols. 22284exclude_expsyms=$lt_exclude_expsyms 22285 22286# Symbols that must always be exported. 22287include_expsyms=$lt_include_expsyms 22288 22289# Commands necessary for linking programs (against libraries) with templates. 22290prelink_cmds=$lt_prelink_cmds 22291 22292# Commands necessary for finishing linking programs. 22293postlink_cmds=$lt_postlink_cmds 22294 22295# Specify filename containing input files. 22296file_list_spec=$lt_file_list_spec 22297 22298# How to hardcode a shared library path into an executable. 22299hardcode_action=$hardcode_action 22300 22301# ### END LIBTOOL CONFIG 22302 22303_LT_EOF 22304 22305 case $host_os in 22306 aix3*) 22307 cat <<\_LT_EOF >> "$cfgfile" 22308# AIX sometimes has problems with the GCC collect2 program. For some 22309# reason, if we set the COLLECT_NAMES environment variable, the problems 22310# vanish in a puff of smoke. 22311if test "X${COLLECT_NAMES+set}" != Xset; then 22312 COLLECT_NAMES= 22313 export COLLECT_NAMES 22314fi 22315_LT_EOF 22316 ;; 22317 esac 22318 22319 22320ltmain="$ac_aux_dir/ltmain.sh" 22321 22322 22323 # We use sed instead of cat because bash on DJGPP gets confused if 22324 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22325 # text mode, it properly converts lines to CR/LF. This bash problem 22326 # is reportedly fixed, but why not run on old versions too? 22327 sed '$q' "$ltmain" >> "$cfgfile" \ 22328 || (rm -f "$cfgfile"; exit 1) 22329 22330 if test x"$xsi_shell" = xyes; then 22331 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 22332func_dirname ()\ 22333{\ 22334\ case ${1} in\ 22335\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22336\ * ) func_dirname_result="${3}" ;;\ 22337\ esac\ 22338} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 22339 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22340 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22341test 0 -eq $? || _lt_function_replace_fail=: 22342 22343 22344 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 22345func_basename ()\ 22346{\ 22347\ func_basename_result="${1##*/}"\ 22348} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22349 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22351test 0 -eq $? || _lt_function_replace_fail=: 22352 22353 22354 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 22355func_dirname_and_basename ()\ 22356{\ 22357\ case ${1} in\ 22358\ */*) func_dirname_result="${1%/*}${2}" ;;\ 22359\ * ) func_dirname_result="${3}" ;;\ 22360\ esac\ 22361\ func_basename_result="${1##*/}"\ 22362} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 22363 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22364 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22365test 0 -eq $? || _lt_function_replace_fail=: 22366 22367 22368 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 22369func_stripname ()\ 22370{\ 22371\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 22372\ # positional parameters, so assign one to ordinary parameter first.\ 22373\ func_stripname_result=${3}\ 22374\ func_stripname_result=${func_stripname_result#"${1}"}\ 22375\ func_stripname_result=${func_stripname_result%"${2}"}\ 22376} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 22377 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22378 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22379test 0 -eq $? || _lt_function_replace_fail=: 22380 22381 22382 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 22383func_split_long_opt ()\ 22384{\ 22385\ func_split_long_opt_name=${1%%=*}\ 22386\ func_split_long_opt_arg=${1#*=}\ 22387} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22388 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22389 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22390test 0 -eq $? || _lt_function_replace_fail=: 22391 22392 22393 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 22394func_split_short_opt ()\ 22395{\ 22396\ func_split_short_opt_arg=${1#??}\ 22397\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 22398} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 22399 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22400 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22401test 0 -eq $? || _lt_function_replace_fail=: 22402 22403 22404 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 22405func_lo2o ()\ 22406{\ 22407\ case ${1} in\ 22408\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 22409\ *) func_lo2o_result=${1} ;;\ 22410\ esac\ 22411} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 22412 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22413 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22414test 0 -eq $? || _lt_function_replace_fail=: 22415 22416 22417 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 22418func_xform ()\ 22419{\ 22420 func_xform_result=${1%.*}.lo\ 22421} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 22422 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22423 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22424test 0 -eq $? || _lt_function_replace_fail=: 22425 22426 22427 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 22428func_arith ()\ 22429{\ 22430 func_arith_result=$(( $* ))\ 22431} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 22432 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22433 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22434test 0 -eq $? || _lt_function_replace_fail=: 22435 22436 22437 sed -e '/^func_len ()$/,/^} # func_len /c\ 22438func_len ()\ 22439{\ 22440 func_len_result=${#1}\ 22441} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 22442 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22443 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22444test 0 -eq $? || _lt_function_replace_fail=: 22445 22446fi 22447 22448if test x"$lt_shell_append" = xyes; then 22449 sed -e '/^func_append ()$/,/^} # func_append /c\ 22450func_append ()\ 22451{\ 22452 eval "${1}+=\\${2}"\ 22453} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 22454 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22456test 0 -eq $? || _lt_function_replace_fail=: 22457 22458 22459 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 22460func_append_quoted ()\ 22461{\ 22462\ func_quote_for_eval "${2}"\ 22463\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 22464} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 22465 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22467test 0 -eq $? || _lt_function_replace_fail=: 22468 22469 22470 # Save a `func_append' function call where possible by direct use of '+=' 22471 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 22472 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22473 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22474 test 0 -eq $? || _lt_function_replace_fail=: 22475else 22476 # Save a `func_append' function call even when '+=' is not available 22477 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 22478 && mv -f "$cfgfile.tmp" "$cfgfile" \ 22479 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 22480 test 0 -eq $? || _lt_function_replace_fail=: 22481fi 22482 22483if test x"$_lt_function_replace_fail" = x":"; then 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 22485$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 22486fi 22487 22488 22489 mv -f "$cfgfile" "$ofile" || 22490 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22491 chmod +x "$ofile" 22492 22493 ;; 22494 22495 esac 22496done # for ac_tag 22497 22498 22499as_fn_exit 0 22500_ACEOF 22501ac_clean_files=$ac_clean_files_save 22502 22503test $ac_write_fail = 0 || 22504 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22505 22506 22507# configure is writing to config.log, and then calls config.status. 22508# config.status does its own redirection, appending to config.log. 22509# Unfortunately, on DOS this fails, as config.log is still kept open 22510# by configure, so config.status won't be able to write to it; its 22511# output is simply discarded. So we exec the FD to /dev/null, 22512# effectively closing config.log, so it can be properly (re)opened and 22513# appended to by config.status. When coming back to configure, we 22514# need to make the FD available again. 22515if test "$no_create" != yes; then 22516 ac_cs_success=: 22517 ac_config_status_args= 22518 test "$silent" = yes && 22519 ac_config_status_args="$ac_config_status_args --quiet" 22520 exec 5>/dev/null 22521 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22522 exec 5>>config.log 22523 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22524 # would make configure fail if this is the last instruction. 22525 $ac_cs_success || as_fn_exit 1 22526fi 22527if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22529$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22530fi 22531 22532 22533if test "$with_pam" = "yes"; then 22534 case $host in 22535 *-*-hpux*) 22536 if test -f /usr/lib/security/libpam_hpsec.so.1; then 22537 { $as_echo "$as_me:${as_lineno-$LINENO}: You may wish to add the following line to /etc/pam.conf" >&5 22538$as_echo "$as_me: You may wish to add the following line to /etc/pam.conf" >&6;} 22539 { $as_echo "$as_me:${as_lineno-$LINENO}: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&5 22540$as_echo "$as_me: sudo session required libpam_hpsec.so.1 bypass_umask bypass_last_login" >&6;} 22541 fi 22542 ;; 22543 *-*-linux*) 22544 { $as_echo "$as_me:${as_lineno-$LINENO}: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5 22545$as_echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;} 22546 ;; 22547 esac 22548fi 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635