You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4253 lines
138 KiB

  1. --- a/src/modules/rlm_ldap/configure
  2. +++ b/src/modules/rlm_ldap/configure
  3. @@ -1,10 +1,10 @@
  4. #! /bin/sh
  5. # From configure.in Revision.
  6. # Guess values for system-dependent variables and create Makefiles.
  7. -# Generated by GNU Autoconf 2.61.
  8. +# Generated by GNU Autoconf 2.63.
  9. #
  10. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  11. -# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  12. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## --------------------- ##
  16. @@ -16,7 +16,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. @@ -38,17 +38,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
  26. as_cr_digits='0123456789'
  27. as_cr_alnum=$as_cr_Letters$as_cr_digits
  28. -# The user is always right.
  29. -if test "${PATH_SEPARATOR+set}" != set; then
  30. - echo "#! /bin/sh" >conf$$.sh
  31. - echo "exit 0" >>conf$$.sh
  32. - chmod +x conf$$.sh
  33. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  34. - PATH_SEPARATOR=';'
  35. +as_nl='
  36. +'
  37. +export as_nl
  38. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. + as_echo='printf %s\n'
  44. + as_echo_n='printf %s'
  45. +else
  46. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  47. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  48. + as_echo_n='/usr/ucb/echo -n'
  49. else
  50. - PATH_SEPARATOR=:
  51. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  52. + as_echo_n_body='eval
  53. + arg=$1;
  54. + case $arg in
  55. + *"$as_nl"*)
  56. + expr "X$arg" : "X\\(.*\\)$as_nl";
  57. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  58. + esac;
  59. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  60. + '
  61. + export as_echo_n_body
  62. + as_echo_n='sh -c $as_echo_n_body as_echo'
  63. fi
  64. - rm -f conf$$.sh
  65. + export as_echo_body
  66. + as_echo='sh -c $as_echo_body as_echo'
  67. +fi
  68. +
  69. +# The user is always right.
  70. +if test "${PATH_SEPARATOR+set}" != set; then
  71. + PATH_SEPARATOR=:
  72. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  73. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  74. + PATH_SEPARATOR=';'
  75. + }
  76. fi
  77. # Support unset when possible.
  78. @@ -64,8 +92,6 @@ fi
  79. # there to prevent editors from complaining about space-tab.
  80. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  81. # splitting by setting IFS to empty value.)
  82. -as_nl='
  83. -'
  84. IFS=" "" $as_nl"
  85. # Find who we are. Look in the path if we contain no directory separator.
  86. @@ -88,7 +114,7 @@ if test "x$as_myself" = x; then
  87. as_myself=$0
  88. fi
  89. if test ! -f "$as_myself"; then
  90. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  91. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  92. { (exit 1); exit 1; }
  93. fi
  94. @@ -101,17 +127,10 @@ PS2='> '
  95. PS4='+ '
  96. # NLS nuisances.
  97. -for as_var in \
  98. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  99. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  100. - LC_TELEPHONE LC_TIME
  101. -do
  102. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  103. - eval $as_var=C; export $as_var
  104. - else
  105. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  106. - fi
  107. -done
  108. +LC_ALL=C
  109. +export LC_ALL
  110. +LANGUAGE=C
  111. +export LANGUAGE
  112. # Required to use basename.
  113. if expr a : '\(a\)' >/dev/null 2>&1 &&
  114. @@ -133,7 +152,7 @@ as_me=`$as_basename -- "$0" ||
  115. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  116. X"$0" : 'X\(//\)$' \| \
  117. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  118. -echo X/"$0" |
  119. +$as_echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. @@ -159,7 +178,7 @@ else
  124. as_have_required=no
  125. fi
  126. - if test $as_have_required = yes && (eval ":
  127. + if test $as_have_required = yes && (eval ":
  128. (as_func_return () {
  129. (exit \$1)
  130. }
  131. @@ -241,7 +260,7 @@ IFS=$as_save_IFS
  132. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  133. emulate sh
  134. NULLCMD=:
  135. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  136. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  137. # is contrary to our usage. Disable this feature.
  138. alias -g '${1+"$@"}'='"$@"'
  139. setopt NO_GLOB_SUBST
  140. @@ -262,7 +281,7 @@ _ASEOF
  141. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  142. emulate sh
  143. NULLCMD=:
  144. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  145. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  146. # is contrary to our usage. Disable this feature.
  147. alias -g '${1+"$@"}'='"$@"'
  148. setopt NO_GLOB_SUBST
  149. @@ -342,10 +361,10 @@ fi
  150. if test "x$CONFIG_SHELL" != x; then
  151. for as_var in BASH_ENV ENV
  152. - do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  153. - done
  154. - export CONFIG_SHELL
  155. - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  156. + do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  157. + done
  158. + export CONFIG_SHELL
  159. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  160. fi
  161. @@ -414,9 +433,10 @@ fi
  162. test \$exitcode = 0") || {
  163. echo No shell found that supports shell functions.
  164. - echo Please tell autoconf@gnu.org about your system,
  165. - echo including any error possibly output before this
  166. - echo message
  167. + echo Please tell bug-autoconf@gnu.org about your system,
  168. + echo including any error possibly output before this message.
  169. + echo This can help us improve future autoconf versions.
  170. + echo Configuration will now proceed without shell functions.
  171. }
  172. @@ -452,7 +472,7 @@ test \$exitcode = 0") || {
  173. s/-\n.*//
  174. ' >$as_me.lineno &&
  175. chmod +x "$as_me.lineno" ||
  176. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  177. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  178. { (exit 1); exit 1; }; }
  179. # Don't try to exec as it changes $[0], causing all sort of problems
  180. @@ -480,7 +500,6 @@ case `echo -n x` in
  181. *)
  182. ECHO_N='-n';;
  183. esac
  184. -
  185. if expr a : '\(a\)' >/dev/null 2>&1 &&
  186. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  187. as_expr=expr
  188. @@ -493,19 +512,22 @@ if test -d conf$$.dir; then
  189. rm -f conf$$.dir/conf$$.file
  190. else
  191. rm -f conf$$.dir
  192. - mkdir conf$$.dir
  193. + mkdir conf$$.dir 2>/dev/null
  194. fi
  195. -echo >conf$$.file
  196. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  197. - as_ln_s='ln -s'
  198. - # ... but there are two gotchas:
  199. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  200. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  201. - # In both cases, we have to default to `cp -p'.
  202. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  203. +if (echo >conf$$.file) 2>/dev/null; then
  204. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  205. + as_ln_s='ln -s'
  206. + # ... but there are two gotchas:
  207. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  208. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  209. + # In both cases, we have to default to `cp -p'.
  210. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  211. + as_ln_s='cp -p'
  212. + elif ln conf$$.file conf$$ 2>/dev/null; then
  213. + as_ln_s=ln
  214. + else
  215. as_ln_s='cp -p'
  216. -elif ln conf$$.file conf$$ 2>/dev/null; then
  217. - as_ln_s=ln
  218. + fi
  219. else
  220. as_ln_s='cp -p'
  221. fi
  222. @@ -530,10 +552,10 @@ else
  223. as_test_x='
  224. eval sh -c '\''
  225. if test -d "$1"; then
  226. - test -d "$1/.";
  227. + test -d "$1/.";
  228. else
  229. case $1 in
  230. - -*)set "./$1";;
  231. + -*)set "./$1";;
  232. esac;
  233. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  234. ???[sx]*):;;*)false;;esac;fi
  235. @@ -578,57 +600,65 @@ PACKAGE_STRING=
  236. PACKAGE_BUGREPORT=
  237. ac_unique_file="rlm_ldap.c"
  238. -ac_subst_vars='SHELL
  239. -PATH_SEPARATOR
  240. -PACKAGE_NAME
  241. -PACKAGE_TARNAME
  242. -PACKAGE_VERSION
  243. -PACKAGE_STRING
  244. -PACKAGE_BUGREPORT
  245. -exec_prefix
  246. -prefix
  247. -program_transform_name
  248. -bindir
  249. -sbindir
  250. -libexecdir
  251. -datarootdir
  252. -datadir
  253. -sysconfdir
  254. -sharedstatedir
  255. -localstatedir
  256. -includedir
  257. -oldincludedir
  258. -docdir
  259. -infodir
  260. -htmldir
  261. -dvidir
  262. -pdfdir
  263. -psdir
  264. -libdir
  265. -localedir
  266. -mandir
  267. -DEFS
  268. -ECHO_C
  269. -ECHO_N
  270. -ECHO_T
  271. -LIBS
  272. -build_alias
  273. -host_alias
  274. -target_alias
  275. -CC
  276. -CFLAGS
  277. -LDFLAGS
  278. -CPPFLAGS
  279. -ac_ct_CC
  280. -EXEEXT
  281. -OBJEXT
  282. -edir
  283. -ldap_ldflags
  284. -ldap_cflags
  285. -targetname
  286. +ac_subst_vars='LTLIBOBJS
  287. LIBOBJS
  288. -LTLIBOBJS'
  289. +targetname
  290. +ldap_cflags
  291. +ldap_ldflags
  292. +edir
  293. +OBJEXT
  294. +EXEEXT
  295. +ac_ct_CC
  296. +CPPFLAGS
  297. +LDFLAGS
  298. +CFLAGS
  299. +CC
  300. +target_alias
  301. +host_alias
  302. +build_alias
  303. +LIBS
  304. +ECHO_T
  305. +ECHO_N
  306. +ECHO_C
  307. +DEFS
  308. +mandir
  309. +localedir
  310. +libdir
  311. +psdir
  312. +pdfdir
  313. +dvidir
  314. +htmldir
  315. +infodir
  316. +docdir
  317. +oldincludedir
  318. +includedir
  319. +localstatedir
  320. +sharedstatedir
  321. +sysconfdir
  322. +datadir
  323. +datarootdir
  324. +libexecdir
  325. +sbindir
  326. +bindir
  327. +program_transform_name
  328. +prefix
  329. +exec_prefix
  330. +PACKAGE_BUGREPORT
  331. +PACKAGE_STRING
  332. +PACKAGE_VERSION
  333. +PACKAGE_TARNAME
  334. +PACKAGE_NAME
  335. +PATH_SEPARATOR
  336. +SHELL'
  337. ac_subst_files=''
  338. +ac_user_opts='
  339. +enable_option_checking
  340. +with_rlm_ldap_lib_dir
  341. +with_rlm_ldap_include_dir
  342. +enable_shared
  343. +with_threads
  344. +with_edir
  345. +'
  346. ac_precious_vars='build_alias
  347. host_alias
  348. target_alias
  349. @@ -642,6 +672,8 @@ CPPFLAGS'
  350. # Initialize some variables set by options.
  351. ac_init_help=
  352. ac_init_version=false
  353. +ac_unrecognized_opts=
  354. +ac_unrecognized_sep=
  355. # The variables have the same names as the options, with
  356. # dashes changed to underlines.
  357. cache_file=/dev/null
  358. @@ -740,13 +772,21 @@ do
  359. datarootdir=$ac_optarg ;;
  360. -disable-* | --disable-*)
  361. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  362. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  363. # Reject names that are not valid shell variable names.
  364. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  365. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  366. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  367. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  368. { (exit 1); exit 1; }; }
  369. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  370. - eval enable_$ac_feature=no ;;
  371. + ac_useropt_orig=$ac_useropt
  372. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  373. + case $ac_user_opts in
  374. + *"
  375. +"enable_$ac_useropt"
  376. +"*) ;;
  377. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  378. + ac_unrecognized_sep=', ';;
  379. + esac
  380. + eval enable_$ac_useropt=no ;;
  381. -docdir | --docdir | --docdi | --doc | --do)
  382. ac_prev=docdir ;;
  383. @@ -759,13 +799,21 @@ do
  384. dvidir=$ac_optarg ;;
  385. -enable-* | --enable-*)
  386. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  387. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  388. # Reject names that are not valid shell variable names.
  389. - expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  390. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  391. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  392. + { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  393. { (exit 1); exit 1; }; }
  394. - ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  395. - eval enable_$ac_feature=\$ac_optarg ;;
  396. + ac_useropt_orig=$ac_useropt
  397. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  398. + case $ac_user_opts in
  399. + *"
  400. +"enable_$ac_useropt"
  401. +"*) ;;
  402. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  403. + ac_unrecognized_sep=', ';;
  404. + esac
  405. + eval enable_$ac_useropt=\$ac_optarg ;;
  406. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  407. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  408. @@ -956,22 +1004,38 @@ do
  409. ac_init_version=: ;;
  410. -with-* | --with-*)
  411. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  412. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  413. # Reject names that are not valid shell variable names.
  414. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  415. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  416. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  417. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  418. { (exit 1); exit 1; }; }
  419. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  420. - eval with_$ac_package=\$ac_optarg ;;
  421. + ac_useropt_orig=$ac_useropt
  422. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  423. + case $ac_user_opts in
  424. + *"
  425. +"with_$ac_useropt"
  426. +"*) ;;
  427. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  428. + ac_unrecognized_sep=', ';;
  429. + esac
  430. + eval with_$ac_useropt=\$ac_optarg ;;
  431. -without-* | --without-*)
  432. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  433. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  434. # Reject names that are not valid shell variable names.
  435. - expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  436. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  437. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  438. + { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  439. { (exit 1); exit 1; }; }
  440. - ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  441. - eval with_$ac_package=no ;;
  442. + ac_useropt_orig=$ac_useropt
  443. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  444. + case $ac_user_opts in
  445. + *"
  446. +"with_$ac_useropt"
  447. +"*) ;;
  448. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  449. + ac_unrecognized_sep=', ';;
  450. + esac
  451. + eval with_$ac_useropt=no ;;
  452. --x)
  453. # Obsolete; use --with-x.
  454. @@ -991,7 +1055,7 @@ do
  455. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  456. x_libraries=$ac_optarg ;;
  457. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  458. + -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  459. Try \`$0 --help' for more information." >&2
  460. { (exit 1); exit 1; }; }
  461. ;;
  462. @@ -1000,16 +1064,16 @@ Try \`$0 --help' for more information."
  463. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  464. # Reject names that are not valid shell variable names.
  465. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  466. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  467. + { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  468. { (exit 1); exit 1; }; }
  469. eval $ac_envvar=\$ac_optarg
  470. export $ac_envvar ;;
  471. *)
  472. # FIXME: should be removed in autoconf 3.0.
  473. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  474. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  475. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  476. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  477. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  478. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  479. ;;
  480. @@ -1018,22 +1082,38 @@ done
  481. if test -n "$ac_prev"; then
  482. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  483. - { echo "$as_me: error: missing argument to $ac_option" >&2
  484. + { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  485. { (exit 1); exit 1; }; }
  486. fi
  487. -# Be sure to have absolute directory names.
  488. +if test -n "$ac_unrecognized_opts"; then
  489. + case $enable_option_checking in
  490. + no) ;;
  491. + fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  492. + { (exit 1); exit 1; }; } ;;
  493. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  494. + esac
  495. +fi
  496. +
  497. +# Check all directory arguments for consistency.
  498. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  499. datadir sysconfdir sharedstatedir localstatedir includedir \
  500. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  501. libdir localedir mandir
  502. do
  503. eval ac_val=\$$ac_var
  504. + # Remove trailing slashes.
  505. + case $ac_val in
  506. + */ )
  507. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  508. + eval $ac_var=\$ac_val;;
  509. + esac
  510. + # Be sure to have absolute directory names.
  511. case $ac_val in
  512. [\\/$]* | ?:[\\/]* ) continue;;
  513. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  514. esac
  515. - { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  516. + { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  517. { (exit 1); exit 1; }; }
  518. done
  519. @@ -1048,7 +1128,7 @@ target=$target_alias
  520. if test "x$host_alias" != x; then
  521. if test "x$build_alias" = x; then
  522. cross_compiling=maybe
  523. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  524. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  525. If a cross compiler is detected then cross compile mode will be used." >&2
  526. elif test "x$build_alias" != "x$host_alias"; then
  527. cross_compiling=yes
  528. @@ -1064,10 +1144,10 @@ test "$silent" = yes && exec 6>/dev/null
  529. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  530. ac_ls_di=`ls -di .` &&
  531. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  532. - { echo "$as_me: error: Working directory cannot be determined" >&2
  533. + { $as_echo "$as_me: error: working directory cannot be determined" >&2
  534. { (exit 1); exit 1; }; }
  535. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  536. - { echo "$as_me: error: pwd does not report name of working directory" >&2
  537. + { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  538. { (exit 1); exit 1; }; }
  539. @@ -1075,12 +1155,12 @@ test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  540. if test -z "$srcdir"; then
  541. ac_srcdir_defaulted=yes
  542. # Try the directory containing this script, then the parent directory.
  543. - ac_confdir=`$as_dirname -- "$0" ||
  544. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  545. - X"$0" : 'X\(//\)[^/]' \| \
  546. - X"$0" : 'X\(//\)$' \| \
  547. - X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  548. -echo X"$0" |
  549. + ac_confdir=`$as_dirname -- "$as_myself" ||
  550. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  551. + X"$as_myself" : 'X\(//\)[^/]' \| \
  552. + X"$as_myself" : 'X\(//\)$' \| \
  553. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  554. +$as_echo X"$as_myself" |
  555. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  556. s//\1/
  557. q
  558. @@ -1107,12 +1187,12 @@ else
  559. fi
  560. if test ! -r "$srcdir/$ac_unique_file"; then
  561. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  562. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  563. + { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  564. { (exit 1); exit 1; }; }
  565. fi
  566. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  567. ac_abs_confdir=`(
  568. - cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  569. + cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  570. { (exit 1); exit 1; }; }
  571. pwd)`
  572. # When building in place, set srcdir=.
  573. @@ -1161,9 +1241,9 @@ Configuration:
  574. Installation directories:
  575. --prefix=PREFIX install architecture-independent files in PREFIX
  576. - [$ac_default_prefix]
  577. + [$ac_default_prefix]
  578. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  579. - [PREFIX]
  580. + [PREFIX]
  581. By default, \`make install' will install all the files in
  582. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  583. @@ -1173,25 +1253,25 @@ for instance \`--prefix=\$HOME'.
  584. For better control, use the options below.
  585. Fine tuning of the installation directories:
  586. - --bindir=DIR user executables [EPREFIX/bin]
  587. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  588. - --libexecdir=DIR program executables [EPREFIX/libexec]
  589. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  590. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  591. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  592. - --libdir=DIR object code libraries [EPREFIX/lib]
  593. - --includedir=DIR C header files [PREFIX/include]
  594. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  595. - --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  596. - --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  597. - --infodir=DIR info documentation [DATAROOTDIR/info]
  598. - --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  599. - --mandir=DIR man documentation [DATAROOTDIR/man]
  600. - --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  601. - --htmldir=DIR html documentation [DOCDIR]
  602. - --dvidir=DIR dvi documentation [DOCDIR]
  603. - --pdfdir=DIR pdf documentation [DOCDIR]
  604. - --psdir=DIR ps documentation [DOCDIR]
  605. + --bindir=DIR user executables [EPREFIX/bin]
  606. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  607. + --libexecdir=DIR program executables [EPREFIX/libexec]
  608. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  609. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  610. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  611. + --libdir=DIR object code libraries [EPREFIX/lib]
  612. + --includedir=DIR C header files [PREFIX/include]
  613. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  614. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  615. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  616. + --infodir=DIR info documentation [DATAROOTDIR/info]
  617. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  618. + --mandir=DIR man documentation [DATAROOTDIR/man]
  619. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  620. + --htmldir=DIR html documentation [DOCDIR]
  621. + --dvidir=DIR dvi documentation [DOCDIR]
  622. + --pdfdir=DIR pdf documentation [DOCDIR]
  623. + --psdir=DIR ps documentation [DOCDIR]
  624. _ACEOF
  625. cat <<\_ACEOF
  626. @@ -1203,6 +1283,7 @@ if test -n "$ac_init_help"; then
  627. cat <<\_ACEOF
  628. Optional Features:
  629. + --disable-option-checking ignore unrecognized --enable/--with options
  630. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  631. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  632. --enable-shared[=PKGS] build shared libraries [default=yes]
  633. @@ -1234,15 +1315,17 @@ fi
  634. if test "$ac_init_help" = "recursive"; then
  635. # If there are subdirs, report their specific --help.
  636. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  637. - test -d "$ac_dir" || continue
  638. + test -d "$ac_dir" ||
  639. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  640. + continue
  641. ac_builddir=.
  642. case "$ac_dir" in
  643. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  644. *)
  645. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  646. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  647. # A ".." for each directory in $ac_dir_suffix.
  648. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  649. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  650. case $ac_top_builddir_sub in
  651. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  652. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  653. @@ -1278,7 +1361,7 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
  654. echo &&
  655. $SHELL "$ac_srcdir/configure" --help=recursive
  656. else
  657. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  658. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  659. fi || ac_status=$?
  660. cd "$ac_pwd" || { ac_status=$?; break; }
  661. done
  662. @@ -1288,10 +1371,10 @@ test -n "$ac_init_help" && exit $ac_stat
  663. if $ac_init_version; then
  664. cat <<\_ACEOF
  665. configure
  666. -generated by GNU Autoconf 2.61
  667. +generated by GNU Autoconf 2.63
  668. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  669. -2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  670. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  671. This configure script is free software; the Free Software Foundation
  672. gives unlimited permission to copy, distribute and modify it.
  673. _ACEOF
  674. @@ -1302,7 +1385,7 @@ This file contains any messages produced
  675. running configure, to aid debugging if configure makes a mistake.
  676. It was created by $as_me, which was
  677. -generated by GNU Autoconf 2.61. Invocation command line was
  678. +generated by GNU Autoconf 2.63. Invocation command line was
  679. $ $0 $@
  680. @@ -1338,7 +1421,7 @@ for as_dir in $PATH
  681. do
  682. IFS=$as_save_IFS
  683. test -z "$as_dir" && as_dir=.
  684. - echo "PATH: $as_dir"
  685. + $as_echo "PATH: $as_dir"
  686. done
  687. IFS=$as_save_IFS
  688. @@ -1373,7 +1456,7 @@ do
  689. | -silent | --silent | --silen | --sile | --sil)
  690. continue ;;
  691. *\'*)
  692. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  693. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  694. esac
  695. case $ac_pass in
  696. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  697. @@ -1425,11 +1508,12 @@ _ASBOX
  698. case $ac_val in #(
  699. *${as_nl}*)
  700. case $ac_var in #(
  701. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  702. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  703. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  704. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  705. esac
  706. case $ac_var in #(
  707. _ | IFS | as_nl) ;; #(
  708. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  709. *) $as_unset $ac_var ;;
  710. esac ;;
  711. esac
  712. @@ -1459,9 +1543,9 @@ _ASBOX
  713. do
  714. eval ac_val=\$$ac_var
  715. case $ac_val in
  716. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  717. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  718. esac
  719. - echo "$ac_var='\''$ac_val'\''"
  720. + $as_echo "$ac_var='\''$ac_val'\''"
  721. done | sort
  722. echo
  723. @@ -1476,9 +1560,9 @@ _ASBOX
  724. do
  725. eval ac_val=\$$ac_var
  726. case $ac_val in
  727. - *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  728. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  729. esac
  730. - echo "$ac_var='\''$ac_val'\''"
  731. + $as_echo "$ac_var='\''$ac_val'\''"
  732. done | sort
  733. echo
  734. fi
  735. @@ -1494,8 +1578,8 @@ _ASBOX
  736. echo
  737. fi
  738. test "$ac_signal" != 0 &&
  739. - echo "$as_me: caught signal $ac_signal"
  740. - echo "$as_me: exit $exit_status"
  741. + $as_echo "$as_me: caught signal $ac_signal"
  742. + $as_echo "$as_me: exit $exit_status"
  743. } >&5
  744. rm -f core *.core core.conftest.* &&
  745. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  746. @@ -1537,21 +1621,24 @@ _ACEOF
  747. # Let the site file select an alternate cache file if it wants to.
  748. -# Prefer explicitly selected file to automatically selected ones.
  749. +# Prefer an explicitly selected file to automatically selected ones.
  750. +ac_site_file1=NONE
  751. +ac_site_file2=NONE
  752. if test -n "$CONFIG_SITE"; then
  753. - set x "$CONFIG_SITE"
  754. + ac_site_file1=$CONFIG_SITE
  755. elif test "x$prefix" != xNONE; then
  756. - set x "$prefix/share/config.site" "$prefix/etc/config.site"
  757. + ac_site_file1=$prefix/share/config.site
  758. + ac_site_file2=$prefix/etc/config.site
  759. else
  760. - set x "$ac_default_prefix/share/config.site" \
  761. - "$ac_default_prefix/etc/config.site"
  762. + ac_site_file1=$ac_default_prefix/share/config.site
  763. + ac_site_file2=$ac_default_prefix/etc/config.site
  764. fi
  765. -shift
  766. -for ac_site_file
  767. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  768. do
  769. + test "x$ac_site_file" = xNONE && continue
  770. if test -r "$ac_site_file"; then
  771. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  772. -echo "$as_me: loading site script $ac_site_file" >&6;}
  773. + { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  774. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  775. sed 's/^/| /' "$ac_site_file" >&5
  776. . "$ac_site_file"
  777. fi
  778. @@ -1561,16 +1648,16 @@ if test -r "$cache_file"; then
  779. # Some versions of bash will fail to source /dev/null (special
  780. # files actually), so we avoid doing that.
  781. if test -f "$cache_file"; then
  782. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  783. -echo "$as_me: loading cache $cache_file" >&6;}
  784. + { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  785. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  786. case $cache_file in
  787. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  788. *) . "./$cache_file";;
  789. esac
  790. fi
  791. else
  792. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  793. -echo "$as_me: creating cache $cache_file" >&6;}
  794. + { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  795. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  796. >$cache_file
  797. fi
  798. @@ -1584,29 +1671,38 @@ for ac_var in $ac_precious_vars; do
  799. eval ac_new_val=\$ac_env_${ac_var}_value
  800. case $ac_old_set,$ac_new_set in
  801. set,)
  802. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  803. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  804. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  805. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  806. ac_cache_corrupted=: ;;
  807. ,set)
  808. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  809. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  810. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  811. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  812. ac_cache_corrupted=: ;;
  813. ,);;
  814. *)
  815. if test "x$ac_old_val" != "x$ac_new_val"; then
  816. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  817. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  818. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  819. -echo "$as_me: former value: $ac_old_val" >&2;}
  820. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  821. -echo "$as_me: current value: $ac_new_val" >&2;}
  822. - ac_cache_corrupted=:
  823. + # differences in whitespace do not lead to failure.
  824. + ac_old_val_w=`echo x $ac_old_val`
  825. + ac_new_val_w=`echo x $ac_new_val`
  826. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  827. + { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  828. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  829. + ac_cache_corrupted=:
  830. + else
  831. + { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  832. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  833. + eval $ac_var=\$ac_old_val
  834. + fi
  835. + { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  836. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  837. + { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  838. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  839. fi;;
  840. esac
  841. # Pass precious variables to config.status.
  842. if test "$ac_new_set" = set; then
  843. case $ac_new_val in
  844. - *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  845. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  846. *) ac_arg=$ac_var=$ac_new_val ;;
  847. esac
  848. case " $ac_configure_args " in
  849. @@ -1616,10 +1712,12 @@ echo "$as_me: current value: $ac_new_v
  850. fi
  851. done
  852. if $ac_cache_corrupted; then
  853. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  854. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  855. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  856. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  857. + { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  858. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  859. + { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  860. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  861. + { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  862. +$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  863. { (exit 1); exit 1; }; }
  864. fi
  865. @@ -1662,10 +1760,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  866. if test -n "$ac_tool_prefix"; then
  867. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  868. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  869. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  870. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  871. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  872. +$as_echo_n "checking for $ac_word... " >&6; }
  873. if test "${ac_cv_prog_CC+set}" = set; then
  874. - echo $ECHO_N "(cached) $ECHO_C" >&6
  875. + $as_echo_n "(cached) " >&6
  876. else
  877. if test -n "$CC"; then
  878. ac_cv_prog_CC="$CC" # Let the user override the test.
  879. @@ -1678,7 +1776,7 @@ do
  880. for ac_exec_ext in '' $ac_executable_extensions; do
  881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  882. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  883. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  884. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  885. break 2
  886. fi
  887. done
  888. @@ -1689,11 +1787,11 @@ fi
  889. fi
  890. CC=$ac_cv_prog_CC
  891. if test -n "$CC"; then
  892. - { echo "$as_me:$LINENO: result: $CC" >&5
  893. -echo "${ECHO_T}$CC" >&6; }
  894. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  895. +$as_echo "$CC" >&6; }
  896. else
  897. - { echo "$as_me:$LINENO: result: no" >&5
  898. -echo "${ECHO_T}no" >&6; }
  899. + { $as_echo "$as_me:$LINENO: result: no" >&5
  900. +$as_echo "no" >&6; }
  901. fi
  902. @@ -1702,10 +1800,10 @@ if test -z "$ac_cv_prog_CC"; then
  903. ac_ct_CC=$CC
  904. # Extract the first word of "gcc", so it can be a program name with args.
  905. set dummy gcc; ac_word=$2
  906. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  907. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  908. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  909. +$as_echo_n "checking for $ac_word... " >&6; }
  910. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  911. - echo $ECHO_N "(cached) $ECHO_C" >&6
  912. + $as_echo_n "(cached) " >&6
  913. else
  914. if test -n "$ac_ct_CC"; then
  915. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  916. @@ -1718,7 +1816,7 @@ do
  917. for ac_exec_ext in '' $ac_executable_extensions; do
  918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  919. ac_cv_prog_ac_ct_CC="gcc"
  920. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  921. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  922. break 2
  923. fi
  924. done
  925. @@ -1729,11 +1827,11 @@ fi
  926. fi
  927. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  928. if test -n "$ac_ct_CC"; then
  929. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  930. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  931. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  932. +$as_echo "$ac_ct_CC" >&6; }
  933. else
  934. - { echo "$as_me:$LINENO: result: no" >&5
  935. -echo "${ECHO_T}no" >&6; }
  936. + { $as_echo "$as_me:$LINENO: result: no" >&5
  937. +$as_echo "no" >&6; }
  938. fi
  939. if test "x$ac_ct_CC" = x; then
  940. @@ -1741,12 +1839,8 @@ fi
  941. else
  942. case $cross_compiling:$ac_tool_warned in
  943. yes:)
  944. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  945. -whose name does not start with the host triplet. If you think this
  946. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  947. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  948. -whose name does not start with the host triplet. If you think this
  949. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  950. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  951. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  952. ac_tool_warned=yes ;;
  953. esac
  954. CC=$ac_ct_CC
  955. @@ -1759,10 +1853,10 @@ if test -z "$CC"; then
  956. if test -n "$ac_tool_prefix"; then
  957. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  958. set dummy ${ac_tool_prefix}cc; ac_word=$2
  959. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  960. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  961. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  962. +$as_echo_n "checking for $ac_word... " >&6; }
  963. if test "${ac_cv_prog_CC+set}" = set; then
  964. - echo $ECHO_N "(cached) $ECHO_C" >&6
  965. + $as_echo_n "(cached) " >&6
  966. else
  967. if test -n "$CC"; then
  968. ac_cv_prog_CC="$CC" # Let the user override the test.
  969. @@ -1775,7 +1869,7 @@ do
  970. for ac_exec_ext in '' $ac_executable_extensions; do
  971. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  972. ac_cv_prog_CC="${ac_tool_prefix}cc"
  973. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  974. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  975. break 2
  976. fi
  977. done
  978. @@ -1786,11 +1880,11 @@ fi
  979. fi
  980. CC=$ac_cv_prog_CC
  981. if test -n "$CC"; then
  982. - { echo "$as_me:$LINENO: result: $CC" >&5
  983. -echo "${ECHO_T}$CC" >&6; }
  984. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  985. +$as_echo "$CC" >&6; }
  986. else
  987. - { echo "$as_me:$LINENO: result: no" >&5
  988. -echo "${ECHO_T}no" >&6; }
  989. + { $as_echo "$as_me:$LINENO: result: no" >&5
  990. +$as_echo "no" >&6; }
  991. fi
  992. @@ -1799,10 +1893,10 @@ fi
  993. if test -z "$CC"; then
  994. # Extract the first word of "cc", so it can be a program name with args.
  995. set dummy cc; ac_word=$2
  996. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  997. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  998. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  999. +$as_echo_n "checking for $ac_word... " >&6; }
  1000. if test "${ac_cv_prog_CC+set}" = set; then
  1001. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1002. + $as_echo_n "(cached) " >&6
  1003. else
  1004. if test -n "$CC"; then
  1005. ac_cv_prog_CC="$CC" # Let the user override the test.
  1006. @@ -1820,7 +1914,7 @@ do
  1007. continue
  1008. fi
  1009. ac_cv_prog_CC="cc"
  1010. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1011. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1012. break 2
  1013. fi
  1014. done
  1015. @@ -1843,11 +1937,11 @@ fi
  1016. fi
  1017. CC=$ac_cv_prog_CC
  1018. if test -n "$CC"; then
  1019. - { echo "$as_me:$LINENO: result: $CC" >&5
  1020. -echo "${ECHO_T}$CC" >&6; }
  1021. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1022. +$as_echo "$CC" >&6; }
  1023. else
  1024. - { echo "$as_me:$LINENO: result: no" >&5
  1025. -echo "${ECHO_T}no" >&6; }
  1026. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1027. +$as_echo "no" >&6; }
  1028. fi
  1029. @@ -1858,10 +1952,10 @@ if test -z "$CC"; then
  1030. do
  1031. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1032. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1033. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  1034. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1035. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1036. +$as_echo_n "checking for $ac_word... " >&6; }
  1037. if test "${ac_cv_prog_CC+set}" = set; then
  1038. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1039. + $as_echo_n "(cached) " >&6
  1040. else
  1041. if test -n "$CC"; then
  1042. ac_cv_prog_CC="$CC" # Let the user override the test.
  1043. @@ -1874,7 +1968,7 @@ do
  1044. for ac_exec_ext in '' $ac_executable_extensions; do
  1045. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1046. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1047. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1048. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1049. break 2
  1050. fi
  1051. done
  1052. @@ -1885,11 +1979,11 @@ fi
  1053. fi
  1054. CC=$ac_cv_prog_CC
  1055. if test -n "$CC"; then
  1056. - { echo "$as_me:$LINENO: result: $CC" >&5
  1057. -echo "${ECHO_T}$CC" >&6; }
  1058. + { $as_echo "$as_me:$LINENO: result: $CC" >&5
  1059. +$as_echo "$CC" >&6; }
  1060. else
  1061. - { echo "$as_me:$LINENO: result: no" >&5
  1062. -echo "${ECHO_T}no" >&6; }
  1063. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1064. +$as_echo "no" >&6; }
  1065. fi
  1066. @@ -1902,10 +1996,10 @@ if test -z "$CC"; then
  1067. do
  1068. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1069. set dummy $ac_prog; ac_word=$2
  1070. -{ echo "$as_me:$LINENO: checking for $ac_word" >&5
  1071. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1072. +{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  1073. +$as_echo_n "checking for $ac_word... " >&6; }
  1074. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1075. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1076. + $as_echo_n "(cached) " >&6
  1077. else
  1078. if test -n "$ac_ct_CC"; then
  1079. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1080. @@ -1918,7 +2012,7 @@ do
  1081. for ac_exec_ext in '' $ac_executable_extensions; do
  1082. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1083. ac_cv_prog_ac_ct_CC="$ac_prog"
  1084. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1085. + $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1086. break 2
  1087. fi
  1088. done
  1089. @@ -1929,11 +2023,11 @@ fi
  1090. fi
  1091. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1092. if test -n "$ac_ct_CC"; then
  1093. - { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1094. -echo "${ECHO_T}$ac_ct_CC" >&6; }
  1095. + { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1096. +$as_echo "$ac_ct_CC" >&6; }
  1097. else
  1098. - { echo "$as_me:$LINENO: result: no" >&5
  1099. -echo "${ECHO_T}no" >&6; }
  1100. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1101. +$as_echo "no" >&6; }
  1102. fi
  1103. @@ -1945,12 +2039,8 @@ done
  1104. else
  1105. case $cross_compiling:$ac_tool_warned in
  1106. yes:)
  1107. -{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1108. -whose name does not start with the host triplet. If you think this
  1109. -configuration is useful to you, please write to autoconf@gnu.org." >&5
  1110. -echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1111. -whose name does not start with the host triplet. If you think this
  1112. -configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1113. +{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  1114. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  1115. ac_tool_warned=yes ;;
  1116. esac
  1117. CC=$ac_ct_CC
  1118. @@ -1960,44 +2050,50 @@ fi
  1119. fi
  1120. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1121. +test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1122. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1123. +{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1124. See \`config.log' for more details." >&5
  1125. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  1126. +$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  1127. See \`config.log' for more details." >&2;}
  1128. - { (exit 1); exit 1; }; }
  1129. + { (exit 1); exit 1; }; }; }
  1130. # Provide some information about the compiler.
  1131. -echo "$as_me:$LINENO: checking for C compiler version" >&5
  1132. -ac_compiler=`set X $ac_compile; echo $2`
  1133. +$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  1134. +set X $ac_compile
  1135. +ac_compiler=$2
  1136. { (ac_try="$ac_compiler --version >&5"
  1137. case "(($ac_try" in
  1138. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1139. *) ac_try_echo=$ac_try;;
  1140. esac
  1141. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1142. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1143. +$as_echo "$ac_try_echo") >&5
  1144. (eval "$ac_compiler --version >&5") 2>&5
  1145. ac_status=$?
  1146. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1147. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1148. (exit $ac_status); }
  1149. { (ac_try="$ac_compiler -v >&5"
  1150. case "(($ac_try" in
  1151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1152. *) ac_try_echo=$ac_try;;
  1153. esac
  1154. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1155. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1156. +$as_echo "$ac_try_echo") >&5
  1157. (eval "$ac_compiler -v >&5") 2>&5
  1158. ac_status=$?
  1159. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1160. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1161. (exit $ac_status); }
  1162. { (ac_try="$ac_compiler -V >&5"
  1163. case "(($ac_try" in
  1164. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1165. *) ac_try_echo=$ac_try;;
  1166. esac
  1167. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1168. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1169. +$as_echo "$ac_try_echo") >&5
  1170. (eval "$ac_compiler -V >&5") 2>&5
  1171. ac_status=$?
  1172. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1173. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1174. (exit $ac_status); }
  1175. cat >conftest.$ac_ext <<_ACEOF
  1176. @@ -2016,27 +2112,22 @@ main ()
  1177. }
  1178. _ACEOF
  1179. ac_clean_files_save=$ac_clean_files
  1180. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1181. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  1182. # Try to create an executable without -o first, disregard a.out.
  1183. # It will help us diagnose broken compilers, and finding out an intuition
  1184. # of exeext.
  1185. -{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1186. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
  1187. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1188. -#
  1189. -# List of possible output files, starting from the most likely.
  1190. -# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1191. -# only as a last resort. b.out is created by i960 compilers.
  1192. -ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1193. -#
  1194. -# The IRIX 6 linker writes into existing files which may not be
  1195. -# executable, retaining their permissions. Remove them first so a
  1196. -# subsequent execution test works.
  1197. +{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1198. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  1199. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1200. +
  1201. +# The possible output files:
  1202. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  1203. +
  1204. ac_rmfiles=
  1205. for ac_file in $ac_files
  1206. do
  1207. case $ac_file in
  1208. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1209. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1210. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1211. esac
  1212. done
  1213. @@ -2047,10 +2138,11 @@ case "(($ac_try" in
  1214. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1215. *) ac_try_echo=$ac_try;;
  1216. esac
  1217. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1218. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1219. +$as_echo "$ac_try_echo") >&5
  1220. (eval "$ac_link_default") 2>&5
  1221. ac_status=$?
  1222. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1223. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1224. (exit $ac_status); }; then
  1225. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1226. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1227. @@ -2061,7 +2153,7 @@ for ac_file in $ac_files ''
  1228. do
  1229. test -f "$ac_file" || continue
  1230. case $ac_file in
  1231. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1232. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  1233. ;;
  1234. [ab].out )
  1235. # We found the default executable, but exeext='' is most
  1236. @@ -2088,25 +2180,27 @@ else
  1237. ac_file=''
  1238. fi
  1239. -{ echo "$as_me:$LINENO: result: $ac_file" >&5
  1240. -echo "${ECHO_T}$ac_file" >&6; }
  1241. +{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  1242. +$as_echo "$ac_file" >&6; }
  1243. if test -z "$ac_file"; then
  1244. - echo "$as_me: failed program was:" >&5
  1245. + $as_echo "$as_me: failed program was:" >&5
  1246. sed 's/^/| /' conftest.$ac_ext >&5
  1247. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1248. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1249. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1250. +{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  1251. See \`config.log' for more details." >&5
  1252. -echo "$as_me: error: C compiler cannot create executables
  1253. +$as_echo "$as_me: error: C compiler cannot create executables
  1254. See \`config.log' for more details." >&2;}
  1255. - { (exit 77); exit 77; }; }
  1256. + { (exit 77); exit 77; }; }; }
  1257. fi
  1258. ac_exeext=$ac_cv_exeext
  1259. # Check that the compiler produces executables we can run. If not, either
  1260. # the compiler is broken, or we cross compile.
  1261. -{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1262. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
  1263. +{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1264. +$as_echo_n "checking whether the C compiler works... " >&6; }
  1265. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1266. # If not cross compiling, check that we can run a simple program.
  1267. if test "$cross_compiling" != yes; then
  1268. @@ -2115,49 +2209,53 @@ if test "$cross_compiling" != yes; then
  1269. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1270. *) ac_try_echo=$ac_try;;
  1271. esac
  1272. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1273. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1274. +$as_echo "$ac_try_echo") >&5
  1275. (eval "$ac_try") 2>&5
  1276. ac_status=$?
  1277. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1278. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1279. (exit $ac_status); }; }; then
  1280. cross_compiling=no
  1281. else
  1282. if test "$cross_compiling" = maybe; then
  1283. cross_compiling=yes
  1284. else
  1285. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1286. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1287. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1288. +{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1289. If you meant to cross compile, use \`--host'.
  1290. See \`config.log' for more details." >&5
  1291. -echo "$as_me: error: cannot run C compiled programs.
  1292. +$as_echo "$as_me: error: cannot run C compiled programs.
  1293. If you meant to cross compile, use \`--host'.
  1294. See \`config.log' for more details." >&2;}
  1295. - { (exit 1); exit 1; }; }
  1296. + { (exit 1); exit 1; }; }; }
  1297. fi
  1298. fi
  1299. fi
  1300. -{ echo "$as_me:$LINENO: result: yes" >&5
  1301. -echo "${ECHO_T}yes" >&6; }
  1302. +{ $as_echo "$as_me:$LINENO: result: yes" >&5
  1303. +$as_echo "yes" >&6; }
  1304. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1305. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  1306. ac_clean_files=$ac_clean_files_save
  1307. # Check that the compiler produces executables we can run. If not, either
  1308. # the compiler is broken, or we cross compile.
  1309. -{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1310. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1311. -{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1312. -echo "${ECHO_T}$cross_compiling" >&6; }
  1313. +{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1314. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  1315. +{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1316. +$as_echo "$cross_compiling" >&6; }
  1317. -{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1318. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1319. +{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1320. +$as_echo_n "checking for suffix of executables... " >&6; }
  1321. if { (ac_try="$ac_link"
  1322. case "(($ac_try" in
  1323. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1324. *) ac_try_echo=$ac_try;;
  1325. esac
  1326. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1327. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1328. +$as_echo "$ac_try_echo") >&5
  1329. (eval "$ac_link") 2>&5
  1330. ac_status=$?
  1331. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1332. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1333. (exit $ac_status); }; then
  1334. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1335. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1336. @@ -2166,31 +2264,33 @@ eval "echo \"\$as_me:$LINENO: $ac_try_ec
  1337. for ac_file in conftest.exe conftest conftest.*; do
  1338. test -f "$ac_file" || continue
  1339. case $ac_file in
  1340. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1341. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  1342. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1343. break;;
  1344. * ) break;;
  1345. esac
  1346. done
  1347. else
  1348. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1349. + { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1350. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1351. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1352. See \`config.log' for more details." >&5
  1353. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1354. +$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1355. See \`config.log' for more details." >&2;}
  1356. - { (exit 1); exit 1; }; }
  1357. + { (exit 1); exit 1; }; }; }
  1358. fi
  1359. rm -f conftest$ac_cv_exeext
  1360. -{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1361. -echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1362. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1363. +$as_echo "$ac_cv_exeext" >&6; }
  1364. rm -f conftest.$ac_ext
  1365. EXEEXT=$ac_cv_exeext
  1366. ac_exeext=$EXEEXT
  1367. -{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1368. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1369. +{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1370. +$as_echo_n "checking for suffix of object files... " >&6; }
  1371. if test "${ac_cv_objext+set}" = set; then
  1372. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. + $as_echo_n "(cached) " >&6
  1374. else
  1375. cat >conftest.$ac_ext <<_ACEOF
  1376. /* confdefs.h. */
  1377. @@ -2213,40 +2313,43 @@ case "(($ac_try" in
  1378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1379. *) ac_try_echo=$ac_try;;
  1380. esac
  1381. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1382. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1383. +$as_echo "$ac_try_echo") >&5
  1384. (eval "$ac_compile") 2>&5
  1385. ac_status=$?
  1386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1387. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1388. (exit $ac_status); }; then
  1389. for ac_file in conftest.o conftest.obj conftest.*; do
  1390. test -f "$ac_file" || continue;
  1391. case $ac_file in
  1392. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1393. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  1394. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1395. break;;
  1396. esac
  1397. done
  1398. else
  1399. - echo "$as_me: failed program was:" >&5
  1400. + $as_echo "$as_me: failed program was:" >&5
  1401. sed 's/^/| /' conftest.$ac_ext >&5
  1402. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1403. +{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  1404. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1405. +{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1406. See \`config.log' for more details." >&5
  1407. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1408. +$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1409. See \`config.log' for more details." >&2;}
  1410. - { (exit 1); exit 1; }; }
  1411. + { (exit 1); exit 1; }; }; }
  1412. fi
  1413. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1414. fi
  1415. -{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1416. -echo "${ECHO_T}$ac_cv_objext" >&6; }
  1417. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1418. +$as_echo "$ac_cv_objext" >&6; }
  1419. OBJEXT=$ac_cv_objext
  1420. ac_objext=$OBJEXT
  1421. -{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1422. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  1423. +{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1424. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  1425. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1426. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1427. + $as_echo_n "(cached) " >&6
  1428. else
  1429. cat >conftest.$ac_ext <<_ACEOF
  1430. /* confdefs.h. */
  1431. @@ -2272,20 +2375,21 @@ case "(($ac_try" in
  1432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1433. *) ac_try_echo=$ac_try;;
  1434. esac
  1435. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1436. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1437. +$as_echo "$ac_try_echo") >&5
  1438. (eval "$ac_compile") 2>conftest.er1
  1439. ac_status=$?
  1440. grep -v '^ *+' conftest.er1 >conftest.err
  1441. rm -f conftest.er1
  1442. cat conftest.err >&5
  1443. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1444. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1445. (exit $ac_status); } && {
  1446. test -z "$ac_c_werror_flag" ||
  1447. test ! -s conftest.err
  1448. } && test -s conftest.$ac_objext; then
  1449. ac_compiler_gnu=yes
  1450. else
  1451. - echo "$as_me: failed program was:" >&5
  1452. + $as_echo "$as_me: failed program was:" >&5
  1453. sed 's/^/| /' conftest.$ac_ext >&5
  1454. ac_compiler_gnu=no
  1455. @@ -2295,15 +2399,19 @@ rm -f core conftest.err conftest.$ac_obj
  1456. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1457. fi
  1458. -{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1459. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  1460. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  1461. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1462. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  1463. +if test $ac_compiler_gnu = yes; then
  1464. + GCC=yes
  1465. +else
  1466. + GCC=
  1467. +fi
  1468. ac_test_CFLAGS=${CFLAGS+set}
  1469. ac_save_CFLAGS=$CFLAGS
  1470. -{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1471. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  1472. +{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1473. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  1474. if test "${ac_cv_prog_cc_g+set}" = set; then
  1475. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1476. + $as_echo_n "(cached) " >&6
  1477. else
  1478. ac_save_c_werror_flag=$ac_c_werror_flag
  1479. ac_c_werror_flag=yes
  1480. @@ -2330,20 +2438,21 @@ case "(($ac_try" in
  1481. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1482. *) ac_try_echo=$ac_try;;
  1483. esac
  1484. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1485. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1486. +$as_echo "$ac_try_echo") >&5
  1487. (eval "$ac_compile") 2>conftest.er1
  1488. ac_status=$?
  1489. grep -v '^ *+' conftest.er1 >conftest.err
  1490. rm -f conftest.er1
  1491. cat conftest.err >&5
  1492. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1493. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); } && {
  1495. test -z "$ac_c_werror_flag" ||
  1496. test ! -s conftest.err
  1497. } && test -s conftest.$ac_objext; then
  1498. ac_cv_prog_cc_g=yes
  1499. else
  1500. - echo "$as_me: failed program was:" >&5
  1501. + $as_echo "$as_me: failed program was:" >&5
  1502. sed 's/^/| /' conftest.$ac_ext >&5
  1503. CFLAGS=""
  1504. @@ -2368,20 +2477,21 @@ case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1509. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1510. +$as_echo "$ac_try_echo") >&5
  1511. (eval "$ac_compile") 2>conftest.er1
  1512. ac_status=$?
  1513. grep -v '^ *+' conftest.er1 >conftest.err
  1514. rm -f conftest.er1
  1515. cat conftest.err >&5
  1516. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1517. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1518. (exit $ac_status); } && {
  1519. test -z "$ac_c_werror_flag" ||
  1520. test ! -s conftest.err
  1521. } && test -s conftest.$ac_objext; then
  1522. :
  1523. else
  1524. - echo "$as_me: failed program was:" >&5
  1525. + $as_echo "$as_me: failed program was:" >&5
  1526. sed 's/^/| /' conftest.$ac_ext >&5
  1527. ac_c_werror_flag=$ac_save_c_werror_flag
  1528. @@ -2407,20 +2517,21 @@ case "(($ac_try" in
  1529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1530. *) ac_try_echo=$ac_try;;
  1531. esac
  1532. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1533. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1534. +$as_echo "$ac_try_echo") >&5
  1535. (eval "$ac_compile") 2>conftest.er1
  1536. ac_status=$?
  1537. grep -v '^ *+' conftest.er1 >conftest.err
  1538. rm -f conftest.er1
  1539. cat conftest.err >&5
  1540. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1541. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1542. (exit $ac_status); } && {
  1543. test -z "$ac_c_werror_flag" ||
  1544. test ! -s conftest.err
  1545. } && test -s conftest.$ac_objext; then
  1546. ac_cv_prog_cc_g=yes
  1547. else
  1548. - echo "$as_me: failed program was:" >&5
  1549. + $as_echo "$as_me: failed program was:" >&5
  1550. sed 's/^/| /' conftest.$ac_ext >&5
  1551. @@ -2435,8 +2546,8 @@ fi
  1552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1553. ac_c_werror_flag=$ac_save_c_werror_flag
  1554. fi
  1555. -{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1556. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  1557. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1558. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  1559. if test "$ac_test_CFLAGS" = set; then
  1560. CFLAGS=$ac_save_CFLAGS
  1561. elif test $ac_cv_prog_cc_g = yes; then
  1562. @@ -2452,10 +2563,10 @@ else
  1563. CFLAGS=
  1564. fi
  1565. fi
  1566. -{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  1567. -echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  1568. +{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  1569. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  1570. if test "${ac_cv_prog_cc_c89+set}" = set; then
  1571. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1572. + $as_echo_n "(cached) " >&6
  1573. else
  1574. ac_cv_prog_cc_c89=no
  1575. ac_save_CC=$CC
  1576. @@ -2526,20 +2637,21 @@ case "(($ac_try" in
  1577. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1578. *) ac_try_echo=$ac_try;;
  1579. esac
  1580. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1581. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1582. +$as_echo "$ac_try_echo") >&5
  1583. (eval "$ac_compile") 2>conftest.er1
  1584. ac_status=$?
  1585. grep -v '^ *+' conftest.er1 >conftest.err
  1586. rm -f conftest.er1
  1587. cat conftest.err >&5
  1588. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1589. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1590. (exit $ac_status); } && {
  1591. test -z "$ac_c_werror_flag" ||
  1592. test ! -s conftest.err
  1593. } && test -s conftest.$ac_objext; then
  1594. ac_cv_prog_cc_c89=$ac_arg
  1595. else
  1596. - echo "$as_me: failed program was:" >&5
  1597. + $as_echo "$as_me: failed program was:" >&5
  1598. sed 's/^/| /' conftest.$ac_ext >&5
  1599. @@ -2555,15 +2667,15 @@ fi
  1600. # AC_CACHE_VAL
  1601. case "x$ac_cv_prog_cc_c89" in
  1602. x)
  1603. - { echo "$as_me:$LINENO: result: none needed" >&5
  1604. -echo "${ECHO_T}none needed" >&6; } ;;
  1605. + { $as_echo "$as_me:$LINENO: result: none needed" >&5
  1606. +$as_echo "none needed" >&6; } ;;
  1607. xno)
  1608. - { echo "$as_me:$LINENO: result: unsupported" >&5
  1609. -echo "${ECHO_T}unsupported" >&6; } ;;
  1610. + { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  1611. +$as_echo "unsupported" >&6; } ;;
  1612. *)
  1613. CC="$CC $ac_cv_prog_cc_c89"
  1614. - { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  1615. -echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  1616. + { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  1617. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  1618. esac
  1619. @@ -2581,8 +2693,8 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1620. if test "${with_rlm_ldap_lib_dir+set}" = set; then
  1621. withval=$with_rlm_ldap_lib_dir; case "$withval" in
  1622. no)
  1623. - { { echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
  1624. -echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
  1625. + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-lib-dir" >&5
  1626. +$as_echo "$as_me: error: Need rlm-ldap-lib-dir" >&2;}
  1627. { (exit 1); exit 1; }; }
  1628. ;;
  1629. yes)
  1630. @@ -2601,8 +2713,8 @@ fi
  1631. if test "${with_rlm_ldap_include_dir+set}" = set; then
  1632. withval=$with_rlm_ldap_include_dir; case "$withval" in
  1633. no)
  1634. - { { echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
  1635. -echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
  1636. + { { $as_echo "$as_me:$LINENO: error: Need rlm-ldap-include-dir" >&5
  1637. +$as_echo "$as_me: error: Need rlm-ldap-include-dir" >&2;}
  1638. { (exit 1); exit 1; }; }
  1639. ;;
  1640. yes)
  1641. @@ -2641,8 +2753,8 @@ fi
  1642. if test "x$enable_shared" = "xno"; then
  1643. - { echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
  1644. -echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
  1645. + { $as_echo "$as_me:$LINENO: WARNING: Static linking with libldap will probably result in unresolved symbols." >&5
  1646. +$as_echo "$as_me: WARNING: Static linking with libldap will probably result in unresolved symbols." >&2;}
  1647. fi
  1648. rlm_ldap_with_threads=yes
  1649. @@ -2661,10 +2773,10 @@ fi
  1650. if test "x$rlm_ldap_with_threads" = "xyes"; then
  1651. - { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  1652. -echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
  1653. + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  1654. +$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
  1655. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  1656. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1657. + $as_echo_n "(cached) " >&6
  1658. else
  1659. ac_check_lib_save_LIBS=$LIBS
  1660. LIBS="-lpthread $LIBS"
  1661. @@ -2696,39 +2808,43 @@ case "(($ac_try" in
  1662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1663. *) ac_try_echo=$ac_try;;
  1664. esac
  1665. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1666. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1667. +$as_echo "$ac_try_echo") >&5
  1668. (eval "$ac_link") 2>conftest.er1
  1669. ac_status=$?
  1670. grep -v '^ *+' conftest.er1 >conftest.err
  1671. rm -f conftest.er1
  1672. cat conftest.err >&5
  1673. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1674. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1675. (exit $ac_status); } && {
  1676. test -z "$ac_c_werror_flag" ||
  1677. test ! -s conftest.err
  1678. - } && test -s conftest$ac_exeext &&
  1679. - $as_test_x conftest$ac_exeext; then
  1680. + } && test -s conftest$ac_exeext && {
  1681. + test "$cross_compiling" = yes ||
  1682. + $as_test_x conftest$ac_exeext
  1683. + }; then
  1684. ac_cv_lib_pthread_pthread_create=yes
  1685. else
  1686. - echo "$as_me: failed program was:" >&5
  1687. + $as_echo "$as_me: failed program was:" >&5
  1688. sed 's/^/| /' conftest.$ac_ext >&5
  1689. ac_cv_lib_pthread_pthread_create=no
  1690. fi
  1691. +rm -rf conftest.dSYM
  1692. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1693. conftest$ac_exeext conftest.$ac_ext
  1694. LIBS=$ac_check_lib_save_LIBS
  1695. fi
  1696. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  1697. -echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
  1698. -if test $ac_cv_lib_pthread_pthread_create = yes; then
  1699. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  1700. +$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
  1701. +if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then
  1702. LIBS="-lpthread $LIBS"
  1703. else
  1704. - { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
  1705. -echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
  1706. + { $as_echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
  1707. +$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
  1708. if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
  1709. - echo $ECHO_N "(cached) $ECHO_C" >&6
  1710. + $as_echo_n "(cached) " >&6
  1711. else
  1712. ac_check_lib_save_LIBS=$LIBS
  1713. LIBS="-lc_r $LIBS"
  1714. @@ -2761,33 +2877,37 @@ case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1719. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1720. +$as_echo "$ac_try_echo") >&5
  1721. (eval "$ac_link") 2>conftest.er1
  1722. ac_status=$?
  1723. grep -v '^ *+' conftest.er1 >conftest.err
  1724. rm -f conftest.er1
  1725. cat conftest.err >&5
  1726. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1727. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1728. (exit $ac_status); } && {
  1729. test -z "$ac_c_werror_flag" ||
  1730. test ! -s conftest.err
  1731. - } && test -s conftest$ac_exeext &&
  1732. - $as_test_x conftest$ac_exeext; then
  1733. + } && test -s conftest$ac_exeext && {
  1734. + test "$cross_compiling" = yes ||
  1735. + $as_test_x conftest$ac_exeext
  1736. + }; then
  1737. ac_cv_lib_c_r_pthread_create=yes
  1738. else
  1739. - echo "$as_me: failed program was:" >&5
  1740. + $as_echo "$as_me: failed program was:" >&5
  1741. sed 's/^/| /' conftest.$ac_ext >&5
  1742. ac_cv_lib_c_r_pthread_create=no
  1743. fi
  1744. +rm -rf conftest.dSYM
  1745. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1746. conftest$ac_exeext conftest.$ac_ext
  1747. LIBS=$ac_check_lib_save_LIBS
  1748. fi
  1749. -{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
  1750. -echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
  1751. -if test $ac_cv_lib_c_r_pthread_create = yes; then
  1752. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
  1753. +$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
  1754. +if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then
  1755. LIBS="-lc_r $LIBS"
  1756. else
  1757. rlm_ldap_with_threads="no"
  1758. @@ -2799,14 +2919,12 @@ fi
  1759. fi
  1760. - smart_try_dir=$rlm_ldap_lib_dir
  1761. - if test "x$rlm_ldap_with_threads" = "xyes"; then
  1762. -sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
  1763. -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  1764. -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
  1765. -echo $ECHO_N "checking for ldap_init in -lldap_r... $ECHO_C" >&6; }
  1766. +sm_lib_safe=`echo "sasl" | sed 'y%./+-%__p_%'`
  1767. +sm_func_safe=`echo "sasl_encode" | sed 'y%./+-%__p_%'`
  1768. +{ $as_echo "$as_me:$LINENO: checking for sasl_encode in -lsasl" >&5
  1769. +$as_echo_n "checking for sasl_encode in -lsasl... " >&6; }
  1770. old_LIBS="$LIBS"
  1771. smart_lib=
  1772. @@ -2814,18 +2932,18 @@ smart_lib_dir=
  1773. if test "x$smart_try_dir" != "x"; then
  1774. for try in $smart_try_dir; do
  1775. - LIBS="-L$try -lldap_r $old_LIBS"
  1776. + LIBS="-L$try -lsasl $old_LIBS"
  1777. cat >conftest.$ac_ext <<_ACEOF
  1778. /* confdefs.h. */
  1779. _ACEOF
  1780. cat confdefs.h >>conftest.$ac_ext
  1781. cat >>conftest.$ac_ext <<_ACEOF
  1782. /* end confdefs.h. */
  1783. -extern char ldap_init();
  1784. +extern char sasl_encode();
  1785. int
  1786. main ()
  1787. {
  1788. - ldap_init()
  1789. + sasl_encode()
  1790. ;
  1791. return 0;
  1792. }
  1793. @@ -2836,26 +2954,30 @@ case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1798. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1799. +$as_echo "$ac_try_echo") >&5
  1800. (eval "$ac_link") 2>conftest.er1
  1801. ac_status=$?
  1802. grep -v '^ *+' conftest.er1 >conftest.err
  1803. rm -f conftest.er1
  1804. cat conftest.err >&5
  1805. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1806. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1807. (exit $ac_status); } && {
  1808. test -z "$ac_c_werror_flag" ||
  1809. test ! -s conftest.err
  1810. - } && test -s conftest$ac_exeext &&
  1811. - $as_test_x conftest$ac_exeext; then
  1812. - smart_lib="-L$try -lldap_r"
  1813. + } && test -s conftest$ac_exeext && {
  1814. + test "$cross_compiling" = yes ||
  1815. + $as_test_x conftest$ac_exeext
  1816. + }; then
  1817. + smart_lib="-L$try -lsasl"
  1818. else
  1819. - echo "$as_me: failed program was:" >&5
  1820. + $as_echo "$as_me: failed program was:" >&5
  1821. sed 's/^/| /' conftest.$ac_ext >&5
  1822. fi
  1823. +rm -rf conftest.dSYM
  1824. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1825. conftest$ac_exeext conftest.$ac_ext
  1826. if test "x$smart_lib" != "x"; then
  1827. @@ -2866,18 +2988,18 @@ rm -f core conftest.err conftest.$ac_obj
  1828. fi
  1829. if test "x$smart_lib" = "x"; then
  1830. - LIBS="-lldap_r $old_LIBS"
  1831. + LIBS="-lsasl $old_LIBS"
  1832. cat >conftest.$ac_ext <<_ACEOF
  1833. /* confdefs.h. */
  1834. _ACEOF
  1835. cat confdefs.h >>conftest.$ac_ext
  1836. cat >>conftest.$ac_ext <<_ACEOF
  1837. /* end confdefs.h. */
  1838. -extern char ldap_init();
  1839. +extern char sasl_encode();
  1840. int
  1841. main ()
  1842. {
  1843. - ldap_init()
  1844. + sasl_encode()
  1845. ;
  1846. return 0;
  1847. }
  1848. @@ -2888,26 +3010,30 @@ case "(($ac_try" in
  1849. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1850. *) ac_try_echo=$ac_try;;
  1851. esac
  1852. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1853. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1854. +$as_echo "$ac_try_echo") >&5
  1855. (eval "$ac_link") 2>conftest.er1
  1856. ac_status=$?
  1857. grep -v '^ *+' conftest.er1 >conftest.err
  1858. rm -f conftest.er1
  1859. cat conftest.err >&5
  1860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1861. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1862. (exit $ac_status); } && {
  1863. test -z "$ac_c_werror_flag" ||
  1864. test ! -s conftest.err
  1865. - } && test -s conftest$ac_exeext &&
  1866. - $as_test_x conftest$ac_exeext; then
  1867. - smart_lib="-lldap_r"
  1868. + } && test -s conftest$ac_exeext && {
  1869. + test "$cross_compiling" = yes ||
  1870. + $as_test_x conftest$ac_exeext
  1871. + }; then
  1872. + smart_lib="-lsasl"
  1873. else
  1874. - echo "$as_me: failed program was:" >&5
  1875. + $as_echo "$as_me: failed program was:" >&5
  1876. sed 's/^/| /' conftest.$ac_ext >&5
  1877. fi
  1878. +rm -rf conftest.dSYM
  1879. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1880. conftest$ac_exeext conftest.$ac_ext
  1881. LIBS="$old_LIBS"
  1882. @@ -2918,7 +3044,7 @@ if test "x$smart_lib" = "x"; then
  1883. if test "x$LOCATE" != "x"; then
  1884. DIRS=
  1885. - file=libldap_r${libltdl_cv_shlibext}
  1886. + file=libsasl${libltdl_cv_shlibext}
  1887. for x in `${LOCATE} $file 2>/dev/null`; do
  1888. base=`echo $x | sed "s%/${file}%%"`
  1889. @@ -2945,7 +3071,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  1890. if test "x$LOCATE" != "x"; then
  1891. DIRS=
  1892. - file=libldap_r.a
  1893. + file=libsasl.a
  1894. for x in `${LOCATE} $file 2>/dev/null`; do
  1895. base=`echo $x | sed "s%/${file}%%"`
  1896. @@ -2970,18 +3096,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  1897. for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  1898. - LIBS="-L$try -lldap_r $old_LIBS"
  1899. + LIBS="-L$try -lsasl $old_LIBS"
  1900. cat >conftest.$ac_ext <<_ACEOF
  1901. /* confdefs.h. */
  1902. _ACEOF
  1903. cat confdefs.h >>conftest.$ac_ext
  1904. cat >>conftest.$ac_ext <<_ACEOF
  1905. /* end confdefs.h. */
  1906. -extern char ldap_init();
  1907. +extern char sasl_encode();
  1908. int
  1909. main ()
  1910. {
  1911. - ldap_init()
  1912. + sasl_encode()
  1913. ;
  1914. return 0;
  1915. }
  1916. @@ -2992,26 +3118,30 @@ case "(($ac_try" in
  1917. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1918. *) ac_try_echo=$ac_try;;
  1919. esac
  1920. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1921. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  1922. +$as_echo "$ac_try_echo") >&5
  1923. (eval "$ac_link") 2>conftest.er1
  1924. ac_status=$?
  1925. grep -v '^ *+' conftest.er1 >conftest.err
  1926. rm -f conftest.er1
  1927. cat conftest.err >&5
  1928. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1929. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1930. (exit $ac_status); } && {
  1931. test -z "$ac_c_werror_flag" ||
  1932. test ! -s conftest.err
  1933. - } && test -s conftest$ac_exeext &&
  1934. - $as_test_x conftest$ac_exeext; then
  1935. - smart_lib="-L$try -lldap_r"
  1936. + } && test -s conftest$ac_exeext && {
  1937. + test "$cross_compiling" = yes ||
  1938. + $as_test_x conftest$ac_exeext
  1939. + }; then
  1940. + smart_lib="-L$try -lsasl"
  1941. else
  1942. - echo "$as_me: failed program was:" >&5
  1943. + $as_echo "$as_me: failed program was:" >&5
  1944. sed 's/^/| /' conftest.$ac_ext >&5
  1945. fi
  1946. +rm -rf conftest.dSYM
  1947. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  1948. conftest$ac_exeext conftest.$ac_ext
  1949. if test "x$smart_lib" != "x"; then
  1950. @@ -3022,26 +3152,22 @@ rm -f core conftest.err conftest.$ac_obj
  1951. fi
  1952. if test "x$smart_lib" != "x"; then
  1953. - { echo "$as_me:$LINENO: result: yes" >&5
  1954. -echo "${ECHO_T}yes" >&6; }
  1955. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  1956. +$as_echo "yes" >&6; }
  1957. eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  1958. LIBS="$smart_lib $old_LIBS"
  1959. SMART_LIBS="$smart_lib $SMART_LIBS"
  1960. else
  1961. - { echo "$as_me:$LINENO: result: no" >&5
  1962. -echo "${ECHO_T}no" >&6; }
  1963. + { $as_echo "$as_me:$LINENO: result: no" >&5
  1964. +$as_echo "no" >&6; }
  1965. fi
  1966. - if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
  1967. - fail="$fail libldap_r"
  1968. - fi
  1969. - else
  1970. -sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
  1971. -sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  1972. -{ echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
  1973. -echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6; }
  1974. +sm_lib_safe=`echo "lber" | sed 'y%./+-%__p_%'`
  1975. +sm_func_safe=`echo "ber_init" | sed 'y%./+-%__p_%'`
  1976. +{ $as_echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
  1977. +$as_echo_n "checking for ber_init in -llber... " >&6; }
  1978. old_LIBS="$LIBS"
  1979. smart_lib=
  1980. @@ -3049,18 +3175,18 @@ smart_lib_dir=
  1981. if test "x$smart_try_dir" != "x"; then
  1982. for try in $smart_try_dir; do
  1983. - LIBS="-L$try -lldap $old_LIBS"
  1984. + LIBS="-L$try -llber $old_LIBS"
  1985. cat >conftest.$ac_ext <<_ACEOF
  1986. /* confdefs.h. */
  1987. _ACEOF
  1988. cat confdefs.h >>conftest.$ac_ext
  1989. cat >>conftest.$ac_ext <<_ACEOF
  1990. /* end confdefs.h. */
  1991. -extern char ldap_init();
  1992. +extern char ber_init();
  1993. int
  1994. main ()
  1995. {
  1996. - ldap_init()
  1997. + ber_init()
  1998. ;
  1999. return 0;
  2000. }
  2001. @@ -3071,26 +3197,30 @@ case "(($ac_try" in
  2002. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2003. *) ac_try_echo=$ac_try;;
  2004. esac
  2005. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2006. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2007. +$as_echo "$ac_try_echo") >&5
  2008. (eval "$ac_link") 2>conftest.er1
  2009. ac_status=$?
  2010. grep -v '^ *+' conftest.er1 >conftest.err
  2011. rm -f conftest.er1
  2012. cat conftest.err >&5
  2013. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2014. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2015. (exit $ac_status); } && {
  2016. test -z "$ac_c_werror_flag" ||
  2017. test ! -s conftest.err
  2018. - } && test -s conftest$ac_exeext &&
  2019. - $as_test_x conftest$ac_exeext; then
  2020. - smart_lib="-L$try -lldap"
  2021. + } && test -s conftest$ac_exeext && {
  2022. + test "$cross_compiling" = yes ||
  2023. + $as_test_x conftest$ac_exeext
  2024. + }; then
  2025. + smart_lib="-L$try -llber"
  2026. else
  2027. - echo "$as_me: failed program was:" >&5
  2028. + $as_echo "$as_me: failed program was:" >&5
  2029. sed 's/^/| /' conftest.$ac_ext >&5
  2030. fi
  2031. +rm -rf conftest.dSYM
  2032. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2033. conftest$ac_exeext conftest.$ac_ext
  2034. if test "x$smart_lib" != "x"; then
  2035. @@ -3101,18 +3231,18 @@ rm -f core conftest.err conftest.$ac_obj
  2036. fi
  2037. if test "x$smart_lib" = "x"; then
  2038. - LIBS="-lldap $old_LIBS"
  2039. + LIBS="-llber $old_LIBS"
  2040. cat >conftest.$ac_ext <<_ACEOF
  2041. /* confdefs.h. */
  2042. _ACEOF
  2043. cat confdefs.h >>conftest.$ac_ext
  2044. cat >>conftest.$ac_ext <<_ACEOF
  2045. /* end confdefs.h. */
  2046. -extern char ldap_init();
  2047. +extern char ber_init();
  2048. int
  2049. main ()
  2050. {
  2051. - ldap_init()
  2052. + ber_init()
  2053. ;
  2054. return 0;
  2055. }
  2056. @@ -3123,26 +3253,30 @@ case "(($ac_try" in
  2057. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2058. *) ac_try_echo=$ac_try;;
  2059. esac
  2060. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2061. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2062. +$as_echo "$ac_try_echo") >&5
  2063. (eval "$ac_link") 2>conftest.er1
  2064. ac_status=$?
  2065. grep -v '^ *+' conftest.er1 >conftest.err
  2066. rm -f conftest.er1
  2067. cat conftest.err >&5
  2068. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2069. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2070. (exit $ac_status); } && {
  2071. test -z "$ac_c_werror_flag" ||
  2072. test ! -s conftest.err
  2073. - } && test -s conftest$ac_exeext &&
  2074. - $as_test_x conftest$ac_exeext; then
  2075. - smart_lib="-lldap"
  2076. + } && test -s conftest$ac_exeext && {
  2077. + test "$cross_compiling" = yes ||
  2078. + $as_test_x conftest$ac_exeext
  2079. + }; then
  2080. + smart_lib="-llber"
  2081. else
  2082. - echo "$as_me: failed program was:" >&5
  2083. + $as_echo "$as_me: failed program was:" >&5
  2084. sed 's/^/| /' conftest.$ac_ext >&5
  2085. fi
  2086. +rm -rf conftest.dSYM
  2087. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2088. conftest$ac_exeext conftest.$ac_ext
  2089. LIBS="$old_LIBS"
  2090. @@ -3153,7 +3287,7 @@ if test "x$smart_lib" = "x"; then
  2091. if test "x$LOCATE" != "x"; then
  2092. DIRS=
  2093. - file=libldap${libltdl_cv_shlibext}
  2094. + file=liblber${libltdl_cv_shlibext}
  2095. for x in `${LOCATE} $file 2>/dev/null`; do
  2096. base=`echo $x | sed "s%/${file}%%"`
  2097. @@ -3180,7 +3314,7 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  2098. if test "x$LOCATE" != "x"; then
  2099. DIRS=
  2100. - file=libldap.a
  2101. + file=liblber.a
  2102. for x in `${LOCATE} $file 2>/dev/null`; do
  2103. base=`echo $x | sed "s%/${file}%%"`
  2104. @@ -3205,18 +3339,18 @@ eval "smart_lib_dir=\"\$smart_lib_dir $D
  2105. for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2106. - LIBS="-L$try -lldap $old_LIBS"
  2107. + LIBS="-L$try -llber $old_LIBS"
  2108. cat >conftest.$ac_ext <<_ACEOF
  2109. /* confdefs.h. */
  2110. _ACEOF
  2111. cat confdefs.h >>conftest.$ac_ext
  2112. cat >>conftest.$ac_ext <<_ACEOF
  2113. /* end confdefs.h. */
  2114. -extern char ldap_init();
  2115. +extern char ber_init();
  2116. int
  2117. main ()
  2118. {
  2119. - ldap_init()
  2120. + ber_init()
  2121. ;
  2122. return 0;
  2123. }
  2124. @@ -3227,26 +3361,30 @@ case "(($ac_try" in
  2125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2126. *) ac_try_echo=$ac_try;;
  2127. esac
  2128. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2129. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2130. +$as_echo "$ac_try_echo") >&5
  2131. (eval "$ac_link") 2>conftest.er1
  2132. ac_status=$?
  2133. grep -v '^ *+' conftest.er1 >conftest.err
  2134. rm -f conftest.er1
  2135. cat conftest.err >&5
  2136. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2137. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2138. (exit $ac_status); } && {
  2139. test -z "$ac_c_werror_flag" ||
  2140. test ! -s conftest.err
  2141. - } && test -s conftest$ac_exeext &&
  2142. - $as_test_x conftest$ac_exeext; then
  2143. - smart_lib="-L$try -lldap"
  2144. + } && test -s conftest$ac_exeext && {
  2145. + test "$cross_compiling" = yes ||
  2146. + $as_test_x conftest$ac_exeext
  2147. + }; then
  2148. + smart_lib="-L$try -llber"
  2149. else
  2150. - echo "$as_me: failed program was:" >&5
  2151. + $as_echo "$as_me: failed program was:" >&5
  2152. sed 's/^/| /' conftest.$ac_ext >&5
  2153. fi
  2154. +rm -rf conftest.dSYM
  2155. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2156. conftest$ac_exeext conftest.$ac_ext
  2157. if test "x$smart_lib" != "x"; then
  2158. @@ -3257,136 +3395,145 @@ rm -f core conftest.err conftest.$ac_obj
  2159. fi
  2160. if test "x$smart_lib" != "x"; then
  2161. - { echo "$as_me:$LINENO: result: yes" >&5
  2162. -echo "${ECHO_T}yes" >&6; }
  2163. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2164. +$as_echo "yes" >&6; }
  2165. eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2166. LIBS="$smart_lib $old_LIBS"
  2167. SMART_LIBS="$smart_lib $SMART_LIBS"
  2168. else
  2169. - { echo "$as_me:$LINENO: result: no" >&5
  2170. -echo "${ECHO_T}no" >&6; }
  2171. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2172. +$as_echo "no" >&6; }
  2173. fi
  2174. - if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
  2175. - fail="$fail libldap"
  2176. - fi
  2177. - fi
  2178. -
  2179. - smart_try_dir=$rlm_ldap_include_dir
  2180. + smart_try_dir=$rlm_ldap_lib_dir
  2181. + if test "x$rlm_ldap_with_threads" = "xyes"; then
  2182. -ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
  2183. -{ echo "$as_me:$LINENO: checking for ldap.h" >&5
  2184. -echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6; }
  2185. +sm_lib_safe=`echo "ldap_r" | sed 'y%./+-%__p_%'`
  2186. +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  2187. +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap_r" >&5
  2188. +$as_echo_n "checking for ldap_init in -lldap_r... " >&6; }
  2189. -old_CFLAGS="$CFLAGS"
  2190. -smart_include=
  2191. -smart_include_dir=
  2192. +old_LIBS="$LIBS"
  2193. +smart_lib=
  2194. +smart_lib_dir=
  2195. if test "x$smart_try_dir" != "x"; then
  2196. for try in $smart_try_dir; do
  2197. - CFLAGS="$old_CFLAGS -I$try"
  2198. + LIBS="-L$try -lldap_r $old_LIBS"
  2199. cat >conftest.$ac_ext <<_ACEOF
  2200. /* confdefs.h. */
  2201. _ACEOF
  2202. cat confdefs.h >>conftest.$ac_ext
  2203. cat >>conftest.$ac_ext <<_ACEOF
  2204. /* end confdefs.h. */
  2205. -
  2206. - #include <ldap.h>
  2207. +extern char ldap_init();
  2208. int
  2209. main ()
  2210. {
  2211. - int a = 1;
  2212. + ldap_init()
  2213. ;
  2214. return 0;
  2215. }
  2216. _ACEOF
  2217. -rm -f conftest.$ac_objext
  2218. -if { (ac_try="$ac_compile"
  2219. +rm -f conftest.$ac_objext conftest$ac_exeext
  2220. +if { (ac_try="$ac_link"
  2221. case "(($ac_try" in
  2222. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2223. *) ac_try_echo=$ac_try;;
  2224. esac
  2225. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2226. - (eval "$ac_compile") 2>conftest.er1
  2227. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2228. +$as_echo "$ac_try_echo") >&5
  2229. + (eval "$ac_link") 2>conftest.er1
  2230. ac_status=$?
  2231. grep -v '^ *+' conftest.er1 >conftest.err
  2232. rm -f conftest.er1
  2233. cat conftest.err >&5
  2234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2235. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2236. (exit $ac_status); } && {
  2237. test -z "$ac_c_werror_flag" ||
  2238. test ! -s conftest.err
  2239. - } && test -s conftest.$ac_objext; then
  2240. - smart_include="-I$try"
  2241. + } && test -s conftest$ac_exeext && {
  2242. + test "$cross_compiling" = yes ||
  2243. + $as_test_x conftest$ac_exeext
  2244. + }; then
  2245. + smart_lib="-L$try -lldap_r"
  2246. else
  2247. - echo "$as_me: failed program was:" >&5
  2248. + $as_echo "$as_me: failed program was:" >&5
  2249. sed 's/^/| /' conftest.$ac_ext >&5
  2250. - smart_include=
  2251. +
  2252. fi
  2253. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2254. - if test "x$smart_include" != "x"; then
  2255. +rm -rf conftest.dSYM
  2256. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2257. + conftest$ac_exeext conftest.$ac_ext
  2258. + if test "x$smart_lib" != "x"; then
  2259. break;
  2260. fi
  2261. done
  2262. - CFLAGS="$old_CFLAGS"
  2263. + LIBS="$old_LIBS"
  2264. fi
  2265. -if test "x$smart_include" = "x"; then
  2266. +if test "x$smart_lib" = "x"; then
  2267. + LIBS="-lldap_r $old_LIBS"
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. -
  2275. - #include <ldap.h>
  2276. +extern char ldap_init();
  2277. int
  2278. main ()
  2279. {
  2280. - int a = 1;
  2281. + ldap_init()
  2282. ;
  2283. return 0;
  2284. }
  2285. _ACEOF
  2286. -rm -f conftest.$ac_objext
  2287. -if { (ac_try="$ac_compile"
  2288. +rm -f conftest.$ac_objext conftest$ac_exeext
  2289. +if { (ac_try="$ac_link"
  2290. case "(($ac_try" in
  2291. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2292. *) ac_try_echo=$ac_try;;
  2293. esac
  2294. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2295. - (eval "$ac_compile") 2>conftest.er1
  2296. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2297. +$as_echo "$ac_try_echo") >&5
  2298. + (eval "$ac_link") 2>conftest.er1
  2299. ac_status=$?
  2300. grep -v '^ *+' conftest.er1 >conftest.err
  2301. rm -f conftest.er1
  2302. cat conftest.err >&5
  2303. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2304. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2305. (exit $ac_status); } && {
  2306. test -z "$ac_c_werror_flag" ||
  2307. test ! -s conftest.err
  2308. - } && test -s conftest.$ac_objext; then
  2309. - smart_include=" "
  2310. + } && test -s conftest$ac_exeext && {
  2311. + test "$cross_compiling" = yes ||
  2312. + $as_test_x conftest$ac_exeext
  2313. + }; then
  2314. + smart_lib="-lldap_r"
  2315. else
  2316. - echo "$as_me: failed program was:" >&5
  2317. + $as_echo "$as_me: failed program was:" >&5
  2318. sed 's/^/| /' conftest.$ac_ext >&5
  2319. - smart_include=
  2320. +
  2321. fi
  2322. -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2323. +rm -rf conftest.dSYM
  2324. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2325. + conftest$ac_exeext conftest.$ac_ext
  2326. + LIBS="$old_LIBS"
  2327. fi
  2328. -if test "x$smart_include" = "x"; then
  2329. +if test "x$smart_lib" = "x"; then
  2330. if test "x$LOCATE" != "x"; then
  2331. DIRS=
  2332. - file=ldap.h
  2333. + file=libldap_r${libltdl_cv_shlibext}
  2334. for x in `${LOCATE} $file 2>/dev/null`; do
  2335. base=`echo $x | sed "s%/${file}%%"`
  2336. @@ -3400,19 +3547,505 @@ if test "x$LOCATE" != "x"; then
  2337. continue
  2338. fi
  2339. - already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
  2340. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2341. if test "x$already" = "x"; then
  2342. DIRS="$DIRS $dir"
  2343. fi
  2344. done
  2345. fi
  2346. -eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
  2347. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2348. - for try in $smart_include_dir /usr/local/include /opt/include; do
  2349. - CFLAGS="$old_CFLAGS -I$try"
  2350. - cat >conftest.$ac_ext <<_ACEOF
  2351. +
  2352. +if test "x$LOCATE" != "x"; then
  2353. + DIRS=
  2354. + file=libldap_r.a
  2355. +
  2356. + for x in `${LOCATE} $file 2>/dev/null`; do
  2357. + base=`echo $x | sed "s%/${file}%%"`
  2358. + if test "x$x" = "x$base"; then
  2359. + continue;
  2360. + fi
  2361. +
  2362. + dir=`${DIRNAME} $x 2>/dev/null`
  2363. + exclude=`echo ${dir} | ${GREP} /home`
  2364. + if test "x$exclude" != "x"; then
  2365. + continue
  2366. + fi
  2367. +
  2368. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2369. + if test "x$already" = "x"; then
  2370. + DIRS="$DIRS $dir"
  2371. + fi
  2372. + done
  2373. +fi
  2374. +
  2375. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2376. +
  2377. +
  2378. + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2379. + LIBS="-L$try -lldap_r $old_LIBS"
  2380. + cat >conftest.$ac_ext <<_ACEOF
  2381. +/* confdefs.h. */
  2382. +_ACEOF
  2383. +cat confdefs.h >>conftest.$ac_ext
  2384. +cat >>conftest.$ac_ext <<_ACEOF
  2385. +/* end confdefs.h. */
  2386. +extern char ldap_init();
  2387. +int
  2388. +main ()
  2389. +{
  2390. + ldap_init()
  2391. + ;
  2392. + return 0;
  2393. +}
  2394. +_ACEOF
  2395. +rm -f conftest.$ac_objext conftest$ac_exeext
  2396. +if { (ac_try="$ac_link"
  2397. +case "(($ac_try" in
  2398. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2399. + *) ac_try_echo=$ac_try;;
  2400. +esac
  2401. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2402. +$as_echo "$ac_try_echo") >&5
  2403. + (eval "$ac_link") 2>conftest.er1
  2404. + ac_status=$?
  2405. + grep -v '^ *+' conftest.er1 >conftest.err
  2406. + rm -f conftest.er1
  2407. + cat conftest.err >&5
  2408. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2409. + (exit $ac_status); } && {
  2410. + test -z "$ac_c_werror_flag" ||
  2411. + test ! -s conftest.err
  2412. + } && test -s conftest$ac_exeext && {
  2413. + test "$cross_compiling" = yes ||
  2414. + $as_test_x conftest$ac_exeext
  2415. + }; then
  2416. + smart_lib="-L$try -lldap_r"
  2417. +else
  2418. + $as_echo "$as_me: failed program was:" >&5
  2419. +sed 's/^/| /' conftest.$ac_ext >&5
  2420. +
  2421. +
  2422. +fi
  2423. +
  2424. +rm -rf conftest.dSYM
  2425. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2426. + conftest$ac_exeext conftest.$ac_ext
  2427. + if test "x$smart_lib" != "x"; then
  2428. + break;
  2429. + fi
  2430. + done
  2431. + LIBS="$old_LIBS"
  2432. +fi
  2433. +
  2434. +if test "x$smart_lib" != "x"; then
  2435. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2436. +$as_echo "yes" >&6; }
  2437. + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2438. + LIBS="$smart_lib $old_LIBS"
  2439. + SMART_LIBS="$smart_lib $SMART_LIBS"
  2440. +else
  2441. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2442. +$as_echo "no" >&6; }
  2443. +fi
  2444. +
  2445. + if test "x$ac_cv_lib_ldap_r_ldap_init" != "xyes"; then
  2446. + fail="$fail libldap_r"
  2447. + fi
  2448. + else
  2449. +
  2450. +
  2451. +sm_lib_safe=`echo "ldap" | sed 'y%./+-%__p_%'`
  2452. +sm_func_safe=`echo "ldap_init" | sed 'y%./+-%__p_%'`
  2453. +{ $as_echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
  2454. +$as_echo_n "checking for ldap_init in -lldap... " >&6; }
  2455. +
  2456. +old_LIBS="$LIBS"
  2457. +smart_lib=
  2458. +smart_lib_dir=
  2459. +
  2460. +if test "x$smart_try_dir" != "x"; then
  2461. + for try in $smart_try_dir; do
  2462. + LIBS="-L$try -lldap $old_LIBS"
  2463. + cat >conftest.$ac_ext <<_ACEOF
  2464. +/* confdefs.h. */
  2465. +_ACEOF
  2466. +cat confdefs.h >>conftest.$ac_ext
  2467. +cat >>conftest.$ac_ext <<_ACEOF
  2468. +/* end confdefs.h. */
  2469. +extern char ldap_init();
  2470. +int
  2471. +main ()
  2472. +{
  2473. + ldap_init()
  2474. + ;
  2475. + return 0;
  2476. +}
  2477. +_ACEOF
  2478. +rm -f conftest.$ac_objext conftest$ac_exeext
  2479. +if { (ac_try="$ac_link"
  2480. +case "(($ac_try" in
  2481. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2482. + *) ac_try_echo=$ac_try;;
  2483. +esac
  2484. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2485. +$as_echo "$ac_try_echo") >&5
  2486. + (eval "$ac_link") 2>conftest.er1
  2487. + ac_status=$?
  2488. + grep -v '^ *+' conftest.er1 >conftest.err
  2489. + rm -f conftest.er1
  2490. + cat conftest.err >&5
  2491. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2492. + (exit $ac_status); } && {
  2493. + test -z "$ac_c_werror_flag" ||
  2494. + test ! -s conftest.err
  2495. + } && test -s conftest$ac_exeext && {
  2496. + test "$cross_compiling" = yes ||
  2497. + $as_test_x conftest$ac_exeext
  2498. + }; then
  2499. + smart_lib="-L$try -lldap"
  2500. +else
  2501. + $as_echo "$as_me: failed program was:" >&5
  2502. +sed 's/^/| /' conftest.$ac_ext >&5
  2503. +
  2504. +
  2505. +fi
  2506. +
  2507. +rm -rf conftest.dSYM
  2508. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2509. + conftest$ac_exeext conftest.$ac_ext
  2510. + if test "x$smart_lib" != "x"; then
  2511. + break;
  2512. + fi
  2513. + done
  2514. + LIBS="$old_LIBS"
  2515. +fi
  2516. +
  2517. +if test "x$smart_lib" = "x"; then
  2518. + LIBS="-lldap $old_LIBS"
  2519. + cat >conftest.$ac_ext <<_ACEOF
  2520. +/* confdefs.h. */
  2521. +_ACEOF
  2522. +cat confdefs.h >>conftest.$ac_ext
  2523. +cat >>conftest.$ac_ext <<_ACEOF
  2524. +/* end confdefs.h. */
  2525. +extern char ldap_init();
  2526. +int
  2527. +main ()
  2528. +{
  2529. + ldap_init()
  2530. + ;
  2531. + return 0;
  2532. +}
  2533. +_ACEOF
  2534. +rm -f conftest.$ac_objext conftest$ac_exeext
  2535. +if { (ac_try="$ac_link"
  2536. +case "(($ac_try" in
  2537. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2538. + *) ac_try_echo=$ac_try;;
  2539. +esac
  2540. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2541. +$as_echo "$ac_try_echo") >&5
  2542. + (eval "$ac_link") 2>conftest.er1
  2543. + ac_status=$?
  2544. + grep -v '^ *+' conftest.er1 >conftest.err
  2545. + rm -f conftest.er1
  2546. + cat conftest.err >&5
  2547. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. + (exit $ac_status); } && {
  2549. + test -z "$ac_c_werror_flag" ||
  2550. + test ! -s conftest.err
  2551. + } && test -s conftest$ac_exeext && {
  2552. + test "$cross_compiling" = yes ||
  2553. + $as_test_x conftest$ac_exeext
  2554. + }; then
  2555. + smart_lib="-lldap"
  2556. +else
  2557. + $as_echo "$as_me: failed program was:" >&5
  2558. +sed 's/^/| /' conftest.$ac_ext >&5
  2559. +
  2560. +
  2561. +fi
  2562. +
  2563. +rm -rf conftest.dSYM
  2564. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2565. + conftest$ac_exeext conftest.$ac_ext
  2566. + LIBS="$old_LIBS"
  2567. +fi
  2568. +
  2569. +if test "x$smart_lib" = "x"; then
  2570. +
  2571. +
  2572. +if test "x$LOCATE" != "x"; then
  2573. + DIRS=
  2574. + file=libldap${libltdl_cv_shlibext}
  2575. +
  2576. + for x in `${LOCATE} $file 2>/dev/null`; do
  2577. + base=`echo $x | sed "s%/${file}%%"`
  2578. + if test "x$x" = "x$base"; then
  2579. + continue;
  2580. + fi
  2581. +
  2582. + dir=`${DIRNAME} $x 2>/dev/null`
  2583. + exclude=`echo ${dir} | ${GREP} /home`
  2584. + if test "x$exclude" != "x"; then
  2585. + continue
  2586. + fi
  2587. +
  2588. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2589. + if test "x$already" = "x"; then
  2590. + DIRS="$DIRS $dir"
  2591. + fi
  2592. + done
  2593. +fi
  2594. +
  2595. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2596. +
  2597. +
  2598. +
  2599. +if test "x$LOCATE" != "x"; then
  2600. + DIRS=
  2601. + file=libldap.a
  2602. +
  2603. + for x in `${LOCATE} $file 2>/dev/null`; do
  2604. + base=`echo $x | sed "s%/${file}%%"`
  2605. + if test "x$x" = "x$base"; then
  2606. + continue;
  2607. + fi
  2608. +
  2609. + dir=`${DIRNAME} $x 2>/dev/null`
  2610. + exclude=`echo ${dir} | ${GREP} /home`
  2611. + if test "x$exclude" != "x"; then
  2612. + continue
  2613. + fi
  2614. +
  2615. + already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
  2616. + if test "x$already" = "x"; then
  2617. + DIRS="$DIRS $dir"
  2618. + fi
  2619. + done
  2620. +fi
  2621. +
  2622. +eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
  2623. +
  2624. +
  2625. + for try in $smart_lib_dir /usr/local/lib /opt/lib; do
  2626. + LIBS="-L$try -lldap $old_LIBS"
  2627. + cat >conftest.$ac_ext <<_ACEOF
  2628. +/* confdefs.h. */
  2629. +_ACEOF
  2630. +cat confdefs.h >>conftest.$ac_ext
  2631. +cat >>conftest.$ac_ext <<_ACEOF
  2632. +/* end confdefs.h. */
  2633. +extern char ldap_init();
  2634. +int
  2635. +main ()
  2636. +{
  2637. + ldap_init()
  2638. + ;
  2639. + return 0;
  2640. +}
  2641. +_ACEOF
  2642. +rm -f conftest.$ac_objext conftest$ac_exeext
  2643. +if { (ac_try="$ac_link"
  2644. +case "(($ac_try" in
  2645. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2646. + *) ac_try_echo=$ac_try;;
  2647. +esac
  2648. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2649. +$as_echo "$ac_try_echo") >&5
  2650. + (eval "$ac_link") 2>conftest.er1
  2651. + ac_status=$?
  2652. + grep -v '^ *+' conftest.er1 >conftest.err
  2653. + rm -f conftest.er1
  2654. + cat conftest.err >&5
  2655. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2656. + (exit $ac_status); } && {
  2657. + test -z "$ac_c_werror_flag" ||
  2658. + test ! -s conftest.err
  2659. + } && test -s conftest$ac_exeext && {
  2660. + test "$cross_compiling" = yes ||
  2661. + $as_test_x conftest$ac_exeext
  2662. + }; then
  2663. + smart_lib="-L$try -lldap"
  2664. +else
  2665. + $as_echo "$as_me: failed program was:" >&5
  2666. +sed 's/^/| /' conftest.$ac_ext >&5
  2667. +
  2668. +
  2669. +fi
  2670. +
  2671. +rm -rf conftest.dSYM
  2672. +rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2673. + conftest$ac_exeext conftest.$ac_ext
  2674. + if test "x$smart_lib" != "x"; then
  2675. + break;
  2676. + fi
  2677. + done
  2678. + LIBS="$old_LIBS"
  2679. +fi
  2680. +
  2681. +if test "x$smart_lib" != "x"; then
  2682. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2683. +$as_echo "yes" >&6; }
  2684. + eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
  2685. + LIBS="$smart_lib $old_LIBS"
  2686. + SMART_LIBS="$smart_lib $SMART_LIBS"
  2687. +else
  2688. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2689. +$as_echo "no" >&6; }
  2690. +fi
  2691. +
  2692. + if test "x$ac_cv_lib_ldap_ldap_init" != "xyes"; then
  2693. + fail="$fail libldap"
  2694. + fi
  2695. + fi
  2696. +
  2697. +
  2698. + smart_try_dir=$rlm_ldap_include_dir
  2699. +
  2700. +
  2701. +ac_safe=`echo "ldap.h" | sed 'y%./+-%__pm%'`
  2702. +{ $as_echo "$as_me:$LINENO: checking for ldap.h" >&5
  2703. +$as_echo_n "checking for ldap.h... " >&6; }
  2704. +
  2705. +old_CFLAGS="$CFLAGS"
  2706. +smart_include=
  2707. +smart_include_dir=
  2708. +
  2709. +if test "x$smart_try_dir" != "x"; then
  2710. + for try in $smart_try_dir; do
  2711. + CFLAGS="$old_CFLAGS -I$try"
  2712. + cat >conftest.$ac_ext <<_ACEOF
  2713. +/* confdefs.h. */
  2714. +_ACEOF
  2715. +cat confdefs.h >>conftest.$ac_ext
  2716. +cat >>conftest.$ac_ext <<_ACEOF
  2717. +/* end confdefs.h. */
  2718. +
  2719. + #include <ldap.h>
  2720. +int
  2721. +main ()
  2722. +{
  2723. + int a = 1;
  2724. + ;
  2725. + return 0;
  2726. +}
  2727. +_ACEOF
  2728. +rm -f conftest.$ac_objext
  2729. +if { (ac_try="$ac_compile"
  2730. +case "(($ac_try" in
  2731. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732. + *) ac_try_echo=$ac_try;;
  2733. +esac
  2734. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2735. +$as_echo "$ac_try_echo") >&5
  2736. + (eval "$ac_compile") 2>conftest.er1
  2737. + ac_status=$?
  2738. + grep -v '^ *+' conftest.er1 >conftest.err
  2739. + rm -f conftest.er1
  2740. + cat conftest.err >&5
  2741. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2742. + (exit $ac_status); } && {
  2743. + test -z "$ac_c_werror_flag" ||
  2744. + test ! -s conftest.err
  2745. + } && test -s conftest.$ac_objext; then
  2746. + smart_include="-I$try"
  2747. +else
  2748. + $as_echo "$as_me: failed program was:" >&5
  2749. +sed 's/^/| /' conftest.$ac_ext >&5
  2750. +
  2751. + smart_include=
  2752. +fi
  2753. +
  2754. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2755. + if test "x$smart_include" != "x"; then
  2756. + break;
  2757. + fi
  2758. + done
  2759. + CFLAGS="$old_CFLAGS"
  2760. +fi
  2761. +
  2762. +if test "x$smart_include" = "x"; then
  2763. + cat >conftest.$ac_ext <<_ACEOF
  2764. +/* confdefs.h. */
  2765. +_ACEOF
  2766. +cat confdefs.h >>conftest.$ac_ext
  2767. +cat >>conftest.$ac_ext <<_ACEOF
  2768. +/* end confdefs.h. */
  2769. +
  2770. + #include <ldap.h>
  2771. +int
  2772. +main ()
  2773. +{
  2774. + int a = 1;
  2775. + ;
  2776. + return 0;
  2777. +}
  2778. +_ACEOF
  2779. +rm -f conftest.$ac_objext
  2780. +if { (ac_try="$ac_compile"
  2781. +case "(($ac_try" in
  2782. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2783. + *) ac_try_echo=$ac_try;;
  2784. +esac
  2785. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2786. +$as_echo "$ac_try_echo") >&5
  2787. + (eval "$ac_compile") 2>conftest.er1
  2788. + ac_status=$?
  2789. + grep -v '^ *+' conftest.er1 >conftest.err
  2790. + rm -f conftest.er1
  2791. + cat conftest.err >&5
  2792. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. + (exit $ac_status); } && {
  2794. + test -z "$ac_c_werror_flag" ||
  2795. + test ! -s conftest.err
  2796. + } && test -s conftest.$ac_objext; then
  2797. + smart_include=" "
  2798. +else
  2799. + $as_echo "$as_me: failed program was:" >&5
  2800. +sed 's/^/| /' conftest.$ac_ext >&5
  2801. +
  2802. + smart_include=
  2803. +fi
  2804. +
  2805. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2806. +fi
  2807. +
  2808. +if test "x$smart_include" = "x"; then
  2809. +
  2810. +
  2811. +if test "x$LOCATE" != "x"; then
  2812. + DIRS=
  2813. + file=ldap.h
  2814. +
  2815. + for x in `${LOCATE} $file 2>/dev/null`; do
  2816. + base=`echo $x | sed "s%/${file}%%"`
  2817. + if test "x$x" = "x$base"; then
  2818. + continue;
  2819. + fi
  2820. +
  2821. + dir=`${DIRNAME} $x 2>/dev/null`
  2822. + exclude=`echo ${dir} | ${GREP} /home`
  2823. + if test "x$exclude" != "x"; then
  2824. + continue
  2825. + fi
  2826. +
  2827. + already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
  2828. + if test "x$already" = "x"; then
  2829. + DIRS="$DIRS $dir"
  2830. + fi
  2831. + done
  2832. +fi
  2833. +
  2834. +eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
  2835. +
  2836. +
  2837. + for try in $smart_include_dir /usr/local/include /opt/include; do
  2838. + CFLAGS="$old_CFLAGS -I$try"
  2839. + cat >conftest.$ac_ext <<_ACEOF
  2840. /* confdefs.h. */
  2841. _ACEOF
  2842. cat confdefs.h >>conftest.$ac_ext
  2843. @@ -3434,20 +4067,21 @@ case "(($ac_try" in
  2844. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2845. *) ac_try_echo=$ac_try;;
  2846. esac
  2847. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2848. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2849. +$as_echo "$ac_try_echo") >&5
  2850. (eval "$ac_compile") 2>conftest.er1
  2851. ac_status=$?
  2852. grep -v '^ *+' conftest.er1 >conftest.err
  2853. rm -f conftest.er1
  2854. cat conftest.err >&5
  2855. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2856. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); } && {
  2858. test -z "$ac_c_werror_flag" ||
  2859. test ! -s conftest.err
  2860. } && test -s conftest.$ac_objext; then
  2861. smart_include="-I$try"
  2862. else
  2863. - echo "$as_me: failed program was:" >&5
  2864. + $as_echo "$as_me: failed program was:" >&5
  2865. sed 's/^/| /' conftest.$ac_ext >&5
  2866. smart_include=
  2867. @@ -3462,14 +4096,14 @@ rm -f core conftest.err conftest.$ac_obj
  2868. fi
  2869. if test "x$smart_include" != "x"; then
  2870. - { echo "$as_me:$LINENO: result: yes" >&5
  2871. -echo "${ECHO_T}yes" >&6; }
  2872. + { $as_echo "$as_me:$LINENO: result: yes" >&5
  2873. +$as_echo "yes" >&6; }
  2874. eval "ac_cv_header_$ac_safe=yes"
  2875. CFLAGS="$old_CFLAGS $smart_include"
  2876. SMART_CFLAGS="$SMART_CFLAGS $smart_include"
  2877. else
  2878. - { echo "$as_me:$LINENO: result: no" >&5
  2879. -echo "${ECHO_T}no" >&6; }
  2880. + { $as_echo "$as_me:$LINENO: result: no" >&5
  2881. +$as_echo "no" >&6; }
  2882. fi
  2883. if test "$ac_cv_header_ldap_h" != "yes"; then
  2884. @@ -3478,10 +4112,10 @@ fi
  2885. if test "x$fail" = "x"; then
  2886. - { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
  2887. -echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
  2888. + { $as_echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
  2889. +$as_echo_n "checking for ldap_start_tls_s... " >&6; }
  2890. if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
  2891. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2892. + $as_echo_n "(cached) " >&6
  2893. else
  2894. cat >conftest.$ac_ext <<_ACEOF
  2895. /* confdefs.h. */
  2896. @@ -3534,39 +4168,43 @@ case "(($ac_try" in
  2897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2898. *) ac_try_echo=$ac_try;;
  2899. esac
  2900. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2901. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2902. +$as_echo "$ac_try_echo") >&5
  2903. (eval "$ac_link") 2>conftest.er1
  2904. ac_status=$?
  2905. grep -v '^ *+' conftest.er1 >conftest.err
  2906. rm -f conftest.er1
  2907. cat conftest.err >&5
  2908. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2909. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2910. (exit $ac_status); } && {
  2911. test -z "$ac_c_werror_flag" ||
  2912. test ! -s conftest.err
  2913. - } && test -s conftest$ac_exeext &&
  2914. - $as_test_x conftest$ac_exeext; then
  2915. + } && test -s conftest$ac_exeext && {
  2916. + test "$cross_compiling" = yes ||
  2917. + $as_test_x conftest$ac_exeext
  2918. + }; then
  2919. ac_cv_func_ldap_start_tls_s=yes
  2920. else
  2921. - echo "$as_me: failed program was:" >&5
  2922. + $as_echo "$as_me: failed program was:" >&5
  2923. sed 's/^/| /' conftest.$ac_ext >&5
  2924. ac_cv_func_ldap_start_tls_s=no
  2925. fi
  2926. +rm -rf conftest.dSYM
  2927. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2928. conftest$ac_exeext conftest.$ac_ext
  2929. fi
  2930. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
  2931. -echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
  2932. -if test $ac_cv_func_ldap_start_tls_s = yes; then
  2933. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
  2934. +$as_echo "$ac_cv_func_ldap_start_tls_s" >&6; }
  2935. +if test "x$ac_cv_func_ldap_start_tls_s" = x""yes; then
  2936. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_START_TLS"
  2937. fi
  2938. - { echo "$as_me:$LINENO: checking for ldap_initialize" >&5
  2939. -echo $ECHO_N "checking for ldap_initialize... $ECHO_C" >&6; }
  2940. + { $as_echo "$as_me:$LINENO: checking for ldap_initialize" >&5
  2941. +$as_echo_n "checking for ldap_initialize... " >&6; }
  2942. if test "${ac_cv_func_ldap_initialize+set}" = set; then
  2943. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2944. + $as_echo_n "(cached) " >&6
  2945. else
  2946. cat >conftest.$ac_ext <<_ACEOF
  2947. /* confdefs.h. */
  2948. @@ -3619,39 +4257,43 @@ case "(($ac_try" in
  2949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2950. *) ac_try_echo=$ac_try;;
  2951. esac
  2952. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2953. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2954. +$as_echo "$ac_try_echo") >&5
  2955. (eval "$ac_link") 2>conftest.er1
  2956. ac_status=$?
  2957. grep -v '^ *+' conftest.er1 >conftest.err
  2958. rm -f conftest.er1
  2959. cat conftest.err >&5
  2960. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2961. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2962. (exit $ac_status); } && {
  2963. test -z "$ac_c_werror_flag" ||
  2964. test ! -s conftest.err
  2965. - } && test -s conftest$ac_exeext &&
  2966. - $as_test_x conftest$ac_exeext; then
  2967. + } && test -s conftest$ac_exeext && {
  2968. + test "$cross_compiling" = yes ||
  2969. + $as_test_x conftest$ac_exeext
  2970. + }; then
  2971. ac_cv_func_ldap_initialize=yes
  2972. else
  2973. - echo "$as_me: failed program was:" >&5
  2974. + $as_echo "$as_me: failed program was:" >&5
  2975. sed 's/^/| /' conftest.$ac_ext >&5
  2976. ac_cv_func_ldap_initialize=no
  2977. fi
  2978. +rm -rf conftest.dSYM
  2979. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2980. conftest$ac_exeext conftest.$ac_ext
  2981. fi
  2982. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
  2983. -echo "${ECHO_T}$ac_cv_func_ldap_initialize" >&6; }
  2984. -if test $ac_cv_func_ldap_initialize = yes; then
  2985. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_initialize" >&5
  2986. +$as_echo "$ac_cv_func_ldap_initialize" >&6; }
  2987. +if test "x$ac_cv_func_ldap_initialize" = x""yes; then
  2988. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INITIALIZE"
  2989. fi
  2990. - { echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
  2991. -echo $ECHO_N "checking for ldap_int_tls_config... $ECHO_C" >&6; }
  2992. + { $as_echo "$as_me:$LINENO: checking for ldap_int_tls_config" >&5
  2993. +$as_echo_n "checking for ldap_int_tls_config... " >&6; }
  2994. if test "${ac_cv_func_ldap_int_tls_config+set}" = set; then
  2995. - echo $ECHO_N "(cached) $ECHO_C" >&6
  2996. + $as_echo_n "(cached) " >&6
  2997. else
  2998. cat >conftest.$ac_ext <<_ACEOF
  2999. /* confdefs.h. */
  3000. @@ -3704,32 +4346,36 @@ case "(($ac_try" in
  3001. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3002. *) ac_try_echo=$ac_try;;
  3003. esac
  3004. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3005. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3006. +$as_echo "$ac_try_echo") >&5
  3007. (eval "$ac_link") 2>conftest.er1
  3008. ac_status=$?
  3009. grep -v '^ *+' conftest.er1 >conftest.err
  3010. rm -f conftest.er1
  3011. cat conftest.err >&5
  3012. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3013. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3014. (exit $ac_status); } && {
  3015. test -z "$ac_c_werror_flag" ||
  3016. test ! -s conftest.err
  3017. - } && test -s conftest$ac_exeext &&
  3018. - $as_test_x conftest$ac_exeext; then
  3019. + } && test -s conftest$ac_exeext && {
  3020. + test "$cross_compiling" = yes ||
  3021. + $as_test_x conftest$ac_exeext
  3022. + }; then
  3023. ac_cv_func_ldap_int_tls_config=yes
  3024. else
  3025. - echo "$as_me: failed program was:" >&5
  3026. + $as_echo "$as_me: failed program was:" >&5
  3027. sed 's/^/| /' conftest.$ac_ext >&5
  3028. ac_cv_func_ldap_int_tls_config=no
  3029. fi
  3030. +rm -rf conftest.dSYM
  3031. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3032. conftest$ac_exeext conftest.$ac_ext
  3033. fi
  3034. -{ echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
  3035. -echo "${ECHO_T}$ac_cv_func_ldap_int_tls_config" >&6; }
  3036. -if test $ac_cv_func_ldap_int_tls_config = yes; then
  3037. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_ldap_int_tls_config" >&5
  3038. +$as_echo "$ac_cv_func_ldap_int_tls_config" >&6; }
  3039. +if test "x$ac_cv_func_ldap_int_tls_config" = x""yes; then
  3040. SMART_CFLAGS="$SMART_CFLAGS -DHAVE_LDAP_INT_TLS_CONFIG"
  3041. fi
  3042. @@ -3738,11 +4384,11 @@ fi
  3043. for ac_func in ldap_set_rebind_proc
  3044. do
  3045. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3046. -{ echo "$as_me:$LINENO: checking for $ac_func" >&5
  3047. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  3048. +as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  3049. +{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
  3050. +$as_echo_n "checking for $ac_func... " >&6; }
  3051. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  3052. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3053. + $as_echo_n "(cached) " >&6
  3054. else
  3055. cat >conftest.$ac_ext <<_ACEOF
  3056. /* confdefs.h. */
  3057. @@ -3795,44 +4441,51 @@ case "(($ac_try" in
  3058. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3059. *) ac_try_echo=$ac_try;;
  3060. esac
  3061. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3062. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3063. +$as_echo "$ac_try_echo") >&5
  3064. (eval "$ac_link") 2>conftest.er1
  3065. ac_status=$?
  3066. grep -v '^ *+' conftest.er1 >conftest.err
  3067. rm -f conftest.er1
  3068. cat conftest.err >&5
  3069. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3071. (exit $ac_status); } && {
  3072. test -z "$ac_c_werror_flag" ||
  3073. test ! -s conftest.err
  3074. - } && test -s conftest$ac_exeext &&
  3075. - $as_test_x conftest$ac_exeext; then
  3076. + } && test -s conftest$ac_exeext && {
  3077. + test "$cross_compiling" = yes ||
  3078. + $as_test_x conftest$ac_exeext
  3079. + }; then
  3080. eval "$as_ac_var=yes"
  3081. else
  3082. - echo "$as_me: failed program was:" >&5
  3083. + $as_echo "$as_me: failed program was:" >&5
  3084. sed 's/^/| /' conftest.$ac_ext >&5
  3085. eval "$as_ac_var=no"
  3086. fi
  3087. +rm -rf conftest.dSYM
  3088. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  3089. conftest$ac_exeext conftest.$ac_ext
  3090. fi
  3091. -ac_res=`eval echo '${'$as_ac_var'}'`
  3092. - { echo "$as_me:$LINENO: result: $ac_res" >&5
  3093. -echo "${ECHO_T}$ac_res" >&6; }
  3094. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  3095. +ac_res=`eval 'as_val=${'$as_ac_var'}
  3096. + $as_echo "$as_val"'`
  3097. + { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  3098. +$as_echo "$ac_res" >&6; }
  3099. +as_val=`eval 'as_val=${'$as_ac_var'}
  3100. + $as_echo "$as_val"'`
  3101. + if test "x$as_val" = x""yes; then
  3102. cat >>confdefs.h <<_ACEOF
  3103. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3104. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  3105. _ACEOF
  3106. fi
  3107. done
  3108. - { echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
  3109. -echo $ECHO_N "checking whether ldap_set_rebind_proc takes 3 arguments... $ECHO_C" >&6; }
  3110. + { $as_echo "$as_me:$LINENO: checking whether ldap_set_rebind_proc takes 3 arguments" >&5
  3111. +$as_echo_n "checking whether ldap_set_rebind_proc takes 3 arguments... " >&6; }
  3112. if test "${ac_cv_ldap_set_rebind_proc+set}" = set; then
  3113. - echo $ECHO_N "(cached) $ECHO_C" >&6
  3114. + $as_echo_n "(cached) " >&6
  3115. else
  3116. cat >conftest.$ac_ext <<_ACEOF
  3117. @@ -3858,20 +4511,21 @@ case "(($ac_try" in
  3118. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3119. *) ac_try_echo=$ac_try;;
  3120. esac
  3121. -eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3122. +eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3123. +$as_echo "$ac_try_echo") >&5
  3124. (eval "$ac_compile") 2>conftest.er1
  3125. ac_status=$?
  3126. grep -v '^ *+' conftest.er1 >conftest.err
  3127. rm -f conftest.er1
  3128. cat conftest.err >&5
  3129. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3130. + $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3131. (exit $ac_status); } && {
  3132. test -z "$ac_c_werror_flag" ||
  3133. test ! -s conftest.err
  3134. } && test -s conftest.$ac_objext; then
  3135. ac_cv_ldap_set_rebind_proc=3
  3136. else
  3137. - echo "$as_me: failed program was:" >&5
  3138. + $as_echo "$as_me: failed program was:" >&5
  3139. sed 's/^/| /' conftest.$ac_ext >&5
  3140. ac_cv_ldap_set_rebind_proc=2
  3141. @@ -3879,8 +4533,8 @@ fi
  3142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3143. fi
  3144. -{ echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
  3145. -echo "${ECHO_T}$ac_cv_ldap_set_rebind_proc" >&6; }
  3146. +{ $as_echo "$as_me:$LINENO: result: $ac_cv_ldap_set_rebind_proc" >&5
  3147. +$as_echo "$ac_cv_ldap_set_rebind_proc" >&6; }
  3148. fi
  3149. targetname=rlm_ldap
  3150. @@ -3891,21 +4545,21 @@ fi
  3151. if test x"$fail" != x""; then
  3152. if test x"${enable_strict_dependencies}" = x"yes"; then
  3153. - { { echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
  3154. -echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
  3155. + { { $as_echo "$as_me:$LINENO: error: set --without-rlm_ldap to disable it explicitly." >&5
  3156. +$as_echo "$as_me: error: set --without-rlm_ldap to disable it explicitly." >&2;}
  3157. { (exit 1); exit 1; }; }
  3158. else
  3159. - { echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
  3160. -echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
  3161. - { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
  3162. -echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
  3163. + { $as_echo "$as_me:$LINENO: WARNING: silently not building rlm_ldap." >&5
  3164. +$as_echo "$as_me: WARNING: silently not building rlm_ldap." >&2;}
  3165. + { $as_echo "$as_me:$LINENO: WARNING: FAILURE: rlm_ldap requires: $fail." >&5
  3166. +$as_echo "$as_me: WARNING: FAILURE: rlm_ldap requires: $fail." >&2;}
  3167. if test x"$headersuggestion" != x; then
  3168. - { echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
  3169. -echo "$as_me: WARNING: $headersuggestion" >&2;}
  3170. + { $as_echo "$as_me:$LINENO: WARNING: $headersuggestion" >&5
  3171. +$as_echo "$as_me: WARNING: $headersuggestion" >&2;}
  3172. fi
  3173. if test x"$libsuggestion" != x; then
  3174. - { echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
  3175. -echo "$as_me: WARNING: $libsuggestion" >&2;}
  3176. + { $as_echo "$as_me:$LINENO: WARNING: $libsuggestion" >&5
  3177. +$as_echo "$as_me: WARNING: $libsuggestion" >&2;}
  3178. fi
  3179. targetname=""
  3180. fi
  3181. @@ -3966,11 +4620,12 @@ _ACEOF
  3182. case $ac_val in #(
  3183. *${as_nl}*)
  3184. case $ac_var in #(
  3185. - *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3186. -echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3187. + *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  3188. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3189. esac
  3190. case $ac_var in #(
  3191. _ | IFS | as_nl) ;; #(
  3192. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3193. *) $as_unset $ac_var ;;
  3194. esac ;;
  3195. esac
  3196. @@ -4003,12 +4658,12 @@ echo "$as_me: WARNING: Cache variable $a
  3197. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3198. if test -w "$cache_file"; then
  3199. test "x$cache_file" != "x/dev/null" &&
  3200. - { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3201. -echo "$as_me: updating cache $cache_file" >&6;}
  3202. + { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3203. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  3204. cat confcache >$cache_file
  3205. else
  3206. - { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3207. -echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3208. + { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3209. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3210. fi
  3211. fi
  3212. rm -f confcache
  3213. @@ -4025,6 +4680,12 @@ test "x$exec_prefix" = xNONE && exec_pre
  3214. # take arguments), then branch to the quote section. Otherwise,
  3215. # look for a macro that doesn't take arguments.
  3216. ac_script='
  3217. +:mline
  3218. +/\\$/{
  3219. + N
  3220. + s,\\\n,,
  3221. + b mline
  3222. +}
  3223. t clear
  3224. :clear
  3225. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  3226. @@ -4054,7 +4715,7 @@ ac_ltlibobjs=
  3227. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  3228. # 1. Remove the extension, and $U if already installed.
  3229. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  3230. - ac_i=`echo "$ac_i" | sed "$ac_script"`
  3231. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  3232. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  3233. # will be set to the directory where LIBOBJS objects are built.
  3234. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  3235. @@ -4067,11 +4728,12 @@ LTLIBOBJS=$ac_ltlibobjs
  3236. : ${CONFIG_STATUS=./config.status}
  3237. +ac_write_fail=0
  3238. ac_clean_files_save=$ac_clean_files
  3239. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  3240. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3241. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3242. -cat >$CONFIG_STATUS <<_ACEOF
  3243. +{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  3244. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  3245. +cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3246. #! $SHELL
  3247. # Generated by $as_me.
  3248. # Run this file to recreate the current configuration.
  3249. @@ -4084,7 +4746,7 @@ ac_cs_silent=false
  3250. SHELL=\${CONFIG_SHELL-$SHELL}
  3251. _ACEOF
  3252. -cat >>$CONFIG_STATUS <<\_ACEOF
  3253. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3254. ## --------------------- ##
  3255. ## M4sh Initialization. ##
  3256. ## --------------------- ##
  3257. @@ -4094,7 +4756,7 @@ DUALCASE=1; export DUALCASE # for MKS sh
  3258. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3259. emulate sh
  3260. NULLCMD=:
  3261. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3262. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  3263. # is contrary to our usage. Disable this feature.
  3264. alias -g '${1+"$@"}'='"$@"'
  3265. setopt NO_GLOB_SUBST
  3266. @@ -4116,17 +4778,45 @@ as_cr_Letters=$as_cr_letters$as_cr_LETTE
  3267. as_cr_digits='0123456789'
  3268. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3269. -# The user is always right.
  3270. -if test "${PATH_SEPARATOR+set}" != set; then
  3271. - echo "#! /bin/sh" >conf$$.sh
  3272. - echo "exit 0" >>conf$$.sh
  3273. - chmod +x conf$$.sh
  3274. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3275. - PATH_SEPARATOR=';'
  3276. +as_nl='
  3277. +'
  3278. +export as_nl
  3279. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  3280. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3281. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  3282. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  3283. +if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  3284. + as_echo='printf %s\n'
  3285. + as_echo_n='printf %s'
  3286. +else
  3287. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  3288. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  3289. + as_echo_n='/usr/ucb/echo -n'
  3290. else
  3291. - PATH_SEPARATOR=:
  3292. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  3293. + as_echo_n_body='eval
  3294. + arg=$1;
  3295. + case $arg in
  3296. + *"$as_nl"*)
  3297. + expr "X$arg" : "X\\(.*\\)$as_nl";
  3298. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  3299. + esac;
  3300. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  3301. + '
  3302. + export as_echo_n_body
  3303. + as_echo_n='sh -c $as_echo_n_body as_echo'
  3304. fi
  3305. - rm -f conf$$.sh
  3306. + export as_echo_body
  3307. + as_echo='sh -c $as_echo_body as_echo'
  3308. +fi
  3309. +
  3310. +# The user is always right.
  3311. +if test "${PATH_SEPARATOR+set}" != set; then
  3312. + PATH_SEPARATOR=:
  3313. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  3314. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  3315. + PATH_SEPARATOR=';'
  3316. + }
  3317. fi
  3318. # Support unset when possible.
  3319. @@ -4142,8 +4832,6 @@ fi
  3320. # there to prevent editors from complaining about space-tab.
  3321. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  3322. # splitting by setting IFS to empty value.)
  3323. -as_nl='
  3324. -'
  3325. IFS=" "" $as_nl"
  3326. # Find who we are. Look in the path if we contain no directory separator.
  3327. @@ -4166,7 +4854,7 @@ if test "x$as_myself" = x; then
  3328. as_myself=$0
  3329. fi
  3330. if test ! -f "$as_myself"; then
  3331. - echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3332. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  3333. { (exit 1); exit 1; }
  3334. fi
  3335. @@ -4179,17 +4867,10 @@ PS2='> '
  3336. PS4='+ '
  3337. # NLS nuisances.
  3338. -for as_var in \
  3339. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3340. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3341. - LC_TELEPHONE LC_TIME
  3342. -do
  3343. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3344. - eval $as_var=C; export $as_var
  3345. - else
  3346. - ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  3347. - fi
  3348. -done
  3349. +LC_ALL=C
  3350. +export LC_ALL
  3351. +LANGUAGE=C
  3352. +export LANGUAGE
  3353. # Required to use basename.
  3354. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3355. @@ -4211,7 +4892,7 @@ as_me=`$as_basename -- "$0" ||
  3356. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3357. X"$0" : 'X\(//\)$' \| \
  3358. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  3359. -echo X/"$0" |
  3360. +$as_echo X/"$0" |
  3361. sed '/^.*\/\([^/][^/]*\)\/*$/{
  3362. s//\1/
  3363. q
  3364. @@ -4262,7 +4943,7 @@ $as_unset CDPATH
  3365. s/-\n.*//
  3366. ' >$as_me.lineno &&
  3367. chmod +x "$as_me.lineno" ||
  3368. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3369. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  3370. { (exit 1); exit 1; }; }
  3371. # Don't try to exec as it changes $[0], causing all sort of problems
  3372. @@ -4290,7 +4971,6 @@ case `echo -n x` in
  3373. *)
  3374. ECHO_N='-n';;
  3375. esac
  3376. -
  3377. if expr a : '\(a\)' >/dev/null 2>&1 &&
  3378. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  3379. as_expr=expr
  3380. @@ -4303,19 +4983,22 @@ if test -d conf$$.dir; then
  3381. rm -f conf$$.dir/conf$$.file
  3382. else
  3383. rm -f conf$$.dir
  3384. - mkdir conf$$.dir
  3385. + mkdir conf$$.dir 2>/dev/null
  3386. fi
  3387. -echo >conf$$.file
  3388. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  3389. - as_ln_s='ln -s'
  3390. - # ... but there are two gotchas:
  3391. - # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3392. - # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3393. - # In both cases, we have to default to `cp -p'.
  3394. - ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3395. +if (echo >conf$$.file) 2>/dev/null; then
  3396. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  3397. + as_ln_s='ln -s'
  3398. + # ... but there are two gotchas:
  3399. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  3400. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  3401. + # In both cases, we have to default to `cp -p'.
  3402. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  3403. + as_ln_s='cp -p'
  3404. + elif ln conf$$.file conf$$ 2>/dev/null; then
  3405. + as_ln_s=ln
  3406. + else
  3407. as_ln_s='cp -p'
  3408. -elif ln conf$$.file conf$$ 2>/dev/null; then
  3409. - as_ln_s=ln
  3410. + fi
  3411. else
  3412. as_ln_s='cp -p'
  3413. fi
  3414. @@ -4340,10 +5023,10 @@ else
  3415. as_test_x='
  3416. eval sh -c '\''
  3417. if test -d "$1"; then
  3418. - test -d "$1/.";
  3419. + test -d "$1/.";
  3420. else
  3421. case $1 in
  3422. - -*)set "./$1";;
  3423. + -*)set "./$1";;
  3424. esac;
  3425. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  3426. ???[sx]*):;;*)false;;esac;fi
  3427. @@ -4366,7 +5049,7 @@ exec 6>&1
  3428. # values after options handling.
  3429. ac_log="
  3430. This file was extended by $as_me, which was
  3431. -generated by GNU Autoconf 2.61. Invocation command line was
  3432. +generated by GNU Autoconf 2.63. Invocation command line was
  3433. CONFIG_FILES = $CONFIG_FILES
  3434. CONFIG_HEADERS = $CONFIG_HEADERS
  3435. @@ -4379,26 +5062,33 @@ on `(hostname || uname -n) 2>/dev/null |
  3436. _ACEOF
  3437. -cat >>$CONFIG_STATUS <<_ACEOF
  3438. +case $ac_config_files in *"
  3439. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  3440. +esac
  3441. +
  3442. +
  3443. +
  3444. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3445. # Files that config.status was made for.
  3446. config_files="$ac_config_files"
  3447. _ACEOF
  3448. -cat >>$CONFIG_STATUS <<\_ACEOF
  3449. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3450. ac_cs_usage="\
  3451. \`$as_me' instantiates files from templates according to the
  3452. current configuration.
  3453. -Usage: $0 [OPTIONS] [FILE]...
  3454. +Usage: $0 [OPTION]... [FILE]...
  3455. -h, --help print this help, then exit
  3456. -V, --version print version number and configuration settings, then exit
  3457. - -q, --quiet do not print progress messages
  3458. + -q, --quiet, --silent
  3459. + do not print progress messages
  3460. -d, --debug don't remove temporary files
  3461. --recheck update $as_me by reconfiguring in the same conditions
  3462. - --file=FILE[:TEMPLATE]
  3463. - instantiate the configuration file FILE
  3464. + --file=FILE[:TEMPLATE]
  3465. + instantiate the configuration file FILE
  3466. Configuration files:
  3467. $config_files
  3468. @@ -4406,23 +5096,23 @@ $config_files
  3469. Report bugs to <bug-autoconf@gnu.org>."
  3470. _ACEOF
  3471. -cat >>$CONFIG_STATUS <<_ACEOF
  3472. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3473. ac_cs_version="\\
  3474. config.status
  3475. -configured by $0, generated by GNU Autoconf 2.61,
  3476. - with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3477. +configured by $0, generated by GNU Autoconf 2.63,
  3478. + with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  3479. -Copyright (C) 2006 Free Software Foundation, Inc.
  3480. +Copyright (C) 2008 Free Software Foundation, Inc.
  3481. This config.status script is free software; the Free Software Foundation
  3482. gives unlimited permission to copy, distribute and modify it."
  3483. ac_pwd='$ac_pwd'
  3484. srcdir='$srcdir'
  3485. +test -n "\$AWK" || AWK=awk
  3486. _ACEOF
  3487. -cat >>$CONFIG_STATUS <<\_ACEOF
  3488. -# If no file are specified by the user, then we need to provide default
  3489. -# value. By we need to know if files were specified by the user.
  3490. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3491. +# The default lists apply if the user does not specify any file.
  3492. ac_need_defaults=:
  3493. while test $# != 0
  3494. do
  3495. @@ -4444,21 +5134,24 @@ do
  3496. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3497. ac_cs_recheck=: ;;
  3498. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  3499. - echo "$ac_cs_version"; exit ;;
  3500. + $as_echo "$ac_cs_version"; exit ;;
  3501. --debug | --debu | --deb | --de | --d | -d )
  3502. debug=: ;;
  3503. --file | --fil | --fi | --f )
  3504. $ac_shift
  3505. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3506. + case $ac_optarg in
  3507. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  3508. + esac
  3509. + CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  3510. ac_need_defaults=false;;
  3511. --he | --h | --help | --hel | -h )
  3512. - echo "$ac_cs_usage"; exit ;;
  3513. + $as_echo "$ac_cs_usage"; exit ;;
  3514. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3515. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3516. ac_cs_silent=: ;;
  3517. # This is an error.
  3518. - -*) { echo "$as_me: error: unrecognized option: $1
  3519. + -*) { $as_echo "$as_me: error: unrecognized option: $1
  3520. Try \`$0 --help' for more information." >&2
  3521. { (exit 1); exit 1; }; } ;;
  3522. @@ -4477,30 +5170,32 @@ if $ac_cs_silent; then
  3523. fi
  3524. _ACEOF
  3525. -cat >>$CONFIG_STATUS <<_ACEOF
  3526. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3527. if \$ac_cs_recheck; then
  3528. - echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3529. - CONFIG_SHELL=$SHELL
  3530. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3531. + shift
  3532. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  3533. + CONFIG_SHELL='$SHELL'
  3534. export CONFIG_SHELL
  3535. - exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3536. + exec "\$@"
  3537. fi
  3538. _ACEOF
  3539. -cat >>$CONFIG_STATUS <<\_ACEOF
  3540. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3541. exec 5>>config.log
  3542. {
  3543. echo
  3544. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3545. ## Running $as_me. ##
  3546. _ASBOX
  3547. - echo "$ac_log"
  3548. + $as_echo "$ac_log"
  3549. } >&5
  3550. _ACEOF
  3551. -cat >>$CONFIG_STATUS <<_ACEOF
  3552. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3553. _ACEOF
  3554. -cat >>$CONFIG_STATUS <<\_ACEOF
  3555. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3556. # Handling of arguments.
  3557. for ac_config_target in $ac_config_targets
  3558. @@ -4508,8 +5203,8 @@ do
  3559. case $ac_config_target in
  3560. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  3561. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3562. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3563. + *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3564. +$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3565. { (exit 1); exit 1; }; };;
  3566. esac
  3567. done
  3568. @@ -4548,114 +5243,143 @@ $debug ||
  3569. (umask 077 && mkdir "$tmp")
  3570. } ||
  3571. {
  3572. - echo "$me: cannot create a temporary directory in ." >&2
  3573. + $as_echo "$as_me: cannot create a temporary directory in ." >&2
  3574. { (exit 1); exit 1; }
  3575. }
  3576. -#
  3577. -# Set up the sed scripts for CONFIG_FILES section.
  3578. -#
  3579. -
  3580. -# No need to generate the scripts if there are no CONFIG_FILES.
  3581. -# This happens for instance when ./config.status config.h
  3582. +# Set up the scripts for CONFIG_FILES section.
  3583. +# No need to generate them if there are no CONFIG_FILES.
  3584. +# This happens for instance with `./config.status config.h'.
  3585. if test -n "$CONFIG_FILES"; then
  3586. -_ACEOF
  3587. +ac_cr=' '
  3588. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  3589. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  3590. + ac_cs_awk_cr='\\r'
  3591. +else
  3592. + ac_cs_awk_cr=$ac_cr
  3593. +fi
  3594. +
  3595. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  3596. +_ACEOF
  3597. +{
  3598. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  3599. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  3600. + echo "_ACEOF"
  3601. +} >conf$$subs.sh ||
  3602. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3603. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3604. + { (exit 1); exit 1; }; }
  3605. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  3606. ac_delim='%!_!# '
  3607. for ac_last_try in false false false false false :; do
  3608. - cat >conf$$subs.sed <<_ACEOF
  3609. -SHELL!$SHELL$ac_delim
  3610. -PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  3611. -PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  3612. -PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  3613. -PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  3614. -PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  3615. -PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  3616. -exec_prefix!$exec_prefix$ac_delim
  3617. -prefix!$prefix$ac_delim
  3618. -program_transform_name!$program_transform_name$ac_delim
  3619. -bindir!$bindir$ac_delim
  3620. -sbindir!$sbindir$ac_delim
  3621. -libexecdir!$libexecdir$ac_delim
  3622. -datarootdir!$datarootdir$ac_delim
  3623. -datadir!$datadir$ac_delim
  3624. -sysconfdir!$sysconfdir$ac_delim
  3625. -sharedstatedir!$sharedstatedir$ac_delim
  3626. -localstatedir!$localstatedir$ac_delim
  3627. -includedir!$includedir$ac_delim
  3628. -oldincludedir!$oldincludedir$ac_delim
  3629. -docdir!$docdir$ac_delim
  3630. -infodir!$infodir$ac_delim
  3631. -htmldir!$htmldir$ac_delim
  3632. -dvidir!$dvidir$ac_delim
  3633. -pdfdir!$pdfdir$ac_delim
  3634. -psdir!$psdir$ac_delim
  3635. -libdir!$libdir$ac_delim
  3636. -localedir!$localedir$ac_delim
  3637. -mandir!$mandir$ac_delim
  3638. -DEFS!$DEFS$ac_delim
  3639. -ECHO_C!$ECHO_C$ac_delim
  3640. -ECHO_N!$ECHO_N$ac_delim
  3641. -ECHO_T!$ECHO_T$ac_delim
  3642. -LIBS!$LIBS$ac_delim
  3643. -build_alias!$build_alias$ac_delim
  3644. -host_alias!$host_alias$ac_delim
  3645. -target_alias!$target_alias$ac_delim
  3646. -CC!$CC$ac_delim
  3647. -CFLAGS!$CFLAGS$ac_delim
  3648. -LDFLAGS!$LDFLAGS$ac_delim
  3649. -CPPFLAGS!$CPPFLAGS$ac_delim
  3650. -ac_ct_CC!$ac_ct_CC$ac_delim
  3651. -EXEEXT!$EXEEXT$ac_delim
  3652. -OBJEXT!$OBJEXT$ac_delim
  3653. -edir!$edir$ac_delim
  3654. -ldap_ldflags!$ldap_ldflags$ac_delim
  3655. -ldap_cflags!$ldap_cflags$ac_delim
  3656. -targetname!$targetname$ac_delim
  3657. -LIBOBJS!$LIBOBJS$ac_delim
  3658. -LTLIBOBJS!$LTLIBOBJS$ac_delim
  3659. -_ACEOF
  3660. + . ./conf$$subs.sh ||
  3661. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3662. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3663. + { (exit 1); exit 1; }; }
  3664. - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 50; then
  3665. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  3666. + if test $ac_delim_n = $ac_delim_num; then
  3667. break
  3668. elif $ac_last_try; then
  3669. - { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3670. -echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3671. + { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  3672. +$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  3673. { (exit 1); exit 1; }; }
  3674. else
  3675. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  3676. fi
  3677. done
  3678. +rm -f conf$$subs.sh
  3679. -ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  3680. -if test -n "$ac_eof"; then
  3681. - ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  3682. - ac_eof=`expr $ac_eof + 1`
  3683. -fi
  3684. -
  3685. -cat >>$CONFIG_STATUS <<_ACEOF
  3686. -cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  3687. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  3688. -_ACEOF
  3689. -sed '
  3690. -s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  3691. -s/^/s,@/; s/!/@,|#_!!_#|/
  3692. -:n
  3693. -t n
  3694. -s/'"$ac_delim"'$/,g/; t
  3695. -s/$/\\/; p
  3696. -N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  3697. -' >>$CONFIG_STATUS <conf$$subs.sed
  3698. -rm -f conf$$subs.sed
  3699. -cat >>$CONFIG_STATUS <<_ACEOF
  3700. -:end
  3701. -s/|#_!!_#|//g
  3702. -CEOF$ac_eof
  3703. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3704. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  3705. _ACEOF
  3706. +sed -n '
  3707. +h
  3708. +s/^/S["/; s/!.*/"]=/
  3709. +p
  3710. +g
  3711. +s/^[^!]*!//
  3712. +:repl
  3713. +t repl
  3714. +s/'"$ac_delim"'$//
  3715. +t delim
  3716. +:nl
  3717. +h
  3718. +s/\(.\{148\}\).*/\1/
  3719. +t more1
  3720. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  3721. +p
  3722. +n
  3723. +b repl
  3724. +:more1
  3725. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3726. +p
  3727. +g
  3728. +s/.\{148\}//
  3729. +t nl
  3730. +:delim
  3731. +h
  3732. +s/\(.\{148\}\).*/\1/
  3733. +t more2
  3734. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  3735. +p
  3736. +b
  3737. +:more2
  3738. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  3739. +p
  3740. +g
  3741. +s/.\{148\}//
  3742. +t delim
  3743. +' <conf$$subs.awk | sed '
  3744. +/^[^""]/{
  3745. + N
  3746. + s/\n//
  3747. +}
  3748. +' >>$CONFIG_STATUS || ac_write_fail=1
  3749. +rm -f conf$$subs.awk
  3750. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3751. +_ACAWK
  3752. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  3753. + for (key in S) S_is_set[key] = 1
  3754. + FS = ""
  3755. +}
  3756. +{
  3757. + line = $ 0
  3758. + nfields = split(line, field, "@")
  3759. + substed = 0
  3760. + len = length(field[1])
  3761. + for (i = 2; i < nfields; i++) {
  3762. + key = field[i]
  3763. + keylen = length(key)
  3764. + if (S_is_set[key]) {
  3765. + value = S[key]
  3766. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  3767. + len += length(value) + length(field[++i])
  3768. + substed = 1
  3769. + } else
  3770. + len += 1 + keylen
  3771. + }
  3772. +
  3773. + print line
  3774. +}
  3775. +
  3776. +_ACAWK
  3777. +_ACEOF
  3778. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3779. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  3780. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  3781. +else
  3782. + cat
  3783. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  3784. + || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  3785. +$as_echo "$as_me: error: could not setup config files machinery" >&2;}
  3786. + { (exit 1); exit 1; }; }
  3787. +_ACEOF
  3788. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  3789. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  3790. @@ -4672,19 +5396,21 @@ s/^[^=]*=[ ]*$//
  3791. }'
  3792. fi
  3793. -cat >>$CONFIG_STATUS <<\_ACEOF
  3794. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3795. fi # test -n "$CONFIG_FILES"
  3796. -for ac_tag in :F $CONFIG_FILES
  3797. +eval set X " :F $CONFIG_FILES "
  3798. +shift
  3799. +for ac_tag
  3800. do
  3801. case $ac_tag in
  3802. :[FHLC]) ac_mode=$ac_tag; continue;;
  3803. esac
  3804. case $ac_mode$ac_tag in
  3805. :[FHL]*:*);;
  3806. - :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  3807. -echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  3808. + :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  3809. +$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  3810. { (exit 1); exit 1; }; };;
  3811. :[FH]-) ac_tag=-:-;;
  3812. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  3813. @@ -4713,26 +5439,38 @@ echo "$as_me: error: Invalid tag $ac_tag
  3814. [\\/$]*) false;;
  3815. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  3816. esac ||
  3817. - { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  3818. -echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  3819. + { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  3820. +$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  3821. { (exit 1); exit 1; }; };;
  3822. esac
  3823. - ac_file_inputs="$ac_file_inputs $ac_f"
  3824. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  3825. + ac_file_inputs="$ac_file_inputs '$ac_f'"
  3826. done
  3827. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3828. # use $as_me), people would be surprised to read:
  3829. # /* config.h. Generated by config.status. */
  3830. - configure_input="Generated from "`IFS=:
  3831. - echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  3832. + configure_input='Generated from '`
  3833. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  3834. + `' by configure.'
  3835. if test x"$ac_file" != x-; then
  3836. configure_input="$ac_file. $configure_input"
  3837. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  3838. -echo "$as_me: creating $ac_file" >&6;}
  3839. + { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  3840. +$as_echo "$as_me: creating $ac_file" >&6;}
  3841. fi
  3842. + # Neutralize special characters interpreted by sed in replacement strings.
  3843. + case $configure_input in #(
  3844. + *\&* | *\|* | *\\* )
  3845. + ac_sed_conf_input=`$as_echo "$configure_input" |
  3846. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  3847. + *) ac_sed_conf_input=$configure_input;;
  3848. + esac
  3849. case $ac_tag in
  3850. - *:-:* | *:-) cat >"$tmp/stdin";;
  3851. + *:-:* | *:-) cat >"$tmp/stdin" \
  3852. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3853. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3854. + { (exit 1); exit 1; }; } ;;
  3855. esac
  3856. ;;
  3857. esac
  3858. @@ -4742,7 +5480,7 @@ $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^
  3859. X"$ac_file" : 'X\(//\)[^/]' \| \
  3860. X"$ac_file" : 'X\(//\)$' \| \
  3861. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  3862. -echo X"$ac_file" |
  3863. +$as_echo X"$ac_file" |
  3864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3865. s//\1/
  3866. q
  3867. @@ -4768,7 +5506,7 @@ echo X"$ac_file" |
  3868. as_dirs=
  3869. while :; do
  3870. case $as_dir in #(
  3871. - *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  3872. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  3873. *) as_qdir=$as_dir;;
  3874. esac
  3875. as_dirs="'$as_qdir' $as_dirs"
  3876. @@ -4777,7 +5515,7 @@ $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/
  3877. X"$as_dir" : 'X\(//\)[^/]' \| \
  3878. X"$as_dir" : 'X\(//\)$' \| \
  3879. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  3880. -echo X"$as_dir" |
  3881. +$as_echo X"$as_dir" |
  3882. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  3883. s//\1/
  3884. q
  3885. @@ -4798,17 +5536,17 @@ echo X"$as_dir" |
  3886. test -d "$as_dir" && break
  3887. done
  3888. test -z "$as_dirs" || eval "mkdir $as_dirs"
  3889. - } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  3890. -echo "$as_me: error: cannot create directory $as_dir" >&2;}
  3891. + } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  3892. +$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  3893. { (exit 1); exit 1; }; }; }
  3894. ac_builddir=.
  3895. case "$ac_dir" in
  3896. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3897. *)
  3898. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3899. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  3900. # A ".." for each directory in $ac_dir_suffix.
  3901. - ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  3902. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  3903. case $ac_top_builddir_sub in
  3904. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  3905. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  3906. @@ -4844,12 +5582,13 @@ ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_
  3907. _ACEOF
  3908. -cat >>$CONFIG_STATUS <<\_ACEOF
  3909. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3910. # If the template does not know about datarootdir, expand it.
  3911. # FIXME: This hack should be removed a few years after 2.60.
  3912. ac_datarootdir_hack=; ac_datarootdir_seen=
  3913. -case `sed -n '/datarootdir/ {
  3914. +ac_sed_dataroot='
  3915. +/datarootdir/ {
  3916. p
  3917. q
  3918. }
  3919. @@ -4858,13 +5597,14 @@ case `sed -n '/datarootdir/ {
  3920. /@infodir@/p
  3921. /@localedir@/p
  3922. /@mandir@/p
  3923. -' $ac_file_inputs` in
  3924. +'
  3925. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  3926. *datarootdir*) ac_datarootdir_seen=yes;;
  3927. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  3928. - { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3929. -echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3930. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  3931. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  3932. _ACEOF
  3933. -cat >>$CONFIG_STATUS <<_ACEOF
  3934. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3935. ac_datarootdir_hack='
  3936. s&@datadir@&$datadir&g
  3937. s&@docdir@&$docdir&g
  3938. @@ -4878,15 +5618,16 @@ _ACEOF
  3939. # Neutralize VPATH when `$srcdir' = `.'.
  3940. # Shell code in configure.ac might set extrasub.
  3941. # FIXME: do we really want to maintain this feature?
  3942. -cat >>$CONFIG_STATUS <<_ACEOF
  3943. - sed "$ac_vpsub
  3944. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  3945. +ac_sed_extra="$ac_vpsub
  3946. $extrasub
  3947. _ACEOF
  3948. -cat >>$CONFIG_STATUS <<\_ACEOF
  3949. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  3950. :t
  3951. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3952. -s&@configure_input@&$configure_input&;t t
  3953. +s|@configure_input@|$ac_sed_conf_input|;t t
  3954. s&@top_builddir@&$ac_top_builddir_sub&;t t
  3955. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  3956. s&@srcdir@&$ac_srcdir&;t t
  3957. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  3958. s&@top_srcdir@&$ac_top_srcdir&;t t
  3959. @@ -4895,21 +5636,28 @@ s&@builddir@&$ac_builddir&;t t
  3960. s&@abs_builddir@&$ac_abs_builddir&;t t
  3961. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  3962. $ac_datarootdir_hack
  3963. -" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  3964. +"
  3965. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  3966. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3967. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3968. + { (exit 1); exit 1; }; }
  3969. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  3970. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  3971. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  3972. - { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3973. + { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3974. which seems to be undefined. Please make sure it is defined." >&5
  3975. -echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3976. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  3977. which seems to be undefined. Please make sure it is defined." >&2;}
  3978. rm -f "$tmp/stdin"
  3979. case $ac_file in
  3980. - -) cat "$tmp/out"; rm -f "$tmp/out";;
  3981. - *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  3982. - esac
  3983. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  3984. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  3985. + esac \
  3986. + || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  3987. +$as_echo "$as_me: error: could not create $ac_file" >&2;}
  3988. + { (exit 1); exit 1; }; }
  3989. ;;
  3990. @@ -4924,6 +5672,11 @@ _ACEOF
  3991. chmod +x $CONFIG_STATUS
  3992. ac_clean_files=$ac_clean_files_save
  3993. +test $ac_write_fail = 0 ||
  3994. + { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  3995. +$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  3996. + { (exit 1); exit 1; }; }
  3997. +
  3998. # configure is writing to config.log, and then calls config.status.
  3999. # config.status does its own redirection, appending to config.log.
  4000. @@ -4945,5 +5698,9 @@ if test "$no_create" != yes; then
  4001. # would make configure fail if this is the last instruction.
  4002. $ac_cs_success || { (exit 1); exit 1; }
  4003. fi
  4004. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  4005. + { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  4006. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  4007. +fi
  4008. --- a/src/modules/rlm_ldap/configure.in
  4009. +++ b/src/modules/rlm_ldap/configure.in
  4010. @@ -87,6 +87,9 @@ if test x$with_[]modname != xno; then
  4011. )
  4012. fi
  4013. + FR_SMART_CHECK_LIB(sasl, sasl_encode)
  4014. + FR_SMART_CHECK_LIB(lber, ber_init)
  4015. +
  4016. dnl Try only "-lldap_r" or "-lldap"
  4017. dnl Static linking will probably not work, but nobody ever
  4018. dnl complained about it.