Advertisement
enmaca

configure clsync-0.4

Jan 27th, 2015
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 618.03 KB | None | 0 0
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.63 for clsync 0.3.
  4. #
  5. # Report bugs to <Dmitry Yu Okunev <dyokunev@ut.mephi.ru>>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14.  
  15. # Be more Bourne compatible
  16. 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. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28.  
  29. fi
  30.  
  31.  
  32.  
  33.  
  34. # PATH needs CR
  35. # Avoid depending upon Character Ranges.
  36. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  37. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  38. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  39. as_cr_digits='0123456789'
  40. as_cr_alnum=$as_cr_Letters$as_cr_digits
  41.  
  42. as_nl='
  43. '
  44. export as_nl
  45. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  46. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  47. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  48. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  49. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  50. as_echo='printf %s\n'
  51. as_echo_n='printf %s'
  52. else
  53. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  54. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  55. as_echo_n='/usr/ucb/echo -n'
  56. else
  57. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  58. as_echo_n_body='eval
  59. arg=$1;
  60. case $arg in
  61. *"$as_nl"*)
  62. expr "X$arg" : "X\\(.*\\)$as_nl";
  63. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  64. esac;
  65. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  66. '
  67. export as_echo_n_body
  68. as_echo_n='sh -c $as_echo_n_body as_echo'
  69. fi
  70. export as_echo_body
  71. as_echo='sh -c $as_echo_body as_echo'
  72. fi
  73.  
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. PATH_SEPARATOR=:
  77. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  78. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  79. PATH_SEPARATOR=';'
  80. }
  81. fi
  82.  
  83. # Support unset when possible.
  84. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  85. as_unset=unset
  86. else
  87. as_unset=false
  88. fi
  89.  
  90.  
  91. # IFS
  92. # We need space, tab and new line, in precisely that order. Quoting is
  93. # there to prevent editors from complaining about space-tab.
  94. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  95. # splitting by setting IFS to empty value.)
  96. IFS=" "" $as_nl"
  97.  
  98. # Find who we are. Look in the path if we contain no directory separator.
  99. case $0 in
  100. *[\\/]* ) as_myself=$0 ;;
  101. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  102. for as_dir in $PATH
  103. do
  104. IFS=$as_save_IFS
  105. test -z "$as_dir" && as_dir=.
  106. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  107. done
  108. IFS=$as_save_IFS
  109.  
  110. ;;
  111. esac
  112. # We did not find ourselves, most probably we were run as `sh COMMAND'
  113. # in which case we are not to be found in the path.
  114. if test "x$as_myself" = x; then
  115. as_myself=$0
  116. fi
  117. if test ! -f "$as_myself"; then
  118. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  119. { (exit 1); exit 1; }
  120. fi
  121.  
  122. # Work around bugs in pre-3.0 UWIN ksh.
  123. for as_var in ENV MAIL MAILPATH
  124. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  125. done
  126. PS1='$ '
  127. PS2='> '
  128. PS4='+ '
  129.  
  130. # NLS nuisances.
  131. LC_ALL=C
  132. export LC_ALL
  133. LANGUAGE=C
  134. export LANGUAGE
  135.  
  136. # Required to use basename.
  137. if expr a : '\(a\)' >/dev/null 2>&1 &&
  138. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  139. as_expr=expr
  140. else
  141. as_expr=false
  142. fi
  143.  
  144. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  145. as_basename=basename
  146. else
  147. as_basename=false
  148. fi
  149.  
  150.  
  151. # Name of the executable.
  152. as_me=`$as_basename -- "$0" ||
  153. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  154. X"$0" : 'X\(//\)$' \| \
  155. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  156. $as_echo X/"$0" |
  157. sed '/^.*\/\([^/][^/]*\)\/*$/{
  158. s//\1/
  159. q
  160. }
  161. /^X\/\(\/\/\)$/{
  162. s//\1/
  163. q
  164. }
  165. /^X\/\(\/\).*/{
  166. s//\1/
  167. q
  168. }
  169. s/.*/./; q'`
  170.  
  171. # CDPATH.
  172. $as_unset CDPATH
  173.  
  174.  
  175. if test "x$CONFIG_SHELL" = x; then
  176. if (eval ":") 2>/dev/null; then
  177. as_have_required=yes
  178. else
  179. as_have_required=no
  180. fi
  181.  
  182. if test $as_have_required = yes && (eval ":
  183. (as_func_return () {
  184. (exit \$1)
  185. }
  186. as_func_success () {
  187. as_func_return 0
  188. }
  189. as_func_failure () {
  190. as_func_return 1
  191. }
  192. as_func_ret_success () {
  193. return 0
  194. }
  195. as_func_ret_failure () {
  196. return 1
  197. }
  198.  
  199. exitcode=0
  200. if as_func_success; then
  201. :
  202. else
  203. exitcode=1
  204. echo as_func_success failed.
  205. fi
  206.  
  207. if as_func_failure; then
  208. exitcode=1
  209. echo as_func_failure succeeded.
  210. fi
  211.  
  212. if as_func_ret_success; then
  213. :
  214. else
  215. exitcode=1
  216. echo as_func_ret_success failed.
  217. fi
  218.  
  219. if as_func_ret_failure; then
  220. exitcode=1
  221. echo as_func_ret_failure succeeded.
  222. fi
  223.  
  224. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  225. :
  226. else
  227. exitcode=1
  228. echo positional parameters were not saved.
  229. fi
  230.  
  231. test \$exitcode = 0) || { (exit 1); exit 1; }
  232.  
  233. (
  234. as_lineno_1=\$LINENO
  235. as_lineno_2=\$LINENO
  236. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  237. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  238. ") 2> /dev/null; then
  239. :
  240. else
  241. as_candidate_shells=
  242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  243. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  244. do
  245. IFS=$as_save_IFS
  246. test -z "$as_dir" && as_dir=.
  247. case $as_dir in
  248. /*)
  249. for as_base in sh bash ksh sh5; do
  250. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  251. done;;
  252. esac
  253. done
  254. IFS=$as_save_IFS
  255.  
  256.  
  257. for as_shell in $as_candidate_shells $SHELL; do
  258. # Try only shells that exist, to save several forks.
  259. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  260. { ("$as_shell") 2> /dev/null <<\_ASEOF
  261. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  262. emulate sh
  263. NULLCMD=:
  264. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  265. # is contrary to our usage. Disable this feature.
  266. alias -g '${1+"$@"}'='"$@"'
  267. setopt NO_GLOB_SUBST
  268. else
  269. case `(set -o) 2>/dev/null` in
  270. *posix*) set -o posix ;;
  271. esac
  272.  
  273. fi
  274.  
  275.  
  276. :
  277. _ASEOF
  278. }; then
  279. CONFIG_SHELL=$as_shell
  280. as_have_required=yes
  281. if { "$as_shell" 2> /dev/null <<\_ASEOF
  282. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  283. emulate sh
  284. NULLCMD=:
  285. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  286. # is contrary to our usage. Disable this feature.
  287. alias -g '${1+"$@"}'='"$@"'
  288. setopt NO_GLOB_SUBST
  289. else
  290. case `(set -o) 2>/dev/null` in
  291. *posix*) set -o posix ;;
  292. esac
  293.  
  294. fi
  295.  
  296.  
  297. :
  298. (as_func_return () {
  299. (exit $1)
  300. }
  301. as_func_success () {
  302. as_func_return 0
  303. }
  304. as_func_failure () {
  305. as_func_return 1
  306. }
  307. as_func_ret_success () {
  308. return 0
  309. }
  310. as_func_ret_failure () {
  311. return 1
  312. }
  313.  
  314. exitcode=0
  315. if as_func_success; then
  316. :
  317. else
  318. exitcode=1
  319. echo as_func_success failed.
  320. fi
  321.  
  322. if as_func_failure; then
  323. exitcode=1
  324. echo as_func_failure succeeded.
  325. fi
  326.  
  327. if as_func_ret_success; then
  328. :
  329. else
  330. exitcode=1
  331. echo as_func_ret_success failed.
  332. fi
  333.  
  334. if as_func_ret_failure; then
  335. exitcode=1
  336. echo as_func_ret_failure succeeded.
  337. fi
  338.  
  339. if ( set x; as_func_ret_success y && test x = "$1" ); then
  340. :
  341. else
  342. exitcode=1
  343. echo positional parameters were not saved.
  344. fi
  345.  
  346. test $exitcode = 0) || { (exit 1); exit 1; }
  347.  
  348. (
  349. as_lineno_1=$LINENO
  350. as_lineno_2=$LINENO
  351. test "x$as_lineno_1" != "x$as_lineno_2" &&
  352. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  353.  
  354. _ASEOF
  355. }; then
  356. break
  357. fi
  358.  
  359. fi
  360.  
  361. done
  362.  
  363. if test "x$CONFIG_SHELL" != x; then
  364. for as_var in BASH_ENV ENV
  365. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  366. done
  367. export CONFIG_SHELL
  368. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  369. fi
  370.  
  371.  
  372. if test $as_have_required = no; then
  373. echo This script requires a shell more modern than all the
  374. echo shells that I found on your system. Please install a
  375. echo modern shell, or manually run the script under such a
  376. echo shell if you do have one.
  377. { (exit 1); exit 1; }
  378. fi
  379.  
  380.  
  381. fi
  382.  
  383. fi
  384.  
  385.  
  386.  
  387. (eval "as_func_return () {
  388. (exit \$1)
  389. }
  390. as_func_success () {
  391. as_func_return 0
  392. }
  393. as_func_failure () {
  394. as_func_return 1
  395. }
  396. as_func_ret_success () {
  397. return 0
  398. }
  399. as_func_ret_failure () {
  400. return 1
  401. }
  402.  
  403. exitcode=0
  404. if as_func_success; then
  405. :
  406. else
  407. exitcode=1
  408. echo as_func_success failed.
  409. fi
  410.  
  411. if as_func_failure; then
  412. exitcode=1
  413. echo as_func_failure succeeded.
  414. fi
  415.  
  416. if as_func_ret_success; then
  417. :
  418. else
  419. exitcode=1
  420. echo as_func_ret_success failed.
  421. fi
  422.  
  423. if as_func_ret_failure; then
  424. exitcode=1
  425. echo as_func_ret_failure succeeded.
  426. fi
  427.  
  428. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  429. :
  430. else
  431. exitcode=1
  432. echo positional parameters were not saved.
  433. fi
  434.  
  435. test \$exitcode = 0") || {
  436. echo No shell found that supports shell functions.
  437. echo Please tell bug-autoconf@gnu.org about your system,
  438. echo including any error possibly output before this message.
  439. echo This can help us improve future autoconf versions.
  440. echo Configuration will now proceed without shell functions.
  441. }
  442.  
  443.  
  444.  
  445. as_lineno_1=$LINENO
  446. as_lineno_2=$LINENO
  447. test "x$as_lineno_1" != "x$as_lineno_2" &&
  448. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  449.  
  450. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  451. # uniformly replaced by the line number. The first 'sed' inserts a
  452. # line-number line after each line using $LINENO; the second 'sed'
  453. # does the real work. The second script uses 'N' to pair each
  454. # line-number line with the line containing $LINENO, and appends
  455. # trailing '-' during substitution so that $LINENO is not a special
  456. # case at line end.
  457. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  458. # scripts with optimization help from Paolo Bonzini. Blame Lee
  459. # E. McMahon (1931-1989) for sed's syntax. :-)
  460. sed -n '
  461. p
  462. /[$]LINENO/=
  463. ' <$as_myself |
  464. sed '
  465. s/[$]LINENO.*/&-/
  466. t lineno
  467. b
  468. :lineno
  469. N
  470. :loop
  471. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  472. t loop
  473. s/-\n.*//
  474. ' >$as_me.lineno &&
  475. chmod +x "$as_me.lineno" ||
  476. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  477. { (exit 1); exit 1; }; }
  478.  
  479. # Don't try to exec as it changes $[0], causing all sort of problems
  480. # (the dirname of $[0] is not the place where we might find the
  481. # original and so on. Autoconf is especially sensitive to this).
  482. . "./$as_me.lineno"
  483. # Exit status is that of the last command.
  484. exit
  485. }
  486.  
  487.  
  488. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  489. as_dirname=dirname
  490. else
  491. as_dirname=false
  492. fi
  493.  
  494. ECHO_C= ECHO_N= ECHO_T=
  495. case `echo -n x` in
  496. -n*)
  497. case `echo 'x\c'` in
  498. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  499. *) ECHO_C='\c';;
  500. esac;;
  501. *)
  502. ECHO_N='-n';;
  503. esac
  504. if expr a : '\(a\)' >/dev/null 2>&1 &&
  505. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  506. as_expr=expr
  507. else
  508. as_expr=false
  509. fi
  510.  
  511. rm -f conf$$ conf$$.exe conf$$.file
  512. if test -d conf$$.dir; then
  513. rm -f conf$$.dir/conf$$.file
  514. else
  515. rm -f conf$$.dir
  516. mkdir conf$$.dir 2>/dev/null
  517. fi
  518. if (echo >conf$$.file) 2>/dev/null; then
  519. if ln -s conf$$.file conf$$ 2>/dev/null; then
  520. as_ln_s='ln -s'
  521. # ... but there are two gotchas:
  522. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  523. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  524. # In both cases, we have to default to `cp -p'.
  525. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  526. as_ln_s='cp -p'
  527. elif ln conf$$.file conf$$ 2>/dev/null; then
  528. as_ln_s=ln
  529. else
  530. as_ln_s='cp -p'
  531. fi
  532. else
  533. as_ln_s='cp -p'
  534. fi
  535. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  536. rmdir conf$$.dir 2>/dev/null
  537.  
  538. if mkdir -p . 2>/dev/null; then
  539. as_mkdir_p=:
  540. else
  541. test -d ./-p && rmdir ./-p
  542. as_mkdir_p=false
  543. fi
  544.  
  545. if test -x / >/dev/null 2>&1; then
  546. as_test_x='test -x'
  547. else
  548. if ls -dL / >/dev/null 2>&1; then
  549. as_ls_L_option=L
  550. else
  551. as_ls_L_option=
  552. fi
  553. as_test_x='
  554. eval sh -c '\''
  555. if test -d "$1"; then
  556. test -d "$1/.";
  557. else
  558. case $1 in
  559. -*)set "./$1";;
  560. esac;
  561. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  562. ???[sx]*):;;*)false;;esac;fi
  563. '\'' sh
  564. '
  565. fi
  566. as_executable_p=$as_test_x
  567.  
  568. # Sed expression to map a string onto a valid CPP name.
  569. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  570.  
  571. # Sed expression to map a string onto a valid variable name.
  572. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  573.  
  574.  
  575.  
  576.  
  577. # Check that we are running under the correct shell.
  578. SHELL=${CONFIG_SHELL-/bin/sh}
  579.  
  580. case X$lt_ECHO in
  581. X*--fallback-echo)
  582. # Remove one level of quotation (which was required for Make).
  583. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  584. ;;
  585. esac
  586.  
  587. ECHO=${lt_ECHO-echo}
  588. if test "X$1" = X--no-reexec; then
  589. # Discard the --no-reexec flag, and continue.
  590. shift
  591. elif test "X$1" = X--fallback-echo; then
  592. # Avoid inline document here, it may be left over
  593. :
  594. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  595. # Yippee, $ECHO works!
  596. :
  597. else
  598. # Restart under the correct shell.
  599. exec $SHELL "$0" --no-reexec ${1+"$@"}
  600. fi
  601.  
  602. if test "X$1" = X--fallback-echo; then
  603. # used as fallback echo
  604. shift
  605. cat <<_LT_EOF
  606. $*
  607. _LT_EOF
  608. exit 0
  609. fi
  610.  
  611. # The HP-UX ksh and POSIX shell print the target directory to stdout
  612. # if CDPATH is set.
  613. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  614.  
  615. if test -z "$lt_ECHO"; then
  616. if test "X${echo_test_string+set}" != Xset; then
  617. # find a string as large as possible, as long as the shell can cope with it
  618. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  619. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  620. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  621. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  622. then
  623. break
  624. fi
  625. done
  626. fi
  627.  
  628. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  629. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  630. test "X$echo_testing_string" = "X$echo_test_string"; then
  631. :
  632. else
  633. # The Solaris, AIX, and Digital Unix default echo programs unquote
  634. # backslashes. This makes it impossible to quote backslashes using
  635. # echo "$something" | sed 's/\\/\\\\/g'
  636. #
  637. # So, first we look for a working echo in the user's PATH.
  638.  
  639. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  640. for dir in $PATH /usr/ucb; do
  641. IFS="$lt_save_ifs"
  642. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  643. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  644. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  645. test "X$echo_testing_string" = "X$echo_test_string"; then
  646. ECHO="$dir/echo"
  647. break
  648. fi
  649. done
  650. IFS="$lt_save_ifs"
  651.  
  652. if test "X$ECHO" = Xecho; then
  653. # We didn't find a better echo, so look for alternatives.
  654. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  655. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  656. test "X$echo_testing_string" = "X$echo_test_string"; then
  657. # This shell has a builtin print -r that does the trick.
  658. ECHO='print -r'
  659. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  660. test "X$CONFIG_SHELL" != X/bin/ksh; then
  661. # If we have ksh, try running configure again with it.
  662. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  663. export ORIGINAL_CONFIG_SHELL
  664. CONFIG_SHELL=/bin/ksh
  665. export CONFIG_SHELL
  666. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  667. else
  668. # Try using printf.
  669. ECHO='printf %s\n'
  670. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  671. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  672. test "X$echo_testing_string" = "X$echo_test_string"; then
  673. # Cool, printf works
  674. :
  675. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  676. test "X$echo_testing_string" = 'X\t' &&
  677. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  678. test "X$echo_testing_string" = "X$echo_test_string"; then
  679. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  680. export CONFIG_SHELL
  681. SHELL="$CONFIG_SHELL"
  682. export SHELL
  683. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  684. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  685. test "X$echo_testing_string" = 'X\t' &&
  686. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  687. test "X$echo_testing_string" = "X$echo_test_string"; then
  688. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  689. else
  690. # maybe with a smaller string...
  691. prev=:
  692.  
  693. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  694. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  695. then
  696. break
  697. fi
  698. prev="$cmd"
  699. done
  700.  
  701. if test "$prev" != 'sed 50q "$0"'; then
  702. echo_test_string=`eval $prev`
  703. export echo_test_string
  704. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  705. else
  706. # Oops. We lost completely, so just stick with echo.
  707. ECHO=echo
  708. fi
  709. fi
  710. fi
  711. fi
  712. fi
  713. fi
  714.  
  715. # Copy echo and quote the copy suitably for passing to libtool from
  716. # the Makefile, instead of quoting the original, which is used later.
  717. lt_ECHO=$ECHO
  718. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  719. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  720. fi
  721.  
  722.  
  723.  
  724.  
  725. exec 7<&0 </dev/null 6>&1
  726.  
  727. # Name of the host.
  728. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  729. # so uname gets run too.
  730. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  731.  
  732. #
  733. # Initializations.
  734. #
  735. ac_default_prefix=/usr/local
  736. ac_clean_files=
  737. ac_config_libobj_dir=.
  738. LIBOBJS=
  739. cross_compiling=no
  740. subdirs=
  741. MFLAGS=
  742. MAKEFLAGS=
  743. SHELL=${CONFIG_SHELL-/bin/sh}
  744.  
  745. # Identity of this package.
  746. PACKAGE_NAME='clsync'
  747. PACKAGE_TARNAME='clsync'
  748. PACKAGE_VERSION='0.3'
  749. PACKAGE_STRING='clsync 0.3'
  750. PACKAGE_BUGREPORT='Dmitry Yu Okunev <dyokunev@ut.mephi.ru>'
  751.  
  752. ac_unique_file="sync.c"
  753. # Factoring default headers for most tests.
  754. ac_includes_default="\
  755. #include <stdio.h>
  756. #ifdef HAVE_SYS_TYPES_H
  757. # include <sys/types.h>
  758. #endif
  759. #ifdef HAVE_SYS_STAT_H
  760. # include <sys/stat.h>
  761. #endif
  762. #ifdef STDC_HEADERS
  763. # include <stdlib.h>
  764. # include <stddef.h>
  765. #else
  766. # ifdef HAVE_STDLIB_H
  767. # include <stdlib.h>
  768. # endif
  769. #endif
  770. #ifdef HAVE_STRING_H
  771. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  772. # include <memory.h>
  773. # endif
  774. # include <string.h>
  775. #endif
  776. #ifdef HAVE_STRINGS_H
  777. # include <strings.h>
  778. #endif
  779. #ifdef HAVE_INTTYPES_H
  780. # include <inttypes.h>
  781. #endif
  782. #ifdef HAVE_STDINT_H
  783. # include <stdint.h>
  784. #endif
  785. #ifdef HAVE_UNISTD_H
  786. # include <unistd.h>
  787. #endif"
  788.  
  789. ac_subst_vars='am__EXEEXT_FALSE
  790. am__EXEEXT_TRUE
  791. LTLIBOBJS
  792. LIBOBJS
  793. AM_CPPFLAGS
  794. HAVE_LIBCGROUP_FALSE
  795. HAVE_LIBCGROUP_TRUE
  796. HAVE_TRE_FALSE
  797. HAVE_TRE_TRUE
  798. HAVE_SECCOMP_FALSE
  799. HAVE_SECCOMP_TRUE
  800. HAVE_UNSHARE_FALSE
  801. HAVE_UNSHARE_TRUE
  802. HAVE_PIVOTROOT_FALSE
  803. HAVE_PIVOTROOT_TRUE
  804. HAVE_GETMNTENT_FALSE
  805. HAVE_GETMNTENT_TRUE
  806. HAVE_CAPABILITIES_FALSE
  807. HAVE_CAPABILITIES_TRUE
  808. HAVE_BACKTRACE_FALSE
  809. HAVE_BACKTRACE_TRUE
  810. HAVE_DTRACEPIPE_FALSE
  811. HAVE_DTRACEPIPE_TRUE
  812. HAVE_GIO_FALSE
  813. HAVE_GIO_TRUE
  814. HAVE_BSM_FALSE
  815. HAVE_BSM_TRUE
  816. HAVE_FANOTIFY_FALSE
  817. HAVE_FANOTIFY_TRUE
  818. INOTIFY_OLD_FALSE
  819. INOTIFY_OLD_TRUE
  820. HAVE_INOTIFY_FALSE
  821. HAVE_INOTIFY_TRUE
  822. HAVE_KQUEUE_FALSE
  823. HAVE_KQUEUE_TRUE
  824. GIO_LIBS
  825. GIO_CFLAGS
  826. HLLOCKS_FALSE
  827. HLLOCKS_TRUE
  828. LIBCLSYNC_FALSE
  829. LIBCLSYNC_TRUE
  830. SOCKET_FALSE
  831. SOCKET_TRUE
  832. GLIB_LIBS
  833. GLIB_CFLAGS
  834. PKG_CONFIG_LIBDIR
  835. PKG_CONFIG_PATH
  836. PKG_CONFIG
  837. CLSYNC_FALSE
  838. CLSYNC_TRUE
  839. PTHREAD_CFLAGS
  840. PTHREAD_LIBS
  841. PTHREAD_CC
  842. ax_pthread_config
  843. pkgconfigdir
  844. CPP
  845. OTOOL64
  846. OTOOL
  847. LIPO
  848. NMEDIT
  849. DSYMUTIL
  850. lt_ECHO
  851. RANLIB
  852. AR
  853. OBJDUMP
  854. LN_S
  855. NM
  856. ac_ct_DUMPBIN
  857. DUMPBIN
  858. LD
  859. FGREP
  860. EGREP
  861. GREP
  862. SED
  863. host_os
  864. host_vendor
  865. host_cpu
  866. host
  867. build_os
  868. build_vendor
  869. build_cpu
  870. build
  871. LIBTOOL
  872. am__fastdepCC_FALSE
  873. am__fastdepCC_TRUE
  874. CCDEPMODE
  875. AMDEPBACKSLASH
  876. AMDEP_FALSE
  877. AMDEP_TRUE
  878. am__quote
  879. am__include
  880. DEPDIR
  881. OBJEXT
  882. EXEEXT
  883. ac_ct_CC
  884. CPPFLAGS
  885. LDFLAGS
  886. CFLAGS
  887. CC
  888. am__untar
  889. am__tar
  890. AMTAR
  891. am__leading_dot
  892. SET_MAKE
  893. AWK
  894. mkdir_p
  895. MKDIR_P
  896. INSTALL_STRIP_PROGRAM
  897. STRIP
  898. install_sh
  899. MAKEINFO
  900. AUTOHEADER
  901. AUTOMAKE
  902. AUTOCONF
  903. ACLOCAL
  904. VERSION
  905. PACKAGE
  906. CYGPATH_W
  907. am__isrc
  908. INSTALL_DATA
  909. INSTALL_SCRIPT
  910. INSTALL_PROGRAM
  911. target_alias
  912. host_alias
  913. build_alias
  914. LIBS
  915. ECHO_T
  916. ECHO_N
  917. ECHO_C
  918. DEFS
  919. mandir
  920. localedir
  921. libdir
  922. psdir
  923. pdfdir
  924. dvidir
  925. htmldir
  926. infodir
  927. docdir
  928. oldincludedir
  929. includedir
  930. localstatedir
  931. sharedstatedir
  932. sysconfdir
  933. datadir
  934. datarootdir
  935. libexecdir
  936. sbindir
  937. bindir
  938. program_transform_name
  939. prefix
  940. exec_prefix
  941. PACKAGE_BUGREPORT
  942. PACKAGE_STRING
  943. PACKAGE_VERSION
  944. PACKAGE_TARNAME
  945. PACKAGE_NAME
  946. PATH_SEPARATOR
  947. SHELL'
  948. ac_subst_files=''
  949. ac_user_opts='
  950. enable_option_checking
  951. enable_dependency_tracking
  952. enable_shared
  953. enable_static
  954. with_pic
  955. enable_fast_install
  956. with_gnu_ld
  957. enable_libtool_lock
  958. with_pkgconfigdir
  959. enable_clsync
  960. enable_cluster
  961. with_mhash
  962. enable_socket
  963. enable_socket_library
  964. enable_unshare
  965. enable_highload_locks
  966. enable_debug
  967. enable_paranoid
  968. with_libcgroup
  969. with_capabilities
  970. with_kqueue
  971. with_inotify
  972. with_gio
  973. with_bsm
  974. with_libseccomp
  975. '
  976. ac_precious_vars='build_alias
  977. host_alias
  978. target_alias
  979. CC
  980. CFLAGS
  981. LDFLAGS
  982. LIBS
  983. CPPFLAGS
  984. CPP
  985. PKG_CONFIG
  986. PKG_CONFIG_PATH
  987. PKG_CONFIG_LIBDIR
  988. GLIB_CFLAGS
  989. GLIB_LIBS
  990. GIO_CFLAGS
  991. GIO_LIBS'
  992.  
  993.  
  994. # Initialize some variables set by options.
  995. ac_init_help=
  996. ac_init_version=false
  997. ac_unrecognized_opts=
  998. ac_unrecognized_sep=
  999. # The variables have the same names as the options, with
  1000. # dashes changed to underlines.
  1001. cache_file=/dev/null
  1002. exec_prefix=NONE
  1003. no_create=
  1004. no_recursion=
  1005. prefix=NONE
  1006. program_prefix=NONE
  1007. program_suffix=NONE
  1008. program_transform_name=s,x,x,
  1009. silent=
  1010. site=
  1011. srcdir=
  1012. verbose=
  1013. x_includes=NONE
  1014. x_libraries=NONE
  1015.  
  1016. # Installation directory options.
  1017. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1018. # and all the variables that are supposed to be based on exec_prefix
  1019. # by default will actually change.
  1020. # Use braces instead of parens because sh, perl, etc. also accept them.
  1021. # (The list follows the same order as the GNU Coding Standards.)
  1022. bindir='${exec_prefix}/bin'
  1023. sbindir='${exec_prefix}/sbin'
  1024. libexecdir='${exec_prefix}/libexec'
  1025. datarootdir='${prefix}/share'
  1026. datadir='${datarootdir}'
  1027. sysconfdir='${prefix}/etc'
  1028. sharedstatedir='${prefix}/com'
  1029. localstatedir='${prefix}/var'
  1030. includedir='${prefix}/include'
  1031. oldincludedir='/usr/include'
  1032. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  1033. infodir='${datarootdir}/info'
  1034. htmldir='${docdir}'
  1035. dvidir='${docdir}'
  1036. pdfdir='${docdir}'
  1037. psdir='${docdir}'
  1038. libdir='${exec_prefix}/lib'
  1039. localedir='${datarootdir}/locale'
  1040. mandir='${datarootdir}/man'
  1041.  
  1042. ac_prev=
  1043. ac_dashdash=
  1044. for ac_option
  1045. do
  1046. # If the previous option needs an argument, assign it.
  1047. if test -n "$ac_prev"; then
  1048. eval $ac_prev=\$ac_option
  1049. ac_prev=
  1050. continue
  1051. fi
  1052.  
  1053. case $ac_option in
  1054. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1055. *) ac_optarg=yes ;;
  1056. esac
  1057.  
  1058. # Accept the important Cygnus configure options, so we can diagnose typos.
  1059.  
  1060. case $ac_dashdash$ac_option in
  1061. --)
  1062. ac_dashdash=yes ;;
  1063.  
  1064. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1065. ac_prev=bindir ;;
  1066. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1067. bindir=$ac_optarg ;;
  1068.  
  1069. -build | --build | --buil | --bui | --bu)
  1070. ac_prev=build_alias ;;
  1071. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1072. build_alias=$ac_optarg ;;
  1073.  
  1074. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1075. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1076. ac_prev=cache_file ;;
  1077. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1078. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1079. cache_file=$ac_optarg ;;
  1080.  
  1081. --config-cache | -C)
  1082. cache_file=config.cache ;;
  1083.  
  1084. -datadir | --datadir | --datadi | --datad)
  1085. ac_prev=datadir ;;
  1086. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1087. datadir=$ac_optarg ;;
  1088.  
  1089. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1090. | --dataroo | --dataro | --datar)
  1091. ac_prev=datarootdir ;;
  1092. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1093. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1094. datarootdir=$ac_optarg ;;
  1095.  
  1096. -disable-* | --disable-*)
  1097. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1098. # Reject names that are not valid shell variable names.
  1099. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1100. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1101. { (exit 1); exit 1; }; }
  1102. ac_useropt_orig=$ac_useropt
  1103. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1104. case $ac_user_opts in
  1105. *"
  1106. "enable_$ac_useropt"
  1107. "*) ;;
  1108. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1109. ac_unrecognized_sep=', ';;
  1110. esac
  1111. eval enable_$ac_useropt=no ;;
  1112.  
  1113. -docdir | --docdir | --docdi | --doc | --do)
  1114. ac_prev=docdir ;;
  1115. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1116. docdir=$ac_optarg ;;
  1117.  
  1118. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1119. ac_prev=dvidir ;;
  1120. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1121. dvidir=$ac_optarg ;;
  1122.  
  1123. -enable-* | --enable-*)
  1124. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1125. # Reject names that are not valid shell variable names.
  1126. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1127. { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
  1128. { (exit 1); exit 1; }; }
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "enable_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval enable_$ac_useropt=\$ac_optarg ;;
  1139.  
  1140. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1141. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1142. | --exec | --exe | --ex)
  1143. ac_prev=exec_prefix ;;
  1144. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1145. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1146. | --exec=* | --exe=* | --ex=*)
  1147. exec_prefix=$ac_optarg ;;
  1148.  
  1149. -gas | --gas | --ga | --g)
  1150. # Obsolete; use --with-gas.
  1151. with_gas=yes ;;
  1152.  
  1153. -help | --help | --hel | --he | -h)
  1154. ac_init_help=long ;;
  1155. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1156. ac_init_help=recursive ;;
  1157. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1158. ac_init_help=short ;;
  1159.  
  1160. -host | --host | --hos | --ho)
  1161. ac_prev=host_alias ;;
  1162. -host=* | --host=* | --hos=* | --ho=*)
  1163. host_alias=$ac_optarg ;;
  1164.  
  1165. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1166. ac_prev=htmldir ;;
  1167. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1168. | --ht=*)
  1169. htmldir=$ac_optarg ;;
  1170.  
  1171. -includedir | --includedir | --includedi | --included | --include \
  1172. | --includ | --inclu | --incl | --inc)
  1173. ac_prev=includedir ;;
  1174. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1175. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1176. includedir=$ac_optarg ;;
  1177.  
  1178. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1179. ac_prev=infodir ;;
  1180. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1181. infodir=$ac_optarg ;;
  1182.  
  1183. -libdir | --libdir | --libdi | --libd)
  1184. ac_prev=libdir ;;
  1185. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1186. libdir=$ac_optarg ;;
  1187.  
  1188. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1189. | --libexe | --libex | --libe)
  1190. ac_prev=libexecdir ;;
  1191. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1192. | --libexe=* | --libex=* | --libe=*)
  1193. libexecdir=$ac_optarg ;;
  1194.  
  1195. -localedir | --localedir | --localedi | --localed | --locale)
  1196. ac_prev=localedir ;;
  1197. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1198. localedir=$ac_optarg ;;
  1199.  
  1200. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1201. | --localstate | --localstat | --localsta | --localst | --locals)
  1202. ac_prev=localstatedir ;;
  1203. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1204. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1205. localstatedir=$ac_optarg ;;
  1206.  
  1207. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1208. ac_prev=mandir ;;
  1209. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1210. mandir=$ac_optarg ;;
  1211.  
  1212. -nfp | --nfp | --nf)
  1213. # Obsolete; use --without-fp.
  1214. with_fp=no ;;
  1215.  
  1216. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1217. | --no-cr | --no-c | -n)
  1218. no_create=yes ;;
  1219.  
  1220. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1221. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1222. no_recursion=yes ;;
  1223.  
  1224. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1225. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1226. | --oldin | --oldi | --old | --ol | --o)
  1227. ac_prev=oldincludedir ;;
  1228. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1229. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1230. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1231. oldincludedir=$ac_optarg ;;
  1232.  
  1233. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1234. ac_prev=prefix ;;
  1235. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1236. prefix=$ac_optarg ;;
  1237.  
  1238. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1239. | --program-pre | --program-pr | --program-p)
  1240. ac_prev=program_prefix ;;
  1241. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1242. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1243. program_prefix=$ac_optarg ;;
  1244.  
  1245. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1246. | --program-suf | --program-su | --program-s)
  1247. ac_prev=program_suffix ;;
  1248. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1249. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1250. program_suffix=$ac_optarg ;;
  1251.  
  1252. -program-transform-name | --program-transform-name \
  1253. | --program-transform-nam | --program-transform-na \
  1254. | --program-transform-n | --program-transform- \
  1255. | --program-transform | --program-transfor \
  1256. | --program-transfo | --program-transf \
  1257. | --program-trans | --program-tran \
  1258. | --progr-tra | --program-tr | --program-t)
  1259. ac_prev=program_transform_name ;;
  1260. -program-transform-name=* | --program-transform-name=* \
  1261. | --program-transform-nam=* | --program-transform-na=* \
  1262. | --program-transform-n=* | --program-transform-=* \
  1263. | --program-transform=* | --program-transfor=* \
  1264. | --program-transfo=* | --program-transf=* \
  1265. | --program-trans=* | --program-tran=* \
  1266. | --progr-tra=* | --program-tr=* | --program-t=*)
  1267. program_transform_name=$ac_optarg ;;
  1268.  
  1269. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1270. ac_prev=pdfdir ;;
  1271. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1272. pdfdir=$ac_optarg ;;
  1273.  
  1274. -psdir | --psdir | --psdi | --psd | --ps)
  1275. ac_prev=psdir ;;
  1276. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1277. psdir=$ac_optarg ;;
  1278.  
  1279. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1280. | -silent | --silent | --silen | --sile | --sil)
  1281. silent=yes ;;
  1282.  
  1283. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1284. ac_prev=sbindir ;;
  1285. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1286. | --sbi=* | --sb=*)
  1287. sbindir=$ac_optarg ;;
  1288.  
  1289. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1290. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1291. | --sharedst | --shareds | --shared | --share | --shar \
  1292. | --sha | --sh)
  1293. ac_prev=sharedstatedir ;;
  1294. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1295. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1296. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1297. | --sha=* | --sh=*)
  1298. sharedstatedir=$ac_optarg ;;
  1299.  
  1300. -site | --site | --sit)
  1301. ac_prev=site ;;
  1302. -site=* | --site=* | --sit=*)
  1303. site=$ac_optarg ;;
  1304.  
  1305. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1306. ac_prev=srcdir ;;
  1307. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1308. srcdir=$ac_optarg ;;
  1309.  
  1310. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1311. | --syscon | --sysco | --sysc | --sys | --sy)
  1312. ac_prev=sysconfdir ;;
  1313. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1314. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1315. sysconfdir=$ac_optarg ;;
  1316.  
  1317. -target | --target | --targe | --targ | --tar | --ta | --t)
  1318. ac_prev=target_alias ;;
  1319. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1320. target_alias=$ac_optarg ;;
  1321.  
  1322. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1323. verbose=yes ;;
  1324.  
  1325. -version | --version | --versio | --versi | --vers | -V)
  1326. ac_init_version=: ;;
  1327.  
  1328. -with-* | --with-*)
  1329. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1330. # Reject names that are not valid shell variable names.
  1331. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1332. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1333. { (exit 1); exit 1; }; }
  1334. ac_useropt_orig=$ac_useropt
  1335. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1336. case $ac_user_opts in
  1337. *"
  1338. "with_$ac_useropt"
  1339. "*) ;;
  1340. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1341. ac_unrecognized_sep=', ';;
  1342. esac
  1343. eval with_$ac_useropt=\$ac_optarg ;;
  1344.  
  1345. -without-* | --without-*)
  1346. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1347. # Reject names that are not valid shell variable names.
  1348. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1349. { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
  1350. { (exit 1); exit 1; }; }
  1351. ac_useropt_orig=$ac_useropt
  1352. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1353. case $ac_user_opts in
  1354. *"
  1355. "with_$ac_useropt"
  1356. "*) ;;
  1357. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1358. ac_unrecognized_sep=', ';;
  1359. esac
  1360. eval with_$ac_useropt=no ;;
  1361.  
  1362. --x)
  1363. # Obsolete; use --with-x.
  1364. with_x=yes ;;
  1365.  
  1366. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1367. | --x-incl | --x-inc | --x-in | --x-i)
  1368. ac_prev=x_includes ;;
  1369. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1370. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1371. x_includes=$ac_optarg ;;
  1372.  
  1373. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1374. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1375. ac_prev=x_libraries ;;
  1376. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1377. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1378. x_libraries=$ac_optarg ;;
  1379.  
  1380. -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
  1381. Try \`$0 --help' for more information." >&2
  1382. { (exit 1); exit 1; }; }
  1383. ;;
  1384.  
  1385. *=*)
  1386. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1387. # Reject names that are not valid shell variable names.
  1388. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1389. { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1390. { (exit 1); exit 1; }; }
  1391. eval $ac_envvar=\$ac_optarg
  1392. export $ac_envvar ;;
  1393.  
  1394. *)
  1395. # FIXME: should be removed in autoconf 3.0.
  1396. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1397. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1398. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1399. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1400. ;;
  1401.  
  1402. esac
  1403. done
  1404.  
  1405. if test -n "$ac_prev"; then
  1406. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1407. { $as_echo "$as_me: error: missing argument to $ac_option" >&2
  1408. { (exit 1); exit 1; }; }
  1409. fi
  1410.  
  1411. if test -n "$ac_unrecognized_opts"; then
  1412. case $enable_option_checking in
  1413. no) ;;
  1414. fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
  1415. { (exit 1); exit 1; }; } ;;
  1416. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1417. esac
  1418. fi
  1419.  
  1420. # Check all directory arguments for consistency.
  1421. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1422. datadir sysconfdir sharedstatedir localstatedir includedir \
  1423. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1424. libdir localedir mandir
  1425. do
  1426. eval ac_val=\$$ac_var
  1427. # Remove trailing slashes.
  1428. case $ac_val in
  1429. */ )
  1430. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1431. eval $ac_var=\$ac_val;;
  1432. esac
  1433. # Be sure to have absolute directory names.
  1434. case $ac_val in
  1435. [\\/$]* | ?:[\\/]* ) continue;;
  1436. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1437. esac
  1438. { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1439. { (exit 1); exit 1; }; }
  1440. done
  1441.  
  1442. # There might be people who depend on the old broken behavior: `$host'
  1443. # used to hold the argument of --host etc.
  1444. # FIXME: To remove some day.
  1445. build=$build_alias
  1446. host=$host_alias
  1447. target=$target_alias
  1448.  
  1449. # FIXME: To remove some day.
  1450. if test "x$host_alias" != x; then
  1451. if test "x$build_alias" = x; then
  1452. cross_compiling=maybe
  1453. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1454. If a cross compiler is detected then cross compile mode will be used." >&2
  1455. elif test "x$build_alias" != "x$host_alias"; then
  1456. cross_compiling=yes
  1457. fi
  1458. fi
  1459.  
  1460. ac_tool_prefix=
  1461. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1462.  
  1463. test "$silent" = yes && exec 6>/dev/null
  1464.  
  1465.  
  1466. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1467. ac_ls_di=`ls -di .` &&
  1468. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1469. { $as_echo "$as_me: error: working directory cannot be determined" >&2
  1470. { (exit 1); exit 1; }; }
  1471. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1472. { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
  1473. { (exit 1); exit 1; }; }
  1474.  
  1475.  
  1476. # Find the source files, if location was not specified.
  1477. if test -z "$srcdir"; then
  1478. ac_srcdir_defaulted=yes
  1479. # Try the directory containing this script, then the parent directory.
  1480. ac_confdir=`$as_dirname -- "$as_myself" ||
  1481. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1482. X"$as_myself" : 'X\(//\)[^/]' \| \
  1483. X"$as_myself" : 'X\(//\)$' \| \
  1484. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1485. $as_echo X"$as_myself" |
  1486. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1487. s//\1/
  1488. q
  1489. }
  1490. /^X\(\/\/\)[^/].*/{
  1491. s//\1/
  1492. q
  1493. }
  1494. /^X\(\/\/\)$/{
  1495. s//\1/
  1496. q
  1497. }
  1498. /^X\(\/\).*/{
  1499. s//\1/
  1500. q
  1501. }
  1502. s/.*/./; q'`
  1503. srcdir=$ac_confdir
  1504. if test ! -r "$srcdir/$ac_unique_file"; then
  1505. srcdir=..
  1506. fi
  1507. else
  1508. ac_srcdir_defaulted=no
  1509. fi
  1510. if test ! -r "$srcdir/$ac_unique_file"; then
  1511. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1512. { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1513. { (exit 1); exit 1; }; }
  1514. fi
  1515. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1516. ac_abs_confdir=`(
  1517. cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
  1518. { (exit 1); exit 1; }; }
  1519. pwd)`
  1520. # When building in place, set srcdir=.
  1521. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1522. srcdir=.
  1523. fi
  1524. # Remove unnecessary trailing slashes from srcdir.
  1525. # Double slashes in file names in object file debugging info
  1526. # mess up M-x gdb in Emacs.
  1527. case $srcdir in
  1528. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1529. esac
  1530. for ac_var in $ac_precious_vars; do
  1531. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1532. eval ac_env_${ac_var}_value=\$${ac_var}
  1533. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1534. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1535. done
  1536.  
  1537. #
  1538. # Report the --help message.
  1539. #
  1540. if test "$ac_init_help" = "long"; then
  1541. # Omit some internal or obsolete options to make the list less imposing.
  1542. # This message is too long to be a string in the A/UX 3.1 sh.
  1543. cat <<_ACEOF
  1544. \`configure' configures clsync 0.3 to adapt to many kinds of systems.
  1545.  
  1546. Usage: $0 [OPTION]... [VAR=VALUE]...
  1547.  
  1548. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1549. VAR=VALUE. See below for descriptions of some of the useful variables.
  1550.  
  1551. Defaults for the options are specified in brackets.
  1552.  
  1553. Configuration:
  1554. -h, --help display this help and exit
  1555. --help=short display options specific to this package
  1556. --help=recursive display the short help of all the included packages
  1557. -V, --version display version information and exit
  1558. -q, --quiet, --silent do not print \`checking...' messages
  1559. --cache-file=FILE cache test results in FILE [disabled]
  1560. -C, --config-cache alias for \`--cache-file=config.cache'
  1561. -n, --no-create do not create output files
  1562. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1563.  
  1564. Installation directories:
  1565. --prefix=PREFIX install architecture-independent files in PREFIX
  1566. [$ac_default_prefix]
  1567. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1568. [PREFIX]
  1569.  
  1570. By default, \`make install' will install all the files in
  1571. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1572. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1573. for instance \`--prefix=\$HOME'.
  1574.  
  1575. For better control, use the options below.
  1576.  
  1577. Fine tuning of the installation directories:
  1578. --bindir=DIR user executables [EPREFIX/bin]
  1579. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1580. --libexecdir=DIR program executables [EPREFIX/libexec]
  1581. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1582. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1583. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1584. --libdir=DIR object code libraries [EPREFIX/lib]
  1585. --includedir=DIR C header files [PREFIX/include]
  1586. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1587. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1588. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1589. --infodir=DIR info documentation [DATAROOTDIR/info]
  1590. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1591. --mandir=DIR man documentation [DATAROOTDIR/man]
  1592. --docdir=DIR documentation root [DATAROOTDIR/doc/clsync]
  1593. --htmldir=DIR html documentation [DOCDIR]
  1594. --dvidir=DIR dvi documentation [DOCDIR]
  1595. --pdfdir=DIR pdf documentation [DOCDIR]
  1596. --psdir=DIR ps documentation [DOCDIR]
  1597. _ACEOF
  1598.  
  1599. cat <<\_ACEOF
  1600.  
  1601. Program names:
  1602. --program-prefix=PREFIX prepend PREFIX to installed program names
  1603. --program-suffix=SUFFIX append SUFFIX to installed program names
  1604. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1605.  
  1606. System types:
  1607. --build=BUILD configure for building on BUILD [guessed]
  1608. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1609. _ACEOF
  1610. fi
  1611.  
  1612. if test -n "$ac_init_help"; then
  1613. case $ac_init_help in
  1614. short | recursive ) echo "Configuration of clsync 0.3:";;
  1615. esac
  1616. cat <<\_ACEOF
  1617.  
  1618. Optional Features:
  1619. --disable-option-checking ignore unrecognized --enable/--with options
  1620. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1621. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1622. --disable-dependency-tracking speeds up one-time build
  1623. --enable-dependency-tracking do not reject slow dependency extractors
  1624. --enable-shared[=PKGS] build shared libraries [default=yes]
  1625. --enable-static[=PKGS] build static libraries [default=yes]
  1626. --enable-fast-install[=PKGS]
  1627. optimize for fast installation [default=yes]
  1628. --disable-libtool-lock avoid locking (might break parallel builds)
  1629. --disable-clsync do not build clsync binary, default: build clsync
  1630. --enable-cluster enable clustering support (not yet implemented),
  1631. default: no
  1632. --enable-socket enable control socket support, default: no
  1633. --enable-socket-library build libclsync socket library, default: no
  1634. --disable-unshare disable support of unshare(), default: enabled
  1635. --enable-highload-locks enable locks for high loaded instances (it requires
  1636. more CPU, but it's faster) for --thread-splitting
  1637. not, well, tested,, can, cause, deadlocks, with, 100%, CPU, utilization,
  1638. default: no
  1639. --enable-debug enable debugging support, default: yes; value: no,
  1640. yes, force
  1641. --enable-paranoid set paranoid level of code security, default: 1,
  1642. values: 0, 1, 2
  1643.  
  1644. Optional Packages:
  1645. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1646. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1647. --with-pic try to use only PIC/non-PIC objects [default=use
  1648. both]
  1649. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1650. --with-pkgconfigdir pkg-config installation directory
  1651. ['${libdir}/pkgconfig']
  1652. --with-mhash use mhash instead of internal version of hash algo,
  1653. default: enabled
  1654. --with-libcgroup Enable cgroup support via libcgroup; values: no,
  1655. check, yes; default: check
  1656. --with-capabilities Enable linux capabilities support; values: no,
  1657. check, yes; default: check
  1658. --with-kqueue Enable kqueue support; values: no, native, lib,
  1659. check; default: check
  1660. --with-inotify Enable inotify support; values: no, native, lib,
  1661. check; default: check
  1662. --with-gio Enable GIO support as FS monitor subsystem; values:
  1663. no, lib, check; default: check
  1664. --with-bsm Enable BSM (Sun/*BSD audit) support as FS monitor
  1665. subsystem; values: no, lib, check; default: check
  1666. --with-libseccomp Enable seccomp support be able to forbid extra
  1667. syscalls; values: no, check, yes; default: check
  1668.  
  1669. Some influential environment variables:
  1670. CC C compiler command
  1671. CFLAGS C compiler flags
  1672. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1673. nonstandard directory <lib dir>
  1674. LIBS libraries to pass to the linker, e.g. -l<library>
  1675. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1676. you have headers in a nonstandard directory <include dir>
  1677. CPP C preprocessor
  1678. PKG_CONFIG path to pkg-config utility
  1679. PKG_CONFIG_PATH
  1680. directories to add to pkg-config's search path
  1681. PKG_CONFIG_LIBDIR
  1682. path overriding pkg-config's built-in search path
  1683. GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
  1684. GLIB_LIBS linker flags for GLIB, overriding pkg-config
  1685. GIO_CFLAGS C compiler flags for GIO, overriding pkg-config
  1686. GIO_LIBS linker flags for GIO, overriding pkg-config
  1687.  
  1688. Use these variables to override the choices made by `configure' or to help
  1689. it to find libraries and programs with nonstandard names/locations.
  1690.  
  1691. Report bugs to <Dmitry Yu Okunev <dyokunev@ut.mephi.ru>>.
  1692. _ACEOF
  1693. ac_status=$?
  1694. fi
  1695.  
  1696. if test "$ac_init_help" = "recursive"; then
  1697. # If there are subdirs, report their specific --help.
  1698. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1699. test -d "$ac_dir" ||
  1700. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1701. continue
  1702. ac_builddir=.
  1703.  
  1704. case "$ac_dir" in
  1705. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1706. *)
  1707. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1708. # A ".." for each directory in $ac_dir_suffix.
  1709. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1710. case $ac_top_builddir_sub in
  1711. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1712. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1713. esac ;;
  1714. esac
  1715. ac_abs_top_builddir=$ac_pwd
  1716. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1717. # for backward compatibility:
  1718. ac_top_builddir=$ac_top_build_prefix
  1719.  
  1720. case $srcdir in
  1721. .) # We are building in place.
  1722. ac_srcdir=.
  1723. ac_top_srcdir=$ac_top_builddir_sub
  1724. ac_abs_top_srcdir=$ac_pwd ;;
  1725. [\\/]* | ?:[\\/]* ) # Absolute name.
  1726. ac_srcdir=$srcdir$ac_dir_suffix;
  1727. ac_top_srcdir=$srcdir
  1728. ac_abs_top_srcdir=$srcdir ;;
  1729. *) # Relative name.
  1730. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1731. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1732. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1733. esac
  1734. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1735.  
  1736. cd "$ac_dir" || { ac_status=$?; continue; }
  1737. # Check for guested configure.
  1738. if test -f "$ac_srcdir/configure.gnu"; then
  1739. echo &&
  1740. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1741. elif test -f "$ac_srcdir/configure"; then
  1742. echo &&
  1743. $SHELL "$ac_srcdir/configure" --help=recursive
  1744. else
  1745. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1746. fi || ac_status=$?
  1747. cd "$ac_pwd" || { ac_status=$?; break; }
  1748. done
  1749. fi
  1750.  
  1751. test -n "$ac_init_help" && exit $ac_status
  1752. if $ac_init_version; then
  1753. cat <<\_ACEOF
  1754. clsync configure 0.3
  1755. generated by GNU Autoconf 2.63
  1756.  
  1757. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1758. 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  1759. This configure script is free software; the Free Software Foundation
  1760. gives unlimited permission to copy, distribute and modify it.
  1761. _ACEOF
  1762. exit
  1763. fi
  1764. cat >config.log <<_ACEOF
  1765. This file contains any messages produced by compilers while
  1766. running configure, to aid debugging if configure makes a mistake.
  1767.  
  1768. It was created by clsync $as_me 0.3, which was
  1769. generated by GNU Autoconf 2.63. Invocation command line was
  1770.  
  1771. $ $0 $@
  1772.  
  1773. _ACEOF
  1774. exec 5>>config.log
  1775. {
  1776. cat <<_ASUNAME
  1777. ## --------- ##
  1778. ## Platform. ##
  1779. ## --------- ##
  1780.  
  1781. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1782. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1783. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1784. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1785. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1786.  
  1787. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1788. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1789.  
  1790. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1791. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1792. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1793. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1794. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1795. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1796. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1797.  
  1798. _ASUNAME
  1799.  
  1800. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1801. for as_dir in $PATH
  1802. do
  1803. IFS=$as_save_IFS
  1804. test -z "$as_dir" && as_dir=.
  1805. $as_echo "PATH: $as_dir"
  1806. done
  1807. IFS=$as_save_IFS
  1808.  
  1809. } >&5
  1810.  
  1811. cat >&5 <<_ACEOF
  1812.  
  1813.  
  1814. ## ----------- ##
  1815. ## Core tests. ##
  1816. ## ----------- ##
  1817.  
  1818. _ACEOF
  1819.  
  1820.  
  1821. # Keep a trace of the command line.
  1822. # Strip out --no-create and --no-recursion so they do not pile up.
  1823. # Strip out --silent because we don't want to record it for future runs.
  1824. # Also quote any args containing shell meta-characters.
  1825. # Make two passes to allow for proper duplicate-argument suppression.
  1826. ac_configure_args=
  1827. ac_configure_args0=
  1828. ac_configure_args1=
  1829. ac_must_keep_next=false
  1830. for ac_pass in 1 2
  1831. do
  1832. for ac_arg
  1833. do
  1834. case $ac_arg in
  1835. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1836. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1837. | -silent | --silent | --silen | --sile | --sil)
  1838. continue ;;
  1839. *\'*)
  1840. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1841. esac
  1842. case $ac_pass in
  1843. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1844. 2)
  1845. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1846. if test $ac_must_keep_next = true; then
  1847. ac_must_keep_next=false # Got value, back to normal.
  1848. else
  1849. case $ac_arg in
  1850. *=* | --config-cache | -C | -disable-* | --disable-* \
  1851. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1852. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1853. | -with-* | --with-* | -without-* | --without-* | --x)
  1854. case "$ac_configure_args0 " in
  1855. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1856. esac
  1857. ;;
  1858. -* ) ac_must_keep_next=true ;;
  1859. esac
  1860. fi
  1861. ac_configure_args="$ac_configure_args '$ac_arg'"
  1862. ;;
  1863. esac
  1864. done
  1865. done
  1866. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1867. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1868.  
  1869. # When interrupted or exit'd, cleanup temporary files, and complete
  1870. # config.log. We remove comments because anyway the quotes in there
  1871. # would cause problems or look ugly.
  1872. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1873. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1874. trap 'exit_status=$?
  1875. # Save into config.log some information that might help in debugging.
  1876. {
  1877. echo
  1878.  
  1879. cat <<\_ASBOX
  1880. ## ---------------- ##
  1881. ## Cache variables. ##
  1882. ## ---------------- ##
  1883. _ASBOX
  1884. echo
  1885. # The following way of writing the cache mishandles newlines in values,
  1886. (
  1887. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1888. eval ac_val=\$$ac_var
  1889. case $ac_val in #(
  1890. *${as_nl}*)
  1891. case $ac_var in #(
  1892. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  1893. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1894. esac
  1895. case $ac_var in #(
  1896. _ | IFS | as_nl) ;; #(
  1897. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1898. *) $as_unset $ac_var ;;
  1899. esac ;;
  1900. esac
  1901. done
  1902. (set) 2>&1 |
  1903. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1904. *${as_nl}ac_space=\ *)
  1905. sed -n \
  1906. "s/'\''/'\''\\\\'\'''\''/g;
  1907. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1908. ;; #(
  1909. *)
  1910. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1911. ;;
  1912. esac |
  1913. sort
  1914. )
  1915. echo
  1916.  
  1917. cat <<\_ASBOX
  1918. ## ----------------- ##
  1919. ## Output variables. ##
  1920. ## ----------------- ##
  1921. _ASBOX
  1922. echo
  1923. for ac_var in $ac_subst_vars
  1924. do
  1925. eval ac_val=\$$ac_var
  1926. case $ac_val in
  1927. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1928. esac
  1929. $as_echo "$ac_var='\''$ac_val'\''"
  1930. done | sort
  1931. echo
  1932.  
  1933. if test -n "$ac_subst_files"; then
  1934. cat <<\_ASBOX
  1935. ## ------------------- ##
  1936. ## File substitutions. ##
  1937. ## ------------------- ##
  1938. _ASBOX
  1939. echo
  1940. for ac_var in $ac_subst_files
  1941. do
  1942. eval ac_val=\$$ac_var
  1943. case $ac_val in
  1944. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1945. esac
  1946. $as_echo "$ac_var='\''$ac_val'\''"
  1947. done | sort
  1948. echo
  1949. fi
  1950.  
  1951. if test -s confdefs.h; then
  1952. cat <<\_ASBOX
  1953. ## ----------- ##
  1954. ## confdefs.h. ##
  1955. ## ----------- ##
  1956. _ASBOX
  1957. echo
  1958. cat confdefs.h
  1959. echo
  1960. fi
  1961. test "$ac_signal" != 0 &&
  1962. $as_echo "$as_me: caught signal $ac_signal"
  1963. $as_echo "$as_me: exit $exit_status"
  1964. } >&5
  1965. rm -f core *.core core.conftest.* &&
  1966. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1967. exit $exit_status
  1968. ' 0
  1969. for ac_signal in 1 2 13 15; do
  1970. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1971. done
  1972. ac_signal=0
  1973.  
  1974. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1975. rm -f -r conftest* confdefs.h
  1976.  
  1977. # Predefined preprocessor variables.
  1978.  
  1979. cat >>confdefs.h <<_ACEOF
  1980. #define PACKAGE_NAME "$PACKAGE_NAME"
  1981. _ACEOF
  1982.  
  1983.  
  1984. cat >>confdefs.h <<_ACEOF
  1985. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1986. _ACEOF
  1987.  
  1988.  
  1989. cat >>confdefs.h <<_ACEOF
  1990. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1991. _ACEOF
  1992.  
  1993.  
  1994. cat >>confdefs.h <<_ACEOF
  1995. #define PACKAGE_STRING "$PACKAGE_STRING"
  1996. _ACEOF
  1997.  
  1998.  
  1999. cat >>confdefs.h <<_ACEOF
  2000. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2001. _ACEOF
  2002.  
  2003.  
  2004. # Let the site file select an alternate cache file if it wants to.
  2005. # Prefer an explicitly selected file to automatically selected ones.
  2006. ac_site_file1=NONE
  2007. ac_site_file2=NONE
  2008. if test -n "$CONFIG_SITE"; then
  2009. ac_site_file1=$CONFIG_SITE
  2010. elif test "x$prefix" != xNONE; then
  2011. ac_site_file1=$prefix/share/config.site
  2012. ac_site_file2=$prefix/etc/config.site
  2013. else
  2014. ac_site_file1=$ac_default_prefix/share/config.site
  2015. ac_site_file2=$ac_default_prefix/etc/config.site
  2016. fi
  2017. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2018. do
  2019. test "x$ac_site_file" = xNONE && continue
  2020. if test -r "$ac_site_file"; then
  2021. { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  2022. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2023. sed 's/^/| /' "$ac_site_file" >&5
  2024. . "$ac_site_file"
  2025. fi
  2026. done
  2027.  
  2028. if test -r "$cache_file"; then
  2029. # Some versions of bash will fail to source /dev/null (special
  2030. # files actually), so we avoid doing that.
  2031. if test -f "$cache_file"; then
  2032. { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
  2033. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2034. case $cache_file in
  2035. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2036. *) . "./$cache_file";;
  2037. esac
  2038. fi
  2039. else
  2040. { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
  2041. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2042. >$cache_file
  2043. fi
  2044.  
  2045. # Check that the precious variables saved in the cache have kept the same
  2046. # value.
  2047. ac_cache_corrupted=false
  2048. for ac_var in $ac_precious_vars; do
  2049. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2050. eval ac_new_set=\$ac_env_${ac_var}_set
  2051. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2052. eval ac_new_val=\$ac_env_${ac_var}_value
  2053. case $ac_old_set,$ac_new_set in
  2054. set,)
  2055. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2056. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2057. ac_cache_corrupted=: ;;
  2058. ,set)
  2059. { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  2060. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2061. ac_cache_corrupted=: ;;
  2062. ,);;
  2063. *)
  2064. if test "x$ac_old_val" != "x$ac_new_val"; then
  2065. # differences in whitespace do not lead to failure.
  2066. ac_old_val_w=`echo x $ac_old_val`
  2067. ac_new_val_w=`echo x $ac_new_val`
  2068. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2069. { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  2070. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2071. ac_cache_corrupted=:
  2072. else
  2073. { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2074. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2075. eval $ac_var=\$ac_old_val
  2076. fi
  2077. { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
  2078. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2079. { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
  2080. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2081. fi;;
  2082. esac
  2083. # Pass precious variables to config.status.
  2084. if test "$ac_new_set" = set; then
  2085. case $ac_new_val in
  2086. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2087. *) ac_arg=$ac_var=$ac_new_val ;;
  2088. esac
  2089. case " $ac_configure_args " in
  2090. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2091. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  2092. esac
  2093. fi
  2094. done
  2095. if $ac_cache_corrupted; then
  2096. { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2097. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2098. { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  2099. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2100. { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  2101. $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  2102. { (exit 1); exit 1; }; }
  2103. fi
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125.  
  2126.  
  2127.  
  2128.  
  2129. ac_ext=c
  2130. ac_cpp='$CPP $CPPFLAGS'
  2131. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2132. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2133. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2134.  
  2135.  
  2136.  
  2137.  
  2138. am__api_version='1.11'
  2139.  
  2140. ac_aux_dir=
  2141. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2142. if test -f "$ac_dir/install-sh"; then
  2143. ac_aux_dir=$ac_dir
  2144. ac_install_sh="$ac_aux_dir/install-sh -c"
  2145. break
  2146. elif test -f "$ac_dir/install.sh"; then
  2147. ac_aux_dir=$ac_dir
  2148. ac_install_sh="$ac_aux_dir/install.sh -c"
  2149. break
  2150. elif test -f "$ac_dir/shtool"; then
  2151. ac_aux_dir=$ac_dir
  2152. ac_install_sh="$ac_aux_dir/shtool install -c"
  2153. break
  2154. fi
  2155. done
  2156. if test -z "$ac_aux_dir"; then
  2157. { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  2158. $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  2159. { (exit 1); exit 1; }; }
  2160. fi
  2161.  
  2162. # These three variables are undocumented and unsupported,
  2163. # and are intended to be withdrawn in a future Autoconf release.
  2164. # They can cause serious problems if a builder's source tree is in a directory
  2165. # whose full name contains unusual characters.
  2166. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2167. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2168. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2169.  
  2170.  
  2171. # Find a good install program. We prefer a C program (faster),
  2172. # so one script is as good as another. But avoid the broken or
  2173. # incompatible versions:
  2174. # SysV /etc/install, /usr/sbin/install
  2175. # SunOS /usr/etc/install
  2176. # IRIX /sbin/install
  2177. # AIX /bin/install
  2178. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2179. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2180. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2181. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2182. # OS/2's system install, which has a completely different semantic
  2183. # ./install, which can be erroneously created by make from ./install.sh.
  2184. # Reject install programs that cannot install multiple files.
  2185. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  2186. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2187. if test -z "$INSTALL"; then
  2188. if test "${ac_cv_path_install+set}" = set; then
  2189. $as_echo_n "(cached) " >&6
  2190. else
  2191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2192. for as_dir in $PATH
  2193. do
  2194. IFS=$as_save_IFS
  2195. test -z "$as_dir" && as_dir=.
  2196. # Account for people who put trailing slashes in PATH elements.
  2197. case $as_dir/ in
  2198. ./ | .// | /cC/* | \
  2199. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2200. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  2201. /usr/ucb/* ) ;;
  2202. *)
  2203. # OSF1 and SCO ODT 3.0 have their own names for install.
  2204. # Don't use installbsd from OSF since it installs stuff as root
  2205. # by default.
  2206. for ac_prog in ginstall scoinst install; do
  2207. for ac_exec_ext in '' $ac_executable_extensions; do
  2208. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2209. if test $ac_prog = install &&
  2210. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2211. # AIX install. It has an incompatible calling convention.
  2212. :
  2213. elif test $ac_prog = install &&
  2214. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2215. # program-specific install script used by HP pwplus--don't use.
  2216. :
  2217. else
  2218. rm -rf conftest.one conftest.two conftest.dir
  2219. echo one > conftest.one
  2220. echo two > conftest.two
  2221. mkdir conftest.dir
  2222. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2223. test -s conftest.one && test -s conftest.two &&
  2224. test -s conftest.dir/conftest.one &&
  2225. test -s conftest.dir/conftest.two
  2226. then
  2227. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2228. break 3
  2229. fi
  2230. fi
  2231. fi
  2232. done
  2233. done
  2234. ;;
  2235. esac
  2236.  
  2237. done
  2238. IFS=$as_save_IFS
  2239.  
  2240. rm -rf conftest.one conftest.two conftest.dir
  2241.  
  2242. fi
  2243. if test "${ac_cv_path_install+set}" = set; then
  2244. INSTALL=$ac_cv_path_install
  2245. else
  2246. # As a last resort, use the slow shell script. Don't cache a
  2247. # value for INSTALL within a source directory, because that will
  2248. # break other packages using the cache if that directory is
  2249. # removed, or if the value is a relative name.
  2250. INSTALL=$ac_install_sh
  2251. fi
  2252. fi
  2253. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  2254. $as_echo "$INSTALL" >&6; }
  2255.  
  2256. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2257. # It thinks the first close brace ends the variable substitution.
  2258. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2259.  
  2260. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2261.  
  2262. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2263.  
  2264. { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  2265. $as_echo_n "checking whether build environment is sane... " >&6; }
  2266. # Just in case
  2267. sleep 1
  2268. echo timestamp > conftest.file
  2269. # Reject unsafe characters in $srcdir or the absolute working directory
  2270. # name. Accept space and tab only in the latter.
  2271. am_lf='
  2272. '
  2273. case `pwd` in
  2274. *[\\\"\#\$\&\'\`$am_lf]*)
  2275. { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
  2276. $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
  2277. { (exit 1); exit 1; }; };;
  2278. esac
  2279. case $srcdir in
  2280. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2281. { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
  2282. $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
  2283. { (exit 1); exit 1; }; };;
  2284. esac
  2285.  
  2286. # Do `set' in a subshell so we don't clobber the current shell's
  2287. # arguments. Must try -L first in case configure is actually a
  2288. # symlink; some systems play weird games with the mod time of symlinks
  2289. # (eg FreeBSD returns the mod time of the symlink's containing
  2290. # directory).
  2291. if (
  2292. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2293. if test "$*" = "X"; then
  2294. # -L didn't work.
  2295. set X `ls -t "$srcdir/configure" conftest.file`
  2296. fi
  2297. rm -f conftest.file
  2298. if test "$*" != "X $srcdir/configure conftest.file" \
  2299. && test "$*" != "X conftest.file $srcdir/configure"; then
  2300.  
  2301. # If neither matched, then we have a broken ls. This can happen
  2302. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2303. # broken ls alias from the environment. This has actually
  2304. # happened. Such a system could not be considered "sane".
  2305. { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  2306. alias in your environment" >&5
  2307. $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  2308. alias in your environment" >&2;}
  2309. { (exit 1); exit 1; }; }
  2310. fi
  2311.  
  2312. test "$2" = conftest.file
  2313. )
  2314. then
  2315. # Ok.
  2316. :
  2317. else
  2318. { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  2319. Check your system clock" >&5
  2320. $as_echo "$as_me: error: newly created file is older than distributed files!
  2321. Check your system clock" >&2;}
  2322. { (exit 1); exit 1; }; }
  2323. fi
  2324. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2325. $as_echo "yes" >&6; }
  2326. test "$program_prefix" != NONE &&
  2327. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2328. # Use a double $ so make ignores it.
  2329. test "$program_suffix" != NONE &&
  2330. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2331. # Double any \ or $.
  2332. # By default was `s,x,x', remove it if useless.
  2333. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2334. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2335.  
  2336. # expand $ac_aux_dir to an absolute path
  2337. am_aux_dir=`cd $ac_aux_dir && pwd`
  2338.  
  2339. if test x"${MISSING+set}" != xset; then
  2340. case $am_aux_dir in
  2341. *\ * | *\ *)
  2342. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2343. *)
  2344. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2345. esac
  2346. fi
  2347. # Use eval to expand $SHELL
  2348. if eval "$MISSING --run true"; then
  2349. am_missing_run="$MISSING --run "
  2350. else
  2351. am_missing_run=
  2352. { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  2353. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2354. fi
  2355.  
  2356. if test x"${install_sh}" != xset; then
  2357. case $am_aux_dir in
  2358. *\ * | *\ *)
  2359. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2360. *)
  2361. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2362. esac
  2363. fi
  2364.  
  2365. # Installed binaries are usually stripped using `strip' when the user
  2366. # run `make install-strip'. However `strip' might not be the right
  2367. # tool to use in cross-compilation environments, therefore Automake
  2368. # will honor the `STRIP' environment variable to overrule this program.
  2369. if test "$cross_compiling" != no; then
  2370. if test -n "$ac_tool_prefix"; then
  2371. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2372. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2373. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2374. $as_echo_n "checking for $ac_word... " >&6; }
  2375. if test "${ac_cv_prog_STRIP+set}" = set; then
  2376. $as_echo_n "(cached) " >&6
  2377. else
  2378. if test -n "$STRIP"; then
  2379. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2380. else
  2381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2382. for as_dir in $PATH
  2383. do
  2384. IFS=$as_save_IFS
  2385. test -z "$as_dir" && as_dir=.
  2386. for ac_exec_ext in '' $ac_executable_extensions; do
  2387. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2388. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2389. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2390. break 2
  2391. fi
  2392. done
  2393. done
  2394. IFS=$as_save_IFS
  2395.  
  2396. fi
  2397. fi
  2398. STRIP=$ac_cv_prog_STRIP
  2399. if test -n "$STRIP"; then
  2400. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  2401. $as_echo "$STRIP" >&6; }
  2402. else
  2403. { $as_echo "$as_me:$LINENO: result: no" >&5
  2404. $as_echo "no" >&6; }
  2405. fi
  2406.  
  2407.  
  2408. fi
  2409. if test -z "$ac_cv_prog_STRIP"; then
  2410. ac_ct_STRIP=$STRIP
  2411. # Extract the first word of "strip", so it can be a program name with args.
  2412. set dummy strip; ac_word=$2
  2413. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2414. $as_echo_n "checking for $ac_word... " >&6; }
  2415. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2416. $as_echo_n "(cached) " >&6
  2417. else
  2418. if test -n "$ac_ct_STRIP"; then
  2419. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2420. else
  2421. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2422. for as_dir in $PATH
  2423. do
  2424. IFS=$as_save_IFS
  2425. test -z "$as_dir" && as_dir=.
  2426. for ac_exec_ext in '' $ac_executable_extensions; do
  2427. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2428. ac_cv_prog_ac_ct_STRIP="strip"
  2429. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2430. break 2
  2431. fi
  2432. done
  2433. done
  2434. IFS=$as_save_IFS
  2435.  
  2436. fi
  2437. fi
  2438. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2439. if test -n "$ac_ct_STRIP"; then
  2440. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2441. $as_echo "$ac_ct_STRIP" >&6; }
  2442. else
  2443. { $as_echo "$as_me:$LINENO: result: no" >&5
  2444. $as_echo "no" >&6; }
  2445. fi
  2446.  
  2447. if test "x$ac_ct_STRIP" = x; then
  2448. STRIP=":"
  2449. else
  2450. case $cross_compiling:$ac_tool_warned in
  2451. yes:)
  2452. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2453. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2454. ac_tool_warned=yes ;;
  2455. esac
  2456. STRIP=$ac_ct_STRIP
  2457. fi
  2458. else
  2459. STRIP="$ac_cv_prog_STRIP"
  2460. fi
  2461.  
  2462. fi
  2463. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2464.  
  2465. { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
  2466. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2467. if test -z "$MKDIR_P"; then
  2468. if test "${ac_cv_path_mkdir+set}" = set; then
  2469. $as_echo_n "(cached) " >&6
  2470. else
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_prog in mkdir gmkdir; do
  2477. for ac_exec_ext in '' $ac_executable_extensions; do
  2478. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2479. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2480. 'mkdir (GNU coreutils) '* | \
  2481. 'mkdir (coreutils) '* | \
  2482. 'mkdir (fileutils) '4.1*)
  2483. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2484. break 3;;
  2485. esac
  2486. done
  2487. done
  2488. done
  2489. IFS=$as_save_IFS
  2490.  
  2491. fi
  2492.  
  2493. if test "${ac_cv_path_mkdir+set}" = set; then
  2494. MKDIR_P="$ac_cv_path_mkdir -p"
  2495. else
  2496. # As a last resort, use the slow shell script. Don't cache a
  2497. # value for MKDIR_P within a source directory, because that will
  2498. # break other packages using the cache if that directory is
  2499. # removed, or if the value is a relative name.
  2500. test -d ./--version && rmdir ./--version
  2501. MKDIR_P="$ac_install_sh -d"
  2502. fi
  2503. fi
  2504. { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
  2505. $as_echo "$MKDIR_P" >&6; }
  2506.  
  2507. mkdir_p="$MKDIR_P"
  2508. case $mkdir_p in
  2509. [\\/$]* | ?:[\\/]*) ;;
  2510. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2511. esac
  2512.  
  2513. for ac_prog in gawk mawk nawk awk
  2514. do
  2515. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2516. set dummy $ac_prog; ac_word=$2
  2517. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2518. $as_echo_n "checking for $ac_word... " >&6; }
  2519. if test "${ac_cv_prog_AWK+set}" = set; then
  2520. $as_echo_n "(cached) " >&6
  2521. else
  2522. if test -n "$AWK"; then
  2523. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2524. else
  2525. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2526. for as_dir in $PATH
  2527. do
  2528. IFS=$as_save_IFS
  2529. test -z "$as_dir" && as_dir=.
  2530. for ac_exec_ext in '' $ac_executable_extensions; do
  2531. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2532. ac_cv_prog_AWK="$ac_prog"
  2533. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2534. break 2
  2535. fi
  2536. done
  2537. done
  2538. IFS=$as_save_IFS
  2539.  
  2540. fi
  2541. fi
  2542. AWK=$ac_cv_prog_AWK
  2543. if test -n "$AWK"; then
  2544. { $as_echo "$as_me:$LINENO: result: $AWK" >&5
  2545. $as_echo "$AWK" >&6; }
  2546. else
  2547. { $as_echo "$as_me:$LINENO: result: no" >&5
  2548. $as_echo "no" >&6; }
  2549. fi
  2550.  
  2551.  
  2552. test -n "$AWK" && break
  2553. done
  2554.  
  2555. { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2556. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2557. set x ${MAKE-make}
  2558. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2559. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  2560. $as_echo_n "(cached) " >&6
  2561. else
  2562. cat >conftest.make <<\_ACEOF
  2563. SHELL = /bin/sh
  2564. all:
  2565. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2566. _ACEOF
  2567. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2568. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2569. *@@@%%%=?*=@@@%%%*)
  2570. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2571. *)
  2572. eval ac_cv_prog_make_${ac_make}_set=no;;
  2573. esac
  2574. rm -f conftest.make
  2575. fi
  2576. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2577. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2578. $as_echo "yes" >&6; }
  2579. SET_MAKE=
  2580. else
  2581. { $as_echo "$as_me:$LINENO: result: no" >&5
  2582. $as_echo "no" >&6; }
  2583. SET_MAKE="MAKE=${MAKE-make}"
  2584. fi
  2585.  
  2586. rm -rf .tst 2>/dev/null
  2587. mkdir .tst 2>/dev/null
  2588. if test -d .tst; then
  2589. am__leading_dot=.
  2590. else
  2591. am__leading_dot=_
  2592. fi
  2593. rmdir .tst 2>/dev/null
  2594.  
  2595. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2596. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2597. # is not polluted with repeated "-I."
  2598. am__isrc=' -I$(srcdir)'
  2599. # test to see if srcdir already configured
  2600. if test -f $srcdir/config.status; then
  2601. { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2602. $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2603. { (exit 1); exit 1; }; }
  2604. fi
  2605. fi
  2606.  
  2607. # test whether we have cygpath
  2608. if test -z "$CYGPATH_W"; then
  2609. if (cygpath --version) >/dev/null 2>/dev/null; then
  2610. CYGPATH_W='cygpath -w'
  2611. else
  2612. CYGPATH_W=echo
  2613. fi
  2614. fi
  2615.  
  2616.  
  2617. # Define the identity of the package.
  2618. PACKAGE='clsync'
  2619. VERSION='0.3'
  2620.  
  2621.  
  2622. cat >>confdefs.h <<_ACEOF
  2623. #define PACKAGE "$PACKAGE"
  2624. _ACEOF
  2625.  
  2626.  
  2627. cat >>confdefs.h <<_ACEOF
  2628. #define VERSION "$VERSION"
  2629. _ACEOF
  2630.  
  2631. # Some tools Automake needs.
  2632.  
  2633. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2634.  
  2635.  
  2636. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2637.  
  2638.  
  2639. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2640.  
  2641.  
  2642. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2643.  
  2644.  
  2645. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2646.  
  2647. # We need awk for the "check" target. The system "awk" is bad on
  2648. # some platforms.
  2649. # Always define AMTAR for backward compatibility.
  2650.  
  2651. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2652.  
  2653. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2654.  
  2655.  
  2656.  
  2657.  
  2658.  
  2659. ac_config_headers="$ac_config_headers config.h"
  2660.  
  2661. ac_ext=c
  2662. ac_cpp='$CPP $CPPFLAGS'
  2663. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2664. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2665. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2666. if test -n "$ac_tool_prefix"; then
  2667. for ac_prog in gcc cc
  2668. do
  2669. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2670. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2671. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2672. $as_echo_n "checking for $ac_word... " >&6; }
  2673. if test "${ac_cv_prog_CC+set}" = set; then
  2674. $as_echo_n "(cached) " >&6
  2675. else
  2676. if test -n "$CC"; then
  2677. ac_cv_prog_CC="$CC" # Let the user override the test.
  2678. else
  2679. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2680. for as_dir in $PATH
  2681. do
  2682. IFS=$as_save_IFS
  2683. test -z "$as_dir" && as_dir=.
  2684. for ac_exec_ext in '' $ac_executable_extensions; do
  2685. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2686. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2687. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2688. break 2
  2689. fi
  2690. done
  2691. done
  2692. IFS=$as_save_IFS
  2693.  
  2694. fi
  2695. fi
  2696. CC=$ac_cv_prog_CC
  2697. if test -n "$CC"; then
  2698. { $as_echo "$as_me:$LINENO: result: $CC" >&5
  2699. $as_echo "$CC" >&6; }
  2700. else
  2701. { $as_echo "$as_me:$LINENO: result: no" >&5
  2702. $as_echo "no" >&6; }
  2703. fi
  2704.  
  2705.  
  2706. test -n "$CC" && break
  2707. done
  2708. fi
  2709. if test -z "$CC"; then
  2710. ac_ct_CC=$CC
  2711. for ac_prog in gcc cc
  2712. do
  2713. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2714. set dummy $ac_prog; ac_word=$2
  2715. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$ac_ct_CC"; then
  2721. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2730. ac_cv_prog_ac_ct_CC="$ac_prog"
  2731. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737.  
  2738. fi
  2739. fi
  2740. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2741. if test -n "$ac_ct_CC"; then
  2742. { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2743. $as_echo "$ac_ct_CC" >&6; }
  2744. else
  2745. { $as_echo "$as_me:$LINENO: result: no" >&5
  2746. $as_echo "no" >&6; }
  2747. fi
  2748.  
  2749.  
  2750. test -n "$ac_ct_CC" && break
  2751. done
  2752.  
  2753. if test "x$ac_ct_CC" = x; then
  2754. CC=""
  2755. else
  2756. case $cross_compiling:$ac_tool_warned in
  2757. yes:)
  2758. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  2759. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2760. ac_tool_warned=yes ;;
  2761. esac
  2762. CC=$ac_ct_CC
  2763. fi
  2764. fi
  2765.  
  2766.  
  2767. test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2768. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2769. { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2770. See \`config.log' for more details." >&5
  2771. $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
  2772. See \`config.log' for more details." >&2;}
  2773. { (exit 1); exit 1; }; }; }
  2774.  
  2775. # Provide some information about the compiler.
  2776. $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
  2777. set X $ac_compile
  2778. ac_compiler=$2
  2779. { (ac_try="$ac_compiler --version >&5"
  2780. case "(($ac_try" in
  2781. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2782. *) ac_try_echo=$ac_try;;
  2783. esac
  2784. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2785. $as_echo "$ac_try_echo") >&5
  2786. (eval "$ac_compiler --version >&5") 2>&5
  2787. ac_status=$?
  2788. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2789. (exit $ac_status); }
  2790. { (ac_try="$ac_compiler -v >&5"
  2791. case "(($ac_try" in
  2792. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2793. *) ac_try_echo=$ac_try;;
  2794. esac
  2795. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2796. $as_echo "$ac_try_echo") >&5
  2797. (eval "$ac_compiler -v >&5") 2>&5
  2798. ac_status=$?
  2799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2800. (exit $ac_status); }
  2801. { (ac_try="$ac_compiler -V >&5"
  2802. case "(($ac_try" in
  2803. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2804. *) ac_try_echo=$ac_try;;
  2805. esac
  2806. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2807. $as_echo "$ac_try_echo") >&5
  2808. (eval "$ac_compiler -V >&5") 2>&5
  2809. ac_status=$?
  2810. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); }
  2812.  
  2813. cat >conftest.$ac_ext <<_ACEOF
  2814. /* confdefs.h. */
  2815. _ACEOF
  2816. cat confdefs.h >>conftest.$ac_ext
  2817. cat >>conftest.$ac_ext <<_ACEOF
  2818. /* end confdefs.h. */
  2819.  
  2820. int
  2821. main ()
  2822. {
  2823.  
  2824. ;
  2825. return 0;
  2826. }
  2827. _ACEOF
  2828. ac_clean_files_save=$ac_clean_files
  2829. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2830. # Try to create an executable without -o first, disregard a.out.
  2831. # It will help us diagnose broken compilers, and finding out an intuition
  2832. # of exeext.
  2833. { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  2834. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2835. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2836.  
  2837. # The possible output files:
  2838. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2839.  
  2840. ac_rmfiles=
  2841. for ac_file in $ac_files
  2842. do
  2843. case $ac_file in
  2844. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2845. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2846. esac
  2847. done
  2848. rm -f $ac_rmfiles
  2849.  
  2850. if { (ac_try="$ac_link_default"
  2851. case "(($ac_try" in
  2852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2853. *) ac_try_echo=$ac_try;;
  2854. esac
  2855. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2856. $as_echo "$ac_try_echo") >&5
  2857. (eval "$ac_link_default") 2>&5
  2858. ac_status=$?
  2859. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2860. (exit $ac_status); }; then
  2861. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2862. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2863. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2864. # so that the user can short-circuit this test for compilers unknown to
  2865. # Autoconf.
  2866. for ac_file in $ac_files ''
  2867. do
  2868. test -f "$ac_file" || continue
  2869. case $ac_file in
  2870. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2871. ;;
  2872. [ab].out )
  2873. # We found the default executable, but exeext='' is most
  2874. # certainly right.
  2875. break;;
  2876. *.* )
  2877. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2878. then :; else
  2879. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2880. fi
  2881. # We set ac_cv_exeext here because the later test for it is not
  2882. # safe: cross compilers may not add the suffix if given an `-o'
  2883. # argument, so we may need to know it at that point already.
  2884. # Even if this section looks crufty: it has the advantage of
  2885. # actually working.
  2886. break;;
  2887. * )
  2888. break;;
  2889. esac
  2890. done
  2891. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2892.  
  2893. else
  2894. ac_file=''
  2895. fi
  2896.  
  2897. { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
  2898. $as_echo "$ac_file" >&6; }
  2899. if test -z "$ac_file"; then
  2900. $as_echo "$as_me: failed program was:" >&5
  2901. sed 's/^/| /' conftest.$ac_ext >&5
  2902.  
  2903. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2904. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2905. { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
  2906. See \`config.log' for more details." >&5
  2907. $as_echo "$as_me: error: C compiler cannot create executables
  2908. See \`config.log' for more details." >&2;}
  2909. { (exit 77); exit 77; }; }; }
  2910. fi
  2911.  
  2912. ac_exeext=$ac_cv_exeext
  2913.  
  2914. # Check that the compiler produces executables we can run. If not, either
  2915. # the compiler is broken, or we cross compile.
  2916. { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  2917. $as_echo_n "checking whether the C compiler works... " >&6; }
  2918. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2919. # If not cross compiling, check that we can run a simple program.
  2920. if test "$cross_compiling" != yes; then
  2921. if { ac_try='./$ac_file'
  2922. { (case "(($ac_try" in
  2923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2924. *) ac_try_echo=$ac_try;;
  2925. esac
  2926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2927. $as_echo "$ac_try_echo") >&5
  2928. (eval "$ac_try") 2>&5
  2929. ac_status=$?
  2930. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2931. (exit $ac_status); }; }; then
  2932. cross_compiling=no
  2933. else
  2934. if test "$cross_compiling" = maybe; then
  2935. cross_compiling=yes
  2936. else
  2937. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2938. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2939. { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
  2940. If you meant to cross compile, use \`--host'.
  2941. See \`config.log' for more details." >&5
  2942. $as_echo "$as_me: error: cannot run C compiled programs.
  2943. If you meant to cross compile, use \`--host'.
  2944. See \`config.log' for more details." >&2;}
  2945. { (exit 1); exit 1; }; }; }
  2946. fi
  2947. fi
  2948. fi
  2949. { $as_echo "$as_me:$LINENO: result: yes" >&5
  2950. $as_echo "yes" >&6; }
  2951.  
  2952. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2953. ac_clean_files=$ac_clean_files_save
  2954. # Check that the compiler produces executables we can run. If not, either
  2955. # the compiler is broken, or we cross compile.
  2956. { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2957. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2958. { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2959. $as_echo "$cross_compiling" >&6; }
  2960.  
  2961. { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2962. $as_echo_n "checking for suffix of executables... " >&6; }
  2963. if { (ac_try="$ac_link"
  2964. case "(($ac_try" in
  2965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2966. *) ac_try_echo=$ac_try;;
  2967. esac
  2968. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  2969. $as_echo "$ac_try_echo") >&5
  2970. (eval "$ac_link") 2>&5
  2971. ac_status=$?
  2972. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2973. (exit $ac_status); }; then
  2974. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2975. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2976. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2977. # `rm'.
  2978. for ac_file in conftest.exe conftest conftest.*; do
  2979. test -f "$ac_file" || continue
  2980. case $ac_file in
  2981. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2982. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2983. break;;
  2984. * ) break;;
  2985. esac
  2986. done
  2987. else
  2988. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  2989. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2990. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2991. See \`config.log' for more details." >&5
  2992. $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2993. See \`config.log' for more details." >&2;}
  2994. { (exit 1); exit 1; }; }; }
  2995. fi
  2996.  
  2997. rm -f conftest$ac_cv_exeext
  2998. { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2999. $as_echo "$ac_cv_exeext" >&6; }
  3000.  
  3001. rm -f conftest.$ac_ext
  3002. EXEEXT=$ac_cv_exeext
  3003. ac_exeext=$EXEEXT
  3004. { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
  3005. $as_echo_n "checking for suffix of object files... " >&6; }
  3006. if test "${ac_cv_objext+set}" = set; then
  3007. $as_echo_n "(cached) " >&6
  3008. else
  3009. cat >conftest.$ac_ext <<_ACEOF
  3010. /* confdefs.h. */
  3011. _ACEOF
  3012. cat confdefs.h >>conftest.$ac_ext
  3013. cat >>conftest.$ac_ext <<_ACEOF
  3014. /* end confdefs.h. */
  3015.  
  3016. int
  3017. main ()
  3018. {
  3019.  
  3020. ;
  3021. return 0;
  3022. }
  3023. _ACEOF
  3024. rm -f conftest.o conftest.obj
  3025. if { (ac_try="$ac_compile"
  3026. case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo") >&5
  3032. (eval "$ac_compile") 2>&5
  3033. ac_status=$?
  3034. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3035. (exit $ac_status); }; then
  3036. for ac_file in conftest.o conftest.obj conftest.*; do
  3037. test -f "$ac_file" || continue;
  3038. case $ac_file in
  3039. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3040. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3041. break;;
  3042. esac
  3043. done
  3044. else
  3045. $as_echo "$as_me: failed program was:" >&5
  3046. sed 's/^/| /' conftest.$ac_ext >&5
  3047.  
  3048. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  3049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3050. { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  3051. See \`config.log' for more details." >&5
  3052. $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
  3053. See \`config.log' for more details." >&2;}
  3054. { (exit 1); exit 1; }; }; }
  3055. fi
  3056.  
  3057. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3058. fi
  3059. { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  3060. $as_echo "$ac_cv_objext" >&6; }
  3061. OBJEXT=$ac_cv_objext
  3062. ac_objext=$OBJEXT
  3063. { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3064. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3065. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3066. $as_echo_n "(cached) " >&6
  3067. else
  3068. cat >conftest.$ac_ext <<_ACEOF
  3069. /* confdefs.h. */
  3070. _ACEOF
  3071. cat confdefs.h >>conftest.$ac_ext
  3072. cat >>conftest.$ac_ext <<_ACEOF
  3073. /* end confdefs.h. */
  3074.  
  3075. int
  3076. main ()
  3077. {
  3078. #ifndef __GNUC__
  3079. choke me
  3080. #endif
  3081.  
  3082. ;
  3083. return 0;
  3084. }
  3085. _ACEOF
  3086. rm -f conftest.$ac_objext
  3087. if { (ac_try="$ac_compile"
  3088. case "(($ac_try" in
  3089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3090. *) ac_try_echo=$ac_try;;
  3091. esac
  3092. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3093. $as_echo "$ac_try_echo") >&5
  3094. (eval "$ac_compile") 2>conftest.er1
  3095. ac_status=$?
  3096. grep -v '^ *+' conftest.er1 >conftest.err
  3097. rm -f conftest.er1
  3098. cat conftest.err >&5
  3099. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3100. (exit $ac_status); } && {
  3101. test -z "$ac_c_werror_flag" ||
  3102. test ! -s conftest.err
  3103. } && test -s conftest.$ac_objext; then
  3104. ac_compiler_gnu=yes
  3105. else
  3106. $as_echo "$as_me: failed program was:" >&5
  3107. sed 's/^/| /' conftest.$ac_ext >&5
  3108.  
  3109. ac_compiler_gnu=no
  3110. fi
  3111.  
  3112. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3113. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3114.  
  3115. fi
  3116. { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3117. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3118. if test $ac_compiler_gnu = yes; then
  3119. GCC=yes
  3120. else
  3121. GCC=
  3122. fi
  3123. ac_test_CFLAGS=${CFLAGS+set}
  3124. ac_save_CFLAGS=$CFLAGS
  3125. { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3126. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3127. if test "${ac_cv_prog_cc_g+set}" = set; then
  3128. $as_echo_n "(cached) " >&6
  3129. else
  3130. ac_save_c_werror_flag=$ac_c_werror_flag
  3131. ac_c_werror_flag=yes
  3132. ac_cv_prog_cc_g=no
  3133. CFLAGS="-g"
  3134. cat >conftest.$ac_ext <<_ACEOF
  3135. /* confdefs.h. */
  3136. _ACEOF
  3137. cat confdefs.h >>conftest.$ac_ext
  3138. cat >>conftest.$ac_ext <<_ACEOF
  3139. /* end confdefs.h. */
  3140.  
  3141. int
  3142. main ()
  3143. {
  3144.  
  3145. ;
  3146. return 0;
  3147. }
  3148. _ACEOF
  3149. rm -f conftest.$ac_objext
  3150. if { (ac_try="$ac_compile"
  3151. case "(($ac_try" in
  3152. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3153. *) ac_try_echo=$ac_try;;
  3154. esac
  3155. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3156. $as_echo "$ac_try_echo") >&5
  3157. (eval "$ac_compile") 2>conftest.er1
  3158. ac_status=$?
  3159. grep -v '^ *+' conftest.er1 >conftest.err
  3160. rm -f conftest.er1
  3161. cat conftest.err >&5
  3162. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3163. (exit $ac_status); } && {
  3164. test -z "$ac_c_werror_flag" ||
  3165. test ! -s conftest.err
  3166. } && test -s conftest.$ac_objext; then
  3167. ac_cv_prog_cc_g=yes
  3168. else
  3169. $as_echo "$as_me: failed program was:" >&5
  3170. sed 's/^/| /' conftest.$ac_ext >&5
  3171.  
  3172. CFLAGS=""
  3173. cat >conftest.$ac_ext <<_ACEOF
  3174. /* confdefs.h. */
  3175. _ACEOF
  3176. cat confdefs.h >>conftest.$ac_ext
  3177. cat >>conftest.$ac_ext <<_ACEOF
  3178. /* end confdefs.h. */
  3179.  
  3180. int
  3181. main ()
  3182. {
  3183.  
  3184. ;
  3185. return 0;
  3186. }
  3187. _ACEOF
  3188. rm -f conftest.$ac_objext
  3189. if { (ac_try="$ac_compile"
  3190. case "(($ac_try" in
  3191. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3192. *) ac_try_echo=$ac_try;;
  3193. esac
  3194. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3195. $as_echo "$ac_try_echo") >&5
  3196. (eval "$ac_compile") 2>conftest.er1
  3197. ac_status=$?
  3198. grep -v '^ *+' conftest.er1 >conftest.err
  3199. rm -f conftest.er1
  3200. cat conftest.err >&5
  3201. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3202. (exit $ac_status); } && {
  3203. test -z "$ac_c_werror_flag" ||
  3204. test ! -s conftest.err
  3205. } && test -s conftest.$ac_objext; then
  3206. :
  3207. else
  3208. $as_echo "$as_me: failed program was:" >&5
  3209. sed 's/^/| /' conftest.$ac_ext >&5
  3210.  
  3211. ac_c_werror_flag=$ac_save_c_werror_flag
  3212. CFLAGS="-g"
  3213. cat >conftest.$ac_ext <<_ACEOF
  3214. /* confdefs.h. */
  3215. _ACEOF
  3216. cat confdefs.h >>conftest.$ac_ext
  3217. cat >>conftest.$ac_ext <<_ACEOF
  3218. /* end confdefs.h. */
  3219.  
  3220. int
  3221. main ()
  3222. {
  3223.  
  3224. ;
  3225. return 0;
  3226. }
  3227. _ACEOF
  3228. rm -f conftest.$ac_objext
  3229. if { (ac_try="$ac_compile"
  3230. case "(($ac_try" in
  3231. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3232. *) ac_try_echo=$ac_try;;
  3233. esac
  3234. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3235. $as_echo "$ac_try_echo") >&5
  3236. (eval "$ac_compile") 2>conftest.er1
  3237. ac_status=$?
  3238. grep -v '^ *+' conftest.er1 >conftest.err
  3239. rm -f conftest.er1
  3240. cat conftest.err >&5
  3241. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3242. (exit $ac_status); } && {
  3243. test -z "$ac_c_werror_flag" ||
  3244. test ! -s conftest.err
  3245. } && test -s conftest.$ac_objext; then
  3246. ac_cv_prog_cc_g=yes
  3247. else
  3248. $as_echo "$as_me: failed program was:" >&5
  3249. sed 's/^/| /' conftest.$ac_ext >&5
  3250.  
  3251.  
  3252. fi
  3253.  
  3254. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3255. fi
  3256.  
  3257. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3258. fi
  3259.  
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. ac_c_werror_flag=$ac_save_c_werror_flag
  3262. fi
  3263. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3264. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3265. if test "$ac_test_CFLAGS" = set; then
  3266. CFLAGS=$ac_save_CFLAGS
  3267. elif test $ac_cv_prog_cc_g = yes; then
  3268. if test "$GCC" = yes; then
  3269. CFLAGS="-g -O2"
  3270. else
  3271. CFLAGS="-g"
  3272. fi
  3273. else
  3274. if test "$GCC" = yes; then
  3275. CFLAGS="-O2"
  3276. else
  3277. CFLAGS=
  3278. fi
  3279. fi
  3280. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3281. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3282. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3283. $as_echo_n "(cached) " >&6
  3284. else
  3285. ac_cv_prog_cc_c89=no
  3286. ac_save_CC=$CC
  3287. cat >conftest.$ac_ext <<_ACEOF
  3288. /* confdefs.h. */
  3289. _ACEOF
  3290. cat confdefs.h >>conftest.$ac_ext
  3291. cat >>conftest.$ac_ext <<_ACEOF
  3292. /* end confdefs.h. */
  3293. #include <stdarg.h>
  3294. #include <stdio.h>
  3295. #include <sys/types.h>
  3296. #include <sys/stat.h>
  3297. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3298. struct buf { int x; };
  3299. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3300. static char *e (p, i)
  3301. char **p;
  3302. int i;
  3303. {
  3304. return p[i];
  3305. }
  3306. static char *f (char * (*g) (char **, int), char **p, ...)
  3307. {
  3308. char *s;
  3309. va_list v;
  3310. va_start (v,p);
  3311. s = g (p, va_arg (v,int));
  3312. va_end (v);
  3313. return s;
  3314. }
  3315.  
  3316. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3317. function prototypes and stuff, but not '\xHH' hex character constants.
  3318. These don't provoke an error unfortunately, instead are silently treated
  3319. as 'x'. The following induces an error, until -std is added to get
  3320. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3321. array size at least. It's necessary to write '\x00'==0 to get something
  3322. that's true only with -std. */
  3323. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3324.  
  3325. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3326. inside strings and character constants. */
  3327. #define FOO(x) 'x'
  3328. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3329.  
  3330. int test (int i, double x);
  3331. struct s1 {int (*f) (int a);};
  3332. struct s2 {int (*f) (double a);};
  3333. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3334. int argc;
  3335. char **argv;
  3336. int
  3337. main ()
  3338. {
  3339. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3340. ;
  3341. return 0;
  3342. }
  3343. _ACEOF
  3344. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3345. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3346. do
  3347. CC="$ac_save_CC $ac_arg"
  3348. rm -f conftest.$ac_objext
  3349. if { (ac_try="$ac_compile"
  3350. case "(($ac_try" in
  3351. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3352. *) ac_try_echo=$ac_try;;
  3353. esac
  3354. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3355. $as_echo "$ac_try_echo") >&5
  3356. (eval "$ac_compile") 2>conftest.er1
  3357. ac_status=$?
  3358. grep -v '^ *+' conftest.er1 >conftest.err
  3359. rm -f conftest.er1
  3360. cat conftest.err >&5
  3361. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3362. (exit $ac_status); } && {
  3363. test -z "$ac_c_werror_flag" ||
  3364. test ! -s conftest.err
  3365. } && test -s conftest.$ac_objext; then
  3366. ac_cv_prog_cc_c89=$ac_arg
  3367. else
  3368. $as_echo "$as_me: failed program was:" >&5
  3369. sed 's/^/| /' conftest.$ac_ext >&5
  3370.  
  3371.  
  3372. fi
  3373.  
  3374. rm -f core conftest.err conftest.$ac_objext
  3375. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3376. done
  3377. rm -f conftest.$ac_ext
  3378. CC=$ac_save_CC
  3379.  
  3380. fi
  3381. # AC_CACHE_VAL
  3382. case "x$ac_cv_prog_cc_c89" in
  3383. x)
  3384. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3385. $as_echo "none needed" >&6; } ;;
  3386. xno)
  3387. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3388. $as_echo "unsupported" >&6; } ;;
  3389. *)
  3390. CC="$CC $ac_cv_prog_cc_c89"
  3391. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3392. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3393. esac
  3394.  
  3395.  
  3396. ac_ext=c
  3397. ac_cpp='$CPP $CPPFLAGS'
  3398. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3399. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3400. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3401. DEPDIR="${am__leading_dot}deps"
  3402.  
  3403. ac_config_commands="$ac_config_commands depfiles"
  3404.  
  3405.  
  3406. am_make=${MAKE-make}
  3407. cat > confinc << 'END'
  3408. am__doit:
  3409. @echo this is the am__doit target
  3410. .PHONY: am__doit
  3411. END
  3412. # If we don't find an include directive, just comment out the code.
  3413. { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  3414. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3415. am__include="#"
  3416. am__quote=
  3417. _am_result=none
  3418. # First try GNU make style include.
  3419. echo "include confinc" > confmf
  3420. # Ignore all kinds of additional output from `make'.
  3421. case `$am_make -s -f confmf 2> /dev/null` in #(
  3422. *the\ am__doit\ target*)
  3423. am__include=include
  3424. am__quote=
  3425. _am_result=GNU
  3426. ;;
  3427. esac
  3428. # Now try BSD make style include.
  3429. if test "$am__include" = "#"; then
  3430. echo '.include "confinc"' > confmf
  3431. case `$am_make -s -f confmf 2> /dev/null` in #(
  3432. *the\ am__doit\ target*)
  3433. am__include=.include
  3434. am__quote="\""
  3435. _am_result=BSD
  3436. ;;
  3437. esac
  3438. fi
  3439.  
  3440.  
  3441. { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
  3442. $as_echo "$_am_result" >&6; }
  3443. rm -f confinc confmf
  3444.  
  3445. # Check whether --enable-dependency-tracking was given.
  3446. if test "${enable_dependency_tracking+set}" = set; then
  3447. enableval=$enable_dependency_tracking;
  3448. fi
  3449.  
  3450. if test "x$enable_dependency_tracking" != xno; then
  3451. am_depcomp="$ac_aux_dir/depcomp"
  3452. AMDEPBACKSLASH='\'
  3453. fi
  3454. if test "x$enable_dependency_tracking" != xno; then
  3455. AMDEP_TRUE=
  3456. AMDEP_FALSE='#'
  3457. else
  3458. AMDEP_TRUE='#'
  3459. AMDEP_FALSE=
  3460. fi
  3461.  
  3462.  
  3463.  
  3464. depcc="$CC" am_compiler_list=
  3465.  
  3466. { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3467. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3468. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3469. $as_echo_n "(cached) " >&6
  3470. else
  3471. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3472. # We make a subdir and do the tests there. Otherwise we can end up
  3473. # making bogus files that we don't know about and never remove. For
  3474. # instance it was reported that on HP-UX the gcc test will end up
  3475. # making a dummy file named `D' -- because `-MD' means `put the output
  3476. # in D'.
  3477. mkdir conftest.dir
  3478. # Copy depcomp to subdir because otherwise we won't find it if we're
  3479. # using a relative directory.
  3480. cp "$am_depcomp" conftest.dir
  3481. cd conftest.dir
  3482. # We will build objects and dependencies in a subdirectory because
  3483. # it helps to detect inapplicable dependency modes. For instance
  3484. # both Tru64's cc and ICC support -MD to output dependencies as a
  3485. # side effect of compilation, but ICC will put the dependencies in
  3486. # the current directory while Tru64 will put them in the object
  3487. # directory.
  3488. mkdir sub
  3489.  
  3490. am_cv_CC_dependencies_compiler_type=none
  3491. if test "$am_compiler_list" = ""; then
  3492. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3493. fi
  3494. am__universal=false
  3495. case " $depcc " in #(
  3496. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3497. esac
  3498.  
  3499. for depmode in $am_compiler_list; do
  3500. # Setup a source with many dependencies, because some compilers
  3501. # like to wrap large dependency lists on column 80 (with \), and
  3502. # we should not choose a depcomp mode which is confused by this.
  3503. #
  3504. # We need to recreate these files for each test, as the compiler may
  3505. # overwrite some of them when testing with obscure command lines.
  3506. # This happens at least with the AIX C compiler.
  3507. : > sub/conftest.c
  3508. for i in 1 2 3 4 5 6; do
  3509. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3510. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3511. # Solaris 8's {/usr,}/bin/sh.
  3512. touch sub/conftst$i.h
  3513. done
  3514. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3515.  
  3516. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3517. # mode. It turns out that the SunPro C++ compiler does not properly
  3518. # handle `-M -o', and we need to detect this. Also, some Intel
  3519. # versions had trouble with output in subdirs
  3520. am__obj=sub/conftest.${OBJEXT-o}
  3521. am__minus_obj="-o $am__obj"
  3522. case $depmode in
  3523. gcc)
  3524. # This depmode causes a compiler race in universal mode.
  3525. test "$am__universal" = false || continue
  3526. ;;
  3527. nosideeffect)
  3528. # after this tag, mechanisms are not by side-effect, so they'll
  3529. # only be used when explicitly requested
  3530. if test "x$enable_dependency_tracking" = xyes; then
  3531. continue
  3532. else
  3533. break
  3534. fi
  3535. ;;
  3536. msvisualcpp | msvcmsys)
  3537. # This compiler won't grok `-c -o', but also, the minuso test has
  3538. # not run yet. These depmodes are late enough in the game, and
  3539. # so weak that their functioning should not be impacted.
  3540. am__obj=conftest.${OBJEXT-o}
  3541. am__minus_obj=
  3542. ;;
  3543. none) break ;;
  3544. esac
  3545. if depmode=$depmode \
  3546. source=sub/conftest.c object=$am__obj \
  3547. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3548. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3549. >/dev/null 2>conftest.err &&
  3550. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3551. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3552. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3553. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3554. # icc doesn't choke on unknown options, it will just issue warnings
  3555. # or remarks (even with -Werror). So we grep stderr for any message
  3556. # that says an option was ignored or not supported.
  3557. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3558. # icc: Command line warning: ignoring option '-M'; no argument required
  3559. # The diagnosis changed in icc 8.0:
  3560. # icc: Command line remark: option '-MP' not supported
  3561. if (grep 'ignoring option' conftest.err ||
  3562. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3563. am_cv_CC_dependencies_compiler_type=$depmode
  3564. break
  3565. fi
  3566. fi
  3567. done
  3568.  
  3569. cd ..
  3570. rm -rf conftest.dir
  3571. else
  3572. am_cv_CC_dependencies_compiler_type=none
  3573. fi
  3574.  
  3575. fi
  3576. { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3577. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3578. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3579.  
  3580. if
  3581. test "x$enable_dependency_tracking" != xno \
  3582. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3583. am__fastdepCC_TRUE=
  3584. am__fastdepCC_FALSE='#'
  3585. else
  3586. am__fastdepCC_TRUE='#'
  3587. am__fastdepCC_FALSE=
  3588. fi
  3589.  
  3590.  
  3591. if test "x$CC" != xcc; then
  3592. { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
  3593. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  3594. else
  3595. { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
  3596. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  3597. fi
  3598. set dummy $CC; ac_cc=`$as_echo "$2" |
  3599. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3600. if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. cat >conftest.$ac_ext <<_ACEOF
  3604. /* confdefs.h. */
  3605. _ACEOF
  3606. cat confdefs.h >>conftest.$ac_ext
  3607. cat >>conftest.$ac_ext <<_ACEOF
  3608. /* end confdefs.h. */
  3609.  
  3610. int
  3611. main ()
  3612. {
  3613.  
  3614. ;
  3615. return 0;
  3616. }
  3617. _ACEOF
  3618. # Make sure it works both with $CC and with simple cc.
  3619. # We do the test twice because some compilers refuse to overwrite an
  3620. # existing .o file with -o, though they will create one.
  3621. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3622. rm -f conftest2.*
  3623. if { (case "(($ac_try" in
  3624. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3625. *) ac_try_echo=$ac_try;;
  3626. esac
  3627. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3628. $as_echo "$ac_try_echo") >&5
  3629. (eval "$ac_try") 2>&5
  3630. ac_status=$?
  3631. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3632. (exit $ac_status); } &&
  3633. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3634. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3635. *) ac_try_echo=$ac_try;;
  3636. esac
  3637. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3638. $as_echo "$ac_try_echo") >&5
  3639. (eval "$ac_try") 2>&5
  3640. ac_status=$?
  3641. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3642. (exit $ac_status); };
  3643. then
  3644. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  3645. if test "x$CC" != xcc; then
  3646. # Test first that cc exists at all.
  3647. if { ac_try='cc -c conftest.$ac_ext >&5'
  3648. { (case "(($ac_try" in
  3649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3650. *) ac_try_echo=$ac_try;;
  3651. esac
  3652. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3653. $as_echo "$ac_try_echo") >&5
  3654. (eval "$ac_try") 2>&5
  3655. ac_status=$?
  3656. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); }; }; then
  3658. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  3659. rm -f conftest2.*
  3660. if { (case "(($ac_try" in
  3661. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3662. *) ac_try_echo=$ac_try;;
  3663. esac
  3664. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3665. $as_echo "$ac_try_echo") >&5
  3666. (eval "$ac_try") 2>&5
  3667. ac_status=$?
  3668. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. (exit $ac_status); } &&
  3670. test -f conftest2.$ac_objext && { (case "(($ac_try" in
  3671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3672. *) ac_try_echo=$ac_try;;
  3673. esac
  3674. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3675. $as_echo "$ac_try_echo") >&5
  3676. (eval "$ac_try") 2>&5
  3677. ac_status=$?
  3678. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3679. (exit $ac_status); };
  3680. then
  3681. # cc works too.
  3682. :
  3683. else
  3684. # cc exists but doesn't like -o.
  3685. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3686. fi
  3687. fi
  3688. fi
  3689. else
  3690. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  3691. fi
  3692. rm -f core conftest*
  3693.  
  3694. fi
  3695. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  3696. { $as_echo "$as_me:$LINENO: result: yes" >&5
  3697. $as_echo "yes" >&6; }
  3698. else
  3699. { $as_echo "$as_me:$LINENO: result: no" >&5
  3700. $as_echo "no" >&6; }
  3701.  
  3702. cat >>confdefs.h <<\_ACEOF
  3703. #define NO_MINUS_C_MINUS_O 1
  3704. _ACEOF
  3705.  
  3706. fi
  3707.  
  3708. # FIXME: we rely on the cache variable name because
  3709. # there is no other way.
  3710. set dummy $CC
  3711. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  3712. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  3713. if test "$am_t" != yes; then
  3714. # Losing compiler, so override with the script.
  3715. # FIXME: It is wrong to rewrite CC.
  3716. # But if we don't then we get into trouble of one sort or another.
  3717. # A longer-term fix would be to have automake use am__CC in this case,
  3718. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3719. CC="$am_aux_dir/compile $CC"
  3720. fi
  3721.  
  3722.  
  3723. case $ac_cv_prog_cc_stdc in
  3724. no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
  3725. *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  3726. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  3727. if test "${ac_cv_prog_cc_c99+set}" = set; then
  3728. $as_echo_n "(cached) " >&6
  3729. else
  3730. ac_cv_prog_cc_c99=no
  3731. ac_save_CC=$CC
  3732. cat >conftest.$ac_ext <<_ACEOF
  3733. /* confdefs.h. */
  3734. _ACEOF
  3735. cat confdefs.h >>conftest.$ac_ext
  3736. cat >>conftest.$ac_ext <<_ACEOF
  3737. /* end confdefs.h. */
  3738. #include <stdarg.h>
  3739. #include <stdbool.h>
  3740. #include <stdlib.h>
  3741. #include <wchar.h>
  3742. #include <stdio.h>
  3743.  
  3744. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  3745. #define debug(...) fprintf (stderr, __VA_ARGS__)
  3746. #define showlist(...) puts (#__VA_ARGS__)
  3747. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  3748. static void
  3749. test_varargs_macros (void)
  3750. {
  3751. int x = 1234;
  3752. int y = 5678;
  3753. debug ("Flag");
  3754. debug ("X = %d\n", x);
  3755. showlist (The first, second, and third items.);
  3756. report (x>y, "x is %d but y is %d", x, y);
  3757. }
  3758.  
  3759. // Check long long types.
  3760. #define BIG64 18446744073709551615ull
  3761. #define BIG32 4294967295ul
  3762. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  3763. #if !BIG_OK
  3764. your preprocessor is broken;
  3765. #endif
  3766. #if BIG_OK
  3767. #else
  3768. your preprocessor is broken;
  3769. #endif
  3770. static long long int bignum = -9223372036854775807LL;
  3771. static unsigned long long int ubignum = BIG64;
  3772.  
  3773. struct incomplete_array
  3774. {
  3775. int datasize;
  3776. double data[];
  3777. };
  3778.  
  3779. struct named_init {
  3780. int number;
  3781. const wchar_t *name;
  3782. double average;
  3783. };
  3784.  
  3785. typedef const char *ccp;
  3786.  
  3787. static inline int
  3788. test_restrict (ccp restrict text)
  3789. {
  3790. // See if C++-style comments work.
  3791. // Iterate through items via the restricted pointer.
  3792. // Also check for declarations in for loops.
  3793. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  3794. continue;
  3795. return 0;
  3796. }
  3797.  
  3798. // Check varargs and va_copy.
  3799. static void
  3800. test_varargs (const char *format, ...)
  3801. {
  3802. va_list args;
  3803. va_start (args, format);
  3804. va_list args_copy;
  3805. va_copy (args_copy, args);
  3806.  
  3807. const char *str;
  3808. int number;
  3809. float fnumber;
  3810.  
  3811. while (*format)
  3812. {
  3813. switch (*format++)
  3814. {
  3815. case 's': // string
  3816. str = va_arg (args_copy, const char *);
  3817. break;
  3818. case 'd': // int
  3819. number = va_arg (args_copy, int);
  3820. break;
  3821. case 'f': // float
  3822. fnumber = va_arg (args_copy, double);
  3823. break;
  3824. default:
  3825. break;
  3826. }
  3827. }
  3828. va_end (args_copy);
  3829. va_end (args);
  3830. }
  3831.  
  3832. int
  3833. main ()
  3834. {
  3835.  
  3836. // Check bool.
  3837. _Bool success = false;
  3838.  
  3839. // Check restrict.
  3840. if (test_restrict ("String literal") == 0)
  3841. success = true;
  3842. char *restrict newvar = "Another string";
  3843.  
  3844. // Check varargs.
  3845. test_varargs ("s, d' f .", "string", 65, 34.234);
  3846. test_varargs_macros ();
  3847.  
  3848. // Check flexible array members.
  3849. struct incomplete_array *ia =
  3850. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  3851. ia->datasize = 10;
  3852. for (int i = 0; i < ia->datasize; ++i)
  3853. ia->data[i] = i * 1.234;
  3854.  
  3855. // Check named initializers.
  3856. struct named_init ni = {
  3857. .number = 34,
  3858. .name = L"Test wide string",
  3859. .average = 543.34343,
  3860. };
  3861.  
  3862. ni.number = 58;
  3863.  
  3864. int dynamic_array[ni.number];
  3865. dynamic_array[ni.number - 1] = 543;
  3866.  
  3867. // work around unused variable warnings
  3868. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  3869. || dynamic_array[ni.number - 1] != 543);
  3870.  
  3871. ;
  3872. return 0;
  3873. }
  3874. _ACEOF
  3875. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  3876. do
  3877. CC="$ac_save_CC $ac_arg"
  3878. rm -f conftest.$ac_objext
  3879. if { (ac_try="$ac_compile"
  3880. case "(($ac_try" in
  3881. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3882. *) ac_try_echo=$ac_try;;
  3883. esac
  3884. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  3885. $as_echo "$ac_try_echo") >&5
  3886. (eval "$ac_compile") 2>conftest.er1
  3887. ac_status=$?
  3888. grep -v '^ *+' conftest.er1 >conftest.err
  3889. rm -f conftest.er1
  3890. cat conftest.err >&5
  3891. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3892. (exit $ac_status); } && {
  3893. test -z "$ac_c_werror_flag" ||
  3894. test ! -s conftest.err
  3895. } && test -s conftest.$ac_objext; then
  3896. ac_cv_prog_cc_c99=$ac_arg
  3897. else
  3898. $as_echo "$as_me: failed program was:" >&5
  3899. sed 's/^/| /' conftest.$ac_ext >&5
  3900.  
  3901.  
  3902. fi
  3903.  
  3904. rm -f core conftest.err conftest.$ac_objext
  3905. test "x$ac_cv_prog_cc_c99" != "xno" && break
  3906. done
  3907. rm -f conftest.$ac_ext
  3908. CC=$ac_save_CC
  3909.  
  3910. fi
  3911. # AC_CACHE_VAL
  3912. case "x$ac_cv_prog_cc_c99" in
  3913. x)
  3914. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  3915. $as_echo "none needed" >&6; } ;;
  3916. xno)
  3917. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  3918. $as_echo "unsupported" >&6; } ;;
  3919. *)
  3920. CC="$CC $ac_cv_prog_cc_c99"
  3921. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  3922. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  3923. esac
  3924. if test "x$ac_cv_prog_cc_c99" != xno; then
  3925. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
  3926. else
  3927. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3928. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3929. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3930. $as_echo_n "(cached) " >&6
  3931. else
  3932. ac_cv_prog_cc_c89=no
  3933. ac_save_CC=$CC
  3934. cat >conftest.$ac_ext <<_ACEOF
  3935. /* confdefs.h. */
  3936. _ACEOF
  3937. cat confdefs.h >>conftest.$ac_ext
  3938. cat >>conftest.$ac_ext <<_ACEOF
  3939. /* end confdefs.h. */
  3940. #include <stdarg.h>
  3941. #include <stdio.h>
  3942. #include <sys/types.h>
  3943. #include <sys/stat.h>
  3944. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3945. struct buf { int x; };
  3946. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3947. static char *e (p, i)
  3948. char **p;
  3949. int i;
  3950. {
  3951. return p[i];
  3952. }
  3953. static char *f (char * (*g) (char **, int), char **p, ...)
  3954. {
  3955. char *s;
  3956. va_list v;
  3957. va_start (v,p);
  3958. s = g (p, va_arg (v,int));
  3959. va_end (v);
  3960. return s;
  3961. }
  3962.  
  3963. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3964. function prototypes and stuff, but not '\xHH' hex character constants.
  3965. These don't provoke an error unfortunately, instead are silently treated
  3966. as 'x'. The following induces an error, until -std is added to get
  3967. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3968. array size at least. It's necessary to write '\x00'==0 to get something
  3969. that's true only with -std. */
  3970. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3971.  
  3972. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3973. inside strings and character constants. */
  3974. #define FOO(x) 'x'
  3975. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3976.  
  3977. int test (int i, double x);
  3978. struct s1 {int (*f) (int a);};
  3979. struct s2 {int (*f) (double a);};
  3980. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3981. int argc;
  3982. char **argv;
  3983. int
  3984. main ()
  3985. {
  3986. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3987. ;
  3988. return 0;
  3989. }
  3990. _ACEOF
  3991. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3992. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3993. do
  3994. CC="$ac_save_CC $ac_arg"
  3995. rm -f conftest.$ac_objext
  3996. if { (ac_try="$ac_compile"
  3997. case "(($ac_try" in
  3998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3999. *) ac_try_echo=$ac_try;;
  4000. esac
  4001. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  4002. $as_echo "$ac_try_echo") >&5
  4003. (eval "$ac_compile") 2>conftest.er1
  4004. ac_status=$?
  4005. grep -v '^ *+' conftest.er1 >conftest.err
  4006. rm -f conftest.er1
  4007. cat conftest.err >&5
  4008. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009. (exit $ac_status); } && {
  4010. test -z "$ac_c_werror_flag" ||
  4011. test ! -s conftest.err
  4012. } && test -s conftest.$ac_objext; then
  4013. ac_cv_prog_cc_c89=$ac_arg
  4014. else
  4015. $as_echo "$as_me: failed program was:" >&5
  4016. sed 's/^/| /' conftest.$ac_ext >&5
  4017.  
  4018.  
  4019. fi
  4020.  
  4021. rm -f core conftest.err conftest.$ac_objext
  4022. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4023. done
  4024. rm -f conftest.$ac_ext
  4025. CC=$ac_save_CC
  4026.  
  4027. fi
  4028. # AC_CACHE_VAL
  4029. case "x$ac_cv_prog_cc_c89" in
  4030. x)
  4031. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4032. $as_echo "none needed" >&6; } ;;
  4033. xno)
  4034. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4035. $as_echo "unsupported" >&6; } ;;
  4036. *)
  4037. CC="$CC $ac_cv_prog_cc_c89"
  4038. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  4039. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4040. esac
  4041. if test "x$ac_cv_prog_cc_c89" != xno; then
  4042. ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
  4043. else
  4044. ac_cv_prog_cc_stdc=no
  4045. fi
  4046.  
  4047.  
  4048. fi
  4049.  
  4050. ;;
  4051. esac
  4052. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
  4053. $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
  4054. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  4055. $as_echo_n "(cached) " >&6
  4056. fi
  4057.  
  4058. case $ac_cv_prog_cc_stdc in
  4059. no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  4060. $as_echo "unsupported" >&6; } ;;
  4061. '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
  4062. $as_echo "none needed" >&6; } ;;
  4063. *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  4064. $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
  4065. esac
  4066.  
  4067.  
  4068.  
  4069. case `pwd` in
  4070. *\ * | *\ *)
  4071. { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4072. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4073. esac
  4074.  
  4075.  
  4076.  
  4077. macro_version='2.2.6b'
  4078. macro_revision='1.3017'
  4079.  
  4080.  
  4081.  
  4082.  
  4083.  
  4084.  
  4085.  
  4086.  
  4087.  
  4088.  
  4089.  
  4090.  
  4091.  
  4092. ltmain="$ac_aux_dir/ltmain.sh"
  4093.  
  4094. # Make sure we can run config.sub.
  4095. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4096. { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  4097. $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  4098. { (exit 1); exit 1; }; }
  4099.  
  4100. { $as_echo "$as_me:$LINENO: checking build system type" >&5
  4101. $as_echo_n "checking build system type... " >&6; }
  4102. if test "${ac_cv_build+set}" = set; then
  4103. $as_echo_n "(cached) " >&6
  4104. else
  4105. ac_build_alias=$build_alias
  4106. test "x$ac_build_alias" = x &&
  4107. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4108. test "x$ac_build_alias" = x &&
  4109. { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  4110. $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  4111. { (exit 1); exit 1; }; }
  4112. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4113. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  4114. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  4115. { (exit 1); exit 1; }; }
  4116.  
  4117. fi
  4118. { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  4119. $as_echo "$ac_cv_build" >&6; }
  4120. case $ac_cv_build in
  4121. *-*-*) ;;
  4122. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  4123. $as_echo "$as_me: error: invalid value of canonical build" >&2;}
  4124. { (exit 1); exit 1; }; };;
  4125. esac
  4126. build=$ac_cv_build
  4127. ac_save_IFS=$IFS; IFS='-'
  4128. set x $ac_cv_build
  4129. shift
  4130. build_cpu=$1
  4131. build_vendor=$2
  4132. shift; shift
  4133. # Remember, the first character of IFS is used to create $*,
  4134. # except with old shells:
  4135. build_os=$*
  4136. IFS=$ac_save_IFS
  4137. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4138.  
  4139.  
  4140. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  4141. $as_echo_n "checking host system type... " >&6; }
  4142. if test "${ac_cv_host+set}" = set; then
  4143. $as_echo_n "(cached) " >&6
  4144. else
  4145. if test "x$host_alias" = x; then
  4146. ac_cv_host=$ac_cv_build
  4147. else
  4148. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4149. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  4150. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  4151. { (exit 1); exit 1; }; }
  4152. fi
  4153.  
  4154. fi
  4155. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  4156. $as_echo "$ac_cv_host" >&6; }
  4157. case $ac_cv_host in
  4158. *-*-*) ;;
  4159. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  4160. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  4161. { (exit 1); exit 1; }; };;
  4162. esac
  4163. host=$ac_cv_host
  4164. ac_save_IFS=$IFS; IFS='-'
  4165. set x $ac_cv_host
  4166. shift
  4167. host_cpu=$1
  4168. host_vendor=$2
  4169. shift; shift
  4170. # Remember, the first character of IFS is used to create $*,
  4171. # except with old shells:
  4172. host_os=$*
  4173. IFS=$ac_save_IFS
  4174. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4175.  
  4176.  
  4177. { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  4178. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4179. if test "${ac_cv_path_SED+set}" = set; then
  4180. $as_echo_n "(cached) " >&6
  4181. else
  4182. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4183. for ac_i in 1 2 3 4 5 6 7; do
  4184. ac_script="$ac_script$as_nl$ac_script"
  4185. done
  4186. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4187. $as_unset ac_script || ac_script=
  4188. if test -z "$SED"; then
  4189. ac_path_SED_found=false
  4190. # Loop through the user's path and test for each of PROGNAME-LIST
  4191. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4192. for as_dir in $PATH
  4193. do
  4194. IFS=$as_save_IFS
  4195. test -z "$as_dir" && as_dir=.
  4196. for ac_prog in sed gsed; do
  4197. for ac_exec_ext in '' $ac_executable_extensions; do
  4198. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4199. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4200. # Check for GNU ac_path_SED and select it if it is found.
  4201. # Check for GNU $ac_path_SED
  4202. case `"$ac_path_SED" --version 2>&1` in
  4203. *GNU*)
  4204. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4205. *)
  4206. ac_count=0
  4207. $as_echo_n 0123456789 >"conftest.in"
  4208. while :
  4209. do
  4210. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4211. mv "conftest.tmp" "conftest.in"
  4212. cp "conftest.in" "conftest.nl"
  4213. $as_echo '' >> "conftest.nl"
  4214. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4215. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4216. ac_count=`expr $ac_count + 1`
  4217. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4218. # Best one so far, save it but keep looking for a better one
  4219. ac_cv_path_SED="$ac_path_SED"
  4220. ac_path_SED_max=$ac_count
  4221. fi
  4222. # 10*(2^10) chars as input seems more than enough
  4223. test $ac_count -gt 10 && break
  4224. done
  4225. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4226. esac
  4227.  
  4228. $ac_path_SED_found && break 3
  4229. done
  4230. done
  4231. done
  4232. IFS=$as_save_IFS
  4233. if test -z "$ac_cv_path_SED"; then
  4234. { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
  4235. $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
  4236. { (exit 1); exit 1; }; }
  4237. fi
  4238. else
  4239. ac_cv_path_SED=$SED
  4240. fi
  4241.  
  4242. fi
  4243. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
  4244. $as_echo "$ac_cv_path_SED" >&6; }
  4245. SED="$ac_cv_path_SED"
  4246. rm -f conftest.sed
  4247.  
  4248. test -z "$SED" && SED=sed
  4249. Xsed="$SED -e 1s/^X//"
  4250.  
  4251.  
  4252.  
  4253.  
  4254.  
  4255.  
  4256.  
  4257.  
  4258.  
  4259.  
  4260.  
  4261. { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  4262. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4263. if test "${ac_cv_path_GREP+set}" = set; then
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. if test -z "$GREP"; then
  4267. ac_path_GREP_found=false
  4268. # Loop through the user's path and test for each of PROGNAME-LIST
  4269. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4270. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4271. do
  4272. IFS=$as_save_IFS
  4273. test -z "$as_dir" && as_dir=.
  4274. for ac_prog in grep ggrep; do
  4275. for ac_exec_ext in '' $ac_executable_extensions; do
  4276. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4277. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4278. # Check for GNU ac_path_GREP and select it if it is found.
  4279. # Check for GNU $ac_path_GREP
  4280. case `"$ac_path_GREP" --version 2>&1` in
  4281. *GNU*)
  4282. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4283. *)
  4284. ac_count=0
  4285. $as_echo_n 0123456789 >"conftest.in"
  4286. while :
  4287. do
  4288. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4289. mv "conftest.tmp" "conftest.in"
  4290. cp "conftest.in" "conftest.nl"
  4291. $as_echo 'GREP' >> "conftest.nl"
  4292. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4293. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4294. ac_count=`expr $ac_count + 1`
  4295. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4296. # Best one so far, save it but keep looking for a better one
  4297. ac_cv_path_GREP="$ac_path_GREP"
  4298. ac_path_GREP_max=$ac_count
  4299. fi
  4300. # 10*(2^10) chars as input seems more than enough
  4301. test $ac_count -gt 10 && break
  4302. done
  4303. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4304. esac
  4305.  
  4306. $ac_path_GREP_found && break 3
  4307. done
  4308. done
  4309. done
  4310. IFS=$as_save_IFS
  4311. if test -z "$ac_cv_path_GREP"; then
  4312. { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4313. $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4314. { (exit 1); exit 1; }; }
  4315. fi
  4316. else
  4317. ac_cv_path_GREP=$GREP
  4318. fi
  4319.  
  4320. fi
  4321. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  4322. $as_echo "$ac_cv_path_GREP" >&6; }
  4323. GREP="$ac_cv_path_GREP"
  4324.  
  4325.  
  4326. { $as_echo "$as_me:$LINENO: checking for egrep" >&5
  4327. $as_echo_n "checking for egrep... " >&6; }
  4328. if test "${ac_cv_path_EGREP+set}" = set; then
  4329. $as_echo_n "(cached) " >&6
  4330. else
  4331. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4332. then ac_cv_path_EGREP="$GREP -E"
  4333. else
  4334. if test -z "$EGREP"; then
  4335. ac_path_EGREP_found=false
  4336. # Loop through the user's path and test for each of PROGNAME-LIST
  4337. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4338. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4339. do
  4340. IFS=$as_save_IFS
  4341. test -z "$as_dir" && as_dir=.
  4342. for ac_prog in egrep; do
  4343. for ac_exec_ext in '' $ac_executable_extensions; do
  4344. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4345. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4346. # Check for GNU ac_path_EGREP and select it if it is found.
  4347. # Check for GNU $ac_path_EGREP
  4348. case `"$ac_path_EGREP" --version 2>&1` in
  4349. *GNU*)
  4350. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4351. *)
  4352. ac_count=0
  4353. $as_echo_n 0123456789 >"conftest.in"
  4354. while :
  4355. do
  4356. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4357. mv "conftest.tmp" "conftest.in"
  4358. cp "conftest.in" "conftest.nl"
  4359. $as_echo 'EGREP' >> "conftest.nl"
  4360. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4361. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4362. ac_count=`expr $ac_count + 1`
  4363. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4364. # Best one so far, save it but keep looking for a better one
  4365. ac_cv_path_EGREP="$ac_path_EGREP"
  4366. ac_path_EGREP_max=$ac_count
  4367. fi
  4368. # 10*(2^10) chars as input seems more than enough
  4369. test $ac_count -gt 10 && break
  4370. done
  4371. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4372. esac
  4373.  
  4374. $ac_path_EGREP_found && break 3
  4375. done
  4376. done
  4377. done
  4378. IFS=$as_save_IFS
  4379. if test -z "$ac_cv_path_EGREP"; then
  4380. { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4381. $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4382. { (exit 1); exit 1; }; }
  4383. fi
  4384. else
  4385. ac_cv_path_EGREP=$EGREP
  4386. fi
  4387.  
  4388. fi
  4389. fi
  4390. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  4391. $as_echo "$ac_cv_path_EGREP" >&6; }
  4392. EGREP="$ac_cv_path_EGREP"
  4393.  
  4394.  
  4395. { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
  4396. $as_echo_n "checking for fgrep... " >&6; }
  4397. if test "${ac_cv_path_FGREP+set}" = set; then
  4398. $as_echo_n "(cached) " >&6
  4399. else
  4400. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4401. then ac_cv_path_FGREP="$GREP -F"
  4402. else
  4403. if test -z "$FGREP"; then
  4404. ac_path_FGREP_found=false
  4405. # Loop through the user's path and test for each of PROGNAME-LIST
  4406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4407. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4408. do
  4409. IFS=$as_save_IFS
  4410. test -z "$as_dir" && as_dir=.
  4411. for ac_prog in fgrep; do
  4412. for ac_exec_ext in '' $ac_executable_extensions; do
  4413. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4414. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4415. # Check for GNU ac_path_FGREP and select it if it is found.
  4416. # Check for GNU $ac_path_FGREP
  4417. case `"$ac_path_FGREP" --version 2>&1` in
  4418. *GNU*)
  4419. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4420. *)
  4421. ac_count=0
  4422. $as_echo_n 0123456789 >"conftest.in"
  4423. while :
  4424. do
  4425. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4426. mv "conftest.tmp" "conftest.in"
  4427. cp "conftest.in" "conftest.nl"
  4428. $as_echo 'FGREP' >> "conftest.nl"
  4429. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4430. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4431. ac_count=`expr $ac_count + 1`
  4432. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4433. # Best one so far, save it but keep looking for a better one
  4434. ac_cv_path_FGREP="$ac_path_FGREP"
  4435. ac_path_FGREP_max=$ac_count
  4436. fi
  4437. # 10*(2^10) chars as input seems more than enough
  4438. test $ac_count -gt 10 && break
  4439. done
  4440. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4441. esac
  4442.  
  4443. $ac_path_FGREP_found && break 3
  4444. done
  4445. done
  4446. done
  4447. IFS=$as_save_IFS
  4448. if test -z "$ac_cv_path_FGREP"; then
  4449. { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  4450. $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  4451. { (exit 1); exit 1; }; }
  4452. fi
  4453. else
  4454. ac_cv_path_FGREP=$FGREP
  4455. fi
  4456.  
  4457. fi
  4458. fi
  4459. { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
  4460. $as_echo "$ac_cv_path_FGREP" >&6; }
  4461. FGREP="$ac_cv_path_FGREP"
  4462.  
  4463.  
  4464. test -z "$GREP" && GREP=grep
  4465.  
  4466.  
  4467.  
  4468.  
  4469.  
  4470.  
  4471.  
  4472.  
  4473.  
  4474.  
  4475.  
  4476.  
  4477.  
  4478.  
  4479.  
  4480.  
  4481.  
  4482.  
  4483.  
  4484. # Check whether --with-gnu-ld was given.
  4485. if test "${with_gnu_ld+set}" = set; then
  4486. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4487. else
  4488. with_gnu_ld=no
  4489. fi
  4490.  
  4491. ac_prog=ld
  4492. if test "$GCC" = yes; then
  4493. # Check if gcc -print-prog-name=ld gives a path.
  4494. { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  4495. $as_echo_n "checking for ld used by $CC... " >&6; }
  4496. case $host in
  4497. *-*-mingw*)
  4498. # gcc leaves a trailing carriage return which upsets mingw
  4499. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4500. *)
  4501. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4502. esac
  4503. case $ac_prog in
  4504. # Accept absolute paths.
  4505. [\\/]* | ?:[\\/]*)
  4506. re_direlt='/[^/][^/]*/\.\./'
  4507. # Canonicalize the pathname of ld
  4508. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4509. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4510. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4511. done
  4512. test -z "$LD" && LD="$ac_prog"
  4513. ;;
  4514. "")
  4515. # If it fails, then pretend we aren't using GCC.
  4516. ac_prog=ld
  4517. ;;
  4518. *)
  4519. # If it is relative, then search for the first ld in PATH.
  4520. with_gnu_ld=unknown
  4521. ;;
  4522. esac
  4523. elif test "$with_gnu_ld" = yes; then
  4524. { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
  4525. $as_echo_n "checking for GNU ld... " >&6; }
  4526. else
  4527. { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  4528. $as_echo_n "checking for non-GNU ld... " >&6; }
  4529. fi
  4530. if test "${lt_cv_path_LD+set}" = set; then
  4531. $as_echo_n "(cached) " >&6
  4532. else
  4533. if test -z "$LD"; then
  4534. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4535. for ac_dir in $PATH; do
  4536. IFS="$lt_save_ifs"
  4537. test -z "$ac_dir" && ac_dir=.
  4538. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4539. lt_cv_path_LD="$ac_dir/$ac_prog"
  4540. # Check to see if the program is GNU ld. I'd rather use --version,
  4541. # but apparently some variants of GNU ld only accept -v.
  4542. # Break only if it was the GNU/non-GNU ld that we prefer.
  4543. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4544. *GNU* | *'with BFD'*)
  4545. test "$with_gnu_ld" != no && break
  4546. ;;
  4547. *)
  4548. test "$with_gnu_ld" != yes && break
  4549. ;;
  4550. esac
  4551. fi
  4552. done
  4553. IFS="$lt_save_ifs"
  4554. else
  4555. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4556. fi
  4557. fi
  4558.  
  4559. LD="$lt_cv_path_LD"
  4560. if test -n "$LD"; then
  4561. { $as_echo "$as_me:$LINENO: result: $LD" >&5
  4562. $as_echo "$LD" >&6; }
  4563. else
  4564. { $as_echo "$as_me:$LINENO: result: no" >&5
  4565. $as_echo "no" >&6; }
  4566. fi
  4567. test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  4568. $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  4569. { (exit 1); exit 1; }; }
  4570. { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  4571. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4572. if test "${lt_cv_prog_gnu_ld+set}" = set; then
  4573. $as_echo_n "(cached) " >&6
  4574. else
  4575. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4576. case `$LD -v 2>&1 </dev/null` in
  4577. *GNU* | *'with BFD'*)
  4578. lt_cv_prog_gnu_ld=yes
  4579. ;;
  4580. *)
  4581. lt_cv_prog_gnu_ld=no
  4582. ;;
  4583. esac
  4584. fi
  4585. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  4586. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4587. with_gnu_ld=$lt_cv_prog_gnu_ld
  4588.  
  4589.  
  4590.  
  4591.  
  4592.  
  4593.  
  4594.  
  4595.  
  4596.  
  4597. { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
  4598. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4599. if test "${lt_cv_path_NM+set}" = set; then
  4600. $as_echo_n "(cached) " >&6
  4601. else
  4602. if test -n "$NM"; then
  4603. # Let the user override the test.
  4604. lt_cv_path_NM="$NM"
  4605. else
  4606. lt_nm_to_check="${ac_tool_prefix}nm"
  4607. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4608. lt_nm_to_check="$lt_nm_to_check nm"
  4609. fi
  4610. for lt_tmp_nm in $lt_nm_to_check; do
  4611. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4612. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4613. IFS="$lt_save_ifs"
  4614. test -z "$ac_dir" && ac_dir=.
  4615. tmp_nm="$ac_dir/$lt_tmp_nm"
  4616. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4617. # Check to see if the nm accepts a BSD-compat flag.
  4618. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4619. # nm: unknown option "B" ignored
  4620. # Tru64's nm complains that /dev/null is an invalid object file
  4621. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4622. */dev/null* | *'Invalid file or object type'*)
  4623. lt_cv_path_NM="$tmp_nm -B"
  4624. break
  4625. ;;
  4626. *)
  4627. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4628. */dev/null*)
  4629. lt_cv_path_NM="$tmp_nm -p"
  4630. break
  4631. ;;
  4632. *)
  4633. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4634. continue # so that we can try to find one that supports BSD flags
  4635. ;;
  4636. esac
  4637. ;;
  4638. esac
  4639. fi
  4640. done
  4641. IFS="$lt_save_ifs"
  4642. done
  4643. : ${lt_cv_path_NM=no}
  4644. fi
  4645. fi
  4646. { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  4647. $as_echo "$lt_cv_path_NM" >&6; }
  4648. if test "$lt_cv_path_NM" != "no"; then
  4649. NM="$lt_cv_path_NM"
  4650. else
  4651. # Didn't find any BSD compatible name lister, look for dumpbin.
  4652. if test -n "$ac_tool_prefix"; then
  4653. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4654. do
  4655. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4656. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4657. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4658. $as_echo_n "checking for $ac_word... " >&6; }
  4659. if test "${ac_cv_prog_DUMPBIN+set}" = set; then
  4660. $as_echo_n "(cached) " >&6
  4661. else
  4662. if test -n "$DUMPBIN"; then
  4663. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4664. else
  4665. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4666. for as_dir in $PATH
  4667. do
  4668. IFS=$as_save_IFS
  4669. test -z "$as_dir" && as_dir=.
  4670. for ac_exec_ext in '' $ac_executable_extensions; do
  4671. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4672. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4673. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4674. break 2
  4675. fi
  4676. done
  4677. done
  4678. IFS=$as_save_IFS
  4679.  
  4680. fi
  4681. fi
  4682. DUMPBIN=$ac_cv_prog_DUMPBIN
  4683. if test -n "$DUMPBIN"; then
  4684. { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
  4685. $as_echo "$DUMPBIN" >&6; }
  4686. else
  4687. { $as_echo "$as_me:$LINENO: result: no" >&5
  4688. $as_echo "no" >&6; }
  4689. fi
  4690.  
  4691.  
  4692. test -n "$DUMPBIN" && break
  4693. done
  4694. fi
  4695. if test -z "$DUMPBIN"; then
  4696. ac_ct_DUMPBIN=$DUMPBIN
  4697. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4698. do
  4699. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4700. set dummy $ac_prog; ac_word=$2
  4701. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  4702. $as_echo_n "checking for $ac_word... " >&6; }
  4703. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
  4704. $as_echo_n "(cached) " >&6
  4705. else
  4706. if test -n "$ac_ct_DUMPBIN"; then
  4707. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4708. else
  4709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4710. for as_dir in $PATH
  4711. do
  4712. IFS=$as_save_IFS
  4713. test -z "$as_dir" && as_dir=.
  4714. for ac_exec_ext in '' $ac_executable_extensions; do
  4715. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4716. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4717. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4718. break 2
  4719. fi
  4720. done
  4721. done
  4722. IFS=$as_save_IFS
  4723.  
  4724. fi
  4725. fi
  4726. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4727. if test -n "$ac_ct_DUMPBIN"; then
  4728. { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
  4729. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4730. else
  4731. { $as_echo "$as_me:$LINENO: result: no" >&5
  4732. $as_echo "no" >&6; }
  4733. fi
  4734.  
  4735.  
  4736. test -n "$ac_ct_DUMPBIN" && break
  4737. done
  4738.  
  4739. if test "x$ac_ct_DUMPBIN" = x; then
  4740. DUMPBIN=":"
  4741. else
  4742. case $cross_compiling:$ac_tool_warned in
  4743. yes:)
  4744. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  4745. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4746. ac_tool_warned=yes ;;
  4747. esac
  4748. DUMPBIN=$ac_ct_DUMPBIN
  4749. fi
  4750. fi
  4751.  
  4752.  
  4753. if test "$DUMPBIN" != ":"; then
  4754. NM="$DUMPBIN"
  4755. fi
  4756. fi
  4757. test -z "$NM" && NM=nm
  4758.  
  4759.  
  4760.  
  4761.  
  4762.  
  4763.  
  4764. { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
  4765. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4766. if test "${lt_cv_nm_interface+set}" = set; then
  4767. $as_echo_n "(cached) " >&6
  4768. else
  4769. lt_cv_nm_interface="BSD nm"
  4770. echo "int some_variable = 0;" > conftest.$ac_ext
  4771. (eval echo "\"\$as_me:4771: $ac_compile\"" >&5)
  4772. (eval "$ac_compile" 2>conftest.err)
  4773. cat conftest.err >&5
  4774. (eval echo "\"\$as_me:4774: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4775. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4776. cat conftest.err >&5
  4777. (eval echo "\"\$as_me:4777: output\"" >&5)
  4778. cat conftest.out >&5
  4779. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4780. lt_cv_nm_interface="MS dumpbin"
  4781. fi
  4782. rm -f conftest*
  4783. fi
  4784. { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
  4785. $as_echo "$lt_cv_nm_interface" >&6; }
  4786.  
  4787. { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
  4788. $as_echo_n "checking whether ln -s works... " >&6; }
  4789. LN_S=$as_ln_s
  4790. if test "$LN_S" = "ln -s"; then
  4791. { $as_echo "$as_me:$LINENO: result: yes" >&5
  4792. $as_echo "yes" >&6; }
  4793. else
  4794. { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  4795. $as_echo "no, using $LN_S" >&6; }
  4796. fi
  4797.  
  4798. # find the maximum length of command line arguments
  4799. { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  4800. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4801. if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. i=0
  4805. teststring="ABCD"
  4806.  
  4807. case $build_os in
  4808. msdosdjgpp*)
  4809. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4810. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4811. # during glob expansion). Even if it were fixed, the result of this
  4812. # check would be larger than it should be.
  4813. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4814. ;;
  4815.  
  4816. gnu*)
  4817. # Under GNU Hurd, this test is not required because there is
  4818. # no limit to the length of command line arguments.
  4819. # Libtool will interpret -1 as no limit whatsoever
  4820. lt_cv_sys_max_cmd_len=-1;
  4821. ;;
  4822.  
  4823. cygwin* | mingw* | cegcc*)
  4824. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4825. # about 5 minutes as the teststring grows exponentially.
  4826. # Worse, since 9x/ME are not pre-emptively multitasking,
  4827. # you end up with a "frozen" computer, even though with patience
  4828. # the test eventually succeeds (with a max line length of 256k).
  4829. # Instead, let's just punt: use the minimum linelength reported by
  4830. # all of the supported platforms: 8192 (on NT/2K/XP).
  4831. lt_cv_sys_max_cmd_len=8192;
  4832. ;;
  4833.  
  4834. amigaos*)
  4835. # On AmigaOS with pdksh, this test takes hours, literally.
  4836. # So we just punt and use a minimum line length of 8192.
  4837. lt_cv_sys_max_cmd_len=8192;
  4838. ;;
  4839.  
  4840. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4841. # This has been around since 386BSD, at least. Likely further.
  4842. if test -x /sbin/sysctl; then
  4843. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4844. elif test -x /usr/sbin/sysctl; then
  4845. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4846. else
  4847. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4848. fi
  4849. # And add a safety zone
  4850. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4851. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4852. ;;
  4853.  
  4854. interix*)
  4855. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4856. lt_cv_sys_max_cmd_len=196608
  4857. ;;
  4858.  
  4859. osf*)
  4860. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4861. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4862. # nice to cause kernel panics so lets avoid the loop below.
  4863. # First set a reasonable default.
  4864. lt_cv_sys_max_cmd_len=16384
  4865. #
  4866. if test -x /sbin/sysconfig; then
  4867. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4868. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4869. esac
  4870. fi
  4871. ;;
  4872. sco3.2v5*)
  4873. lt_cv_sys_max_cmd_len=102400
  4874. ;;
  4875. sysv5* | sco5v6* | sysv4.2uw2*)
  4876. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4877. if test -n "$kargmax"; then
  4878. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4879. else
  4880. lt_cv_sys_max_cmd_len=32768
  4881. fi
  4882. ;;
  4883. *)
  4884. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4885. if test -n "$lt_cv_sys_max_cmd_len"; then
  4886. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4887. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4888. else
  4889. # Make teststring a little bigger before we do anything with it.
  4890. # a 1K string should be a reasonable start.
  4891. for i in 1 2 3 4 5 6 7 8 ; do
  4892. teststring=$teststring$teststring
  4893. done
  4894. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4895. # If test is not a shell built-in, we'll probably end up computing a
  4896. # maximum length that is only half of the actual maximum length, but
  4897. # we can't tell.
  4898. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4899. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4900. test $i != 17 # 1/2 MB should be enough
  4901. do
  4902. i=`expr $i + 1`
  4903. teststring=$teststring$teststring
  4904. done
  4905. # Only check the string length outside the loop.
  4906. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4907. teststring=
  4908. # Add a significant safety factor because C++ compilers can tack on
  4909. # massive amounts of additional arguments before passing them to the
  4910. # linker. It appears as though 1/2 is a usable value.
  4911. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4912. fi
  4913. ;;
  4914. esac
  4915.  
  4916. fi
  4917.  
  4918. if test -n $lt_cv_sys_max_cmd_len ; then
  4919. { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  4920. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4921. else
  4922. { $as_echo "$as_me:$LINENO: result: none" >&5
  4923. $as_echo "none" >&6; }
  4924. fi
  4925. max_cmd_len=$lt_cv_sys_max_cmd_len
  4926.  
  4927.  
  4928.  
  4929.  
  4930.  
  4931.  
  4932. : ${CP="cp -f"}
  4933. : ${MV="mv -f"}
  4934. : ${RM="rm -f"}
  4935.  
  4936. { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
  4937. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4938. # Try some XSI features
  4939. xsi_shell=no
  4940. ( _lt_dummy="a/b/c"
  4941. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4942. = c,a/b,, \
  4943. && eval 'test $(( 1 + 1 )) -eq 2 \
  4944. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4945. && xsi_shell=yes
  4946. { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
  4947. $as_echo "$xsi_shell" >&6; }
  4948.  
  4949.  
  4950. { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
  4951. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4952. lt_shell_append=no
  4953. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4954. >/dev/null 2>&1 \
  4955. && lt_shell_append=yes
  4956. { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
  4957. $as_echo "$lt_shell_append" >&6; }
  4958.  
  4959.  
  4960. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4961. lt_unset=unset
  4962. else
  4963. lt_unset=false
  4964. fi
  4965.  
  4966.  
  4967.  
  4968.  
  4969.  
  4970. # test EBCDIC or ASCII
  4971. case `echo X|tr X '\101'` in
  4972. A) # ASCII based system
  4973. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4974. lt_SP2NL='tr \040 \012'
  4975. lt_NL2SP='tr \015\012 \040\040'
  4976. ;;
  4977. *) # EBCDIC based system
  4978. lt_SP2NL='tr \100 \n'
  4979. lt_NL2SP='tr \r\n \100\100'
  4980. ;;
  4981. esac
  4982.  
  4983.  
  4984.  
  4985.  
  4986.  
  4987.  
  4988.  
  4989.  
  4990.  
  4991. { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  4992. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4993. if test "${lt_cv_ld_reload_flag+set}" = set; then
  4994. $as_echo_n "(cached) " >&6
  4995. else
  4996. lt_cv_ld_reload_flag='-r'
  4997. fi
  4998. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  4999. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5000. reload_flag=$lt_cv_ld_reload_flag
  5001. case $reload_flag in
  5002. "" | " "*) ;;
  5003. *) reload_flag=" $reload_flag" ;;
  5004. esac
  5005. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5006. case $host_os in
  5007. darwin*)
  5008. if test "$GCC" = yes; then
  5009. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5010. else
  5011. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5012. fi
  5013. ;;
  5014. esac
  5015.  
  5016.  
  5017.  
  5018.  
  5019.  
  5020.  
  5021.  
  5022.  
  5023.  
  5024. if test -n "$ac_tool_prefix"; then
  5025. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5026. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5027. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5028. $as_echo_n "checking for $ac_word... " >&6; }
  5029. if test "${ac_cv_prog_OBJDUMP+set}" = set; then
  5030. $as_echo_n "(cached) " >&6
  5031. else
  5032. if test -n "$OBJDUMP"; then
  5033. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5034. else
  5035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5036. for as_dir in $PATH
  5037. do
  5038. IFS=$as_save_IFS
  5039. test -z "$as_dir" && as_dir=.
  5040. for ac_exec_ext in '' $ac_executable_extensions; do
  5041. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5042. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5043. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5044. break 2
  5045. fi
  5046. done
  5047. done
  5048. IFS=$as_save_IFS
  5049.  
  5050. fi
  5051. fi
  5052. OBJDUMP=$ac_cv_prog_OBJDUMP
  5053. if test -n "$OBJDUMP"; then
  5054. { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
  5055. $as_echo "$OBJDUMP" >&6; }
  5056. else
  5057. { $as_echo "$as_me:$LINENO: result: no" >&5
  5058. $as_echo "no" >&6; }
  5059. fi
  5060.  
  5061.  
  5062. fi
  5063. if test -z "$ac_cv_prog_OBJDUMP"; then
  5064. ac_ct_OBJDUMP=$OBJDUMP
  5065. # Extract the first word of "objdump", so it can be a program name with args.
  5066. set dummy objdump; ac_word=$2
  5067. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5068. $as_echo_n "checking for $ac_word... " >&6; }
  5069. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
  5070. $as_echo_n "(cached) " >&6
  5071. else
  5072. if test -n "$ac_ct_OBJDUMP"; then
  5073. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5074. else
  5075. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5076. for as_dir in $PATH
  5077. do
  5078. IFS=$as_save_IFS
  5079. test -z "$as_dir" && as_dir=.
  5080. for ac_exec_ext in '' $ac_executable_extensions; do
  5081. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5082. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5083. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5084. break 2
  5085. fi
  5086. done
  5087. done
  5088. IFS=$as_save_IFS
  5089.  
  5090. fi
  5091. fi
  5092. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5093. if test -n "$ac_ct_OBJDUMP"; then
  5094. { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
  5095. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5096. else
  5097. { $as_echo "$as_me:$LINENO: result: no" >&5
  5098. $as_echo "no" >&6; }
  5099. fi
  5100.  
  5101. if test "x$ac_ct_OBJDUMP" = x; then
  5102. OBJDUMP="false"
  5103. else
  5104. case $cross_compiling:$ac_tool_warned in
  5105. yes:)
  5106. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5107. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5108. ac_tool_warned=yes ;;
  5109. esac
  5110. OBJDUMP=$ac_ct_OBJDUMP
  5111. fi
  5112. else
  5113. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5114. fi
  5115.  
  5116. test -z "$OBJDUMP" && OBJDUMP=objdump
  5117.  
  5118.  
  5119.  
  5120.  
  5121.  
  5122.  
  5123.  
  5124.  
  5125.  
  5126. { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
  5127. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5128. if test "${lt_cv_deplibs_check_method+set}" = set; then
  5129. $as_echo_n "(cached) " >&6
  5130. else
  5131. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5132. lt_cv_file_magic_test_file=
  5133. lt_cv_deplibs_check_method='unknown'
  5134. # Need to set the preceding variable on all platforms that support
  5135. # interlibrary dependencies.
  5136. # 'none' -- dependencies not supported.
  5137. # `unknown' -- same as none, but documents that we really don't know.
  5138. # 'pass_all' -- all dependencies passed with no checks.
  5139. # 'test_compile' -- check by making test program.
  5140. # 'file_magic [[regex]]' -- check by looking for files in library path
  5141. # which responds to the $file_magic_cmd with a given extended regex.
  5142. # If you have `file' or equivalent on your system and you're not sure
  5143. # whether `pass_all' will *always* work, you probably want this one.
  5144.  
  5145. case $host_os in
  5146. aix[4-9]*)
  5147. lt_cv_deplibs_check_method=pass_all
  5148. ;;
  5149.  
  5150. beos*)
  5151. lt_cv_deplibs_check_method=pass_all
  5152. ;;
  5153.  
  5154. bsdi[45]*)
  5155. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5156. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5157. lt_cv_file_magic_test_file=/shlib/libc.so
  5158. ;;
  5159.  
  5160. cygwin*)
  5161. # func_win32_libid is a shell function defined in ltmain.sh
  5162. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5163. lt_cv_file_magic_cmd='func_win32_libid'
  5164. ;;
  5165.  
  5166. mingw* | pw32*)
  5167. # Base MSYS/MinGW do not provide the 'file' command needed by
  5168. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5169. # unless we find 'file', for example because we are cross-compiling.
  5170. if ( file / ) >/dev/null 2>&1; then
  5171. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5172. lt_cv_file_magic_cmd='func_win32_libid'
  5173. else
  5174. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5175. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5176. fi
  5177. ;;
  5178.  
  5179. cegcc)
  5180. # use the weaker test based on 'objdump'. See mingw*.
  5181. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5182. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5183. ;;
  5184.  
  5185. darwin* | rhapsody*)
  5186. lt_cv_deplibs_check_method=pass_all
  5187. ;;
  5188.  
  5189. freebsd* | dragonfly*)
  5190. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5191. case $host_cpu in
  5192. i*86 )
  5193. # Not sure whether the presence of OpenBSD here was a mistake.
  5194. # Let's accept both of them until this is cleared up.
  5195. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5196. lt_cv_file_magic_cmd=/usr/bin/file
  5197. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5198. ;;
  5199. esac
  5200. else
  5201. lt_cv_deplibs_check_method=pass_all
  5202. fi
  5203. ;;
  5204.  
  5205. gnu*)
  5206. lt_cv_deplibs_check_method=pass_all
  5207. ;;
  5208.  
  5209. hpux10.20* | hpux11*)
  5210. lt_cv_file_magic_cmd=/usr/bin/file
  5211. case $host_cpu in
  5212. ia64*)
  5213. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5214. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5215. ;;
  5216. hppa*64*)
  5217. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5218. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5219. ;;
  5220. *)
  5221. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5222. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5223. ;;
  5224. esac
  5225. ;;
  5226.  
  5227. interix[3-9]*)
  5228. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5229. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5230. ;;
  5231.  
  5232. irix5* | irix6* | nonstopux*)
  5233. case $LD in
  5234. *-32|*"-32 ") libmagic=32-bit;;
  5235. *-n32|*"-n32 ") libmagic=N32;;
  5236. *-64|*"-64 ") libmagic=64-bit;;
  5237. *) libmagic=never-match;;
  5238. esac
  5239. lt_cv_deplibs_check_method=pass_all
  5240. ;;
  5241.  
  5242. # This must be Linux ELF.
  5243. linux* | k*bsd*-gnu)
  5244. lt_cv_deplibs_check_method=pass_all
  5245. ;;
  5246.  
  5247. netbsd*)
  5248. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5249. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5250. else
  5251. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5252. fi
  5253. ;;
  5254.  
  5255. newos6*)
  5256. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5257. lt_cv_file_magic_cmd=/usr/bin/file
  5258. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5259. ;;
  5260.  
  5261. *nto* | *qnx*)
  5262. lt_cv_deplibs_check_method=pass_all
  5263. ;;
  5264.  
  5265. openbsd*)
  5266. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5267. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5268. else
  5269. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5270. fi
  5271. ;;
  5272.  
  5273. osf3* | osf4* | osf5*)
  5274. lt_cv_deplibs_check_method=pass_all
  5275. ;;
  5276.  
  5277. rdos*)
  5278. lt_cv_deplibs_check_method=pass_all
  5279. ;;
  5280.  
  5281. solaris*)
  5282. lt_cv_deplibs_check_method=pass_all
  5283. ;;
  5284.  
  5285. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5286. lt_cv_deplibs_check_method=pass_all
  5287. ;;
  5288.  
  5289. sysv4 | sysv4.3*)
  5290. case $host_vendor in
  5291. motorola)
  5292. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  5293. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5294. ;;
  5295. ncr)
  5296. lt_cv_deplibs_check_method=pass_all
  5297. ;;
  5298. sequent)
  5299. lt_cv_file_magic_cmd='/bin/file'
  5300. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5301. ;;
  5302. sni)
  5303. lt_cv_file_magic_cmd='/bin/file'
  5304. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5305. lt_cv_file_magic_test_file=/lib/libc.so
  5306. ;;
  5307. siemens)
  5308. lt_cv_deplibs_check_method=pass_all
  5309. ;;
  5310. pc)
  5311. lt_cv_deplibs_check_method=pass_all
  5312. ;;
  5313. esac
  5314. ;;
  5315.  
  5316. tpf*)
  5317. lt_cv_deplibs_check_method=pass_all
  5318. ;;
  5319. esac
  5320.  
  5321. fi
  5322. { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  5323. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5324. file_magic_cmd=$lt_cv_file_magic_cmd
  5325. deplibs_check_method=$lt_cv_deplibs_check_method
  5326. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5327.  
  5328.  
  5329.  
  5330.  
  5331.  
  5332.  
  5333.  
  5334.  
  5335.  
  5336.  
  5337.  
  5338.  
  5339. if test -n "$ac_tool_prefix"; then
  5340. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5341. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5342. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5343. $as_echo_n "checking for $ac_word... " >&6; }
  5344. if test "${ac_cv_prog_AR+set}" = set; then
  5345. $as_echo_n "(cached) " >&6
  5346. else
  5347. if test -n "$AR"; then
  5348. ac_cv_prog_AR="$AR" # Let the user override the test.
  5349. else
  5350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5351. for as_dir in $PATH
  5352. do
  5353. IFS=$as_save_IFS
  5354. test -z "$as_dir" && as_dir=.
  5355. for ac_exec_ext in '' $ac_executable_extensions; do
  5356. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5357. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5358. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5359. break 2
  5360. fi
  5361. done
  5362. done
  5363. IFS=$as_save_IFS
  5364.  
  5365. fi
  5366. fi
  5367. AR=$ac_cv_prog_AR
  5368. if test -n "$AR"; then
  5369. { $as_echo "$as_me:$LINENO: result: $AR" >&5
  5370. $as_echo "$AR" >&6; }
  5371. else
  5372. { $as_echo "$as_me:$LINENO: result: no" >&5
  5373. $as_echo "no" >&6; }
  5374. fi
  5375.  
  5376.  
  5377. fi
  5378. if test -z "$ac_cv_prog_AR"; then
  5379. ac_ct_AR=$AR
  5380. # Extract the first word of "ar", so it can be a program name with args.
  5381. set dummy ar; ac_word=$2
  5382. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5383. $as_echo_n "checking for $ac_word... " >&6; }
  5384. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  5385. $as_echo_n "(cached) " >&6
  5386. else
  5387. if test -n "$ac_ct_AR"; then
  5388. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5389. else
  5390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5391. for as_dir in $PATH
  5392. do
  5393. IFS=$as_save_IFS
  5394. test -z "$as_dir" && as_dir=.
  5395. for ac_exec_ext in '' $ac_executable_extensions; do
  5396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5397. ac_cv_prog_ac_ct_AR="ar"
  5398. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5399. break 2
  5400. fi
  5401. done
  5402. done
  5403. IFS=$as_save_IFS
  5404.  
  5405. fi
  5406. fi
  5407. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5408. if test -n "$ac_ct_AR"; then
  5409. { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  5410. $as_echo "$ac_ct_AR" >&6; }
  5411. else
  5412. { $as_echo "$as_me:$LINENO: result: no" >&5
  5413. $as_echo "no" >&6; }
  5414. fi
  5415.  
  5416. if test "x$ac_ct_AR" = x; then
  5417. AR="false"
  5418. else
  5419. case $cross_compiling:$ac_tool_warned in
  5420. yes:)
  5421. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5422. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5423. ac_tool_warned=yes ;;
  5424. esac
  5425. AR=$ac_ct_AR
  5426. fi
  5427. else
  5428. AR="$ac_cv_prog_AR"
  5429. fi
  5430.  
  5431. test -z "$AR" && AR=ar
  5432. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5433.  
  5434.  
  5435.  
  5436.  
  5437.  
  5438.  
  5439.  
  5440.  
  5441.  
  5442.  
  5443.  
  5444. if test -n "$ac_tool_prefix"; then
  5445. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5446. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5447. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5448. $as_echo_n "checking for $ac_word... " >&6; }
  5449. if test "${ac_cv_prog_STRIP+set}" = set; then
  5450. $as_echo_n "(cached) " >&6
  5451. else
  5452. if test -n "$STRIP"; then
  5453. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5454. else
  5455. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5456. for as_dir in $PATH
  5457. do
  5458. IFS=$as_save_IFS
  5459. test -z "$as_dir" && as_dir=.
  5460. for ac_exec_ext in '' $ac_executable_extensions; do
  5461. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5462. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5463. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5464. break 2
  5465. fi
  5466. done
  5467. done
  5468. IFS=$as_save_IFS
  5469.  
  5470. fi
  5471. fi
  5472. STRIP=$ac_cv_prog_STRIP
  5473. if test -n "$STRIP"; then
  5474. { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
  5475. $as_echo "$STRIP" >&6; }
  5476. else
  5477. { $as_echo "$as_me:$LINENO: result: no" >&5
  5478. $as_echo "no" >&6; }
  5479. fi
  5480.  
  5481.  
  5482. fi
  5483. if test -z "$ac_cv_prog_STRIP"; then
  5484. ac_ct_STRIP=$STRIP
  5485. # Extract the first word of "strip", so it can be a program name with args.
  5486. set dummy strip; ac_word=$2
  5487. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5488. $as_echo_n "checking for $ac_word... " >&6; }
  5489. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  5490. $as_echo_n "(cached) " >&6
  5491. else
  5492. if test -n "$ac_ct_STRIP"; then
  5493. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5494. else
  5495. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5496. for as_dir in $PATH
  5497. do
  5498. IFS=$as_save_IFS
  5499. test -z "$as_dir" && as_dir=.
  5500. for ac_exec_ext in '' $ac_executable_extensions; do
  5501. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5502. ac_cv_prog_ac_ct_STRIP="strip"
  5503. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5504. break 2
  5505. fi
  5506. done
  5507. done
  5508. IFS=$as_save_IFS
  5509.  
  5510. fi
  5511. fi
  5512. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5513. if test -n "$ac_ct_STRIP"; then
  5514. { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  5515. $as_echo "$ac_ct_STRIP" >&6; }
  5516. else
  5517. { $as_echo "$as_me:$LINENO: result: no" >&5
  5518. $as_echo "no" >&6; }
  5519. fi
  5520.  
  5521. if test "x$ac_ct_STRIP" = x; then
  5522. STRIP=":"
  5523. else
  5524. case $cross_compiling:$ac_tool_warned in
  5525. yes:)
  5526. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5527. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5528. ac_tool_warned=yes ;;
  5529. esac
  5530. STRIP=$ac_ct_STRIP
  5531. fi
  5532. else
  5533. STRIP="$ac_cv_prog_STRIP"
  5534. fi
  5535.  
  5536. test -z "$STRIP" && STRIP=:
  5537.  
  5538.  
  5539.  
  5540.  
  5541.  
  5542.  
  5543. if test -n "$ac_tool_prefix"; then
  5544. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5545. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5546. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5547. $as_echo_n "checking for $ac_word... " >&6; }
  5548. if test "${ac_cv_prog_RANLIB+set}" = set; then
  5549. $as_echo_n "(cached) " >&6
  5550. else
  5551. if test -n "$RANLIB"; then
  5552. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5553. else
  5554. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5555. for as_dir in $PATH
  5556. do
  5557. IFS=$as_save_IFS
  5558. test -z "$as_dir" && as_dir=.
  5559. for ac_exec_ext in '' $ac_executable_extensions; do
  5560. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5561. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5562. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5563. break 2
  5564. fi
  5565. done
  5566. done
  5567. IFS=$as_save_IFS
  5568.  
  5569. fi
  5570. fi
  5571. RANLIB=$ac_cv_prog_RANLIB
  5572. if test -n "$RANLIB"; then
  5573. { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
  5574. $as_echo "$RANLIB" >&6; }
  5575. else
  5576. { $as_echo "$as_me:$LINENO: result: no" >&5
  5577. $as_echo "no" >&6; }
  5578. fi
  5579.  
  5580.  
  5581. fi
  5582. if test -z "$ac_cv_prog_RANLIB"; then
  5583. ac_ct_RANLIB=$RANLIB
  5584. # Extract the first word of "ranlib", so it can be a program name with args.
  5585. set dummy ranlib; ac_word=$2
  5586. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  5587. $as_echo_n "checking for $ac_word... " >&6; }
  5588. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  5589. $as_echo_n "(cached) " >&6
  5590. else
  5591. if test -n "$ac_ct_RANLIB"; then
  5592. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5593. else
  5594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5595. for as_dir in $PATH
  5596. do
  5597. IFS=$as_save_IFS
  5598. test -z "$as_dir" && as_dir=.
  5599. for ac_exec_ext in '' $ac_executable_extensions; do
  5600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5601. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5602. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  5603. break 2
  5604. fi
  5605. done
  5606. done
  5607. IFS=$as_save_IFS
  5608.  
  5609. fi
  5610. fi
  5611. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5612. if test -n "$ac_ct_RANLIB"; then
  5613. { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  5614. $as_echo "$ac_ct_RANLIB" >&6; }
  5615. else
  5616. { $as_echo "$as_me:$LINENO: result: no" >&5
  5617. $as_echo "no" >&6; }
  5618. fi
  5619.  
  5620. if test "x$ac_ct_RANLIB" = x; then
  5621. RANLIB=":"
  5622. else
  5623. case $cross_compiling:$ac_tool_warned in
  5624. yes:)
  5625. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  5626. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5627. ac_tool_warned=yes ;;
  5628. esac
  5629. RANLIB=$ac_ct_RANLIB
  5630. fi
  5631. else
  5632. RANLIB="$ac_cv_prog_RANLIB"
  5633. fi
  5634.  
  5635. test -z "$RANLIB" && RANLIB=:
  5636.  
  5637.  
  5638.  
  5639.  
  5640.  
  5641.  
  5642. # Determine commands to create old-style static archives.
  5643. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5644. old_postinstall_cmds='chmod 644 $oldlib'
  5645. old_postuninstall_cmds=
  5646.  
  5647. if test -n "$RANLIB"; then
  5648. case $host_os in
  5649. openbsd*)
  5650. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5651. ;;
  5652. *)
  5653. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5654. ;;
  5655. esac
  5656. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5657. fi
  5658.  
  5659.  
  5660.  
  5661.  
  5662.  
  5663.  
  5664.  
  5665.  
  5666.  
  5667.  
  5668.  
  5669.  
  5670.  
  5671.  
  5672.  
  5673.  
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679.  
  5680.  
  5681.  
  5682.  
  5683.  
  5684.  
  5685.  
  5686.  
  5687.  
  5688.  
  5689.  
  5690.  
  5691.  
  5692. # If no C compiler was specified, use CC.
  5693. LTCC=${LTCC-"$CC"}
  5694.  
  5695. # If no C compiler flags were specified, use CFLAGS.
  5696. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5697.  
  5698. # Allow CC to be a program name with arguments.
  5699. compiler=$CC
  5700.  
  5701.  
  5702. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5703. { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  5704. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5705. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708.  
  5709. # These are sane defaults that work on at least a few old systems.
  5710. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5711.  
  5712. # Character class describing NM global symbol codes.
  5713. symcode='[BCDEGRST]'
  5714.  
  5715. # Regexp to match symbols that can be accessed directly from C.
  5716. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5717.  
  5718. # Define system-specific variables.
  5719. case $host_os in
  5720. aix*)
  5721. symcode='[BCDT]'
  5722. ;;
  5723. cygwin* | mingw* | pw32* | cegcc*)
  5724. symcode='[ABCDGISTW]'
  5725. ;;
  5726. hpux*)
  5727. if test "$host_cpu" = ia64; then
  5728. symcode='[ABCDEGRST]'
  5729. fi
  5730. ;;
  5731. irix* | nonstopux*)
  5732. symcode='[BCDEGRST]'
  5733. ;;
  5734. osf*)
  5735. symcode='[BCDEGQRST]'
  5736. ;;
  5737. solaris*)
  5738. symcode='[BDRT]'
  5739. ;;
  5740. sco3.2v5*)
  5741. symcode='[DT]'
  5742. ;;
  5743. sysv4.2uw2*)
  5744. symcode='[DT]'
  5745. ;;
  5746. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5747. symcode='[ABDT]'
  5748. ;;
  5749. sysv4)
  5750. symcode='[DFNSTU]'
  5751. ;;
  5752. esac
  5753.  
  5754. # If we're using GNU nm, then use its standard symbol codes.
  5755. case `$NM -V 2>&1` in
  5756. *GNU* | *'with BFD'*)
  5757. symcode='[ABCDGIRSTW]' ;;
  5758. esac
  5759.  
  5760. # Transform an extracted symbol line into a proper C declaration.
  5761. # Some systems (esp. on ia64) link data and code symbols differently,
  5762. # so use this general approach.
  5763. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5764.  
  5765. # Transform an extracted symbol line into symbol name and symbol address
  5766. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5767. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5768.  
  5769. # Handle CRLF in mingw tool chain
  5770. opt_cr=
  5771. case $build_os in
  5772. mingw*)
  5773. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5774. ;;
  5775. esac
  5776.  
  5777. # Try without a prefix underscore, then with it.
  5778. for ac_symprfx in "" "_"; do
  5779.  
  5780. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5781. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5782.  
  5783. # Write the raw and C identifiers.
  5784. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5785. # Fake it for dumpbin and say T for any non-static function
  5786. # and D for any global variable.
  5787. # Also find C++ and __fastcall symbols from MSVC++,
  5788. # which start with @ or ?.
  5789. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5790. " {last_section=section; section=\$ 3};"\
  5791. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5792. " \$ 0!~/External *\|/{next};"\
  5793. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5794. " {if(hide[section]) next};"\
  5795. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5796. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5797. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5798. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5799. " ' prfx=^$ac_symprfx"
  5800. else
  5801. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5802. fi
  5803.  
  5804. # Check to see that the pipe works correctly.
  5805. pipe_works=no
  5806.  
  5807. rm -f conftest*
  5808. cat > conftest.$ac_ext <<_LT_EOF
  5809. #ifdef __cplusplus
  5810. extern "C" {
  5811. #endif
  5812. char nm_test_var;
  5813. void nm_test_func(void);
  5814. void nm_test_func(void){}
  5815. #ifdef __cplusplus
  5816. }
  5817. #endif
  5818. int main(){nm_test_var='a';nm_test_func();return(0);}
  5819. _LT_EOF
  5820.  
  5821. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5822. (eval $ac_compile) 2>&5
  5823. ac_status=$?
  5824. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5825. (exit $ac_status); }; then
  5826. # Now try to grab the symbols.
  5827. nlist=conftest.nm
  5828. if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  5829. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5830. ac_status=$?
  5831. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5832. (exit $ac_status); } && test -s "$nlist"; then
  5833. # Try sorting and uniquifying the output.
  5834. if sort "$nlist" | uniq > "$nlist"T; then
  5835. mv -f "$nlist"T "$nlist"
  5836. else
  5837. rm -f "$nlist"T
  5838. fi
  5839.  
  5840. # Make sure that we snagged all the symbols we need.
  5841. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5842. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5843. cat <<_LT_EOF > conftest.$ac_ext
  5844. #ifdef __cplusplus
  5845. extern "C" {
  5846. #endif
  5847.  
  5848. _LT_EOF
  5849. # Now generate the symbol file.
  5850. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5851.  
  5852. cat <<_LT_EOF >> conftest.$ac_ext
  5853.  
  5854. /* The mapping between symbol names and symbols. */
  5855. const struct {
  5856. const char *name;
  5857. void *address;
  5858. }
  5859. lt__PROGRAM__LTX_preloaded_symbols[] =
  5860. {
  5861. { "@PROGRAM@", (void *) 0 },
  5862. _LT_EOF
  5863. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5864. cat <<\_LT_EOF >> conftest.$ac_ext
  5865. {0, (void *) 0}
  5866. };
  5867.  
  5868. /* This works around a problem in FreeBSD linker */
  5869. #ifdef FREEBSD_WORKAROUND
  5870. static const void *lt_preloaded_setup() {
  5871. return lt__PROGRAM__LTX_preloaded_symbols;
  5872. }
  5873. #endif
  5874.  
  5875. #ifdef __cplusplus
  5876. }
  5877. #endif
  5878. _LT_EOF
  5879. # Now try linking the two files.
  5880. mv conftest.$ac_objext conftstm.$ac_objext
  5881. lt_save_LIBS="$LIBS"
  5882. lt_save_CFLAGS="$CFLAGS"
  5883. LIBS="conftstm.$ac_objext"
  5884. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5886. (eval $ac_link) 2>&5
  5887. ac_status=$?
  5888. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. (exit $ac_status); } && test -s conftest${ac_exeext}; then
  5890. pipe_works=yes
  5891. fi
  5892. LIBS="$lt_save_LIBS"
  5893. CFLAGS="$lt_save_CFLAGS"
  5894. else
  5895. echo "cannot find nm_test_func in $nlist" >&5
  5896. fi
  5897. else
  5898. echo "cannot find nm_test_var in $nlist" >&5
  5899. fi
  5900. else
  5901. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5902. fi
  5903. else
  5904. echo "$progname: failed program was:" >&5
  5905. cat conftest.$ac_ext >&5
  5906. fi
  5907. rm -rf conftest* conftst*
  5908.  
  5909. # Do not use the global_symbol_pipe unless it works.
  5910. if test "$pipe_works" = yes; then
  5911. break
  5912. else
  5913. lt_cv_sys_global_symbol_pipe=
  5914. fi
  5915. done
  5916.  
  5917. fi
  5918.  
  5919. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5920. lt_cv_sys_global_symbol_to_cdecl=
  5921. fi
  5922. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5923. { $as_echo "$as_me:$LINENO: result: failed" >&5
  5924. $as_echo "failed" >&6; }
  5925. else
  5926. { $as_echo "$as_me:$LINENO: result: ok" >&5
  5927. $as_echo "ok" >&6; }
  5928. fi
  5929.  
  5930.  
  5931.  
  5932.  
  5933.  
  5934.  
  5935.  
  5936.  
  5937.  
  5938.  
  5939.  
  5940.  
  5941.  
  5942.  
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952. # Check whether --enable-libtool-lock was given.
  5953. if test "${enable_libtool_lock+set}" = set; then
  5954. enableval=$enable_libtool_lock;
  5955. fi
  5956.  
  5957. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5958.  
  5959. # Some flags need to be propagated to the compiler or linker for good
  5960. # libtool support.
  5961. case $host in
  5962. ia64-*-hpux*)
  5963. # Find out which ABI we are using.
  5964. echo 'int i;' > conftest.$ac_ext
  5965. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5966. (eval $ac_compile) 2>&5
  5967. ac_status=$?
  5968. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5969. (exit $ac_status); }; then
  5970. case `/usr/bin/file conftest.$ac_objext` in
  5971. *ELF-32*)
  5972. HPUX_IA64_MODE="32"
  5973. ;;
  5974. *ELF-64*)
  5975. HPUX_IA64_MODE="64"
  5976. ;;
  5977. esac
  5978. fi
  5979. rm -rf conftest*
  5980. ;;
  5981. *-*-irix6*)
  5982. # Find out which ABI we are using.
  5983. echo '#line 5983 "configure"' > conftest.$ac_ext
  5984. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5985. (eval $ac_compile) 2>&5
  5986. ac_status=$?
  5987. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); }; then
  5989. if test "$lt_cv_prog_gnu_ld" = yes; then
  5990. case `/usr/bin/file conftest.$ac_objext` in
  5991. *32-bit*)
  5992. LD="${LD-ld} -melf32bsmip"
  5993. ;;
  5994. *N32*)
  5995. LD="${LD-ld} -melf32bmipn32"
  5996. ;;
  5997. *64-bit*)
  5998. LD="${LD-ld} -melf64bmip"
  5999. ;;
  6000. esac
  6001. else
  6002. case `/usr/bin/file conftest.$ac_objext` in
  6003. *32-bit*)
  6004. LD="${LD-ld} -32"
  6005. ;;
  6006. *N32*)
  6007. LD="${LD-ld} -n32"
  6008. ;;
  6009. *64-bit*)
  6010. LD="${LD-ld} -64"
  6011. ;;
  6012. esac
  6013. fi
  6014. fi
  6015. rm -rf conftest*
  6016. ;;
  6017.  
  6018. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6019. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6020. # Find out which ABI we are using.
  6021. echo 'int i;' > conftest.$ac_ext
  6022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6023. (eval $ac_compile) 2>&5
  6024. ac_status=$?
  6025. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6026. (exit $ac_status); }; then
  6027. case `/usr/bin/file conftest.o` in
  6028. *32-bit*)
  6029. case $host in
  6030. x86_64-*kfreebsd*-gnu)
  6031. LD="${LD-ld} -m elf_i386_fbsd"
  6032. ;;
  6033. x86_64-*linux*)
  6034. LD="${LD-ld} -m elf_i386"
  6035. ;;
  6036. ppc64-*linux*|powerpc64-*linux*)
  6037. LD="${LD-ld} -m elf32ppclinux"
  6038. ;;
  6039. s390x-*linux*)
  6040. LD="${LD-ld} -m elf_s390"
  6041. ;;
  6042. sparc64-*linux*)
  6043. LD="${LD-ld} -m elf32_sparc"
  6044. ;;
  6045. esac
  6046. ;;
  6047. *64-bit*)
  6048. case $host in
  6049. x86_64-*kfreebsd*-gnu)
  6050. LD="${LD-ld} -m elf_x86_64_fbsd"
  6051. ;;
  6052. x86_64-*linux*)
  6053. LD="${LD-ld} -m elf_x86_64"
  6054. ;;
  6055. ppc*-*linux*|powerpc*-*linux*)
  6056. LD="${LD-ld} -m elf64ppc"
  6057. ;;
  6058. s390*-*linux*|s390*-*tpf*)
  6059. LD="${LD-ld} -m elf64_s390"
  6060. ;;
  6061. sparc*-*linux*)
  6062. LD="${LD-ld} -m elf64_sparc"
  6063. ;;
  6064. esac
  6065. ;;
  6066. esac
  6067. fi
  6068. rm -rf conftest*
  6069. ;;
  6070.  
  6071. *-*-sco3.2v5*)
  6072. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6073. SAVE_CFLAGS="$CFLAGS"
  6074. CFLAGS="$CFLAGS -belf"
  6075. { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  6076. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6077. if test "${lt_cv_cc_needs_belf+set}" = set; then
  6078. $as_echo_n "(cached) " >&6
  6079. else
  6080. ac_ext=c
  6081. ac_cpp='$CPP $CPPFLAGS'
  6082. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6083. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6084. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6085.  
  6086. cat >conftest.$ac_ext <<_ACEOF
  6087. /* confdefs.h. */
  6088. _ACEOF
  6089. cat confdefs.h >>conftest.$ac_ext
  6090. cat >>conftest.$ac_ext <<_ACEOF
  6091. /* end confdefs.h. */
  6092.  
  6093. int
  6094. main ()
  6095. {
  6096.  
  6097. ;
  6098. return 0;
  6099. }
  6100. _ACEOF
  6101. rm -f conftest.$ac_objext conftest$ac_exeext
  6102. if { (ac_try="$ac_link"
  6103. case "(($ac_try" in
  6104. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6105. *) ac_try_echo=$ac_try;;
  6106. esac
  6107. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6108. $as_echo "$ac_try_echo") >&5
  6109. (eval "$ac_link") 2>conftest.er1
  6110. ac_status=$?
  6111. grep -v '^ *+' conftest.er1 >conftest.err
  6112. rm -f conftest.er1
  6113. cat conftest.err >&5
  6114. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6115. (exit $ac_status); } && {
  6116. test -z "$ac_c_werror_flag" ||
  6117. test ! -s conftest.err
  6118. } && test -s conftest$ac_exeext && {
  6119. test "$cross_compiling" = yes ||
  6120. $as_test_x conftest$ac_exeext
  6121. }; then
  6122. lt_cv_cc_needs_belf=yes
  6123. else
  6124. $as_echo "$as_me: failed program was:" >&5
  6125. sed 's/^/| /' conftest.$ac_ext >&5
  6126.  
  6127. lt_cv_cc_needs_belf=no
  6128. fi
  6129.  
  6130. rm -rf conftest.dSYM
  6131. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6132. conftest$ac_exeext conftest.$ac_ext
  6133. ac_ext=c
  6134. ac_cpp='$CPP $CPPFLAGS'
  6135. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6136. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6137. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6138.  
  6139. fi
  6140. { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  6141. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6142. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6143. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6144. CFLAGS="$SAVE_CFLAGS"
  6145. fi
  6146. ;;
  6147. sparc*-*solaris*)
  6148. # Find out which ABI we are using.
  6149. echo 'int i;' > conftest.$ac_ext
  6150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6151. (eval $ac_compile) 2>&5
  6152. ac_status=$?
  6153. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); }; then
  6155. case `/usr/bin/file conftest.o` in
  6156. *64-bit*)
  6157. case $lt_cv_prog_gnu_ld in
  6158. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6159. *)
  6160. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6161. LD="${LD-ld} -64"
  6162. fi
  6163. ;;
  6164. esac
  6165. ;;
  6166. esac
  6167. fi
  6168. rm -rf conftest*
  6169. ;;
  6170. esac
  6171.  
  6172. need_locks="$enable_libtool_lock"
  6173.  
  6174.  
  6175. case $host_os in
  6176. rhapsody* | darwin*)
  6177. if test -n "$ac_tool_prefix"; then
  6178. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6179. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6180. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6181. $as_echo_n "checking for $ac_word... " >&6; }
  6182. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
  6183. $as_echo_n "(cached) " >&6
  6184. else
  6185. if test -n "$DSYMUTIL"; then
  6186. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6187. else
  6188. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6189. for as_dir in $PATH
  6190. do
  6191. IFS=$as_save_IFS
  6192. test -z "$as_dir" && as_dir=.
  6193. for ac_exec_ext in '' $ac_executable_extensions; do
  6194. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6195. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6196. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6197. break 2
  6198. fi
  6199. done
  6200. done
  6201. IFS=$as_save_IFS
  6202.  
  6203. fi
  6204. fi
  6205. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6206. if test -n "$DSYMUTIL"; then
  6207. { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
  6208. $as_echo "$DSYMUTIL" >&6; }
  6209. else
  6210. { $as_echo "$as_me:$LINENO: result: no" >&5
  6211. $as_echo "no" >&6; }
  6212. fi
  6213.  
  6214.  
  6215. fi
  6216. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6217. ac_ct_DSYMUTIL=$DSYMUTIL
  6218. # Extract the first word of "dsymutil", so it can be a program name with args.
  6219. set dummy dsymutil; ac_word=$2
  6220. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6221. $as_echo_n "checking for $ac_word... " >&6; }
  6222. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
  6223. $as_echo_n "(cached) " >&6
  6224. else
  6225. if test -n "$ac_ct_DSYMUTIL"; then
  6226. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6227. else
  6228. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6229. for as_dir in $PATH
  6230. do
  6231. IFS=$as_save_IFS
  6232. test -z "$as_dir" && as_dir=.
  6233. for ac_exec_ext in '' $ac_executable_extensions; do
  6234. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6235. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6236. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6237. break 2
  6238. fi
  6239. done
  6240. done
  6241. IFS=$as_save_IFS
  6242.  
  6243. fi
  6244. fi
  6245. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6246. if test -n "$ac_ct_DSYMUTIL"; then
  6247. { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
  6248. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6249. else
  6250. { $as_echo "$as_me:$LINENO: result: no" >&5
  6251. $as_echo "no" >&6; }
  6252. fi
  6253.  
  6254. if test "x$ac_ct_DSYMUTIL" = x; then
  6255. DSYMUTIL=":"
  6256. else
  6257. case $cross_compiling:$ac_tool_warned in
  6258. yes:)
  6259. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6260. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6261. ac_tool_warned=yes ;;
  6262. esac
  6263. DSYMUTIL=$ac_ct_DSYMUTIL
  6264. fi
  6265. else
  6266. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6267. fi
  6268.  
  6269. if test -n "$ac_tool_prefix"; then
  6270. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6271. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6272. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6273. $as_echo_n "checking for $ac_word... " >&6; }
  6274. if test "${ac_cv_prog_NMEDIT+set}" = set; then
  6275. $as_echo_n "(cached) " >&6
  6276. else
  6277. if test -n "$NMEDIT"; then
  6278. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6279. else
  6280. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6281. for as_dir in $PATH
  6282. do
  6283. IFS=$as_save_IFS
  6284. test -z "$as_dir" && as_dir=.
  6285. for ac_exec_ext in '' $ac_executable_extensions; do
  6286. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6287. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6288. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6289. break 2
  6290. fi
  6291. done
  6292. done
  6293. IFS=$as_save_IFS
  6294.  
  6295. fi
  6296. fi
  6297. NMEDIT=$ac_cv_prog_NMEDIT
  6298. if test -n "$NMEDIT"; then
  6299. { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
  6300. $as_echo "$NMEDIT" >&6; }
  6301. else
  6302. { $as_echo "$as_me:$LINENO: result: no" >&5
  6303. $as_echo "no" >&6; }
  6304. fi
  6305.  
  6306.  
  6307. fi
  6308. if test -z "$ac_cv_prog_NMEDIT"; then
  6309. ac_ct_NMEDIT=$NMEDIT
  6310. # Extract the first word of "nmedit", so it can be a program name with args.
  6311. set dummy nmedit; ac_word=$2
  6312. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6313. $as_echo_n "checking for $ac_word... " >&6; }
  6314. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
  6315. $as_echo_n "(cached) " >&6
  6316. else
  6317. if test -n "$ac_ct_NMEDIT"; then
  6318. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6319. else
  6320. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6321. for as_dir in $PATH
  6322. do
  6323. IFS=$as_save_IFS
  6324. test -z "$as_dir" && as_dir=.
  6325. for ac_exec_ext in '' $ac_executable_extensions; do
  6326. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6327. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6328. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6329. break 2
  6330. fi
  6331. done
  6332. done
  6333. IFS=$as_save_IFS
  6334.  
  6335. fi
  6336. fi
  6337. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6338. if test -n "$ac_ct_NMEDIT"; then
  6339. { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
  6340. $as_echo "$ac_ct_NMEDIT" >&6; }
  6341. else
  6342. { $as_echo "$as_me:$LINENO: result: no" >&5
  6343. $as_echo "no" >&6; }
  6344. fi
  6345.  
  6346. if test "x$ac_ct_NMEDIT" = x; then
  6347. NMEDIT=":"
  6348. else
  6349. case $cross_compiling:$ac_tool_warned in
  6350. yes:)
  6351. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6353. ac_tool_warned=yes ;;
  6354. esac
  6355. NMEDIT=$ac_ct_NMEDIT
  6356. fi
  6357. else
  6358. NMEDIT="$ac_cv_prog_NMEDIT"
  6359. fi
  6360.  
  6361. if test -n "$ac_tool_prefix"; then
  6362. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6363. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6364. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6365. $as_echo_n "checking for $ac_word... " >&6; }
  6366. if test "${ac_cv_prog_LIPO+set}" = set; then
  6367. $as_echo_n "(cached) " >&6
  6368. else
  6369. if test -n "$LIPO"; then
  6370. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6371. else
  6372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6373. for as_dir in $PATH
  6374. do
  6375. IFS=$as_save_IFS
  6376. test -z "$as_dir" && as_dir=.
  6377. for ac_exec_ext in '' $ac_executable_extensions; do
  6378. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6379. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6380. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6381. break 2
  6382. fi
  6383. done
  6384. done
  6385. IFS=$as_save_IFS
  6386.  
  6387. fi
  6388. fi
  6389. LIPO=$ac_cv_prog_LIPO
  6390. if test -n "$LIPO"; then
  6391. { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
  6392. $as_echo "$LIPO" >&6; }
  6393. else
  6394. { $as_echo "$as_me:$LINENO: result: no" >&5
  6395. $as_echo "no" >&6; }
  6396. fi
  6397.  
  6398.  
  6399. fi
  6400. if test -z "$ac_cv_prog_LIPO"; then
  6401. ac_ct_LIPO=$LIPO
  6402. # Extract the first word of "lipo", so it can be a program name with args.
  6403. set dummy lipo; ac_word=$2
  6404. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6405. $as_echo_n "checking for $ac_word... " >&6; }
  6406. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
  6407. $as_echo_n "(cached) " >&6
  6408. else
  6409. if test -n "$ac_ct_LIPO"; then
  6410. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6411. else
  6412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6413. for as_dir in $PATH
  6414. do
  6415. IFS=$as_save_IFS
  6416. test -z "$as_dir" && as_dir=.
  6417. for ac_exec_ext in '' $ac_executable_extensions; do
  6418. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6419. ac_cv_prog_ac_ct_LIPO="lipo"
  6420. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6421. break 2
  6422. fi
  6423. done
  6424. done
  6425. IFS=$as_save_IFS
  6426.  
  6427. fi
  6428. fi
  6429. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6430. if test -n "$ac_ct_LIPO"; then
  6431. { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
  6432. $as_echo "$ac_ct_LIPO" >&6; }
  6433. else
  6434. { $as_echo "$as_me:$LINENO: result: no" >&5
  6435. $as_echo "no" >&6; }
  6436. fi
  6437.  
  6438. if test "x$ac_ct_LIPO" = x; then
  6439. LIPO=":"
  6440. else
  6441. case $cross_compiling:$ac_tool_warned in
  6442. yes:)
  6443. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6444. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6445. ac_tool_warned=yes ;;
  6446. esac
  6447. LIPO=$ac_ct_LIPO
  6448. fi
  6449. else
  6450. LIPO="$ac_cv_prog_LIPO"
  6451. fi
  6452.  
  6453. if test -n "$ac_tool_prefix"; then
  6454. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6455. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6456. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6457. $as_echo_n "checking for $ac_word... " >&6; }
  6458. if test "${ac_cv_prog_OTOOL+set}" = set; then
  6459. $as_echo_n "(cached) " >&6
  6460. else
  6461. if test -n "$OTOOL"; then
  6462. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6463. else
  6464. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6465. for as_dir in $PATH
  6466. do
  6467. IFS=$as_save_IFS
  6468. test -z "$as_dir" && as_dir=.
  6469. for ac_exec_ext in '' $ac_executable_extensions; do
  6470. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6471. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6472. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6473. break 2
  6474. fi
  6475. done
  6476. done
  6477. IFS=$as_save_IFS
  6478.  
  6479. fi
  6480. fi
  6481. OTOOL=$ac_cv_prog_OTOOL
  6482. if test -n "$OTOOL"; then
  6483. { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
  6484. $as_echo "$OTOOL" >&6; }
  6485. else
  6486. { $as_echo "$as_me:$LINENO: result: no" >&5
  6487. $as_echo "no" >&6; }
  6488. fi
  6489.  
  6490.  
  6491. fi
  6492. if test -z "$ac_cv_prog_OTOOL"; then
  6493. ac_ct_OTOOL=$OTOOL
  6494. # Extract the first word of "otool", so it can be a program name with args.
  6495. set dummy otool; ac_word=$2
  6496. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6497. $as_echo_n "checking for $ac_word... " >&6; }
  6498. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
  6499. $as_echo_n "(cached) " >&6
  6500. else
  6501. if test -n "$ac_ct_OTOOL"; then
  6502. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6503. else
  6504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6505. for as_dir in $PATH
  6506. do
  6507. IFS=$as_save_IFS
  6508. test -z "$as_dir" && as_dir=.
  6509. for ac_exec_ext in '' $ac_executable_extensions; do
  6510. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6511. ac_cv_prog_ac_ct_OTOOL="otool"
  6512. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6513. break 2
  6514. fi
  6515. done
  6516. done
  6517. IFS=$as_save_IFS
  6518.  
  6519. fi
  6520. fi
  6521. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6522. if test -n "$ac_ct_OTOOL"; then
  6523. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
  6524. $as_echo "$ac_ct_OTOOL" >&6; }
  6525. else
  6526. { $as_echo "$as_me:$LINENO: result: no" >&5
  6527. $as_echo "no" >&6; }
  6528. fi
  6529.  
  6530. if test "x$ac_ct_OTOOL" = x; then
  6531. OTOOL=":"
  6532. else
  6533. case $cross_compiling:$ac_tool_warned in
  6534. yes:)
  6535. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6536. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6537. ac_tool_warned=yes ;;
  6538. esac
  6539. OTOOL=$ac_ct_OTOOL
  6540. fi
  6541. else
  6542. OTOOL="$ac_cv_prog_OTOOL"
  6543. fi
  6544.  
  6545. if test -n "$ac_tool_prefix"; then
  6546. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6547. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6548. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6549. $as_echo_n "checking for $ac_word... " >&6; }
  6550. if test "${ac_cv_prog_OTOOL64+set}" = set; then
  6551. $as_echo_n "(cached) " >&6
  6552. else
  6553. if test -n "$OTOOL64"; then
  6554. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6555. else
  6556. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6557. for as_dir in $PATH
  6558. do
  6559. IFS=$as_save_IFS
  6560. test -z "$as_dir" && as_dir=.
  6561. for ac_exec_ext in '' $ac_executable_extensions; do
  6562. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6563. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6564. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6565. break 2
  6566. fi
  6567. done
  6568. done
  6569. IFS=$as_save_IFS
  6570.  
  6571. fi
  6572. fi
  6573. OTOOL64=$ac_cv_prog_OTOOL64
  6574. if test -n "$OTOOL64"; then
  6575. { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
  6576. $as_echo "$OTOOL64" >&6; }
  6577. else
  6578. { $as_echo "$as_me:$LINENO: result: no" >&5
  6579. $as_echo "no" >&6; }
  6580. fi
  6581.  
  6582.  
  6583. fi
  6584. if test -z "$ac_cv_prog_OTOOL64"; then
  6585. ac_ct_OTOOL64=$OTOOL64
  6586. # Extract the first word of "otool64", so it can be a program name with args.
  6587. set dummy otool64; ac_word=$2
  6588. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  6589. $as_echo_n "checking for $ac_word... " >&6; }
  6590. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
  6591. $as_echo_n "(cached) " >&6
  6592. else
  6593. if test -n "$ac_ct_OTOOL64"; then
  6594. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6595. else
  6596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6597. for as_dir in $PATH
  6598. do
  6599. IFS=$as_save_IFS
  6600. test -z "$as_dir" && as_dir=.
  6601. for ac_exec_ext in '' $ac_executable_extensions; do
  6602. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6603. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6604. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6605. break 2
  6606. fi
  6607. done
  6608. done
  6609. IFS=$as_save_IFS
  6610.  
  6611. fi
  6612. fi
  6613. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6614. if test -n "$ac_ct_OTOOL64"; then
  6615. { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
  6616. $as_echo "$ac_ct_OTOOL64" >&6; }
  6617. else
  6618. { $as_echo "$as_me:$LINENO: result: no" >&5
  6619. $as_echo "no" >&6; }
  6620. fi
  6621.  
  6622. if test "x$ac_ct_OTOOL64" = x; then
  6623. OTOOL64=":"
  6624. else
  6625. case $cross_compiling:$ac_tool_warned in
  6626. yes:)
  6627. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  6628. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6629. ac_tool_warned=yes ;;
  6630. esac
  6631. OTOOL64=$ac_ct_OTOOL64
  6632. fi
  6633. else
  6634. OTOOL64="$ac_cv_prog_OTOOL64"
  6635. fi
  6636.  
  6637.  
  6638.  
  6639.  
  6640.  
  6641.  
  6642.  
  6643.  
  6644.  
  6645.  
  6646.  
  6647.  
  6648.  
  6649.  
  6650.  
  6651.  
  6652.  
  6653.  
  6654.  
  6655.  
  6656.  
  6657.  
  6658.  
  6659.  
  6660.  
  6661.  
  6662.  
  6663. { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
  6664. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6665. if test "${lt_cv_apple_cc_single_mod+set}" = set; then
  6666. $as_echo_n "(cached) " >&6
  6667. else
  6668. lt_cv_apple_cc_single_mod=no
  6669. if test -z "${LT_MULTI_MODULE}"; then
  6670. # By default we will add the -single_module flag. You can override
  6671. # by either setting the environment variable LT_MULTI_MODULE
  6672. # non-empty at configure time, or by adding -multi_module to the
  6673. # link flags.
  6674. rm -rf libconftest.dylib*
  6675. echo "int foo(void){return 1;}" > conftest.c
  6676. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6677. -dynamiclib -Wl,-single_module conftest.c" >&5
  6678. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6679. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6680. _lt_result=$?
  6681. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6682. lt_cv_apple_cc_single_mod=yes
  6683. else
  6684. cat conftest.err >&5
  6685. fi
  6686. rm -rf libconftest.dylib*
  6687. rm -f conftest.*
  6688. fi
  6689. fi
  6690. { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
  6691. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6692. { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
  6693. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6694. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
  6695. $as_echo_n "(cached) " >&6
  6696. else
  6697. lt_cv_ld_exported_symbols_list=no
  6698. save_LDFLAGS=$LDFLAGS
  6699. echo "_main" > conftest.sym
  6700. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6701. cat >conftest.$ac_ext <<_ACEOF
  6702. /* confdefs.h. */
  6703. _ACEOF
  6704. cat confdefs.h >>conftest.$ac_ext
  6705. cat >>conftest.$ac_ext <<_ACEOF
  6706. /* end confdefs.h. */
  6707.  
  6708. int
  6709. main ()
  6710. {
  6711.  
  6712. ;
  6713. return 0;
  6714. }
  6715. _ACEOF
  6716. rm -f conftest.$ac_objext conftest$ac_exeext
  6717. if { (ac_try="$ac_link"
  6718. case "(($ac_try" in
  6719. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6720. *) ac_try_echo=$ac_try;;
  6721. esac
  6722. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6723. $as_echo "$ac_try_echo") >&5
  6724. (eval "$ac_link") 2>conftest.er1
  6725. ac_status=$?
  6726. grep -v '^ *+' conftest.er1 >conftest.err
  6727. rm -f conftest.er1
  6728. cat conftest.err >&5
  6729. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6730. (exit $ac_status); } && {
  6731. test -z "$ac_c_werror_flag" ||
  6732. test ! -s conftest.err
  6733. } && test -s conftest$ac_exeext && {
  6734. test "$cross_compiling" = yes ||
  6735. $as_test_x conftest$ac_exeext
  6736. }; then
  6737. lt_cv_ld_exported_symbols_list=yes
  6738. else
  6739. $as_echo "$as_me: failed program was:" >&5
  6740. sed 's/^/| /' conftest.$ac_ext >&5
  6741.  
  6742. lt_cv_ld_exported_symbols_list=no
  6743. fi
  6744.  
  6745. rm -rf conftest.dSYM
  6746. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6747. conftest$ac_exeext conftest.$ac_ext
  6748. LDFLAGS="$save_LDFLAGS"
  6749.  
  6750. fi
  6751. { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
  6752. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6753. case $host_os in
  6754. rhapsody* | darwin1.[012])
  6755. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6756. darwin1.*)
  6757. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6758. darwin*) # darwin 5.x on
  6759. # if running on 10.5 or later, the deployment target defaults
  6760. # to the OS version, if on x86, and 10.4, the deployment
  6761. # target defaults to 10.4. Don't you love it?
  6762. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6763. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6764. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6765. 10.[012]*)
  6766. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6767. 10.*)
  6768. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6769. esac
  6770. ;;
  6771. esac
  6772. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6773. _lt_dar_single_mod='$single_module'
  6774. fi
  6775. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6776. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6777. else
  6778. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6779. fi
  6780. if test "$DSYMUTIL" != ":"; then
  6781. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6782. else
  6783. _lt_dsymutil=
  6784. fi
  6785. ;;
  6786. esac
  6787.  
  6788. ac_ext=c
  6789. ac_cpp='$CPP $CPPFLAGS'
  6790. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6791. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6792. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6793. { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  6794. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6795. # On Suns, sometimes $CPP names a directory.
  6796. if test -n "$CPP" && test -d "$CPP"; then
  6797. CPP=
  6798. fi
  6799. if test -z "$CPP"; then
  6800. if test "${ac_cv_prog_CPP+set}" = set; then
  6801. $as_echo_n "(cached) " >&6
  6802. else
  6803. # Double quotes because CPP needs to be expanded
  6804. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6805. do
  6806. ac_preproc_ok=false
  6807. for ac_c_preproc_warn_flag in '' yes
  6808. do
  6809. # Use a header file that comes with gcc, so configuring glibc
  6810. # with a fresh cross-compiler works.
  6811. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6812. # <limits.h> exists even on freestanding compilers.
  6813. # On the NeXT, cc -E runs the code through the compiler's parser,
  6814. # not just through cpp. "Syntax error" is here to catch this case.
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. /* confdefs.h. */
  6817. _ACEOF
  6818. cat confdefs.h >>conftest.$ac_ext
  6819. cat >>conftest.$ac_ext <<_ACEOF
  6820. /* end confdefs.h. */
  6821. #ifdef __STDC__
  6822. # include <limits.h>
  6823. #else
  6824. # include <assert.h>
  6825. #endif
  6826. Syntax error
  6827. _ACEOF
  6828. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6829. case "(($ac_try" in
  6830. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6831. *) ac_try_echo=$ac_try;;
  6832. esac
  6833. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6834. $as_echo "$ac_try_echo") >&5
  6835. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6836. ac_status=$?
  6837. grep -v '^ *+' conftest.er1 >conftest.err
  6838. rm -f conftest.er1
  6839. cat conftest.err >&5
  6840. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); } >/dev/null && {
  6842. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6843. test ! -s conftest.err
  6844. }; then
  6845. :
  6846. else
  6847. $as_echo "$as_me: failed program was:" >&5
  6848. sed 's/^/| /' conftest.$ac_ext >&5
  6849.  
  6850. # Broken: fails on valid input.
  6851. continue
  6852. fi
  6853.  
  6854. rm -f conftest.err conftest.$ac_ext
  6855.  
  6856. # OK, works on sane cases. Now check whether nonexistent headers
  6857. # can be detected and how.
  6858. cat >conftest.$ac_ext <<_ACEOF
  6859. /* confdefs.h. */
  6860. _ACEOF
  6861. cat confdefs.h >>conftest.$ac_ext
  6862. cat >>conftest.$ac_ext <<_ACEOF
  6863. /* end confdefs.h. */
  6864. #include <ac_nonexistent.h>
  6865. _ACEOF
  6866. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6867. case "(($ac_try" in
  6868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6869. *) ac_try_echo=$ac_try;;
  6870. esac
  6871. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6872. $as_echo "$ac_try_echo") >&5
  6873. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6874. ac_status=$?
  6875. grep -v '^ *+' conftest.er1 >conftest.err
  6876. rm -f conftest.er1
  6877. cat conftest.err >&5
  6878. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6879. (exit $ac_status); } >/dev/null && {
  6880. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6881. test ! -s conftest.err
  6882. }; then
  6883. # Broken: success on invalid input.
  6884. continue
  6885. else
  6886. $as_echo "$as_me: failed program was:" >&5
  6887. sed 's/^/| /' conftest.$ac_ext >&5
  6888.  
  6889. # Passes both tests.
  6890. ac_preproc_ok=:
  6891. break
  6892. fi
  6893.  
  6894. rm -f conftest.err conftest.$ac_ext
  6895.  
  6896. done
  6897. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6898. rm -f conftest.err conftest.$ac_ext
  6899. if $ac_preproc_ok; then
  6900. break
  6901. fi
  6902.  
  6903. done
  6904. ac_cv_prog_CPP=$CPP
  6905.  
  6906. fi
  6907. CPP=$ac_cv_prog_CPP
  6908. else
  6909. ac_cv_prog_CPP=$CPP
  6910. fi
  6911. { $as_echo "$as_me:$LINENO: result: $CPP" >&5
  6912. $as_echo "$CPP" >&6; }
  6913. ac_preproc_ok=false
  6914. for ac_c_preproc_warn_flag in '' yes
  6915. do
  6916. # Use a header file that comes with gcc, so configuring glibc
  6917. # with a fresh cross-compiler works.
  6918. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6919. # <limits.h> exists even on freestanding compilers.
  6920. # On the NeXT, cc -E runs the code through the compiler's parser,
  6921. # not just through cpp. "Syntax error" is here to catch this case.
  6922. cat >conftest.$ac_ext <<_ACEOF
  6923. /* confdefs.h. */
  6924. _ACEOF
  6925. cat confdefs.h >>conftest.$ac_ext
  6926. cat >>conftest.$ac_ext <<_ACEOF
  6927. /* end confdefs.h. */
  6928. #ifdef __STDC__
  6929. # include <limits.h>
  6930. #else
  6931. # include <assert.h>
  6932. #endif
  6933. Syntax error
  6934. _ACEOF
  6935. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6936. case "(($ac_try" in
  6937. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6938. *) ac_try_echo=$ac_try;;
  6939. esac
  6940. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6941. $as_echo "$ac_try_echo") >&5
  6942. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6943. ac_status=$?
  6944. grep -v '^ *+' conftest.er1 >conftest.err
  6945. rm -f conftest.er1
  6946. cat conftest.err >&5
  6947. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6948. (exit $ac_status); } >/dev/null && {
  6949. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6950. test ! -s conftest.err
  6951. }; then
  6952. :
  6953. else
  6954. $as_echo "$as_me: failed program was:" >&5
  6955. sed 's/^/| /' conftest.$ac_ext >&5
  6956.  
  6957. # Broken: fails on valid input.
  6958. continue
  6959. fi
  6960.  
  6961. rm -f conftest.err conftest.$ac_ext
  6962.  
  6963. # OK, works on sane cases. Now check whether nonexistent headers
  6964. # can be detected and how.
  6965. cat >conftest.$ac_ext <<_ACEOF
  6966. /* confdefs.h. */
  6967. _ACEOF
  6968. cat confdefs.h >>conftest.$ac_ext
  6969. cat >>conftest.$ac_ext <<_ACEOF
  6970. /* end confdefs.h. */
  6971. #include <ac_nonexistent.h>
  6972. _ACEOF
  6973. if { (ac_try="$ac_cpp conftest.$ac_ext"
  6974. case "(($ac_try" in
  6975. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6976. *) ac_try_echo=$ac_try;;
  6977. esac
  6978. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  6979. $as_echo "$ac_try_echo") >&5
  6980. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  6981. ac_status=$?
  6982. grep -v '^ *+' conftest.er1 >conftest.err
  6983. rm -f conftest.er1
  6984. cat conftest.err >&5
  6985. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6986. (exit $ac_status); } >/dev/null && {
  6987. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  6988. test ! -s conftest.err
  6989. }; then
  6990. # Broken: success on invalid input.
  6991. continue
  6992. else
  6993. $as_echo "$as_me: failed program was:" >&5
  6994. sed 's/^/| /' conftest.$ac_ext >&5
  6995.  
  6996. # Passes both tests.
  6997. ac_preproc_ok=:
  6998. break
  6999. fi
  7000.  
  7001. rm -f conftest.err conftest.$ac_ext
  7002.  
  7003. done
  7004. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7005. rm -f conftest.err conftest.$ac_ext
  7006. if $ac_preproc_ok; then
  7007. :
  7008. else
  7009. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  7010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7011. { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  7012. See \`config.log' for more details." >&5
  7013. $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  7014. See \`config.log' for more details." >&2;}
  7015. { (exit 1); exit 1; }; }; }
  7016. fi
  7017.  
  7018. ac_ext=c
  7019. ac_cpp='$CPP $CPPFLAGS'
  7020. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7021. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7022. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7023.  
  7024.  
  7025. { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  7026. $as_echo_n "checking for ANSI C header files... " >&6; }
  7027. if test "${ac_cv_header_stdc+set}" = set; then
  7028. $as_echo_n "(cached) " >&6
  7029. else
  7030. cat >conftest.$ac_ext <<_ACEOF
  7031. /* confdefs.h. */
  7032. _ACEOF
  7033. cat confdefs.h >>conftest.$ac_ext
  7034. cat >>conftest.$ac_ext <<_ACEOF
  7035. /* end confdefs.h. */
  7036. #include <stdlib.h>
  7037. #include <stdarg.h>
  7038. #include <string.h>
  7039. #include <float.h>
  7040.  
  7041. int
  7042. main ()
  7043. {
  7044.  
  7045. ;
  7046. return 0;
  7047. }
  7048. _ACEOF
  7049. rm -f conftest.$ac_objext
  7050. if { (ac_try="$ac_compile"
  7051. case "(($ac_try" in
  7052. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7053. *) ac_try_echo=$ac_try;;
  7054. esac
  7055. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7056. $as_echo "$ac_try_echo") >&5
  7057. (eval "$ac_compile") 2>conftest.er1
  7058. ac_status=$?
  7059. grep -v '^ *+' conftest.er1 >conftest.err
  7060. rm -f conftest.er1
  7061. cat conftest.err >&5
  7062. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7063. (exit $ac_status); } && {
  7064. test -z "$ac_c_werror_flag" ||
  7065. test ! -s conftest.err
  7066. } && test -s conftest.$ac_objext; then
  7067. ac_cv_header_stdc=yes
  7068. else
  7069. $as_echo "$as_me: failed program was:" >&5
  7070. sed 's/^/| /' conftest.$ac_ext >&5
  7071.  
  7072. ac_cv_header_stdc=no
  7073. fi
  7074.  
  7075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7076.  
  7077. if test $ac_cv_header_stdc = yes; then
  7078. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7079. cat >conftest.$ac_ext <<_ACEOF
  7080. /* confdefs.h. */
  7081. _ACEOF
  7082. cat confdefs.h >>conftest.$ac_ext
  7083. cat >>conftest.$ac_ext <<_ACEOF
  7084. /* end confdefs.h. */
  7085. #include <string.h>
  7086.  
  7087. _ACEOF
  7088. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7089. $EGREP "memchr" >/dev/null 2>&1; then
  7090. :
  7091. else
  7092. ac_cv_header_stdc=no
  7093. fi
  7094. rm -f conftest*
  7095.  
  7096. fi
  7097.  
  7098. if test $ac_cv_header_stdc = yes; then
  7099. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7100. cat >conftest.$ac_ext <<_ACEOF
  7101. /* confdefs.h. */
  7102. _ACEOF
  7103. cat confdefs.h >>conftest.$ac_ext
  7104. cat >>conftest.$ac_ext <<_ACEOF
  7105. /* end confdefs.h. */
  7106. #include <stdlib.h>
  7107.  
  7108. _ACEOF
  7109. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7110. $EGREP "free" >/dev/null 2>&1; then
  7111. :
  7112. else
  7113. ac_cv_header_stdc=no
  7114. fi
  7115. rm -f conftest*
  7116.  
  7117. fi
  7118.  
  7119. if test $ac_cv_header_stdc = yes; then
  7120. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7121. if test "$cross_compiling" = yes; then
  7122. :
  7123. else
  7124. cat >conftest.$ac_ext <<_ACEOF
  7125. /* confdefs.h. */
  7126. _ACEOF
  7127. cat confdefs.h >>conftest.$ac_ext
  7128. cat >>conftest.$ac_ext <<_ACEOF
  7129. /* end confdefs.h. */
  7130. #include <ctype.h>
  7131. #include <stdlib.h>
  7132. #if ((' ' & 0x0FF) == 0x020)
  7133. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7134. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7135. #else
  7136. # define ISLOWER(c) \
  7137. (('a' <= (c) && (c) <= 'i') \
  7138. || ('j' <= (c) && (c) <= 'r') \
  7139. || ('s' <= (c) && (c) <= 'z'))
  7140. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7141. #endif
  7142.  
  7143. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7144. int
  7145. main ()
  7146. {
  7147. int i;
  7148. for (i = 0; i < 256; i++)
  7149. if (XOR (islower (i), ISLOWER (i))
  7150. || toupper (i) != TOUPPER (i))
  7151. return 2;
  7152. return 0;
  7153. }
  7154. _ACEOF
  7155. rm -f conftest$ac_exeext
  7156. if { (ac_try="$ac_link"
  7157. case "(($ac_try" in
  7158. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7159. *) ac_try_echo=$ac_try;;
  7160. esac
  7161. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7162. $as_echo "$ac_try_echo") >&5
  7163. (eval "$ac_link") 2>&5
  7164. ac_status=$?
  7165. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7166. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7167. { (case "(($ac_try" in
  7168. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7169. *) ac_try_echo=$ac_try;;
  7170. esac
  7171. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7172. $as_echo "$ac_try_echo") >&5
  7173. (eval "$ac_try") 2>&5
  7174. ac_status=$?
  7175. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); }; }; then
  7177. :
  7178. else
  7179. $as_echo "$as_me: program exited with status $ac_status" >&5
  7180. $as_echo "$as_me: failed program was:" >&5
  7181. sed 's/^/| /' conftest.$ac_ext >&5
  7182.  
  7183. ( exit $ac_status )
  7184. ac_cv_header_stdc=no
  7185. fi
  7186. rm -rf conftest.dSYM
  7187. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7188. fi
  7189.  
  7190.  
  7191. fi
  7192. fi
  7193. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  7194. $as_echo "$ac_cv_header_stdc" >&6; }
  7195. if test $ac_cv_header_stdc = yes; then
  7196.  
  7197. cat >>confdefs.h <<\_ACEOF
  7198. #define STDC_HEADERS 1
  7199. _ACEOF
  7200.  
  7201. fi
  7202.  
  7203. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7204.  
  7205.  
  7206.  
  7207.  
  7208.  
  7209.  
  7210.  
  7211.  
  7212.  
  7213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7214. inttypes.h stdint.h unistd.h
  7215. do
  7216. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7217. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7218. $as_echo_n "checking for $ac_header... " >&6; }
  7219. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7220. $as_echo_n "(cached) " >&6
  7221. else
  7222. cat >conftest.$ac_ext <<_ACEOF
  7223. /* confdefs.h. */
  7224. _ACEOF
  7225. cat confdefs.h >>conftest.$ac_ext
  7226. cat >>conftest.$ac_ext <<_ACEOF
  7227. /* end confdefs.h. */
  7228. $ac_includes_default
  7229.  
  7230. #include <$ac_header>
  7231. _ACEOF
  7232. rm -f conftest.$ac_objext
  7233. if { (ac_try="$ac_compile"
  7234. case "(($ac_try" in
  7235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7236. *) ac_try_echo=$ac_try;;
  7237. esac
  7238. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7239. $as_echo "$ac_try_echo") >&5
  7240. (eval "$ac_compile") 2>conftest.er1
  7241. ac_status=$?
  7242. grep -v '^ *+' conftest.er1 >conftest.err
  7243. rm -f conftest.er1
  7244. cat conftest.err >&5
  7245. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); } && {
  7247. test -z "$ac_c_werror_flag" ||
  7248. test ! -s conftest.err
  7249. } && test -s conftest.$ac_objext; then
  7250. eval "$as_ac_Header=yes"
  7251. else
  7252. $as_echo "$as_me: failed program was:" >&5
  7253. sed 's/^/| /' conftest.$ac_ext >&5
  7254.  
  7255. eval "$as_ac_Header=no"
  7256. fi
  7257.  
  7258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7259. fi
  7260. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7261. $as_echo "$as_val"'`
  7262. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7263. $as_echo "$ac_res" >&6; }
  7264. as_val=`eval 'as_val=${'$as_ac_Header'}
  7265. $as_echo "$as_val"'`
  7266. if test "x$as_val" = x""yes; then
  7267. cat >>confdefs.h <<_ACEOF
  7268. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7269. _ACEOF
  7270.  
  7271. fi
  7272.  
  7273. done
  7274.  
  7275.  
  7276.  
  7277. for ac_header in dlfcn.h
  7278. do
  7279. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7280. { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
  7281. $as_echo_n "checking for $ac_header... " >&6; }
  7282. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7283. $as_echo_n "(cached) " >&6
  7284. else
  7285. cat >conftest.$ac_ext <<_ACEOF
  7286. /* confdefs.h. */
  7287. _ACEOF
  7288. cat confdefs.h >>conftest.$ac_ext
  7289. cat >>conftest.$ac_ext <<_ACEOF
  7290. /* end confdefs.h. */
  7291. $ac_includes_default
  7292.  
  7293. #include <$ac_header>
  7294. _ACEOF
  7295. rm -f conftest.$ac_objext
  7296. if { (ac_try="$ac_compile"
  7297. case "(($ac_try" in
  7298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7299. *) ac_try_echo=$ac_try;;
  7300. esac
  7301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  7302. $as_echo "$ac_try_echo") >&5
  7303. (eval "$ac_compile") 2>conftest.er1
  7304. ac_status=$?
  7305. grep -v '^ *+' conftest.er1 >conftest.err
  7306. rm -f conftest.er1
  7307. cat conftest.err >&5
  7308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7309. (exit $ac_status); } && {
  7310. test -z "$ac_c_werror_flag" ||
  7311. test ! -s conftest.err
  7312. } && test -s conftest.$ac_objext; then
  7313. eval "$as_ac_Header=yes"
  7314. else
  7315. $as_echo "$as_me: failed program was:" >&5
  7316. sed 's/^/| /' conftest.$ac_ext >&5
  7317.  
  7318. eval "$as_ac_Header=no"
  7319. fi
  7320.  
  7321. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7322. fi
  7323. ac_res=`eval 'as_val=${'$as_ac_Header'}
  7324. $as_echo "$as_val"'`
  7325. { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
  7326. $as_echo "$ac_res" >&6; }
  7327. as_val=`eval 'as_val=${'$as_ac_Header'}
  7328. $as_echo "$as_val"'`
  7329. if test "x$as_val" = x""yes; then
  7330. cat >>confdefs.h <<_ACEOF
  7331. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7332. _ACEOF
  7333.  
  7334. fi
  7335.  
  7336. done
  7337.  
  7338.  
  7339.  
  7340. # Set options
  7341.  
  7342.  
  7343.  
  7344. enable_dlopen=no
  7345.  
  7346.  
  7347. enable_win32_dll=no
  7348.  
  7349.  
  7350. # Check whether --enable-shared was given.
  7351. if test "${enable_shared+set}" = set; then
  7352. enableval=$enable_shared; p=${PACKAGE-default}
  7353. case $enableval in
  7354. yes) enable_shared=yes ;;
  7355. no) enable_shared=no ;;
  7356. *)
  7357. enable_shared=no
  7358. # Look at the argument we got. We use all the common list separators.
  7359. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7360. for pkg in $enableval; do
  7361. IFS="$lt_save_ifs"
  7362. if test "X$pkg" = "X$p"; then
  7363. enable_shared=yes
  7364. fi
  7365. done
  7366. IFS="$lt_save_ifs"
  7367. ;;
  7368. esac
  7369. else
  7370. enable_shared=yes
  7371. fi
  7372.  
  7373.  
  7374.  
  7375.  
  7376.  
  7377.  
  7378.  
  7379.  
  7380.  
  7381. # Check whether --enable-static was given.
  7382. if test "${enable_static+set}" = set; then
  7383. enableval=$enable_static; p=${PACKAGE-default}
  7384. case $enableval in
  7385. yes) enable_static=yes ;;
  7386. no) enable_static=no ;;
  7387. *)
  7388. enable_static=no
  7389. # Look at the argument we got. We use all the common list separators.
  7390. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7391. for pkg in $enableval; do
  7392. IFS="$lt_save_ifs"
  7393. if test "X$pkg" = "X$p"; then
  7394. enable_static=yes
  7395. fi
  7396. done
  7397. IFS="$lt_save_ifs"
  7398. ;;
  7399. esac
  7400. else
  7401. enable_static=yes
  7402. fi
  7403.  
  7404.  
  7405.  
  7406.  
  7407.  
  7408.  
  7409.  
  7410.  
  7411.  
  7412.  
  7413. # Check whether --with-pic was given.
  7414. if test "${with_pic+set}" = set; then
  7415. withval=$with_pic; pic_mode="$withval"
  7416. else
  7417. pic_mode=default
  7418. fi
  7419.  
  7420.  
  7421. test -z "$pic_mode" && pic_mode=default
  7422.  
  7423.  
  7424.  
  7425.  
  7426.  
  7427.  
  7428.  
  7429. # Check whether --enable-fast-install was given.
  7430. if test "${enable_fast_install+set}" = set; then
  7431. enableval=$enable_fast_install; p=${PACKAGE-default}
  7432. case $enableval in
  7433. yes) enable_fast_install=yes ;;
  7434. no) enable_fast_install=no ;;
  7435. *)
  7436. enable_fast_install=no
  7437. # Look at the argument we got. We use all the common list separators.
  7438. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7439. for pkg in $enableval; do
  7440. IFS="$lt_save_ifs"
  7441. if test "X$pkg" = "X$p"; then
  7442. enable_fast_install=yes
  7443. fi
  7444. done
  7445. IFS="$lt_save_ifs"
  7446. ;;
  7447. esac
  7448. else
  7449. enable_fast_install=yes
  7450. fi
  7451.  
  7452.  
  7453.  
  7454.  
  7455.  
  7456.  
  7457.  
  7458.  
  7459.  
  7460.  
  7461.  
  7462. # This can be used to rebuild libtool when needed
  7463. LIBTOOL_DEPS="$ltmain"
  7464.  
  7465. # Always use our own libtool.
  7466. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7467.  
  7468.  
  7469.  
  7470.  
  7471.  
  7472.  
  7473.  
  7474.  
  7475.  
  7476.  
  7477.  
  7478.  
  7479.  
  7480.  
  7481.  
  7482.  
  7483.  
  7484.  
  7485.  
  7486.  
  7487.  
  7488.  
  7489.  
  7490.  
  7491.  
  7492. test -z "$LN_S" && LN_S="ln -s"
  7493.  
  7494.  
  7495.  
  7496.  
  7497.  
  7498.  
  7499.  
  7500.  
  7501.  
  7502.  
  7503.  
  7504.  
  7505.  
  7506.  
  7507. if test -n "${ZSH_VERSION+set}" ; then
  7508. setopt NO_GLOB_SUBST
  7509. fi
  7510.  
  7511. { $as_echo "$as_me:$LINENO: checking for objdir" >&5
  7512. $as_echo_n "checking for objdir... " >&6; }
  7513. if test "${lt_cv_objdir+set}" = set; then
  7514. $as_echo_n "(cached) " >&6
  7515. else
  7516. rm -f .libs 2>/dev/null
  7517. mkdir .libs 2>/dev/null
  7518. if test -d .libs; then
  7519. lt_cv_objdir=.libs
  7520. else
  7521. # MS-DOS does not allow filenames that begin with a dot.
  7522. lt_cv_objdir=_libs
  7523. fi
  7524. rmdir .libs 2>/dev/null
  7525. fi
  7526. { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  7527. $as_echo "$lt_cv_objdir" >&6; }
  7528. objdir=$lt_cv_objdir
  7529.  
  7530.  
  7531.  
  7532.  
  7533.  
  7534. cat >>confdefs.h <<_ACEOF
  7535. #define LT_OBJDIR "$lt_cv_objdir/"
  7536. _ACEOF
  7537.  
  7538.  
  7539.  
  7540.  
  7541.  
  7542.  
  7543.  
  7544.  
  7545.  
  7546.  
  7547.  
  7548.  
  7549.  
  7550.  
  7551.  
  7552.  
  7553.  
  7554. case $host_os in
  7555. aix3*)
  7556. # AIX sometimes has problems with the GCC collect2 program. For some
  7557. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7558. # vanish in a puff of smoke.
  7559. if test "X${COLLECT_NAMES+set}" != Xset; then
  7560. COLLECT_NAMES=
  7561. export COLLECT_NAMES
  7562. fi
  7563. ;;
  7564. esac
  7565.  
  7566. # Sed substitution that helps us do robust quoting. It backslashifies
  7567. # metacharacters that are still active within double-quoted strings.
  7568. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7569.  
  7570. # Same as above, but do not quote variable references.
  7571. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7572.  
  7573. # Sed substitution to delay expansion of an escaped shell variable in a
  7574. # double_quote_subst'ed string.
  7575. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7576.  
  7577. # Sed substitution to delay expansion of an escaped single quote.
  7578. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7579.  
  7580. # Sed substitution to avoid accidental globbing in evaled expressions
  7581. no_glob_subst='s/\*/\\\*/g'
  7582.  
  7583. # Global variables:
  7584. ofile=libtool
  7585. can_build_shared=yes
  7586.  
  7587. # All known linkers require a `.a' archive for static linking (except MSVC,
  7588. # which needs '.lib').
  7589. libext=a
  7590.  
  7591. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7592.  
  7593. old_CC="$CC"
  7594. old_CFLAGS="$CFLAGS"
  7595.  
  7596. # Set sane defaults for various variables
  7597. test -z "$CC" && CC=cc
  7598. test -z "$LTCC" && LTCC=$CC
  7599. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7600. test -z "$LD" && LD=ld
  7601. test -z "$ac_objext" && ac_objext=o
  7602.  
  7603. for cc_temp in $compiler""; do
  7604. case $cc_temp in
  7605. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7606. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7607. \-*) ;;
  7608. *) break;;
  7609. esac
  7610. done
  7611. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7612.  
  7613.  
  7614. # Only perform the check for file, if the check method requires it
  7615. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7616. case $deplibs_check_method in
  7617. file_magic*)
  7618. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7619. { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  7620. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7621. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7622. $as_echo_n "(cached) " >&6
  7623. else
  7624. case $MAGIC_CMD in
  7625. [\\/*] | ?:[\\/]*)
  7626. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7627. ;;
  7628. *)
  7629. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7630. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7631. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7632. for ac_dir in $ac_dummy; do
  7633. IFS="$lt_save_ifs"
  7634. test -z "$ac_dir" && ac_dir=.
  7635. if test -f $ac_dir/${ac_tool_prefix}file; then
  7636. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7637. if test -n "$file_magic_test_file"; then
  7638. case $deplibs_check_method in
  7639. "file_magic "*)
  7640. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7641. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7642. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7643. $EGREP "$file_magic_regex" > /dev/null; then
  7644. :
  7645. else
  7646. cat <<_LT_EOF 1>&2
  7647.  
  7648. *** Warning: the command libtool uses to detect shared libraries,
  7649. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7650. *** The result is that libtool may fail to recognize shared libraries
  7651. *** as such. This will affect the creation of libtool libraries that
  7652. *** depend on shared libraries, but programs linked with such libtool
  7653. *** libraries will work regardless of this problem. Nevertheless, you
  7654. *** may want to report the problem to your system manager and/or to
  7655. *** bug-libtool@gnu.org
  7656.  
  7657. _LT_EOF
  7658. fi ;;
  7659. esac
  7660. fi
  7661. break
  7662. fi
  7663. done
  7664. IFS="$lt_save_ifs"
  7665. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7666. ;;
  7667. esac
  7668. fi
  7669.  
  7670. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7671. if test -n "$MAGIC_CMD"; then
  7672. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7673. $as_echo "$MAGIC_CMD" >&6; }
  7674. else
  7675. { $as_echo "$as_me:$LINENO: result: no" >&5
  7676. $as_echo "no" >&6; }
  7677. fi
  7678.  
  7679.  
  7680.  
  7681.  
  7682.  
  7683. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7684. if test -n "$ac_tool_prefix"; then
  7685. { $as_echo "$as_me:$LINENO: checking for file" >&5
  7686. $as_echo_n "checking for file... " >&6; }
  7687. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  7688. $as_echo_n "(cached) " >&6
  7689. else
  7690. case $MAGIC_CMD in
  7691. [\\/*] | ?:[\\/]*)
  7692. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7693. ;;
  7694. *)
  7695. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7696. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7697. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7698. for ac_dir in $ac_dummy; do
  7699. IFS="$lt_save_ifs"
  7700. test -z "$ac_dir" && ac_dir=.
  7701. if test -f $ac_dir/file; then
  7702. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7703. if test -n "$file_magic_test_file"; then
  7704. case $deplibs_check_method in
  7705. "file_magic "*)
  7706. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7707. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7708. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7709. $EGREP "$file_magic_regex" > /dev/null; then
  7710. :
  7711. else
  7712. cat <<_LT_EOF 1>&2
  7713.  
  7714. *** Warning: the command libtool uses to detect shared libraries,
  7715. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7716. *** The result is that libtool may fail to recognize shared libraries
  7717. *** as such. This will affect the creation of libtool libraries that
  7718. *** depend on shared libraries, but programs linked with such libtool
  7719. *** libraries will work regardless of this problem. Nevertheless, you
  7720. *** may want to report the problem to your system manager and/or to
  7721. *** bug-libtool@gnu.org
  7722.  
  7723. _LT_EOF
  7724. fi ;;
  7725. esac
  7726. fi
  7727. break
  7728. fi
  7729. done
  7730. IFS="$lt_save_ifs"
  7731. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7732. ;;
  7733. esac
  7734. fi
  7735.  
  7736. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7737. if test -n "$MAGIC_CMD"; then
  7738. { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  7739. $as_echo "$MAGIC_CMD" >&6; }
  7740. else
  7741. { $as_echo "$as_me:$LINENO: result: no" >&5
  7742. $as_echo "no" >&6; }
  7743. fi
  7744.  
  7745.  
  7746. else
  7747. MAGIC_CMD=:
  7748. fi
  7749. fi
  7750.  
  7751. fi
  7752. ;;
  7753. esac
  7754.  
  7755. # Use C for the default configuration in the libtool script
  7756.  
  7757. lt_save_CC="$CC"
  7758. ac_ext=c
  7759. ac_cpp='$CPP $CPPFLAGS'
  7760. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7761. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7762. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7763.  
  7764.  
  7765. # Source file extension for C test sources.
  7766. ac_ext=c
  7767.  
  7768. # Object file extension for compiled C test sources.
  7769. objext=o
  7770. objext=$objext
  7771.  
  7772. # Code to be used in simple compile tests
  7773. lt_simple_compile_test_code="int some_variable = 0;"
  7774.  
  7775. # Code to be used in simple link tests
  7776. lt_simple_link_test_code='int main(){return(0);}'
  7777.  
  7778.  
  7779.  
  7780.  
  7781.  
  7782.  
  7783.  
  7784. # If no C compiler was specified, use CC.
  7785. LTCC=${LTCC-"$CC"}
  7786.  
  7787. # If no C compiler flags were specified, use CFLAGS.
  7788. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7789.  
  7790. # Allow CC to be a program name with arguments.
  7791. compiler=$CC
  7792.  
  7793. # Save the default compiler, since it gets overwritten when the other
  7794. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7795. compiler_DEFAULT=$CC
  7796.  
  7797. # save warnings/boilerplate of simple test code
  7798. ac_outfile=conftest.$ac_objext
  7799. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7800. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7801. _lt_compiler_boilerplate=`cat conftest.err`
  7802. $RM conftest*
  7803.  
  7804. ac_outfile=conftest.$ac_objext
  7805. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7806. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7807. _lt_linker_boilerplate=`cat conftest.err`
  7808. $RM -r conftest*
  7809.  
  7810.  
  7811. ## CAVEAT EMPTOR:
  7812. ## There is no encapsulation within the following macros, do not change
  7813. ## the running order or otherwise move them around unless you know exactly
  7814. ## what you are doing...
  7815. if test -n "$compiler"; then
  7816.  
  7817. lt_prog_compiler_no_builtin_flag=
  7818.  
  7819. if test "$GCC" = yes; then
  7820. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7821.  
  7822. { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7823. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7824. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. lt_cv_prog_compiler_rtti_exceptions=no
  7828. ac_outfile=conftest.$ac_objext
  7829. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7830. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7831. # Insert the option either (1) after the last *FLAGS variable, or
  7832. # (2) before a word containing "conftest.", or (3) at the end.
  7833. # Note that $ac_compile itself does not contain backslashes and begins
  7834. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7835. # The option is referenced via a variable to avoid confusing sed.
  7836. lt_compile=`echo "$ac_compile" | $SED \
  7837. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7838. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7839. -e 's:$: $lt_compiler_flag:'`
  7840. (eval echo "\"\$as_me:7840: $lt_compile\"" >&5)
  7841. (eval "$lt_compile" 2>conftest.err)
  7842. ac_status=$?
  7843. cat conftest.err >&5
  7844. echo "$as_me:7844: \$? = $ac_status" >&5
  7845. if (exit $ac_status) && test -s "$ac_outfile"; then
  7846. # The compiler can only warn and ignore the option if not recognized
  7847. # So say no if there are warnings other than the usual output.
  7848. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7849. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7850. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7851. lt_cv_prog_compiler_rtti_exceptions=yes
  7852. fi
  7853. fi
  7854. $RM conftest*
  7855.  
  7856. fi
  7857. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7858. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7859.  
  7860. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7861. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7862. else
  7863. :
  7864. fi
  7865.  
  7866. fi
  7867.  
  7868.  
  7869.  
  7870.  
  7871.  
  7872.  
  7873. lt_prog_compiler_wl=
  7874. lt_prog_compiler_pic=
  7875. lt_prog_compiler_static=
  7876.  
  7877. { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  7878. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7879.  
  7880. if test "$GCC" = yes; then
  7881. lt_prog_compiler_wl='-Wl,'
  7882. lt_prog_compiler_static='-static'
  7883.  
  7884. case $host_os in
  7885. aix*)
  7886. # All AIX code is PIC.
  7887. if test "$host_cpu" = ia64; then
  7888. # AIX 5 now supports IA64 processor
  7889. lt_prog_compiler_static='-Bstatic'
  7890. fi
  7891. ;;
  7892.  
  7893. amigaos*)
  7894. case $host_cpu in
  7895. powerpc)
  7896. # see comment about AmigaOS4 .so support
  7897. lt_prog_compiler_pic='-fPIC'
  7898. ;;
  7899. m68k)
  7900. # FIXME: we need at least 68020 code to build shared libraries, but
  7901. # adding the `-m68020' flag to GCC prevents building anything better,
  7902. # like `-m68040'.
  7903. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7904. ;;
  7905. esac
  7906. ;;
  7907.  
  7908. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7909. # PIC is the default for these OSes.
  7910. ;;
  7911.  
  7912. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7913. # This hack is so that the source file can tell whether it is being
  7914. # built for inclusion in a dll (and should export symbols for example).
  7915. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7916. # (--disable-auto-import) libraries
  7917. lt_prog_compiler_pic='-DDLL_EXPORT'
  7918. ;;
  7919.  
  7920. darwin* | rhapsody*)
  7921. # PIC is the default on this platform
  7922. # Common symbols not allowed in MH_DYLIB files
  7923. lt_prog_compiler_pic='-fno-common'
  7924. ;;
  7925.  
  7926. hpux*)
  7927. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7928. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7929. # sets the default TLS model and affects inlining.
  7930. case $host_cpu in
  7931. hppa*64*)
  7932. # +Z the default
  7933. ;;
  7934. *)
  7935. lt_prog_compiler_pic='-fPIC'
  7936. ;;
  7937. esac
  7938. ;;
  7939.  
  7940. interix[3-9]*)
  7941. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7942. # Instead, we relocate shared libraries at runtime.
  7943. ;;
  7944.  
  7945. msdosdjgpp*)
  7946. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7947. # on systems that don't support them.
  7948. lt_prog_compiler_can_build_shared=no
  7949. enable_shared=no
  7950. ;;
  7951.  
  7952. *nto* | *qnx*)
  7953. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7954. # it will coredump.
  7955. lt_prog_compiler_pic='-fPIC -shared'
  7956. ;;
  7957.  
  7958. sysv4*MP*)
  7959. if test -d /usr/nec; then
  7960. lt_prog_compiler_pic=-Kconform_pic
  7961. fi
  7962. ;;
  7963.  
  7964. *)
  7965. lt_prog_compiler_pic='-fPIC'
  7966. ;;
  7967. esac
  7968. else
  7969. # PORTME Check for flag to pass linker flags through the system compiler.
  7970. case $host_os in
  7971. aix*)
  7972. lt_prog_compiler_wl='-Wl,'
  7973. if test "$host_cpu" = ia64; then
  7974. # AIX 5 now supports IA64 processor
  7975. lt_prog_compiler_static='-Bstatic'
  7976. else
  7977. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7978. fi
  7979. ;;
  7980.  
  7981. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7982. # This hack is so that the source file can tell whether it is being
  7983. # built for inclusion in a dll (and should export symbols for example).
  7984. lt_prog_compiler_pic='-DDLL_EXPORT'
  7985. ;;
  7986.  
  7987. hpux9* | hpux10* | hpux11*)
  7988. lt_prog_compiler_wl='-Wl,'
  7989. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7990. # not for PA HP-UX.
  7991. case $host_cpu in
  7992. hppa*64*|ia64*)
  7993. # +Z the default
  7994. ;;
  7995. *)
  7996. lt_prog_compiler_pic='+Z'
  7997. ;;
  7998. esac
  7999. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8000. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8001. ;;
  8002.  
  8003. irix5* | irix6* | nonstopux*)
  8004. lt_prog_compiler_wl='-Wl,'
  8005. # PIC (with -KPIC) is the default.
  8006. lt_prog_compiler_static='-non_shared'
  8007. ;;
  8008.  
  8009. linux* | k*bsd*-gnu)
  8010. case $cc_basename in
  8011. # old Intel for x86_64 which still supported -KPIC.
  8012. ecc*)
  8013. lt_prog_compiler_wl='-Wl,'
  8014. lt_prog_compiler_pic='-KPIC'
  8015. lt_prog_compiler_static='-static'
  8016. ;;
  8017. # icc used to be incompatible with GCC.
  8018. # ICC 10 doesn't accept -KPIC any more.
  8019. icc* | ifort*)
  8020. lt_prog_compiler_wl='-Wl,'
  8021. lt_prog_compiler_pic='-fPIC'
  8022. lt_prog_compiler_static='-static'
  8023. ;;
  8024. # Lahey Fortran 8.1.
  8025. lf95*)
  8026. lt_prog_compiler_wl='-Wl,'
  8027. lt_prog_compiler_pic='--shared'
  8028. lt_prog_compiler_static='--static'
  8029. ;;
  8030. pgcc* | pgf77* | pgf90* | pgf95*)
  8031. # Portland Group compilers (*not* the Pentium gcc compiler,
  8032. # which looks to be a dead project)
  8033. lt_prog_compiler_wl='-Wl,'
  8034. lt_prog_compiler_pic='-fpic'
  8035. lt_prog_compiler_static='-Bstatic'
  8036. ;;
  8037. ccc*)
  8038. lt_prog_compiler_wl='-Wl,'
  8039. # All Alpha code is PIC.
  8040. lt_prog_compiler_static='-non_shared'
  8041. ;;
  8042. xl*)
  8043. # IBM XL C 8.0/Fortran 10.1 on PPC
  8044. lt_prog_compiler_wl='-Wl,'
  8045. lt_prog_compiler_pic='-qpic'
  8046. lt_prog_compiler_static='-qstaticlink'
  8047. ;;
  8048. *)
  8049. case `$CC -V 2>&1 | sed 5q` in
  8050. *Sun\ C*)
  8051. # Sun C 5.9
  8052. lt_prog_compiler_pic='-KPIC'
  8053. lt_prog_compiler_static='-Bstatic'
  8054. lt_prog_compiler_wl='-Wl,'
  8055. ;;
  8056. *Sun\ F*)
  8057. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8058. lt_prog_compiler_pic='-KPIC'
  8059. lt_prog_compiler_static='-Bstatic'
  8060. lt_prog_compiler_wl=''
  8061. ;;
  8062. esac
  8063. ;;
  8064. esac
  8065. ;;
  8066.  
  8067. newsos6)
  8068. lt_prog_compiler_pic='-KPIC'
  8069. lt_prog_compiler_static='-Bstatic'
  8070. ;;
  8071.  
  8072. *nto* | *qnx*)
  8073. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8074. # it will coredump.
  8075. lt_prog_compiler_pic='-fPIC -shared'
  8076. ;;
  8077.  
  8078. osf3* | osf4* | osf5*)
  8079. lt_prog_compiler_wl='-Wl,'
  8080. # All OSF/1 code is PIC.
  8081. lt_prog_compiler_static='-non_shared'
  8082. ;;
  8083.  
  8084. rdos*)
  8085. lt_prog_compiler_static='-non_shared'
  8086. ;;
  8087.  
  8088. solaris*)
  8089. lt_prog_compiler_pic='-KPIC'
  8090. lt_prog_compiler_static='-Bstatic'
  8091. case $cc_basename in
  8092. f77* | f90* | f95*)
  8093. lt_prog_compiler_wl='-Qoption ld ';;
  8094. *)
  8095. lt_prog_compiler_wl='-Wl,';;
  8096. esac
  8097. ;;
  8098.  
  8099. sunos4*)
  8100. lt_prog_compiler_wl='-Qoption ld '
  8101. lt_prog_compiler_pic='-PIC'
  8102. lt_prog_compiler_static='-Bstatic'
  8103. ;;
  8104.  
  8105. sysv4 | sysv4.2uw2* | sysv4.3*)
  8106. lt_prog_compiler_wl='-Wl,'
  8107. lt_prog_compiler_pic='-KPIC'
  8108. lt_prog_compiler_static='-Bstatic'
  8109. ;;
  8110.  
  8111. sysv4*MP*)
  8112. if test -d /usr/nec ;then
  8113. lt_prog_compiler_pic='-Kconform_pic'
  8114. lt_prog_compiler_static='-Bstatic'
  8115. fi
  8116. ;;
  8117.  
  8118. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8119. lt_prog_compiler_wl='-Wl,'
  8120. lt_prog_compiler_pic='-KPIC'
  8121. lt_prog_compiler_static='-Bstatic'
  8122. ;;
  8123.  
  8124. unicos*)
  8125. lt_prog_compiler_wl='-Wl,'
  8126. lt_prog_compiler_can_build_shared=no
  8127. ;;
  8128.  
  8129. uts4*)
  8130. lt_prog_compiler_pic='-pic'
  8131. lt_prog_compiler_static='-Bstatic'
  8132. ;;
  8133.  
  8134. *)
  8135. lt_prog_compiler_can_build_shared=no
  8136. ;;
  8137. esac
  8138. fi
  8139.  
  8140. case $host_os in
  8141. # For platforms which do not support PIC, -DPIC is meaningless:
  8142. *djgpp*)
  8143. lt_prog_compiler_pic=
  8144. ;;
  8145. *)
  8146. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8147. ;;
  8148. esac
  8149. { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  8150. $as_echo "$lt_prog_compiler_pic" >&6; }
  8151.  
  8152.  
  8153.  
  8154.  
  8155.  
  8156.  
  8157. #
  8158. # Check to make sure the PIC flag actually works.
  8159. #
  8160. if test -n "$lt_prog_compiler_pic"; then
  8161. { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8162. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8163. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
  8164. $as_echo_n "(cached) " >&6
  8165. else
  8166. lt_cv_prog_compiler_pic_works=no
  8167. ac_outfile=conftest.$ac_objext
  8168. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8169. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8170. # Insert the option either (1) after the last *FLAGS variable, or
  8171. # (2) before a word containing "conftest.", or (3) at the end.
  8172. # Note that $ac_compile itself does not contain backslashes and begins
  8173. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8174. # The option is referenced via a variable to avoid confusing sed.
  8175. lt_compile=`echo "$ac_compile" | $SED \
  8176. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8177. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8178. -e 's:$: $lt_compiler_flag:'`
  8179. (eval echo "\"\$as_me:8179: $lt_compile\"" >&5)
  8180. (eval "$lt_compile" 2>conftest.err)
  8181. ac_status=$?
  8182. cat conftest.err >&5
  8183. echo "$as_me:8183: \$? = $ac_status" >&5
  8184. if (exit $ac_status) && test -s "$ac_outfile"; then
  8185. # The compiler can only warn and ignore the option if not recognized
  8186. # So say no if there are warnings other than the usual output.
  8187. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  8188. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8189. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8190. lt_cv_prog_compiler_pic_works=yes
  8191. fi
  8192. fi
  8193. $RM conftest*
  8194.  
  8195. fi
  8196. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
  8197. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8198.  
  8199. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8200. case $lt_prog_compiler_pic in
  8201. "" | " "*) ;;
  8202. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8203. esac
  8204. else
  8205. lt_prog_compiler_pic=
  8206. lt_prog_compiler_can_build_shared=no
  8207. fi
  8208.  
  8209. fi
  8210.  
  8211.  
  8212.  
  8213.  
  8214.  
  8215.  
  8216. #
  8217. # Check to make sure the static flag actually works.
  8218. #
  8219. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8220. { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8221. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8222. if test "${lt_cv_prog_compiler_static_works+set}" = set; then
  8223. $as_echo_n "(cached) " >&6
  8224. else
  8225. lt_cv_prog_compiler_static_works=no
  8226. save_LDFLAGS="$LDFLAGS"
  8227. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8228. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8229. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8230. # The linker can only warn and ignore the option if not recognized
  8231. # So say no if there are warnings
  8232. if test -s conftest.err; then
  8233. # Append any errors to the config.log.
  8234. cat conftest.err 1>&5
  8235. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  8236. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8237. if diff conftest.exp conftest.er2 >/dev/null; then
  8238. lt_cv_prog_compiler_static_works=yes
  8239. fi
  8240. else
  8241. lt_cv_prog_compiler_static_works=yes
  8242. fi
  8243. fi
  8244. $RM -r conftest*
  8245. LDFLAGS="$save_LDFLAGS"
  8246.  
  8247. fi
  8248. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
  8249. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8250.  
  8251. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8252. :
  8253. else
  8254. lt_prog_compiler_static=
  8255. fi
  8256.  
  8257.  
  8258.  
  8259.  
  8260.  
  8261.  
  8262.  
  8263. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8264. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8265. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8266. $as_echo_n "(cached) " >&6
  8267. else
  8268. lt_cv_prog_compiler_c_o=no
  8269. $RM -r conftest 2>/dev/null
  8270. mkdir conftest
  8271. cd conftest
  8272. mkdir out
  8273. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8274.  
  8275. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8276. # Insert the option either (1) after the last *FLAGS variable, or
  8277. # (2) before a word containing "conftest.", or (3) at the end.
  8278. # Note that $ac_compile itself does not contain backslashes and begins
  8279. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8280. lt_compile=`echo "$ac_compile" | $SED \
  8281. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8282. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8283. -e 's:$: $lt_compiler_flag:'`
  8284. (eval echo "\"\$as_me:8284: $lt_compile\"" >&5)
  8285. (eval "$lt_compile" 2>out/conftest.err)
  8286. ac_status=$?
  8287. cat out/conftest.err >&5
  8288. echo "$as_me:8288: \$? = $ac_status" >&5
  8289. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8290. then
  8291. # The compiler can only warn and ignore the option if not recognized
  8292. # So say no if there are warnings
  8293. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8294. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8295. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8296. lt_cv_prog_compiler_c_o=yes
  8297. fi
  8298. fi
  8299. chmod u+w . 2>&5
  8300. $RM conftest*
  8301. # SGI C++ compiler will create directory out/ii_files/ for
  8302. # template instantiation
  8303. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8304. $RM out/* && rmdir out
  8305. cd ..
  8306. $RM -r conftest
  8307. $RM conftest*
  8308.  
  8309. fi
  8310. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8311. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8312.  
  8313.  
  8314.  
  8315.  
  8316.  
  8317.  
  8318. { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  8319. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8320. if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  8321. $as_echo_n "(cached) " >&6
  8322. else
  8323. lt_cv_prog_compiler_c_o=no
  8324. $RM -r conftest 2>/dev/null
  8325. mkdir conftest
  8326. cd conftest
  8327. mkdir out
  8328. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8329.  
  8330. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8331. # Insert the option either (1) after the last *FLAGS variable, or
  8332. # (2) before a word containing "conftest.", or (3) at the end.
  8333. # Note that $ac_compile itself does not contain backslashes and begins
  8334. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8335. lt_compile=`echo "$ac_compile" | $SED \
  8336. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8337. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8338. -e 's:$: $lt_compiler_flag:'`
  8339. (eval echo "\"\$as_me:8339: $lt_compile\"" >&5)
  8340. (eval "$lt_compile" 2>out/conftest.err)
  8341. ac_status=$?
  8342. cat out/conftest.err >&5
  8343. echo "$as_me:8343: \$? = $ac_status" >&5
  8344. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8345. then
  8346. # The compiler can only warn and ignore the option if not recognized
  8347. # So say no if there are warnings
  8348. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  8349. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8350. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8351. lt_cv_prog_compiler_c_o=yes
  8352. fi
  8353. fi
  8354. chmod u+w . 2>&5
  8355. $RM conftest*
  8356. # SGI C++ compiler will create directory out/ii_files/ for
  8357. # template instantiation
  8358. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8359. $RM out/* && rmdir out
  8360. cd ..
  8361. $RM -r conftest
  8362. $RM conftest*
  8363.  
  8364. fi
  8365. { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  8366. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8367.  
  8368.  
  8369.  
  8370.  
  8371. hard_links="nottested"
  8372. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8373. # do not overwrite the value of need_locks provided by the user
  8374. { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  8375. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8376. hard_links=yes
  8377. $RM conftest*
  8378. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8379. touch conftest.a
  8380. ln conftest.a conftest.b 2>&5 || hard_links=no
  8381. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8382. { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
  8383. $as_echo "$hard_links" >&6; }
  8384. if test "$hard_links" = no; then
  8385. { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8386. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8387. need_locks=warn
  8388. fi
  8389. else
  8390. need_locks=no
  8391. fi
  8392.  
  8393.  
  8394.  
  8395.  
  8396.  
  8397.  
  8398. { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8399. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8400.  
  8401. runpath_var=
  8402. allow_undefined_flag=
  8403. always_export_symbols=no
  8404. archive_cmds=
  8405. archive_expsym_cmds=
  8406. compiler_needs_object=no
  8407. enable_shared_with_static_runtimes=no
  8408. export_dynamic_flag_spec=
  8409. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8410. hardcode_automatic=no
  8411. hardcode_direct=no
  8412. hardcode_direct_absolute=no
  8413. hardcode_libdir_flag_spec=
  8414. hardcode_libdir_flag_spec_ld=
  8415. hardcode_libdir_separator=
  8416. hardcode_minus_L=no
  8417. hardcode_shlibpath_var=unsupported
  8418. inherit_rpath=no
  8419. link_all_deplibs=unknown
  8420. module_cmds=
  8421. module_expsym_cmds=
  8422. old_archive_from_new_cmds=
  8423. old_archive_from_expsyms_cmds=
  8424. thread_safe_flag_spec=
  8425. whole_archive_flag_spec=
  8426. # include_expsyms should be a list of space-separated symbols to be *always*
  8427. # included in the symbol list
  8428. include_expsyms=
  8429. # exclude_expsyms can be an extended regexp of symbols to exclude
  8430. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8431. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8432. # as well as any symbol that contains `d'.
  8433. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8434. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8435. # platforms (ab)use it in PIC code, but their linkers get confused if
  8436. # the symbol is explicitly referenced. Since portable code cannot
  8437. # rely on this symbol name, it's probably fine to never include it in
  8438. # preloaded symbol tables.
  8439. # Exclude shared library initialization/finalization symbols.
  8440. extract_expsyms_cmds=
  8441.  
  8442. case $host_os in
  8443. cygwin* | mingw* | pw32* | cegcc*)
  8444. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8445. # When not using gcc, we currently assume that we are using
  8446. # Microsoft Visual C++.
  8447. if test "$GCC" != yes; then
  8448. with_gnu_ld=no
  8449. fi
  8450. ;;
  8451. interix*)
  8452. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8453. with_gnu_ld=yes
  8454. ;;
  8455. openbsd*)
  8456. with_gnu_ld=no
  8457. ;;
  8458. esac
  8459.  
  8460. ld_shlibs=yes
  8461. if test "$with_gnu_ld" = yes; then
  8462. # If archive_cmds runs LD, not CC, wlarc should be empty
  8463. wlarc='${wl}'
  8464.  
  8465. # Set some defaults for GNU ld with shared library support. These
  8466. # are reset later if shared libraries are not supported. Putting them
  8467. # here allows them to be overridden if necessary.
  8468. runpath_var=LD_RUN_PATH
  8469. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8470. export_dynamic_flag_spec='${wl}--export-dynamic'
  8471. # ancient GNU ld didn't support --whole-archive et. al.
  8472. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8473. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8474. else
  8475. whole_archive_flag_spec=
  8476. fi
  8477. supports_anon_versioning=no
  8478. case `$LD -v 2>&1` in
  8479. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8480. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8481. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8482. *\ 2.11.*) ;; # other 2.11 versions
  8483. *) supports_anon_versioning=yes ;;
  8484. esac
  8485.  
  8486. # See if GNU ld supports shared libraries.
  8487. case $host_os in
  8488. aix[3-9]*)
  8489. # On AIX/PPC, the GNU linker is very broken
  8490. if test "$host_cpu" != ia64; then
  8491. ld_shlibs=no
  8492. cat <<_LT_EOF 1>&2
  8493.  
  8494. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  8495. *** to be unable to reliably create shared libraries on AIX.
  8496. *** Therefore, libtool is disabling shared libraries support. If you
  8497. *** really care for shared libraries, you may want to modify your PATH
  8498. *** so that a non-GNU linker is found, and then restart.
  8499.  
  8500. _LT_EOF
  8501. fi
  8502. ;;
  8503.  
  8504. amigaos*)
  8505. case $host_cpu in
  8506. powerpc)
  8507. # see comment about AmigaOS4 .so support
  8508. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8509. archive_expsym_cmds=''
  8510. ;;
  8511. m68k)
  8512. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8513. hardcode_libdir_flag_spec='-L$libdir'
  8514. hardcode_minus_L=yes
  8515. ;;
  8516. esac
  8517. ;;
  8518.  
  8519. beos*)
  8520. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8521. allow_undefined_flag=unsupported
  8522. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8523. # support --undefined. This deserves some investigation. FIXME
  8524. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8525. else
  8526. ld_shlibs=no
  8527. fi
  8528. ;;
  8529.  
  8530. cygwin* | mingw* | pw32* | cegcc*)
  8531. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8532. # as there is no search path for DLLs.
  8533. hardcode_libdir_flag_spec='-L$libdir'
  8534. allow_undefined_flag=unsupported
  8535. always_export_symbols=no
  8536. enable_shared_with_static_runtimes=yes
  8537. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8538.  
  8539. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8540. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8541. # If the export-symbols file already is a .def file (1st line
  8542. # is EXPORTS), use it as is; otherwise, prepend...
  8543. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8544. cp $export_symbols $output_objdir/$soname.def;
  8545. else
  8546. echo EXPORTS > $output_objdir/$soname.def;
  8547. cat $export_symbols >> $output_objdir/$soname.def;
  8548. fi~
  8549. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8550. else
  8551. ld_shlibs=no
  8552. fi
  8553. ;;
  8554.  
  8555. interix[3-9]*)
  8556. hardcode_direct=no
  8557. hardcode_shlibpath_var=no
  8558. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8559. export_dynamic_flag_spec='${wl}-E'
  8560. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8561. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8562. # default) and relocated if they conflict, which is a slow very memory
  8563. # consuming and fragmenting process. To avoid this, we pick a random,
  8564. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8565. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8566. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8567. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8568. ;;
  8569.  
  8570. gnu* | linux* | tpf* | k*bsd*-gnu)
  8571. tmp_diet=no
  8572. if test "$host_os" = linux-dietlibc; then
  8573. case $cc_basename in
  8574. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8575. esac
  8576. fi
  8577. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8578. && test "$tmp_diet" = no
  8579. then
  8580. tmp_addflag=
  8581. tmp_sharedflag='-shared'
  8582. case $cc_basename,$host_cpu in
  8583. pgcc*) # Portland Group C compiler
  8584. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8585. tmp_addflag=' $pic_flag'
  8586. ;;
  8587. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8588. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8589. tmp_addflag=' $pic_flag -Mnomain' ;;
  8590. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8591. tmp_addflag=' -i_dynamic' ;;
  8592. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8593. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8594. ifc* | ifort*) # Intel Fortran compiler
  8595. tmp_addflag=' -nofor_main' ;;
  8596. lf95*) # Lahey Fortran 8.1
  8597. whole_archive_flag_spec=
  8598. tmp_sharedflag='--shared' ;;
  8599. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8600. tmp_sharedflag='-qmkshrobj'
  8601. tmp_addflag= ;;
  8602. esac
  8603. case `$CC -V 2>&1 | sed 5q` in
  8604. *Sun\ C*) # Sun C 5.9
  8605. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8606. compiler_needs_object=yes
  8607. tmp_sharedflag='-G' ;;
  8608. *Sun\ F*) # Sun Fortran 8.3
  8609. tmp_sharedflag='-G' ;;
  8610. esac
  8611. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8612.  
  8613. if test "x$supports_anon_versioning" = xyes; then
  8614. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8615. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8616. echo "local: *; };" >> $output_objdir/$libname.ver~
  8617. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8618. fi
  8619.  
  8620. case $cc_basename in
  8621. xlf*)
  8622. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8623. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8624. hardcode_libdir_flag_spec=
  8625. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8626. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8627. if test "x$supports_anon_versioning" = xyes; then
  8628. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8629. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8630. echo "local: *; };" >> $output_objdir/$libname.ver~
  8631. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8632. fi
  8633. ;;
  8634. esac
  8635. else
  8636. ld_shlibs=no
  8637. fi
  8638. ;;
  8639.  
  8640. netbsd*)
  8641. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8642. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8643. wlarc=
  8644. else
  8645. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8646. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8647. fi
  8648. ;;
  8649.  
  8650. solaris*)
  8651. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8652. ld_shlibs=no
  8653. cat <<_LT_EOF 1>&2
  8654.  
  8655. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8656. *** create shared libraries on Solaris systems. Therefore, libtool
  8657. *** is disabling shared libraries support. We urge you to upgrade GNU
  8658. *** binutils to release 2.9.1 or newer. Another option is to modify
  8659. *** your PATH or compiler configuration so that the native linker is
  8660. *** used, and then restart.
  8661.  
  8662. _LT_EOF
  8663. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8664. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8665. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8666. else
  8667. ld_shlibs=no
  8668. fi
  8669. ;;
  8670.  
  8671. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8672. case `$LD -v 2>&1` in
  8673. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8674. ld_shlibs=no
  8675. cat <<_LT_EOF 1>&2
  8676.  
  8677. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8678. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8679. *** is disabling shared libraries support. We urge you to upgrade GNU
  8680. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8681. *** your PATH or compiler configuration so that the native linker is
  8682. *** used, and then restart.
  8683.  
  8684. _LT_EOF
  8685. ;;
  8686. *)
  8687. # For security reasons, it is highly recommended that you always
  8688. # use absolute paths for naming shared libraries, and exclude the
  8689. # DT_RUNPATH tag from executables and libraries. But doing so
  8690. # requires that you compile everything twice, which is a pain.
  8691. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8692. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8693. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8694. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8695. else
  8696. ld_shlibs=no
  8697. fi
  8698. ;;
  8699. esac
  8700. ;;
  8701.  
  8702. sunos4*)
  8703. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8704. wlarc=
  8705. hardcode_direct=yes
  8706. hardcode_shlibpath_var=no
  8707. ;;
  8708.  
  8709. *)
  8710. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8711. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8712. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8713. else
  8714. ld_shlibs=no
  8715. fi
  8716. ;;
  8717. esac
  8718.  
  8719. if test "$ld_shlibs" = no; then
  8720. runpath_var=
  8721. hardcode_libdir_flag_spec=
  8722. export_dynamic_flag_spec=
  8723. whole_archive_flag_spec=
  8724. fi
  8725. else
  8726. # PORTME fill in a description of your system's linker (not GNU ld)
  8727. case $host_os in
  8728. aix3*)
  8729. allow_undefined_flag=unsupported
  8730. always_export_symbols=yes
  8731. archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8732. # Note: this linker hardcodes the directories in LIBPATH if there
  8733. # are no directories specified by -L.
  8734. hardcode_minus_L=yes
  8735. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8736. # Neither direct hardcoding nor static linking is supported with a
  8737. # broken collect2.
  8738. hardcode_direct=unsupported
  8739. fi
  8740. ;;
  8741.  
  8742. aix[4-9]*)
  8743. if test "$host_cpu" = ia64; then
  8744. # On IA64, the linker does run time linking by default, so we don't
  8745. # have to do anything special.
  8746. aix_use_runtimelinking=no
  8747. exp_sym_flag='-Bexport'
  8748. no_entry_flag=""
  8749. else
  8750. # If we're using GNU nm, then we don't want the "-C" option.
  8751. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8752. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8753. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8754. else
  8755. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8756. fi
  8757. aix_use_runtimelinking=no
  8758.  
  8759. # Test if we are trying to use run time linking or normal
  8760. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8761. # need to do runtime linking.
  8762. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8763. for ld_flag in $LDFLAGS; do
  8764. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8765. aix_use_runtimelinking=yes
  8766. break
  8767. fi
  8768. done
  8769. ;;
  8770. esac
  8771.  
  8772. exp_sym_flag='-bexport'
  8773. no_entry_flag='-bnoentry'
  8774. fi
  8775.  
  8776. # When large executables or shared objects are built, AIX ld can
  8777. # have problems creating the table of contents. If linking a library
  8778. # or program results in "error TOC overflow" add -mminimal-toc to
  8779. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8780. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8781.  
  8782. archive_cmds=''
  8783. hardcode_direct=yes
  8784. hardcode_direct_absolute=yes
  8785. hardcode_libdir_separator=':'
  8786. link_all_deplibs=yes
  8787. file_list_spec='${wl}-f,'
  8788.  
  8789. if test "$GCC" = yes; then
  8790. case $host_os in aix4.[012]|aix4.[012].*)
  8791. # We only want to do this on AIX 4.2 and lower, the check
  8792. # below for broken collect2 doesn't work under 4.3+
  8793. collect2name=`${CC} -print-prog-name=collect2`
  8794. if test -f "$collect2name" &&
  8795. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8796. then
  8797. # We have reworked collect2
  8798. :
  8799. else
  8800. # We have old collect2
  8801. hardcode_direct=unsupported
  8802. # It fails to find uninstalled libraries when the uninstalled
  8803. # path is not listed in the libpath. Setting hardcode_minus_L
  8804. # to unsupported forces relinking
  8805. hardcode_minus_L=yes
  8806. hardcode_libdir_flag_spec='-L$libdir'
  8807. hardcode_libdir_separator=
  8808. fi
  8809. ;;
  8810. esac
  8811. shared_flag='-shared'
  8812. if test "$aix_use_runtimelinking" = yes; then
  8813. shared_flag="$shared_flag "'${wl}-G'
  8814. fi
  8815. else
  8816. # not using gcc
  8817. if test "$host_cpu" = ia64; then
  8818. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8819. # chokes on -Wl,-G. The following line is correct:
  8820. shared_flag='-G'
  8821. else
  8822. if test "$aix_use_runtimelinking" = yes; then
  8823. shared_flag='${wl}-G'
  8824. else
  8825. shared_flag='${wl}-bM:SRE'
  8826. fi
  8827. fi
  8828. fi
  8829.  
  8830. export_dynamic_flag_spec='${wl}-bexpall'
  8831. # It seems that -bexpall does not export symbols beginning with
  8832. # underscore (_), so it is better to generate a list of symbols to export.
  8833. always_export_symbols=yes
  8834. if test "$aix_use_runtimelinking" = yes; then
  8835. # Warning - without using the other runtime loading flags (-brtl),
  8836. # -berok will link without error, but may produce a broken library.
  8837. allow_undefined_flag='-berok'
  8838. # Determine the default libpath from the value encoded in an
  8839. # empty executable.
  8840. cat >conftest.$ac_ext <<_ACEOF
  8841. /* confdefs.h. */
  8842. _ACEOF
  8843. cat confdefs.h >>conftest.$ac_ext
  8844. cat >>conftest.$ac_ext <<_ACEOF
  8845. /* end confdefs.h. */
  8846.  
  8847. int
  8848. main ()
  8849. {
  8850.  
  8851. ;
  8852. return 0;
  8853. }
  8854. _ACEOF
  8855. rm -f conftest.$ac_objext conftest$ac_exeext
  8856. if { (ac_try="$ac_link"
  8857. case "(($ac_try" in
  8858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8859. *) ac_try_echo=$ac_try;;
  8860. esac
  8861. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8862. $as_echo "$ac_try_echo") >&5
  8863. (eval "$ac_link") 2>conftest.er1
  8864. ac_status=$?
  8865. grep -v '^ *+' conftest.er1 >conftest.err
  8866. rm -f conftest.er1
  8867. cat conftest.err >&5
  8868. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8869. (exit $ac_status); } && {
  8870. test -z "$ac_c_werror_flag" ||
  8871. test ! -s conftest.err
  8872. } && test -s conftest$ac_exeext && {
  8873. test "$cross_compiling" = yes ||
  8874. $as_test_x conftest$ac_exeext
  8875. }; then
  8876.  
  8877. lt_aix_libpath_sed='
  8878. /Import File Strings/,/^$/ {
  8879. /^0/ {
  8880. s/^0 *\(.*\)$/\1/
  8881. p
  8882. }
  8883. }'
  8884. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8885. # Check for a 64-bit object if we didn't find anything.
  8886. if test -z "$aix_libpath"; then
  8887. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8888. fi
  8889. else
  8890. $as_echo "$as_me: failed program was:" >&5
  8891. sed 's/^/| /' conftest.$ac_ext >&5
  8892.  
  8893.  
  8894. fi
  8895.  
  8896. rm -rf conftest.dSYM
  8897. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8898. conftest$ac_exeext conftest.$ac_ext
  8899. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8900.  
  8901. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8902. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8903. else
  8904. if test "$host_cpu" = ia64; then
  8905. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8906. allow_undefined_flag="-z nodefs"
  8907. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8908. else
  8909. # Determine the default libpath from the value encoded in an
  8910. # empty executable.
  8911. cat >conftest.$ac_ext <<_ACEOF
  8912. /* confdefs.h. */
  8913. _ACEOF
  8914. cat confdefs.h >>conftest.$ac_ext
  8915. cat >>conftest.$ac_ext <<_ACEOF
  8916. /* end confdefs.h. */
  8917.  
  8918. int
  8919. main ()
  8920. {
  8921.  
  8922. ;
  8923. return 0;
  8924. }
  8925. _ACEOF
  8926. rm -f conftest.$ac_objext conftest$ac_exeext
  8927. if { (ac_try="$ac_link"
  8928. case "(($ac_try" in
  8929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8930. *) ac_try_echo=$ac_try;;
  8931. esac
  8932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  8933. $as_echo "$ac_try_echo") >&5
  8934. (eval "$ac_link") 2>conftest.er1
  8935. ac_status=$?
  8936. grep -v '^ *+' conftest.er1 >conftest.err
  8937. rm -f conftest.er1
  8938. cat conftest.err >&5
  8939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8940. (exit $ac_status); } && {
  8941. test -z "$ac_c_werror_flag" ||
  8942. test ! -s conftest.err
  8943. } && test -s conftest$ac_exeext && {
  8944. test "$cross_compiling" = yes ||
  8945. $as_test_x conftest$ac_exeext
  8946. }; then
  8947.  
  8948. lt_aix_libpath_sed='
  8949. /Import File Strings/,/^$/ {
  8950. /^0/ {
  8951. s/^0 *\(.*\)$/\1/
  8952. p
  8953. }
  8954. }'
  8955. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8956. # Check for a 64-bit object if we didn't find anything.
  8957. if test -z "$aix_libpath"; then
  8958. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8959. fi
  8960. else
  8961. $as_echo "$as_me: failed program was:" >&5
  8962. sed 's/^/| /' conftest.$ac_ext >&5
  8963.  
  8964.  
  8965. fi
  8966.  
  8967. rm -rf conftest.dSYM
  8968. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8969. conftest$ac_exeext conftest.$ac_ext
  8970. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8971.  
  8972. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8973. # Warning - without using the other run time loading flags,
  8974. # -berok will link without error, but may produce a broken library.
  8975. no_undefined_flag=' ${wl}-bernotok'
  8976. allow_undefined_flag=' ${wl}-berok'
  8977. # Exported symbols can be pulled into shared objects from archives
  8978. whole_archive_flag_spec='$convenience'
  8979. archive_cmds_need_lc=yes
  8980. # This is similar to how AIX traditionally builds its shared libraries.
  8981. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8982. fi
  8983. fi
  8984. ;;
  8985.  
  8986. amigaos*)
  8987. case $host_cpu in
  8988. powerpc)
  8989. # see comment about AmigaOS4 .so support
  8990. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8991. archive_expsym_cmds=''
  8992. ;;
  8993. m68k)
  8994. archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8995. hardcode_libdir_flag_spec='-L$libdir'
  8996. hardcode_minus_L=yes
  8997. ;;
  8998. esac
  8999. ;;
  9000.  
  9001. bsdi[45]*)
  9002. export_dynamic_flag_spec=-rdynamic
  9003. ;;
  9004.  
  9005. cygwin* | mingw* | pw32* | cegcc*)
  9006. # When not using gcc, we currently assume that we are using
  9007. # Microsoft Visual C++.
  9008. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9009. # no search path for DLLs.
  9010. hardcode_libdir_flag_spec=' '
  9011. allow_undefined_flag=unsupported
  9012. # Tell ltmain to make .lib files, not .a files.
  9013. libext=lib
  9014. # Tell ltmain to make .dll files, not .so files.
  9015. shrext_cmds=".dll"
  9016. # FIXME: Setting linknames here is a bad hack.
  9017. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  9018. # The linker will automatically build a .lib file if we build a DLL.
  9019. old_archive_from_new_cmds='true'
  9020. # FIXME: Should let the user specify the lib program.
  9021. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9022. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9023. enable_shared_with_static_runtimes=yes
  9024. ;;
  9025.  
  9026. darwin* | rhapsody*)
  9027.  
  9028.  
  9029. archive_cmds_need_lc=no
  9030. hardcode_direct=no
  9031. hardcode_automatic=yes
  9032. hardcode_shlibpath_var=unsupported
  9033. whole_archive_flag_spec=''
  9034. link_all_deplibs=yes
  9035. allow_undefined_flag="$_lt_dar_allow_undefined"
  9036. case $cc_basename in
  9037. ifort*) _lt_dar_can_shared=yes ;;
  9038. *) _lt_dar_can_shared=$GCC ;;
  9039. esac
  9040. if test "$_lt_dar_can_shared" = "yes"; then
  9041. output_verbose_link_cmd=echo
  9042. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9043. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9044. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  9045. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  9046.  
  9047. else
  9048. ld_shlibs=no
  9049. fi
  9050.  
  9051. ;;
  9052.  
  9053. dgux*)
  9054. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9055. hardcode_libdir_flag_spec='-L$libdir'
  9056. hardcode_shlibpath_var=no
  9057. ;;
  9058.  
  9059. freebsd1*)
  9060. ld_shlibs=no
  9061. ;;
  9062.  
  9063. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9064. # support. Future versions do this automatically, but an explicit c++rt0.o
  9065. # does not break anything, and helps significantly (at the cost of a little
  9066. # extra space).
  9067. freebsd2.2*)
  9068. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9069. hardcode_libdir_flag_spec='-R$libdir'
  9070. hardcode_direct=yes
  9071. hardcode_shlibpath_var=no
  9072. ;;
  9073.  
  9074. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9075. freebsd2*)
  9076. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9077. hardcode_direct=yes
  9078. hardcode_minus_L=yes
  9079. hardcode_shlibpath_var=no
  9080. ;;
  9081.  
  9082. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9083. freebsd* | dragonfly*)
  9084. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9085. hardcode_libdir_flag_spec='-R$libdir'
  9086. hardcode_direct=yes
  9087. hardcode_shlibpath_var=no
  9088. ;;
  9089.  
  9090. hpux9*)
  9091. if test "$GCC" = yes; then
  9092. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9093. else
  9094. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9095. fi
  9096. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9097. hardcode_libdir_separator=:
  9098. hardcode_direct=yes
  9099.  
  9100. # hardcode_minus_L: Not really in the search PATH,
  9101. # but as the default location of the library.
  9102. hardcode_minus_L=yes
  9103. export_dynamic_flag_spec='${wl}-E'
  9104. ;;
  9105.  
  9106. hpux10*)
  9107. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9108. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9109. else
  9110. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9111. fi
  9112. if test "$with_gnu_ld" = no; then
  9113. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9114. hardcode_libdir_flag_spec_ld='+b $libdir'
  9115. hardcode_libdir_separator=:
  9116. hardcode_direct=yes
  9117. hardcode_direct_absolute=yes
  9118. export_dynamic_flag_spec='${wl}-E'
  9119. # hardcode_minus_L: Not really in the search PATH,
  9120. # but as the default location of the library.
  9121. hardcode_minus_L=yes
  9122. fi
  9123. ;;
  9124.  
  9125. hpux11*)
  9126. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  9127. case $host_cpu in
  9128. hppa*64*)
  9129. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9130. ;;
  9131. ia64*)
  9132. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9133. ;;
  9134. *)
  9135. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9136. ;;
  9137. esac
  9138. else
  9139. case $host_cpu in
  9140. hppa*64*)
  9141. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9142. ;;
  9143. ia64*)
  9144. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9145. ;;
  9146. *)
  9147. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9148. ;;
  9149. esac
  9150. fi
  9151. if test "$with_gnu_ld" = no; then
  9152. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9153. hardcode_libdir_separator=:
  9154.  
  9155. case $host_cpu in
  9156. hppa*64*|ia64*)
  9157. hardcode_direct=no
  9158. hardcode_shlibpath_var=no
  9159. ;;
  9160. *)
  9161. hardcode_direct=yes
  9162. hardcode_direct_absolute=yes
  9163. export_dynamic_flag_spec='${wl}-E'
  9164.  
  9165. # hardcode_minus_L: Not really in the search PATH,
  9166. # but as the default location of the library.
  9167. hardcode_minus_L=yes
  9168. ;;
  9169. esac
  9170. fi
  9171. ;;
  9172.  
  9173. irix5* | irix6* | nonstopux*)
  9174. if test "$GCC" = yes; then
  9175. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9176. # Try to use the -exported_symbol ld option, if it does not
  9177. # work, assume that -exports_file does not work either and
  9178. # implicitly export all symbols.
  9179. save_LDFLAGS="$LDFLAGS"
  9180. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9181. cat >conftest.$ac_ext <<_ACEOF
  9182. int foo(void) {}
  9183. _ACEOF
  9184. rm -f conftest.$ac_objext conftest$ac_exeext
  9185. if { (ac_try="$ac_link"
  9186. case "(($ac_try" in
  9187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9188. *) ac_try_echo=$ac_try;;
  9189. esac
  9190. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  9191. $as_echo "$ac_try_echo") >&5
  9192. (eval "$ac_link") 2>conftest.er1
  9193. ac_status=$?
  9194. grep -v '^ *+' conftest.er1 >conftest.err
  9195. rm -f conftest.er1
  9196. cat conftest.err >&5
  9197. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9198. (exit $ac_status); } && {
  9199. test -z "$ac_c_werror_flag" ||
  9200. test ! -s conftest.err
  9201. } && test -s conftest$ac_exeext && {
  9202. test "$cross_compiling" = yes ||
  9203. $as_test_x conftest$ac_exeext
  9204. }; then
  9205. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9206.  
  9207. else
  9208. $as_echo "$as_me: failed program was:" >&5
  9209. sed 's/^/| /' conftest.$ac_ext >&5
  9210.  
  9211.  
  9212. fi
  9213.  
  9214. rm -rf conftest.dSYM
  9215. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9216. conftest$ac_exeext conftest.$ac_ext
  9217. LDFLAGS="$save_LDFLAGS"
  9218. else
  9219. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9220. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9221. fi
  9222. archive_cmds_need_lc='no'
  9223. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9224. hardcode_libdir_separator=:
  9225. inherit_rpath=yes
  9226. link_all_deplibs=yes
  9227. ;;
  9228.  
  9229. netbsd*)
  9230. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9231. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9232. else
  9233. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9234. fi
  9235. hardcode_libdir_flag_spec='-R$libdir'
  9236. hardcode_direct=yes
  9237. hardcode_shlibpath_var=no
  9238. ;;
  9239.  
  9240. newsos6)
  9241. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9242. hardcode_direct=yes
  9243. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9244. hardcode_libdir_separator=:
  9245. hardcode_shlibpath_var=no
  9246. ;;
  9247.  
  9248. *nto* | *qnx*)
  9249. ;;
  9250.  
  9251. openbsd*)
  9252. if test -f /usr/libexec/ld.so; then
  9253. hardcode_direct=yes
  9254. hardcode_shlibpath_var=no
  9255. hardcode_direct_absolute=yes
  9256. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9257. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9258. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9259. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9260. export_dynamic_flag_spec='${wl}-E'
  9261. else
  9262. case $host_os in
  9263. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9264. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_libdir_flag_spec='-R$libdir'
  9266. ;;
  9267. *)
  9268. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9269. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9270. ;;
  9271. esac
  9272. fi
  9273. else
  9274. ld_shlibs=no
  9275. fi
  9276. ;;
  9277.  
  9278. os2*)
  9279. hardcode_libdir_flag_spec='-L$libdir'
  9280. hardcode_minus_L=yes
  9281. allow_undefined_flag=unsupported
  9282. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9283. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9284. ;;
  9285.  
  9286. osf3*)
  9287. if test "$GCC" = yes; then
  9288. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9289. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9290. else
  9291. allow_undefined_flag=' -expect_unresolved \*'
  9292. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9293. fi
  9294. archive_cmds_need_lc='no'
  9295. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9296. hardcode_libdir_separator=:
  9297. ;;
  9298.  
  9299. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9300. if test "$GCC" = yes; then
  9301. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9302. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9303. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9304. else
  9305. allow_undefined_flag=' -expect_unresolved \*'
  9306. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9307. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9308. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9309.  
  9310. # Both c and cxx compiler support -rpath directly
  9311. hardcode_libdir_flag_spec='-rpath $libdir'
  9312. fi
  9313. archive_cmds_need_lc='no'
  9314. hardcode_libdir_separator=:
  9315. ;;
  9316.  
  9317. solaris*)
  9318. no_undefined_flag=' -z defs'
  9319. if test "$GCC" = yes; then
  9320. wlarc='${wl}'
  9321. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9322. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9323. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9324. else
  9325. case `$CC -V 2>&1` in
  9326. *"Compilers 5.0"*)
  9327. wlarc=''
  9328. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9329. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9330. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9331. ;;
  9332. *)
  9333. wlarc='${wl}'
  9334. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9335. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9336. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9337. ;;
  9338. esac
  9339. fi
  9340. hardcode_libdir_flag_spec='-R$libdir'
  9341. hardcode_shlibpath_var=no
  9342. case $host_os in
  9343. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9344. *)
  9345. # The compiler driver will combine and reorder linker options,
  9346. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9347. # but is careful enough not to reorder.
  9348. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9349. if test "$GCC" = yes; then
  9350. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9351. else
  9352. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9353. fi
  9354. ;;
  9355. esac
  9356. link_all_deplibs=yes
  9357. ;;
  9358.  
  9359. sunos4*)
  9360. if test "x$host_vendor" = xsequent; then
  9361. # Use $CC to link under sequent, because it throws in some extra .o
  9362. # files that make .init and .fini sections work.
  9363. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9364. else
  9365. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9366. fi
  9367. hardcode_libdir_flag_spec='-L$libdir'
  9368. hardcode_direct=yes
  9369. hardcode_minus_L=yes
  9370. hardcode_shlibpath_var=no
  9371. ;;
  9372.  
  9373. sysv4)
  9374. case $host_vendor in
  9375. sni)
  9376. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9377. hardcode_direct=yes # is this really true???
  9378. ;;
  9379. siemens)
  9380. ## LD is ld it makes a PLAMLIB
  9381. ## CC just makes a GrossModule.
  9382. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9383. reload_cmds='$CC -r -o $output$reload_objs'
  9384. hardcode_direct=no
  9385. ;;
  9386. motorola)
  9387. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9388. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9389. ;;
  9390. esac
  9391. runpath_var='LD_RUN_PATH'
  9392. hardcode_shlibpath_var=no
  9393. ;;
  9394.  
  9395. sysv4.3*)
  9396. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9397. hardcode_shlibpath_var=no
  9398. export_dynamic_flag_spec='-Bexport'
  9399. ;;
  9400.  
  9401. sysv4*MP*)
  9402. if test -d /usr/nec; then
  9403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9404. hardcode_shlibpath_var=no
  9405. runpath_var=LD_RUN_PATH
  9406. hardcode_runpath_var=yes
  9407. ld_shlibs=yes
  9408. fi
  9409. ;;
  9410.  
  9411. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9412. no_undefined_flag='${wl}-z,text'
  9413. archive_cmds_need_lc=no
  9414. hardcode_shlibpath_var=no
  9415. runpath_var='LD_RUN_PATH'
  9416.  
  9417. if test "$GCC" = yes; then
  9418. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9419. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9420. else
  9421. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9422. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9423. fi
  9424. ;;
  9425.  
  9426. sysv5* | sco3.2v5* | sco5v6*)
  9427. # Note: We can NOT use -z defs as we might desire, because we do not
  9428. # link with -lc, and that would cause any symbols used from libc to
  9429. # always be unresolved, which means just about no library would
  9430. # ever link correctly. If we're not using GNU ld we use -z text
  9431. # though, which does catch some bad symbols but isn't as heavy-handed
  9432. # as -z defs.
  9433. no_undefined_flag='${wl}-z,text'
  9434. allow_undefined_flag='${wl}-z,nodefs'
  9435. archive_cmds_need_lc=no
  9436. hardcode_shlibpath_var=no
  9437. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9438. hardcode_libdir_separator=':'
  9439. link_all_deplibs=yes
  9440. export_dynamic_flag_spec='${wl}-Bexport'
  9441. runpath_var='LD_RUN_PATH'
  9442.  
  9443. if test "$GCC" = yes; then
  9444. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9445. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9446. else
  9447. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9448. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9449. fi
  9450. ;;
  9451.  
  9452. uts4*)
  9453. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9454. hardcode_libdir_flag_spec='-L$libdir'
  9455. hardcode_shlibpath_var=no
  9456. ;;
  9457.  
  9458. *)
  9459. ld_shlibs=no
  9460. ;;
  9461. esac
  9462.  
  9463. if test x$host_vendor = xsni; then
  9464. case $host in
  9465. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9466. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9467. ;;
  9468. esac
  9469. fi
  9470. fi
  9471.  
  9472. { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  9473. $as_echo "$ld_shlibs" >&6; }
  9474. test "$ld_shlibs" = no && can_build_shared=no
  9475.  
  9476. with_gnu_ld=$with_gnu_ld
  9477.  
  9478.  
  9479.  
  9480.  
  9481.  
  9482.  
  9483.  
  9484.  
  9485.  
  9486.  
  9487.  
  9488.  
  9489.  
  9490.  
  9491.  
  9492. #
  9493. # Do we need to explicitly link libc?
  9494. #
  9495. case "x$archive_cmds_need_lc" in
  9496. x|xyes)
  9497. # Assume -lc should be added
  9498. archive_cmds_need_lc=yes
  9499.  
  9500. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9501. case $archive_cmds in
  9502. *'~'*)
  9503. # FIXME: we may have to deal with multi-command sequences.
  9504. ;;
  9505. '$CC '*)
  9506. # Test whether the compiler implicitly links with -lc since on some
  9507. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9508. # to ld, don't add -lc before -lgcc.
  9509. { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  9510. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9511. $RM conftest*
  9512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9513.  
  9514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9515. (eval $ac_compile) 2>&5
  9516. ac_status=$?
  9517. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9518. (exit $ac_status); } 2>conftest.err; then
  9519. soname=conftest
  9520. lib=conftest
  9521. libobjs=conftest.$ac_objext
  9522. deplibs=
  9523. wl=$lt_prog_compiler_wl
  9524. pic_flag=$lt_prog_compiler_pic
  9525. compiler_flags=-v
  9526. linker_flags=-v
  9527. verstring=
  9528. output_objdir=.
  9529. libname=conftest
  9530. lt_save_allow_undefined_flag=$allow_undefined_flag
  9531. allow_undefined_flag=
  9532. if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
  9533. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9534. ac_status=$?
  9535. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9536. (exit $ac_status); }
  9537. then
  9538. archive_cmds_need_lc=no
  9539. else
  9540. archive_cmds_need_lc=yes
  9541. fi
  9542. allow_undefined_flag=$lt_save_allow_undefined_flag
  9543. else
  9544. cat conftest.err 1>&5
  9545. fi
  9546. $RM conftest*
  9547. { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  9548. $as_echo "$archive_cmds_need_lc" >&6; }
  9549. ;;
  9550. esac
  9551. fi
  9552. ;;
  9553. esac
  9554.  
  9555.  
  9556.  
  9557.  
  9558.  
  9559.  
  9560.  
  9561.  
  9562.  
  9563.  
  9564.  
  9565.  
  9566.  
  9567.  
  9568.  
  9569.  
  9570.  
  9571.  
  9572.  
  9573.  
  9574.  
  9575.  
  9576.  
  9577.  
  9578.  
  9579.  
  9580.  
  9581.  
  9582.  
  9583.  
  9584.  
  9585.  
  9586.  
  9587.  
  9588.  
  9589.  
  9590.  
  9591.  
  9592.  
  9593.  
  9594.  
  9595.  
  9596.  
  9597.  
  9598.  
  9599.  
  9600.  
  9601.  
  9602.  
  9603.  
  9604.  
  9605.  
  9606.  
  9607.  
  9608.  
  9609.  
  9610.  
  9611.  
  9612.  
  9613.  
  9614.  
  9615.  
  9616.  
  9617.  
  9618.  
  9619.  
  9620.  
  9621.  
  9622.  
  9623.  
  9624.  
  9625.  
  9626.  
  9627.  
  9628.  
  9629.  
  9630.  
  9631.  
  9632.  
  9633.  
  9634.  
  9635.  
  9636.  
  9637.  
  9638.  
  9639.  
  9640.  
  9641.  
  9642.  
  9643.  
  9644.  
  9645.  
  9646.  
  9647.  
  9648.  
  9649.  
  9650.  
  9651.  
  9652.  
  9653.  
  9654.  
  9655.  
  9656.  
  9657.  
  9658.  
  9659.  
  9660.  
  9661.  
  9662.  
  9663.  
  9664.  
  9665.  
  9666.  
  9667.  
  9668.  
  9669.  
  9670.  
  9671.  
  9672.  
  9673.  
  9674.  
  9675.  
  9676.  
  9677.  
  9678.  
  9679.  
  9680.  
  9681.  
  9682.  
  9683.  
  9684.  
  9685.  
  9686.  
  9687.  
  9688.  
  9689.  
  9690.  
  9691.  
  9692.  
  9693.  
  9694.  
  9695.  
  9696.  
  9697.  
  9698.  
  9699.  
  9700.  
  9701.  
  9702.  
  9703.  
  9704.  
  9705.  
  9706.  
  9707.  
  9708.  
  9709.  
  9710.  
  9711. { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  9712. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9713.  
  9714. if test "$GCC" = yes; then
  9715. case $host_os in
  9716. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9717. *) lt_awk_arg="/^libraries:/" ;;
  9718. esac
  9719. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9720. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  9721. # if the path contains ";" then we assume it to be the separator
  9722. # otherwise default to the standard path separator (i.e. ":") - it is
  9723. # assumed that no part of a normal pathname contains ";" but that should
  9724. # okay in the real world where ";" in dirpaths is itself problematic.
  9725. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  9726. else
  9727. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9728. fi
  9729. # Ok, now we have the path, separated by spaces, we can step through it
  9730. # and add multilib dir if necessary.
  9731. lt_tmp_lt_search_path_spec=
  9732. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9733. for lt_sys_path in $lt_search_path_spec; do
  9734. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9735. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9736. else
  9737. test -d "$lt_sys_path" && \
  9738. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9739. fi
  9740. done
  9741. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  9742. BEGIN {RS=" "; FS="/|\n";} {
  9743. lt_foo="";
  9744. lt_count=0;
  9745. for (lt_i = NF; lt_i > 0; lt_i--) {
  9746. if ($lt_i != "" && $lt_i != ".") {
  9747. if ($lt_i == "..") {
  9748. lt_count++;
  9749. } else {
  9750. if (lt_count == 0) {
  9751. lt_foo="/" $lt_i lt_foo;
  9752. } else {
  9753. lt_count--;
  9754. }
  9755. }
  9756. }
  9757. }
  9758. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9759. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9760. }'`
  9761. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  9762. else
  9763. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9764. fi
  9765. library_names_spec=
  9766. libname_spec='lib$name'
  9767. soname_spec=
  9768. shrext_cmds=".so"
  9769. postinstall_cmds=
  9770. postuninstall_cmds=
  9771. finish_cmds=
  9772. finish_eval=
  9773. shlibpath_var=
  9774. shlibpath_overrides_runpath=unknown
  9775. version_type=none
  9776. dynamic_linker="$host_os ld.so"
  9777. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9778. need_lib_prefix=unknown
  9779. hardcode_into_libs=no
  9780.  
  9781. # when you set need_version to no, make sure it does not cause -set_version
  9782. # flags to be left without arguments
  9783. need_version=unknown
  9784.  
  9785. case $host_os in
  9786. aix3*)
  9787. version_type=linux
  9788. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9789. shlibpath_var=LIBPATH
  9790.  
  9791. # AIX 3 has no versioning support, so we append a major version to the name.
  9792. soname_spec='${libname}${release}${shared_ext}$major'
  9793. ;;
  9794.  
  9795. aix[4-9]*)
  9796. version_type=linux
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. hardcode_into_libs=yes
  9800. if test "$host_cpu" = ia64; then
  9801. # AIX 5 supports IA64
  9802. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9803. shlibpath_var=LD_LIBRARY_PATH
  9804. else
  9805. # With GCC up to 2.95.x, collect2 would create an import file
  9806. # for dependence libraries. The import file would start with
  9807. # the line `#! .'. This would cause the generated library to
  9808. # depend on `.', always an invalid library. This was fixed in
  9809. # development snapshots of GCC prior to 3.0.
  9810. case $host_os in
  9811. aix4 | aix4.[01] | aix4.[01].*)
  9812. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9813. echo ' yes '
  9814. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9815. :
  9816. else
  9817. can_build_shared=no
  9818. fi
  9819. ;;
  9820. esac
  9821. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9822. # soname into executable. Probably we can add versioning support to
  9823. # collect2, so additional links can be useful in future.
  9824. if test "$aix_use_runtimelinking" = yes; then
  9825. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9826. # instead of lib<name>.a to let people know that these are not
  9827. # typical AIX shared libraries.
  9828. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9829. else
  9830. # We preserve .a as extension for shared libraries through AIX4.2
  9831. # and later when we are not doing run time linking.
  9832. library_names_spec='${libname}${release}.a $libname.a'
  9833. soname_spec='${libname}${release}${shared_ext}$major'
  9834. fi
  9835. shlibpath_var=LIBPATH
  9836. fi
  9837. ;;
  9838.  
  9839. amigaos*)
  9840. case $host_cpu in
  9841. powerpc)
  9842. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9843. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9845. ;;
  9846. m68k)
  9847. library_names_spec='$libname.ixlibrary $libname.a'
  9848. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9849. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9850. ;;
  9851. esac
  9852. ;;
  9853.  
  9854. beos*)
  9855. library_names_spec='${libname}${shared_ext}'
  9856. dynamic_linker="$host_os ld.so"
  9857. shlibpath_var=LIBRARY_PATH
  9858. ;;
  9859.  
  9860. bsdi[45]*)
  9861. version_type=linux
  9862. need_version=no
  9863. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9864. soname_spec='${libname}${release}${shared_ext}$major'
  9865. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9866. shlibpath_var=LD_LIBRARY_PATH
  9867. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9868. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9869. # the default ld.so.conf also contains /usr/contrib/lib and
  9870. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9871. # libtool to hard-code these into programs
  9872. ;;
  9873.  
  9874. cygwin* | mingw* | pw32* | cegcc*)
  9875. version_type=windows
  9876. shrext_cmds=".dll"
  9877. need_version=no
  9878. need_lib_prefix=no
  9879.  
  9880. case $GCC,$host_os in
  9881. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9882. library_names_spec='$libname.dll.a'
  9883. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9884. postinstall_cmds='base_file=`basename \${file}`~
  9885. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9886. dldir=$destdir/`dirname \$dlpath`~
  9887. test -d \$dldir || mkdir -p \$dldir~
  9888. $install_prog $dir/$dlname \$dldir/$dlname~
  9889. chmod a+x \$dldir/$dlname~
  9890. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9891. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9892. fi'
  9893. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9894. dlpath=$dir/\$dldll~
  9895. $RM \$dlpath'
  9896. shlibpath_overrides_runpath=yes
  9897.  
  9898. case $host_os in
  9899. cygwin*)
  9900. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9901. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9902. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9903. ;;
  9904. mingw* | cegcc*)
  9905. # MinGW DLLs use traditional 'lib' prefix
  9906. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9907. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9908. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9909. # It is most probably a Windows format PATH printed by
  9910. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9911. # path with ; separators, and with drive letters. We can handle the
  9912. # drive letters (cygwin fileutils understands them), so leave them,
  9913. # especially as we might pass files found there to a mingw objdump,
  9914. # which wouldn't understand a cygwinified path. Ahh.
  9915. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9916. else
  9917. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9918. fi
  9919. ;;
  9920. pw32*)
  9921. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9922. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9923. ;;
  9924. esac
  9925. ;;
  9926.  
  9927. *)
  9928. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9929. ;;
  9930. esac
  9931. dynamic_linker='Win32 ld.exe'
  9932. # FIXME: first we should search . and the directory the executable is in
  9933. shlibpath_var=PATH
  9934. ;;
  9935.  
  9936. darwin* | rhapsody*)
  9937. dynamic_linker="$host_os dyld"
  9938. version_type=darwin
  9939. need_lib_prefix=no
  9940. need_version=no
  9941. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9942. soname_spec='${libname}${release}${major}$shared_ext'
  9943. shlibpath_overrides_runpath=yes
  9944. shlibpath_var=DYLD_LIBRARY_PATH
  9945. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9946.  
  9947. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9948. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9949. ;;
  9950.  
  9951. dgux*)
  9952. version_type=linux
  9953. need_lib_prefix=no
  9954. need_version=no
  9955. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9956. soname_spec='${libname}${release}${shared_ext}$major'
  9957. shlibpath_var=LD_LIBRARY_PATH
  9958. ;;
  9959.  
  9960. freebsd1*)
  9961. dynamic_linker=no
  9962. ;;
  9963.  
  9964. freebsd* | dragonfly*)
  9965. # DragonFly does not have aout. When/if they implement a new
  9966. # versioning mechanism, adjust this.
  9967. if test -x /usr/bin/objformat; then
  9968. objformat=`/usr/bin/objformat`
  9969. else
  9970. case $host_os in
  9971. freebsd[123]*) objformat=aout ;;
  9972. *) objformat=elf ;;
  9973. esac
  9974. fi
  9975. version_type=freebsd-$objformat
  9976. case $version_type in
  9977. freebsd-elf*)
  9978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9979. need_version=no
  9980. need_lib_prefix=no
  9981. ;;
  9982. freebsd-*)
  9983. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9984. need_version=yes
  9985. ;;
  9986. esac
  9987. shlibpath_var=LD_LIBRARY_PATH
  9988. case $host_os in
  9989. freebsd2*)
  9990. shlibpath_overrides_runpath=yes
  9991. ;;
  9992. freebsd3.[01]* | freebsdelf3.[01]*)
  9993. shlibpath_overrides_runpath=yes
  9994. hardcode_into_libs=yes
  9995. ;;
  9996. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9997. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9998. shlibpath_overrides_runpath=no
  9999. hardcode_into_libs=yes
  10000. ;;
  10001. *) # from 4.6 on, and DragonFly
  10002. shlibpath_overrides_runpath=yes
  10003. hardcode_into_libs=yes
  10004. ;;
  10005. esac
  10006. ;;
  10007.  
  10008. gnu*)
  10009. version_type=linux
  10010. need_lib_prefix=no
  10011. need_version=no
  10012. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  10013. soname_spec='${libname}${release}${shared_ext}$major'
  10014. shlibpath_var=LD_LIBRARY_PATH
  10015. hardcode_into_libs=yes
  10016. ;;
  10017.  
  10018. hpux9* | hpux10* | hpux11*)
  10019. # Give a soname corresponding to the major version so that dld.sl refuses to
  10020. # link against other versions.
  10021. version_type=sunos
  10022. need_lib_prefix=no
  10023. need_version=no
  10024. case $host_cpu in
  10025. ia64*)
  10026. shrext_cmds='.so'
  10027. hardcode_into_libs=yes
  10028. dynamic_linker="$host_os dld.so"
  10029. shlibpath_var=LD_LIBRARY_PATH
  10030. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10032. soname_spec='${libname}${release}${shared_ext}$major'
  10033. if test "X$HPUX_IA64_MODE" = X32; then
  10034. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  10035. else
  10036. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  10037. fi
  10038. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10039. ;;
  10040. hppa*64*)
  10041. shrext_cmds='.sl'
  10042. hardcode_into_libs=yes
  10043. dynamic_linker="$host_os dld.sl"
  10044. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  10045. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  10046. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10047. soname_spec='${libname}${release}${shared_ext}$major'
  10048. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  10049. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  10050. ;;
  10051. *)
  10052. shrext_cmds='.sl'
  10053. dynamic_linker="$host_os dld.sl"
  10054. shlibpath_var=SHLIB_PATH
  10055. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. ;;
  10059. esac
  10060. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  10061. postinstall_cmds='chmod 555 $lib'
  10062. ;;
  10063.  
  10064. interix[3-9]*)
  10065. version_type=linux
  10066. need_lib_prefix=no
  10067. need_version=no
  10068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10069. soname_spec='${libname}${release}${shared_ext}$major'
  10070. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  10071. shlibpath_var=LD_LIBRARY_PATH
  10072. shlibpath_overrides_runpath=no
  10073. hardcode_into_libs=yes
  10074. ;;
  10075.  
  10076. irix5* | irix6* | nonstopux*)
  10077. case $host_os in
  10078. nonstopux*) version_type=nonstopux ;;
  10079. *)
  10080. if test "$lt_cv_prog_gnu_ld" = yes; then
  10081. version_type=linux
  10082. else
  10083. version_type=irix
  10084. fi ;;
  10085. esac
  10086. need_lib_prefix=no
  10087. need_version=no
  10088. soname_spec='${libname}${release}${shared_ext}$major'
  10089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  10090. case $host_os in
  10091. irix5* | nonstopux*)
  10092. libsuff= shlibsuff=
  10093. ;;
  10094. *)
  10095. case $LD in # libtool.m4 will add one of these switches to LD
  10096. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  10097. libsuff= shlibsuff= libmagic=32-bit;;
  10098. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  10099. libsuff=32 shlibsuff=N32 libmagic=N32;;
  10100. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  10101. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  10102. *) libsuff= shlibsuff= libmagic=never-match;;
  10103. esac
  10104. ;;
  10105. esac
  10106. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  10107. shlibpath_overrides_runpath=no
  10108. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  10109. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  10110. hardcode_into_libs=yes
  10111. ;;
  10112.  
  10113. # No shared lib support for Linux oldld, aout, or coff.
  10114. linux*oldld* | linux*aout* | linux*coff*)
  10115. dynamic_linker=no
  10116. ;;
  10117.  
  10118. # This must be Linux ELF.
  10119. linux* | k*bsd*-gnu)
  10120. version_type=linux
  10121. need_lib_prefix=no
  10122. need_version=no
  10123. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10124. soname_spec='${libname}${release}${shared_ext}$major'
  10125. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  10126. shlibpath_var=LD_LIBRARY_PATH
  10127. shlibpath_overrides_runpath=no
  10128. # Some binutils ld are patched to set DT_RUNPATH
  10129. save_LDFLAGS=$LDFLAGS
  10130. save_libdir=$libdir
  10131. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  10132. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  10133. cat >conftest.$ac_ext <<_ACEOF
  10134. /* confdefs.h. */
  10135. _ACEOF
  10136. cat confdefs.h >>conftest.$ac_ext
  10137. cat >>conftest.$ac_ext <<_ACEOF
  10138. /* end confdefs.h. */
  10139.  
  10140. int
  10141. main ()
  10142. {
  10143.  
  10144. ;
  10145. return 0;
  10146. }
  10147. _ACEOF
  10148. rm -f conftest.$ac_objext conftest$ac_exeext
  10149. if { (ac_try="$ac_link"
  10150. case "(($ac_try" in
  10151. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10152. *) ac_try_echo=$ac_try;;
  10153. esac
  10154. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10155. $as_echo "$ac_try_echo") >&5
  10156. (eval "$ac_link") 2>conftest.er1
  10157. ac_status=$?
  10158. grep -v '^ *+' conftest.er1 >conftest.err
  10159. rm -f conftest.er1
  10160. cat conftest.err >&5
  10161. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10162. (exit $ac_status); } && {
  10163. test -z "$ac_c_werror_flag" ||
  10164. test ! -s conftest.err
  10165. } && test -s conftest$ac_exeext && {
  10166. test "$cross_compiling" = yes ||
  10167. $as_test_x conftest$ac_exeext
  10168. }; then
  10169. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
  10170. shlibpath_overrides_runpath=yes
  10171. fi
  10172.  
  10173. else
  10174. $as_echo "$as_me: failed program was:" >&5
  10175. sed 's/^/| /' conftest.$ac_ext >&5
  10176.  
  10177.  
  10178. fi
  10179.  
  10180. rm -rf conftest.dSYM
  10181. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10182. conftest$ac_exeext conftest.$ac_ext
  10183. LDFLAGS=$save_LDFLAGS
  10184. libdir=$save_libdir
  10185.  
  10186. # This implies no fast_install, which is unacceptable.
  10187. # Some rework will be needed to allow for fast_install
  10188. # before this can be enabled.
  10189. hardcode_into_libs=yes
  10190.  
  10191. # Add ABI-specific directories to the system library path.
  10192. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  10193.  
  10194. # Append ld.so.conf contents to the search path
  10195. if test -f /etc/ld.so.conf; then
  10196. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  10197. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  10198. fi
  10199.  
  10200. # We used to test for /lib/ld.so.1 and disable shared libraries on
  10201. # powerpc, because MkLinux only supported shared libraries with the
  10202. # GNU dynamic linker. Since this was broken with cross compilers,
  10203. # most powerpc-linux boxes support dynamic linking these days and
  10204. # people can always --disable-shared, the test was removed, and we
  10205. # assume the GNU/Linux dynamic linker is in use.
  10206. dynamic_linker='GNU/Linux ld.so'
  10207. ;;
  10208.  
  10209. netbsd*)
  10210. version_type=sunos
  10211. need_lib_prefix=no
  10212. need_version=no
  10213. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10214. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10215. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10216. dynamic_linker='NetBSD (a.out) ld.so'
  10217. else
  10218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  10219. soname_spec='${libname}${release}${shared_ext}$major'
  10220. dynamic_linker='NetBSD ld.elf_so'
  10221. fi
  10222. shlibpath_var=LD_LIBRARY_PATH
  10223. shlibpath_overrides_runpath=yes
  10224. hardcode_into_libs=yes
  10225. ;;
  10226.  
  10227. newsos6)
  10228. version_type=linux
  10229. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10230. shlibpath_var=LD_LIBRARY_PATH
  10231. shlibpath_overrides_runpath=yes
  10232. ;;
  10233.  
  10234. *nto* | *qnx*)
  10235. version_type=qnx
  10236. need_lib_prefix=no
  10237. need_version=no
  10238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10239. soname_spec='${libname}${release}${shared_ext}$major'
  10240. shlibpath_var=LD_LIBRARY_PATH
  10241. shlibpath_overrides_runpath=no
  10242. hardcode_into_libs=yes
  10243. dynamic_linker='ldqnx.so'
  10244. ;;
  10245.  
  10246. openbsd*)
  10247. version_type=sunos
  10248. sys_lib_dlsearch_path_spec="/usr/lib"
  10249. need_lib_prefix=no
  10250. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  10251. case $host_os in
  10252. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  10253. *) need_version=no ;;
  10254. esac
  10255. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10256. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  10257. shlibpath_var=LD_LIBRARY_PATH
  10258. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10259. case $host_os in
  10260. openbsd2.[89] | openbsd2.[89].*)
  10261. shlibpath_overrides_runpath=no
  10262. ;;
  10263. *)
  10264. shlibpath_overrides_runpath=yes
  10265. ;;
  10266. esac
  10267. else
  10268. shlibpath_overrides_runpath=yes
  10269. fi
  10270. ;;
  10271.  
  10272. os2*)
  10273. libname_spec='$name'
  10274. shrext_cmds=".dll"
  10275. need_lib_prefix=no
  10276. library_names_spec='$libname${shared_ext} $libname.a'
  10277. dynamic_linker='OS/2 ld.exe'
  10278. shlibpath_var=LIBPATH
  10279. ;;
  10280.  
  10281. osf3* | osf4* | osf5*)
  10282. version_type=osf
  10283. need_lib_prefix=no
  10284. need_version=no
  10285. soname_spec='${libname}${release}${shared_ext}$major'
  10286. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10287. shlibpath_var=LD_LIBRARY_PATH
  10288. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10289. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10290. ;;
  10291.  
  10292. rdos*)
  10293. dynamic_linker=no
  10294. ;;
  10295.  
  10296. solaris*)
  10297. version_type=linux
  10298. need_lib_prefix=no
  10299. need_version=no
  10300. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10301. soname_spec='${libname}${release}${shared_ext}$major'
  10302. shlibpath_var=LD_LIBRARY_PATH
  10303. shlibpath_overrides_runpath=yes
  10304. hardcode_into_libs=yes
  10305. # ldd complains unless libraries are executable
  10306. postinstall_cmds='chmod +x $lib'
  10307. ;;
  10308.  
  10309. sunos4*)
  10310. version_type=sunos
  10311. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10312. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10313. shlibpath_var=LD_LIBRARY_PATH
  10314. shlibpath_overrides_runpath=yes
  10315. if test "$with_gnu_ld" = yes; then
  10316. need_lib_prefix=no
  10317. fi
  10318. need_version=yes
  10319. ;;
  10320.  
  10321. sysv4 | sysv4.3*)
  10322. version_type=linux
  10323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10324. soname_spec='${libname}${release}${shared_ext}$major'
  10325. shlibpath_var=LD_LIBRARY_PATH
  10326. case $host_vendor in
  10327. sni)
  10328. shlibpath_overrides_runpath=no
  10329. need_lib_prefix=no
  10330. runpath_var=LD_RUN_PATH
  10331. ;;
  10332. siemens)
  10333. need_lib_prefix=no
  10334. ;;
  10335. motorola)
  10336. need_lib_prefix=no
  10337. need_version=no
  10338. shlibpath_overrides_runpath=no
  10339. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10340. ;;
  10341. esac
  10342. ;;
  10343.  
  10344. sysv4*MP*)
  10345. if test -d /usr/nec ;then
  10346. version_type=linux
  10347. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10348. soname_spec='$libname${shared_ext}.$major'
  10349. shlibpath_var=LD_LIBRARY_PATH
  10350. fi
  10351. ;;
  10352.  
  10353. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10354. version_type=freebsd-elf
  10355. need_lib_prefix=no
  10356. need_version=no
  10357. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10358. soname_spec='${libname}${release}${shared_ext}$major'
  10359. shlibpath_var=LD_LIBRARY_PATH
  10360. shlibpath_overrides_runpath=yes
  10361. hardcode_into_libs=yes
  10362. if test "$with_gnu_ld" = yes; then
  10363. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10364. else
  10365. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10366. case $host_os in
  10367. sco3.2v5*)
  10368. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10369. ;;
  10370. esac
  10371. fi
  10372. sys_lib_dlsearch_path_spec='/usr/lib'
  10373. ;;
  10374.  
  10375. tpf*)
  10376. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10377. version_type=linux
  10378. need_lib_prefix=no
  10379. need_version=no
  10380. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10381. shlibpath_var=LD_LIBRARY_PATH
  10382. shlibpath_overrides_runpath=no
  10383. hardcode_into_libs=yes
  10384. ;;
  10385.  
  10386. uts4*)
  10387. version_type=linux
  10388. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10389. soname_spec='${libname}${release}${shared_ext}$major'
  10390. shlibpath_var=LD_LIBRARY_PATH
  10391. ;;
  10392.  
  10393. *)
  10394. dynamic_linker=no
  10395. ;;
  10396. esac
  10397. { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  10398. $as_echo "$dynamic_linker" >&6; }
  10399. test "$dynamic_linker" = no && can_build_shared=no
  10400.  
  10401. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10402. if test "$GCC" = yes; then
  10403. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10404. fi
  10405.  
  10406. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10407. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10408. fi
  10409. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10410. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10411. fi
  10412.  
  10413.  
  10414.  
  10415.  
  10416.  
  10417.  
  10418.  
  10419.  
  10420.  
  10421.  
  10422.  
  10423.  
  10424.  
  10425.  
  10426.  
  10427.  
  10428.  
  10429.  
  10430.  
  10431.  
  10432.  
  10433.  
  10434.  
  10435.  
  10436.  
  10437.  
  10438.  
  10439.  
  10440.  
  10441.  
  10442.  
  10443.  
  10444.  
  10445.  
  10446.  
  10447.  
  10448.  
  10449.  
  10450.  
  10451.  
  10452.  
  10453.  
  10454.  
  10455.  
  10456.  
  10457.  
  10458.  
  10459.  
  10460.  
  10461.  
  10462.  
  10463.  
  10464.  
  10465.  
  10466.  
  10467.  
  10468.  
  10469.  
  10470.  
  10471.  
  10472.  
  10473.  
  10474.  
  10475.  
  10476.  
  10477.  
  10478.  
  10479.  
  10480.  
  10481.  
  10482.  
  10483.  
  10484.  
  10485.  
  10486.  
  10487.  
  10488.  
  10489.  
  10490.  
  10491.  
  10492.  
  10493.  
  10494.  
  10495.  
  10496.  
  10497.  
  10498.  
  10499. { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  10500. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10501. hardcode_action=
  10502. if test -n "$hardcode_libdir_flag_spec" ||
  10503. test -n "$runpath_var" ||
  10504. test "X$hardcode_automatic" = "Xyes" ; then
  10505.  
  10506. # We can hardcode non-existent directories.
  10507. if test "$hardcode_direct" != no &&
  10508. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10509. # have to relink, otherwise we might link with an installed library
  10510. # when we should be linking with a yet-to-be-installed one
  10511. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10512. test "$hardcode_minus_L" != no; then
  10513. # Linking always hardcodes the temporary library directory.
  10514. hardcode_action=relink
  10515. else
  10516. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10517. hardcode_action=immediate
  10518. fi
  10519. else
  10520. # We cannot hardcode anything, or else we can only hardcode existing
  10521. # directories.
  10522. hardcode_action=unsupported
  10523. fi
  10524. { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
  10525. $as_echo "$hardcode_action" >&6; }
  10526.  
  10527. if test "$hardcode_action" = relink ||
  10528. test "$inherit_rpath" = yes; then
  10529. # Fast installation is not supported
  10530. enable_fast_install=no
  10531. elif test "$shlibpath_overrides_runpath" = yes ||
  10532. test "$enable_shared" = no; then
  10533. # Fast installation is not necessary
  10534. enable_fast_install=needless
  10535. fi
  10536.  
  10537.  
  10538.  
  10539.  
  10540.  
  10541.  
  10542. if test "x$enable_dlopen" != xyes; then
  10543. enable_dlopen=unknown
  10544. enable_dlopen_self=unknown
  10545. enable_dlopen_self_static=unknown
  10546. else
  10547. lt_cv_dlopen=no
  10548. lt_cv_dlopen_libs=
  10549.  
  10550. case $host_os in
  10551. beos*)
  10552. lt_cv_dlopen="load_add_on"
  10553. lt_cv_dlopen_libs=
  10554. lt_cv_dlopen_self=yes
  10555. ;;
  10556.  
  10557. mingw* | pw32* | cegcc*)
  10558. lt_cv_dlopen="LoadLibrary"
  10559. lt_cv_dlopen_libs=
  10560. ;;
  10561.  
  10562. cygwin*)
  10563. lt_cv_dlopen="dlopen"
  10564. lt_cv_dlopen_libs=
  10565. ;;
  10566.  
  10567. darwin*)
  10568. # if libdl is installed we need to link against it
  10569. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10570. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10571. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10572. $as_echo_n "(cached) " >&6
  10573. else
  10574. ac_check_lib_save_LIBS=$LIBS
  10575. LIBS="-ldl $LIBS"
  10576. cat >conftest.$ac_ext <<_ACEOF
  10577. /* confdefs.h. */
  10578. _ACEOF
  10579. cat confdefs.h >>conftest.$ac_ext
  10580. cat >>conftest.$ac_ext <<_ACEOF
  10581. /* end confdefs.h. */
  10582.  
  10583. /* Override any GCC internal prototype to avoid an error.
  10584. Use char because int might match the return type of a GCC
  10585. builtin and then its argument prototype would still apply. */
  10586. #ifdef __cplusplus
  10587. extern "C"
  10588. #endif
  10589. char dlopen ();
  10590. int
  10591. main ()
  10592. {
  10593. return dlopen ();
  10594. ;
  10595. return 0;
  10596. }
  10597. _ACEOF
  10598. rm -f conftest.$ac_objext conftest$ac_exeext
  10599. if { (ac_try="$ac_link"
  10600. case "(($ac_try" in
  10601. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10602. *) ac_try_echo=$ac_try;;
  10603. esac
  10604. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10605. $as_echo "$ac_try_echo") >&5
  10606. (eval "$ac_link") 2>conftest.er1
  10607. ac_status=$?
  10608. grep -v '^ *+' conftest.er1 >conftest.err
  10609. rm -f conftest.er1
  10610. cat conftest.err >&5
  10611. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. (exit $ac_status); } && {
  10613. test -z "$ac_c_werror_flag" ||
  10614. test ! -s conftest.err
  10615. } && test -s conftest$ac_exeext && {
  10616. test "$cross_compiling" = yes ||
  10617. $as_test_x conftest$ac_exeext
  10618. }; then
  10619. ac_cv_lib_dl_dlopen=yes
  10620. else
  10621. $as_echo "$as_me: failed program was:" >&5
  10622. sed 's/^/| /' conftest.$ac_ext >&5
  10623.  
  10624. ac_cv_lib_dl_dlopen=no
  10625. fi
  10626.  
  10627. rm -rf conftest.dSYM
  10628. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10629. conftest$ac_exeext conftest.$ac_ext
  10630. LIBS=$ac_check_lib_save_LIBS
  10631. fi
  10632. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10633. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10634. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10635. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10636. else
  10637.  
  10638. lt_cv_dlopen="dyld"
  10639. lt_cv_dlopen_libs=
  10640. lt_cv_dlopen_self=yes
  10641.  
  10642. fi
  10643.  
  10644. ;;
  10645.  
  10646. *)
  10647. { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
  10648. $as_echo_n "checking for shl_load... " >&6; }
  10649. if test "${ac_cv_func_shl_load+set}" = set; then
  10650. $as_echo_n "(cached) " >&6
  10651. else
  10652. cat >conftest.$ac_ext <<_ACEOF
  10653. /* confdefs.h. */
  10654. _ACEOF
  10655. cat confdefs.h >>conftest.$ac_ext
  10656. cat >>conftest.$ac_ext <<_ACEOF
  10657. /* end confdefs.h. */
  10658. /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10659. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10660. #define shl_load innocuous_shl_load
  10661.  
  10662. /* System header to define __stub macros and hopefully few prototypes,
  10663. which can conflict with char shl_load (); below.
  10664. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10665. <limits.h> exists even on freestanding compilers. */
  10666.  
  10667. #ifdef __STDC__
  10668. # include <limits.h>
  10669. #else
  10670. # include <assert.h>
  10671. #endif
  10672.  
  10673. #undef shl_load
  10674.  
  10675. /* Override any GCC internal prototype to avoid an error.
  10676. Use char because int might match the return type of a GCC
  10677. builtin and then its argument prototype would still apply. */
  10678. #ifdef __cplusplus
  10679. extern "C"
  10680. #endif
  10681. char shl_load ();
  10682. /* The GNU C library defines this for functions which it implements
  10683. to always fail with ENOSYS. Some functions are actually named
  10684. something starting with __ and the normal name is an alias. */
  10685. #if defined __stub_shl_load || defined __stub___shl_load
  10686. choke me
  10687. #endif
  10688.  
  10689. int
  10690. main ()
  10691. {
  10692. return shl_load ();
  10693. ;
  10694. return 0;
  10695. }
  10696. _ACEOF
  10697. rm -f conftest.$ac_objext conftest$ac_exeext
  10698. if { (ac_try="$ac_link"
  10699. case "(($ac_try" in
  10700. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10701. *) ac_try_echo=$ac_try;;
  10702. esac
  10703. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10704. $as_echo "$ac_try_echo") >&5
  10705. (eval "$ac_link") 2>conftest.er1
  10706. ac_status=$?
  10707. grep -v '^ *+' conftest.er1 >conftest.err
  10708. rm -f conftest.er1
  10709. cat conftest.err >&5
  10710. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10711. (exit $ac_status); } && {
  10712. test -z "$ac_c_werror_flag" ||
  10713. test ! -s conftest.err
  10714. } && test -s conftest$ac_exeext && {
  10715. test "$cross_compiling" = yes ||
  10716. $as_test_x conftest$ac_exeext
  10717. }; then
  10718. ac_cv_func_shl_load=yes
  10719. else
  10720. $as_echo "$as_me: failed program was:" >&5
  10721. sed 's/^/| /' conftest.$ac_ext >&5
  10722.  
  10723. ac_cv_func_shl_load=no
  10724. fi
  10725.  
  10726. rm -rf conftest.dSYM
  10727. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10728. conftest$ac_exeext conftest.$ac_ext
  10729. fi
  10730. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10731. $as_echo "$ac_cv_func_shl_load" >&6; }
  10732. if test "x$ac_cv_func_shl_load" = x""yes; then
  10733. lt_cv_dlopen="shl_load"
  10734. else
  10735. { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  10736. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10737. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  10738. $as_echo_n "(cached) " >&6
  10739. else
  10740. ac_check_lib_save_LIBS=$LIBS
  10741. LIBS="-ldld $LIBS"
  10742. cat >conftest.$ac_ext <<_ACEOF
  10743. /* confdefs.h. */
  10744. _ACEOF
  10745. cat confdefs.h >>conftest.$ac_ext
  10746. cat >>conftest.$ac_ext <<_ACEOF
  10747. /* end confdefs.h. */
  10748.  
  10749. /* Override any GCC internal prototype to avoid an error.
  10750. Use char because int might match the return type of a GCC
  10751. builtin and then its argument prototype would still apply. */
  10752. #ifdef __cplusplus
  10753. extern "C"
  10754. #endif
  10755. char shl_load ();
  10756. int
  10757. main ()
  10758. {
  10759. return shl_load ();
  10760. ;
  10761. return 0;
  10762. }
  10763. _ACEOF
  10764. rm -f conftest.$ac_objext conftest$ac_exeext
  10765. if { (ac_try="$ac_link"
  10766. case "(($ac_try" in
  10767. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10768. *) ac_try_echo=$ac_try;;
  10769. esac
  10770. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10771. $as_echo "$ac_try_echo") >&5
  10772. (eval "$ac_link") 2>conftest.er1
  10773. ac_status=$?
  10774. grep -v '^ *+' conftest.er1 >conftest.err
  10775. rm -f conftest.er1
  10776. cat conftest.err >&5
  10777. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10778. (exit $ac_status); } && {
  10779. test -z "$ac_c_werror_flag" ||
  10780. test ! -s conftest.err
  10781. } && test -s conftest$ac_exeext && {
  10782. test "$cross_compiling" = yes ||
  10783. $as_test_x conftest$ac_exeext
  10784. }; then
  10785. ac_cv_lib_dld_shl_load=yes
  10786. else
  10787. $as_echo "$as_me: failed program was:" >&5
  10788. sed 's/^/| /' conftest.$ac_ext >&5
  10789.  
  10790. ac_cv_lib_dld_shl_load=no
  10791. fi
  10792.  
  10793. rm -rf conftest.dSYM
  10794. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10795. conftest$ac_exeext conftest.$ac_ext
  10796. LIBS=$ac_check_lib_save_LIBS
  10797. fi
  10798. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10799. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10800. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
  10801. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10802. else
  10803. { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
  10804. $as_echo_n "checking for dlopen... " >&6; }
  10805. if test "${ac_cv_func_dlopen+set}" = set; then
  10806. $as_echo_n "(cached) " >&6
  10807. else
  10808. cat >conftest.$ac_ext <<_ACEOF
  10809. /* confdefs.h. */
  10810. _ACEOF
  10811. cat confdefs.h >>conftest.$ac_ext
  10812. cat >>conftest.$ac_ext <<_ACEOF
  10813. /* end confdefs.h. */
  10814. /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10815. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10816. #define dlopen innocuous_dlopen
  10817.  
  10818. /* System header to define __stub macros and hopefully few prototypes,
  10819. which can conflict with char dlopen (); below.
  10820. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10821. <limits.h> exists even on freestanding compilers. */
  10822.  
  10823. #ifdef __STDC__
  10824. # include <limits.h>
  10825. #else
  10826. # include <assert.h>
  10827. #endif
  10828.  
  10829. #undef dlopen
  10830.  
  10831. /* Override any GCC internal prototype to avoid an error.
  10832. Use char because int might match the return type of a GCC
  10833. builtin and then its argument prototype would still apply. */
  10834. #ifdef __cplusplus
  10835. extern "C"
  10836. #endif
  10837. char dlopen ();
  10838. /* The GNU C library defines this for functions which it implements
  10839. to always fail with ENOSYS. Some functions are actually named
  10840. something starting with __ and the normal name is an alias. */
  10841. #if defined __stub_dlopen || defined __stub___dlopen
  10842. choke me
  10843. #endif
  10844.  
  10845. int
  10846. main ()
  10847. {
  10848. return dlopen ();
  10849. ;
  10850. return 0;
  10851. }
  10852. _ACEOF
  10853. rm -f conftest.$ac_objext conftest$ac_exeext
  10854. if { (ac_try="$ac_link"
  10855. case "(($ac_try" in
  10856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10857. *) ac_try_echo=$ac_try;;
  10858. esac
  10859. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10860. $as_echo "$ac_try_echo") >&5
  10861. (eval "$ac_link") 2>conftest.er1
  10862. ac_status=$?
  10863. grep -v '^ *+' conftest.er1 >conftest.err
  10864. rm -f conftest.er1
  10865. cat conftest.err >&5
  10866. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10867. (exit $ac_status); } && {
  10868. test -z "$ac_c_werror_flag" ||
  10869. test ! -s conftest.err
  10870. } && test -s conftest$ac_exeext && {
  10871. test "$cross_compiling" = yes ||
  10872. $as_test_x conftest$ac_exeext
  10873. }; then
  10874. ac_cv_func_dlopen=yes
  10875. else
  10876. $as_echo "$as_me: failed program was:" >&5
  10877. sed 's/^/| /' conftest.$ac_ext >&5
  10878.  
  10879. ac_cv_func_dlopen=no
  10880. fi
  10881.  
  10882. rm -rf conftest.dSYM
  10883. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10884. conftest$ac_exeext conftest.$ac_ext
  10885. fi
  10886. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10887. $as_echo "$ac_cv_func_dlopen" >&6; }
  10888. if test "x$ac_cv_func_dlopen" = x""yes; then
  10889. lt_cv_dlopen="dlopen"
  10890. else
  10891. { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  10892. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10893. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  10894. $as_echo_n "(cached) " >&6
  10895. else
  10896. ac_check_lib_save_LIBS=$LIBS
  10897. LIBS="-ldl $LIBS"
  10898. cat >conftest.$ac_ext <<_ACEOF
  10899. /* confdefs.h. */
  10900. _ACEOF
  10901. cat confdefs.h >>conftest.$ac_ext
  10902. cat >>conftest.$ac_ext <<_ACEOF
  10903. /* end confdefs.h. */
  10904.  
  10905. /* Override any GCC internal prototype to avoid an error.
  10906. Use char because int might match the return type of a GCC
  10907. builtin and then its argument prototype would still apply. */
  10908. #ifdef __cplusplus
  10909. extern "C"
  10910. #endif
  10911. char dlopen ();
  10912. int
  10913. main ()
  10914. {
  10915. return dlopen ();
  10916. ;
  10917. return 0;
  10918. }
  10919. _ACEOF
  10920. rm -f conftest.$ac_objext conftest$ac_exeext
  10921. if { (ac_try="$ac_link"
  10922. case "(($ac_try" in
  10923. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10924. *) ac_try_echo=$ac_try;;
  10925. esac
  10926. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10927. $as_echo "$ac_try_echo") >&5
  10928. (eval "$ac_link") 2>conftest.er1
  10929. ac_status=$?
  10930. grep -v '^ *+' conftest.er1 >conftest.err
  10931. rm -f conftest.er1
  10932. cat conftest.err >&5
  10933. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10934. (exit $ac_status); } && {
  10935. test -z "$ac_c_werror_flag" ||
  10936. test ! -s conftest.err
  10937. } && test -s conftest$ac_exeext && {
  10938. test "$cross_compiling" = yes ||
  10939. $as_test_x conftest$ac_exeext
  10940. }; then
  10941. ac_cv_lib_dl_dlopen=yes
  10942. else
  10943. $as_echo "$as_me: failed program was:" >&5
  10944. sed 's/^/| /' conftest.$ac_ext >&5
  10945.  
  10946. ac_cv_lib_dl_dlopen=no
  10947. fi
  10948.  
  10949. rm -rf conftest.dSYM
  10950. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10951. conftest$ac_exeext conftest.$ac_ext
  10952. LIBS=$ac_check_lib_save_LIBS
  10953. fi
  10954. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10955. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10956. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
  10957. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10958. else
  10959. { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  10960. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10961. if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  10962. $as_echo_n "(cached) " >&6
  10963. else
  10964. ac_check_lib_save_LIBS=$LIBS
  10965. LIBS="-lsvld $LIBS"
  10966. cat >conftest.$ac_ext <<_ACEOF
  10967. /* confdefs.h. */
  10968. _ACEOF
  10969. cat confdefs.h >>conftest.$ac_ext
  10970. cat >>conftest.$ac_ext <<_ACEOF
  10971. /* end confdefs.h. */
  10972.  
  10973. /* Override any GCC internal prototype to avoid an error.
  10974. Use char because int might match the return type of a GCC
  10975. builtin and then its argument prototype would still apply. */
  10976. #ifdef __cplusplus
  10977. extern "C"
  10978. #endif
  10979. char dlopen ();
  10980. int
  10981. main ()
  10982. {
  10983. return dlopen ();
  10984. ;
  10985. return 0;
  10986. }
  10987. _ACEOF
  10988. rm -f conftest.$ac_objext conftest$ac_exeext
  10989. if { (ac_try="$ac_link"
  10990. case "(($ac_try" in
  10991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10992. *) ac_try_echo=$ac_try;;
  10993. esac
  10994. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  10995. $as_echo "$ac_try_echo") >&5
  10996. (eval "$ac_link") 2>conftest.er1
  10997. ac_status=$?
  10998. grep -v '^ *+' conftest.er1 >conftest.err
  10999. rm -f conftest.er1
  11000. cat conftest.err >&5
  11001. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11002. (exit $ac_status); } && {
  11003. test -z "$ac_c_werror_flag" ||
  11004. test ! -s conftest.err
  11005. } && test -s conftest$ac_exeext && {
  11006. test "$cross_compiling" = yes ||
  11007. $as_test_x conftest$ac_exeext
  11008. }; then
  11009. ac_cv_lib_svld_dlopen=yes
  11010. else
  11011. $as_echo "$as_me: failed program was:" >&5
  11012. sed 's/^/| /' conftest.$ac_ext >&5
  11013.  
  11014. ac_cv_lib_svld_dlopen=no
  11015. fi
  11016.  
  11017. rm -rf conftest.dSYM
  11018. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11019. conftest$ac_exeext conftest.$ac_ext
  11020. LIBS=$ac_check_lib_save_LIBS
  11021. fi
  11022. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  11023. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  11024. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
  11025. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  11026. else
  11027. { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  11028. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  11029. if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  11030. $as_echo_n "(cached) " >&6
  11031. else
  11032. ac_check_lib_save_LIBS=$LIBS
  11033. LIBS="-ldld $LIBS"
  11034. cat >conftest.$ac_ext <<_ACEOF
  11035. /* confdefs.h. */
  11036. _ACEOF
  11037. cat confdefs.h >>conftest.$ac_ext
  11038. cat >>conftest.$ac_ext <<_ACEOF
  11039. /* end confdefs.h. */
  11040.  
  11041. /* Override any GCC internal prototype to avoid an error.
  11042. Use char because int might match the return type of a GCC
  11043. builtin and then its argument prototype would still apply. */
  11044. #ifdef __cplusplus
  11045. extern "C"
  11046. #endif
  11047. char dld_link ();
  11048. int
  11049. main ()
  11050. {
  11051. return dld_link ();
  11052. ;
  11053. return 0;
  11054. }
  11055. _ACEOF
  11056. rm -f conftest.$ac_objext conftest$ac_exeext
  11057. if { (ac_try="$ac_link"
  11058. case "(($ac_try" in
  11059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11060. *) ac_try_echo=$ac_try;;
  11061. esac
  11062. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11063. $as_echo "$ac_try_echo") >&5
  11064. (eval "$ac_link") 2>conftest.er1
  11065. ac_status=$?
  11066. grep -v '^ *+' conftest.er1 >conftest.err
  11067. rm -f conftest.er1
  11068. cat conftest.err >&5
  11069. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11070. (exit $ac_status); } && {
  11071. test -z "$ac_c_werror_flag" ||
  11072. test ! -s conftest.err
  11073. } && test -s conftest$ac_exeext && {
  11074. test "$cross_compiling" = yes ||
  11075. $as_test_x conftest$ac_exeext
  11076. }; then
  11077. ac_cv_lib_dld_dld_link=yes
  11078. else
  11079. $as_echo "$as_me: failed program was:" >&5
  11080. sed 's/^/| /' conftest.$ac_ext >&5
  11081.  
  11082. ac_cv_lib_dld_dld_link=no
  11083. fi
  11084.  
  11085. rm -rf conftest.dSYM
  11086. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11087. conftest$ac_exeext conftest.$ac_ext
  11088. LIBS=$ac_check_lib_save_LIBS
  11089. fi
  11090. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  11091. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  11092. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
  11093. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  11094. fi
  11095.  
  11096.  
  11097. fi
  11098.  
  11099.  
  11100. fi
  11101.  
  11102.  
  11103. fi
  11104.  
  11105.  
  11106. fi
  11107.  
  11108.  
  11109. fi
  11110.  
  11111. ;;
  11112. esac
  11113.  
  11114. if test "x$lt_cv_dlopen" != xno; then
  11115. enable_dlopen=yes
  11116. else
  11117. enable_dlopen=no
  11118. fi
  11119.  
  11120. case $lt_cv_dlopen in
  11121. dlopen)
  11122. save_CPPFLAGS="$CPPFLAGS"
  11123. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  11124.  
  11125. save_LDFLAGS="$LDFLAGS"
  11126. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  11127.  
  11128. save_LIBS="$LIBS"
  11129. LIBS="$lt_cv_dlopen_libs $LIBS"
  11130.  
  11131. { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  11132. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  11133. if test "${lt_cv_dlopen_self+set}" = set; then
  11134. $as_echo_n "(cached) " >&6
  11135. else
  11136. if test "$cross_compiling" = yes; then :
  11137. lt_cv_dlopen_self=cross
  11138. else
  11139. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11140. lt_status=$lt_dlunknown
  11141. cat > conftest.$ac_ext <<_LT_EOF
  11142. #line 11142 "configure"
  11143. #include "confdefs.h"
  11144.  
  11145. #if HAVE_DLFCN_H
  11146. #include <dlfcn.h>
  11147. #endif
  11148.  
  11149. #include <stdio.h>
  11150.  
  11151. #ifdef RTLD_GLOBAL
  11152. # define LT_DLGLOBAL RTLD_GLOBAL
  11153. #else
  11154. # ifdef DL_GLOBAL
  11155. # define LT_DLGLOBAL DL_GLOBAL
  11156. # else
  11157. # define LT_DLGLOBAL 0
  11158. # endif
  11159. #endif
  11160.  
  11161. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11162. find out it does not work in some platform. */
  11163. #ifndef LT_DLLAZY_OR_NOW
  11164. # ifdef RTLD_LAZY
  11165. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11166. # else
  11167. # ifdef DL_LAZY
  11168. # define LT_DLLAZY_OR_NOW DL_LAZY
  11169. # else
  11170. # ifdef RTLD_NOW
  11171. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11172. # else
  11173. # ifdef DL_NOW
  11174. # define LT_DLLAZY_OR_NOW DL_NOW
  11175. # else
  11176. # define LT_DLLAZY_OR_NOW 0
  11177. # endif
  11178. # endif
  11179. # endif
  11180. # endif
  11181. #endif
  11182.  
  11183. void fnord() { int i=42;}
  11184. int main ()
  11185. {
  11186. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11187. int status = $lt_dlunknown;
  11188.  
  11189. if (self)
  11190. {
  11191. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11192. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11193. /* dlclose (self); */
  11194. }
  11195. else
  11196. puts (dlerror ());
  11197.  
  11198. return status;
  11199. }
  11200. _LT_EOF
  11201. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11202. (eval $ac_link) 2>&5
  11203. ac_status=$?
  11204. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11205. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11206. (./conftest; exit; ) >&5 2>/dev/null
  11207. lt_status=$?
  11208. case x$lt_status in
  11209. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  11210. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  11211. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  11212. esac
  11213. else :
  11214. # compilation failed
  11215. lt_cv_dlopen_self=no
  11216. fi
  11217. fi
  11218. rm -fr conftest*
  11219.  
  11220.  
  11221. fi
  11222. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  11223. $as_echo "$lt_cv_dlopen_self" >&6; }
  11224.  
  11225. if test "x$lt_cv_dlopen_self" = xyes; then
  11226. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  11227. { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  11228. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  11229. if test "${lt_cv_dlopen_self_static+set}" = set; then
  11230. $as_echo_n "(cached) " >&6
  11231. else
  11232. if test "$cross_compiling" = yes; then :
  11233. lt_cv_dlopen_self_static=cross
  11234. else
  11235. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  11236. lt_status=$lt_dlunknown
  11237. cat > conftest.$ac_ext <<_LT_EOF
  11238. #line 11238 "configure"
  11239. #include "confdefs.h"
  11240.  
  11241. #if HAVE_DLFCN_H
  11242. #include <dlfcn.h>
  11243. #endif
  11244.  
  11245. #include <stdio.h>
  11246.  
  11247. #ifdef RTLD_GLOBAL
  11248. # define LT_DLGLOBAL RTLD_GLOBAL
  11249. #else
  11250. # ifdef DL_GLOBAL
  11251. # define LT_DLGLOBAL DL_GLOBAL
  11252. # else
  11253. # define LT_DLGLOBAL 0
  11254. # endif
  11255. #endif
  11256.  
  11257. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  11258. find out it does not work in some platform. */
  11259. #ifndef LT_DLLAZY_OR_NOW
  11260. # ifdef RTLD_LAZY
  11261. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  11262. # else
  11263. # ifdef DL_LAZY
  11264. # define LT_DLLAZY_OR_NOW DL_LAZY
  11265. # else
  11266. # ifdef RTLD_NOW
  11267. # define LT_DLLAZY_OR_NOW RTLD_NOW
  11268. # else
  11269. # ifdef DL_NOW
  11270. # define LT_DLLAZY_OR_NOW DL_NOW
  11271. # else
  11272. # define LT_DLLAZY_OR_NOW 0
  11273. # endif
  11274. # endif
  11275. # endif
  11276. # endif
  11277. #endif
  11278.  
  11279. void fnord() { int i=42;}
  11280. int main ()
  11281. {
  11282. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  11283. int status = $lt_dlunknown;
  11284.  
  11285. if (self)
  11286. {
  11287. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  11288. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  11289. /* dlclose (self); */
  11290. }
  11291. else
  11292. puts (dlerror ());
  11293.  
  11294. return status;
  11295. }
  11296. _LT_EOF
  11297. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11298. (eval $ac_link) 2>&5
  11299. ac_status=$?
  11300. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11301. (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  11302. (./conftest; exit; ) >&5 2>/dev/null
  11303. lt_status=$?
  11304. case x$lt_status in
  11305. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  11306. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  11307. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  11308. esac
  11309. else :
  11310. # compilation failed
  11311. lt_cv_dlopen_self_static=no
  11312. fi
  11313. fi
  11314. rm -fr conftest*
  11315.  
  11316.  
  11317. fi
  11318. { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  11319. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  11320. fi
  11321.  
  11322. CPPFLAGS="$save_CPPFLAGS"
  11323. LDFLAGS="$save_LDFLAGS"
  11324. LIBS="$save_LIBS"
  11325. ;;
  11326. esac
  11327.  
  11328. case $lt_cv_dlopen_self in
  11329. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  11330. *) enable_dlopen_self=unknown ;;
  11331. esac
  11332.  
  11333. case $lt_cv_dlopen_self_static in
  11334. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  11335. *) enable_dlopen_self_static=unknown ;;
  11336. esac
  11337. fi
  11338.  
  11339.  
  11340.  
  11341.  
  11342.  
  11343.  
  11344.  
  11345.  
  11346.  
  11347.  
  11348.  
  11349.  
  11350.  
  11351.  
  11352.  
  11353.  
  11354.  
  11355. striplib=
  11356. old_striplib=
  11357. { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  11358. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  11359. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  11360. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  11361. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  11362. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11363. $as_echo "yes" >&6; }
  11364. else
  11365. # FIXME - insert some real tests, host_os isn't really good enough
  11366. case $host_os in
  11367. darwin*)
  11368. if test -n "$STRIP" ; then
  11369. striplib="$STRIP -x"
  11370. old_striplib="$STRIP -S"
  11371. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11372. $as_echo "yes" >&6; }
  11373. else
  11374. { $as_echo "$as_me:$LINENO: result: no" >&5
  11375. $as_echo "no" >&6; }
  11376. fi
  11377. ;;
  11378. *)
  11379. { $as_echo "$as_me:$LINENO: result: no" >&5
  11380. $as_echo "no" >&6; }
  11381. ;;
  11382. esac
  11383. fi
  11384.  
  11385.  
  11386.  
  11387.  
  11388.  
  11389.  
  11390.  
  11391.  
  11392.  
  11393.  
  11394.  
  11395.  
  11396. # Report which library types will actually be built
  11397. { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  11398. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  11399. { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
  11400. $as_echo "$can_build_shared" >&6; }
  11401.  
  11402. { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  11403. $as_echo_n "checking whether to build shared libraries... " >&6; }
  11404. test "$can_build_shared" = "no" && enable_shared=no
  11405.  
  11406. # On AIX, shared libraries and static libraries use the same namespace, and
  11407. # are all built from PIC.
  11408. case $host_os in
  11409. aix3*)
  11410. test "$enable_shared" = yes && enable_static=no
  11411. if test -n "$RANLIB"; then
  11412. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  11413. postinstall_cmds='$RANLIB $lib'
  11414. fi
  11415. ;;
  11416.  
  11417. aix[4-9]*)
  11418. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  11419. test "$enable_shared" = yes && enable_static=no
  11420. fi
  11421. ;;
  11422. esac
  11423. { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
  11424. $as_echo "$enable_shared" >&6; }
  11425.  
  11426. { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  11427. $as_echo_n "checking whether to build static libraries... " >&6; }
  11428. # Make sure either enable_shared or enable_static is yes.
  11429. test "$enable_shared" = yes || enable_static=yes
  11430. { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
  11431. $as_echo "$enable_static" >&6; }
  11432.  
  11433.  
  11434.  
  11435.  
  11436. fi
  11437. ac_ext=c
  11438. ac_cpp='$CPP $CPPFLAGS'
  11439. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11440. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11441. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11442.  
  11443. CC="$lt_save_CC"
  11444.  
  11445.  
  11446.  
  11447.  
  11448.  
  11449.  
  11450.  
  11451.  
  11452.  
  11453.  
  11454.  
  11455.  
  11456.  
  11457. ac_config_commands="$ac_config_commands libtool"
  11458.  
  11459.  
  11460.  
  11461.  
  11462. # Only expand once:
  11463.  
  11464.  
  11465.  
  11466.  
  11467.  
  11468.  
  11469.  
  11470.  
  11471.  
  11472. # Check whether --with-pkgconfigdir was given.
  11473. if test "${with_pkgconfigdir+set}" = set; then
  11474. withval=$with_pkgconfigdir;
  11475. else
  11476. with_pkgconfigdir='${libdir}/pkgconfig'
  11477. fi
  11478.  
  11479. pkgconfigdir=$with_pkgconfigdir
  11480.  
  11481.  
  11482.  
  11483.  
  11484.  
  11485. { $as_echo "$as_me:$LINENO: checking host system type" >&5
  11486. $as_echo_n "checking host system type... " >&6; }
  11487. if test "${ac_cv_host+set}" = set; then
  11488. $as_echo_n "(cached) " >&6
  11489. else
  11490. if test "x$host_alias" = x; then
  11491. ac_cv_host=$ac_cv_build
  11492. else
  11493. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  11494. { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  11495. $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  11496. { (exit 1); exit 1; }; }
  11497. fi
  11498.  
  11499. fi
  11500. { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  11501. $as_echo "$ac_cv_host" >&6; }
  11502. case $ac_cv_host in
  11503. *-*-*) ;;
  11504. *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  11505. $as_echo "$as_me: error: invalid value of canonical host" >&2;}
  11506. { (exit 1); exit 1; }; };;
  11507. esac
  11508. host=$ac_cv_host
  11509. ac_save_IFS=$IFS; IFS='-'
  11510. set x $ac_cv_host
  11511. shift
  11512. host_cpu=$1
  11513. host_vendor=$2
  11514. shift; shift
  11515. # Remember, the first character of IFS is used to create $*,
  11516. # except with old shells:
  11517. host_os=$*
  11518. IFS=$ac_save_IFS
  11519. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  11520.  
  11521.  
  11522.  
  11523. # ===========================================================================
  11524. # http://www.gnu.org/software/autoconf-archive/ax_pthread.html
  11525. # ===========================================================================
  11526. #
  11527. # SYNOPSIS
  11528. #
  11529. # AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
  11530. #
  11531. # DESCRIPTION
  11532. #
  11533. # This macro figures out how to build C programs using POSIX threads. It
  11534. # sets the PTHREAD_LIBS output variable to the threads library and linker
  11535. # flags, and the PTHREAD_CFLAGS output variable to any special C compiler
  11536. # flags that are needed. (The user can also force certain compiler
  11537. # flags/libs to be tested by setting these environment variables.)
  11538. #
  11539. # Also sets PTHREAD_CC to any special C compiler that is needed for
  11540. # multi-threaded programs (defaults to the value of CC otherwise). (This
  11541. # is necessary on AIX to use the special cc_r compiler alias.)
  11542. #
  11543. # NOTE: You are assumed to not only compile your program with these flags,
  11544. # but also link it with them as well. e.g. you should link with
  11545. # $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
  11546. #
  11547. # If you are only building threads programs, you may wish to use these
  11548. # variables in your default LIBS, CFLAGS, and CC:
  11549. #
  11550. # LIBS="$PTHREAD_LIBS $LIBS"
  11551. # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11552. # CC="$PTHREAD_CC"
  11553. #
  11554. # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
  11555. # has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
  11556. # (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
  11557. #
  11558. # Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
  11559. # PTHREAD_PRIO_INHERIT symbol is defined when compiling with
  11560. # PTHREAD_CFLAGS.
  11561. #
  11562. # ACTION-IF-FOUND is a list of shell commands to run if a threads library
  11563. # is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
  11564. # is not found. If ACTION-IF-FOUND is not specified, the default action
  11565. # will define HAVE_PTHREAD.
  11566. #
  11567. # Please let the authors know if this macro fails on any platform, or if
  11568. # you have any other suggestions or comments. This macro was based on work
  11569. # by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
  11570. # from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
  11571. # Alejandro Forero Cuervo to the autoconf macro repository. We are also
  11572. # grateful for the helpful feedback of numerous users.
  11573. #
  11574. # Updated for Autoconf 2.68 by Daniel Richard G.
  11575. #
  11576. # LICENSE
  11577. #
  11578. # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
  11579. # Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
  11580. #
  11581. # This program is free software: you can redistribute it and/or modify it
  11582. # under the terms of the GNU General Public License as published by the
  11583. # Free Software Foundation, either version 3 of the License, or (at your
  11584. # option) any later version.
  11585. #
  11586. # This program is distributed in the hope that it will be useful, but
  11587. # WITHOUT ANY WARRANTY; without even the implied warranty of
  11588. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
  11589. # Public License for more details.
  11590. #
  11591. # You should have received a copy of the GNU General Public License along
  11592. # with this program. If not, see <http://www.gnu.org/licenses/>.
  11593. #
  11594. # As a special exception, the respective Autoconf Macro's copyright owner
  11595. # gives unlimited permission to copy, distribute and modify the configure
  11596. # scripts that are the output of Autoconf when processing the Macro. You
  11597. # need not follow the terms of the GNU General Public License when using
  11598. # or distributing such scripts, even though portions of the text of the
  11599. # Macro appear in them. The GNU General Public License (GPL) does govern
  11600. # all other use of the material that constitutes the Autoconf Macro.
  11601. #
  11602. # This special exception to the GPL applies to versions of the Autoconf
  11603. # Macro released by the Autoconf Archive. When you make and distribute a
  11604. # modified version of the Autoconf Macro, you may extend this special
  11605. # exception to the GPL to apply to your modified version as well.
  11606.  
  11607. #serial 21
  11608.  
  11609. # This is what autoupdate's m4 run will expand. It fires
  11610. # the warning (with _au_warn_XXX), outputs it into the
  11611. # updated configure.ac (with AC_DIAGNOSE), and then outputs
  11612. # the replacement expansion.
  11613.  
  11614.  
  11615. # This is an auxiliary macro that is also run when
  11616. # autoupdate runs m4. It simply calls m4_warning, but
  11617. # we need a wrapper so that each warning is emitted only
  11618. # once. We break the quoting in m4_warning's argument in
  11619. # order to expand this macro's arguments, not AU_DEFUN's.
  11620.  
  11621.  
  11622. # Finally, this is the expansion that is picked up by
  11623. # autoconf. It tells the user to run autoupdate, and
  11624. # then outputs the replacement expansion. We do not care
  11625. # about autoupdate's warning because that contains
  11626. # information on what to do *after* running autoupdate.
  11627.  
  11628.  
  11629.  
  11630.  
  11631. ac_ext=c
  11632. ac_cpp='$CPP $CPPFLAGS'
  11633. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11634. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11635. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11636.  
  11637. ax_pthread_ok=no
  11638.  
  11639. # We used to check for pthread.h first, but this fails if pthread.h
  11640. # requires special compiler flags (e.g. on True64 or Sequent).
  11641. # It gets checked for in the link test anyway.
  11642.  
  11643. # First of all, check if the user has set any of the PTHREAD_LIBS,
  11644. # etcetera environment variables, and if threads linking works using
  11645. # them:
  11646. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  11647. save_CFLAGS="$CFLAGS"
  11648. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11649. save_LIBS="$LIBS"
  11650. LIBS="$PTHREAD_LIBS $LIBS"
  11651. { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  11652. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  11653. cat >conftest.$ac_ext <<_ACEOF
  11654. /* confdefs.h. */
  11655. _ACEOF
  11656. cat confdefs.h >>conftest.$ac_ext
  11657. cat >>conftest.$ac_ext <<_ACEOF
  11658. /* end confdefs.h. */
  11659.  
  11660. /* Override any GCC internal prototype to avoid an error.
  11661. Use char because int might match the return type of a GCC
  11662. builtin and then its argument prototype would still apply. */
  11663. #ifdef __cplusplus
  11664. extern "C"
  11665. #endif
  11666. char pthread_join ();
  11667. int
  11668. main ()
  11669. {
  11670. return pthread_join ();
  11671. ;
  11672. return 0;
  11673. }
  11674. _ACEOF
  11675. rm -f conftest.$ac_objext conftest$ac_exeext
  11676. if { (ac_try="$ac_link"
  11677. case "(($ac_try" in
  11678. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11679. *) ac_try_echo=$ac_try;;
  11680. esac
  11681. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11682. $as_echo "$ac_try_echo") >&5
  11683. (eval "$ac_link") 2>conftest.er1
  11684. ac_status=$?
  11685. grep -v '^ *+' conftest.er1 >conftest.err
  11686. rm -f conftest.er1
  11687. cat conftest.err >&5
  11688. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11689. (exit $ac_status); } && {
  11690. test -z "$ac_c_werror_flag" ||
  11691. test ! -s conftest.err
  11692. } && test -s conftest$ac_exeext && {
  11693. test "$cross_compiling" = yes ||
  11694. $as_test_x conftest$ac_exeext
  11695. }; then
  11696. ax_pthread_ok=yes
  11697. else
  11698. $as_echo "$as_me: failed program was:" >&5
  11699. sed 's/^/| /' conftest.$ac_ext >&5
  11700.  
  11701.  
  11702. fi
  11703.  
  11704. rm -rf conftest.dSYM
  11705. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11706. conftest$ac_exeext conftest.$ac_ext
  11707. { $as_echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5
  11708. $as_echo "$ax_pthread_ok" >&6; }
  11709. if test x"$ax_pthread_ok" = xno; then
  11710. PTHREAD_LIBS=""
  11711. PTHREAD_CFLAGS=""
  11712. fi
  11713. LIBS="$save_LIBS"
  11714. CFLAGS="$save_CFLAGS"
  11715. fi
  11716.  
  11717. # We must check for the threads library under a number of different
  11718. # names; the ordering is very important because some systems
  11719. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  11720. # libraries is broken (non-POSIX).
  11721.  
  11722. # Create a list of thread flags to try. Items starting with a "-" are
  11723. # C compiler flags, and other items are library names, except for "none"
  11724. # which indicates that we try without any flags at all, and "pthread-config"
  11725. # which is a program returning the flags for the Pth emulation library.
  11726.  
  11727. ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  11728.  
  11729. # The ordering *is* (sometimes) important. Some notes on the
  11730. # individual items follow:
  11731.  
  11732. # pthreads: AIX (must check this before -lpthread)
  11733. # none: in case threads are in libc; should be tried before -Kthread and
  11734. # other compiler flags to prevent continual compiler warnings
  11735. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  11736. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  11737. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  11738. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  11739. # -pthreads: Solaris/gcc
  11740. # -mthreads: Mingw32/gcc, Lynx/gcc
  11741. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  11742. # doesn't hurt to check since this sometimes defines pthreads too;
  11743. # also defines -D_REENTRANT)
  11744. # ... -mt is also the pthreads flag for HP/aCC
  11745. # pthread: Linux, etcetera
  11746. # --thread-safe: KAI C++
  11747. # pthread-config: use pthread-config program (for GNU Pth library)
  11748.  
  11749. case ${host_os} in
  11750. solaris*)
  11751.  
  11752. # On Solaris (at least, for some versions), libc contains stubbed
  11753. # (non-functional) versions of the pthreads routines, so link-based
  11754. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  11755. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  11756. # a function called by this macro, so we could check for that, but
  11757. # who knows whether they'll stub that too in a future libc.) So,
  11758. # we'll just look for -pthreads and -lpthread first:
  11759.  
  11760. ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
  11761. ;;
  11762.  
  11763. darwin*)
  11764. ax_pthread_flags="-pthread $ax_pthread_flags"
  11765. ;;
  11766. esac
  11767.  
  11768. # Clang doesn't consider unrecognized options an error unless we specify
  11769. # -Werror. We throw in some extra Clang-specific options to ensure that
  11770. # this doesn't happen for GCC, which also accepts -Werror.
  11771.  
  11772. { $as_echo "$as_me:$LINENO: checking if compiler needs -Werror to reject unknown flags" >&5
  11773. $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
  11774. save_CFLAGS="$CFLAGS"
  11775. ax_pthread_extra_flags="-Werror"
  11776. CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
  11777. cat >conftest.$ac_ext <<_ACEOF
  11778. /* confdefs.h. */
  11779. _ACEOF
  11780. cat confdefs.h >>conftest.$ac_ext
  11781. cat >>conftest.$ac_ext <<_ACEOF
  11782. /* end confdefs.h. */
  11783. int foo(void);
  11784. int
  11785. main ()
  11786. {
  11787. foo()
  11788. ;
  11789. return 0;
  11790. }
  11791. _ACEOF
  11792. rm -f conftest.$ac_objext
  11793. if { (ac_try="$ac_compile"
  11794. case "(($ac_try" in
  11795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11796. *) ac_try_echo=$ac_try;;
  11797. esac
  11798. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11799. $as_echo "$ac_try_echo") >&5
  11800. (eval "$ac_compile") 2>conftest.er1
  11801. ac_status=$?
  11802. grep -v '^ *+' conftest.er1 >conftest.err
  11803. rm -f conftest.er1
  11804. cat conftest.err >&5
  11805. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11806. (exit $ac_status); } && {
  11807. test -z "$ac_c_werror_flag" ||
  11808. test ! -s conftest.err
  11809. } && test -s conftest.$ac_objext; then
  11810. { $as_echo "$as_me:$LINENO: result: yes" >&5
  11811. $as_echo "yes" >&6; }
  11812. else
  11813. $as_echo "$as_me: failed program was:" >&5
  11814. sed 's/^/| /' conftest.$ac_ext >&5
  11815.  
  11816. ax_pthread_extra_flags=
  11817. { $as_echo "$as_me:$LINENO: result: no" >&5
  11818. $as_echo "no" >&6; }
  11819. fi
  11820.  
  11821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  11822. CFLAGS="$save_CFLAGS"
  11823.  
  11824. if test x"$ax_pthread_ok" = xno; then
  11825. for flag in $ax_pthread_flags; do
  11826.  
  11827. case $flag in
  11828. none)
  11829. { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
  11830. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  11831. ;;
  11832.  
  11833. -*)
  11834. { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
  11835. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  11836. PTHREAD_CFLAGS="$flag"
  11837. ;;
  11838.  
  11839. pthread-config)
  11840. # Extract the first word of "pthread-config", so it can be a program name with args.
  11841. set dummy pthread-config; ac_word=$2
  11842. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  11843. $as_echo_n "checking for $ac_word... " >&6; }
  11844. if test "${ac_cv_prog_ax_pthread_config+set}" = set; then
  11845. $as_echo_n "(cached) " >&6
  11846. else
  11847. if test -n "$ax_pthread_config"; then
  11848. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  11849. else
  11850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11851. for as_dir in $PATH
  11852. do
  11853. IFS=$as_save_IFS
  11854. test -z "$as_dir" && as_dir=.
  11855. for ac_exec_ext in '' $ac_executable_extensions; do
  11856. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11857. ac_cv_prog_ax_pthread_config="yes"
  11858. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11859. break 2
  11860. fi
  11861. done
  11862. done
  11863. IFS=$as_save_IFS
  11864.  
  11865. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  11866. fi
  11867. fi
  11868. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  11869. if test -n "$ax_pthread_config"; then
  11870. { $as_echo "$as_me:$LINENO: result: $ax_pthread_config" >&5
  11871. $as_echo "$ax_pthread_config" >&6; }
  11872. else
  11873. { $as_echo "$as_me:$LINENO: result: no" >&5
  11874. $as_echo "no" >&6; }
  11875. fi
  11876.  
  11877.  
  11878. if test x"$ax_pthread_config" = xno; then continue; fi
  11879. PTHREAD_CFLAGS="`pthread-config --cflags`"
  11880. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  11881. ;;
  11882.  
  11883. *)
  11884. { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
  11885. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  11886. PTHREAD_LIBS="-l$flag"
  11887. ;;
  11888. esac
  11889.  
  11890. save_LIBS="$LIBS"
  11891. save_CFLAGS="$CFLAGS"
  11892. LIBS="$PTHREAD_LIBS $LIBS"
  11893. CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
  11894.  
  11895. # Check for various functions. We must include pthread.h,
  11896. # since some functions may be macros. (On the Sequent, we
  11897. # need a special flag -Kthread to make this header compile.)
  11898. # We check for pthread_join because it is in -lpthread on IRIX
  11899. # while pthread_create is in libc. We check for pthread_attr_init
  11900. # due to DEC craziness with -lpthreads. We check for
  11901. # pthread_cleanup_push because it is one of the few pthread
  11902. # functions on Solaris that doesn't have a non-functional libc stub.
  11903. # We try pthread_create on general principles.
  11904. cat >conftest.$ac_ext <<_ACEOF
  11905. /* confdefs.h. */
  11906. _ACEOF
  11907. cat confdefs.h >>conftest.$ac_ext
  11908. cat >>conftest.$ac_ext <<_ACEOF
  11909. /* end confdefs.h. */
  11910. #include <pthread.h>
  11911. static void routine(void *a) { a = 0; }
  11912. static void *start_routine(void *a) { return a; }
  11913. int
  11914. main ()
  11915. {
  11916. pthread_t th; pthread_attr_t attr;
  11917. pthread_create(&th, 0, start_routine, 0);
  11918. pthread_join(th, 0);
  11919. pthread_attr_init(&attr);
  11920. pthread_cleanup_push(routine, 0);
  11921. pthread_cleanup_pop(0) /* ; */
  11922. ;
  11923. return 0;
  11924. }
  11925. _ACEOF
  11926. rm -f conftest.$ac_objext conftest$ac_exeext
  11927. if { (ac_try="$ac_link"
  11928. case "(($ac_try" in
  11929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11930. *) ac_try_echo=$ac_try;;
  11931. esac
  11932. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  11933. $as_echo "$ac_try_echo") >&5
  11934. (eval "$ac_link") 2>conftest.er1
  11935. ac_status=$?
  11936. grep -v '^ *+' conftest.er1 >conftest.err
  11937. rm -f conftest.er1
  11938. cat conftest.err >&5
  11939. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11940. (exit $ac_status); } && {
  11941. test -z "$ac_c_werror_flag" ||
  11942. test ! -s conftest.err
  11943. } && test -s conftest$ac_exeext && {
  11944. test "$cross_compiling" = yes ||
  11945. $as_test_x conftest$ac_exeext
  11946. }; then
  11947. ax_pthread_ok=yes
  11948. else
  11949. $as_echo "$as_me: failed program was:" >&5
  11950. sed 's/^/| /' conftest.$ac_ext >&5
  11951.  
  11952.  
  11953. fi
  11954.  
  11955. rm -rf conftest.dSYM
  11956. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11957. conftest$ac_exeext conftest.$ac_ext
  11958.  
  11959. LIBS="$save_LIBS"
  11960. CFLAGS="$save_CFLAGS"
  11961.  
  11962. { $as_echo "$as_me:$LINENO: result: $ax_pthread_ok" >&5
  11963. $as_echo "$ax_pthread_ok" >&6; }
  11964. if test "x$ax_pthread_ok" = xyes; then
  11965. break;
  11966. fi
  11967.  
  11968. PTHREAD_LIBS=""
  11969. PTHREAD_CFLAGS=""
  11970. done
  11971. fi
  11972.  
  11973. # Various other checks:
  11974. if test "x$ax_pthread_ok" = xyes; then
  11975. save_LIBS="$LIBS"
  11976. LIBS="$PTHREAD_LIBS $LIBS"
  11977. save_CFLAGS="$CFLAGS"
  11978. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  11979.  
  11980. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  11981. { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
  11982. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  11983. attr_name=unknown
  11984. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  11985. cat >conftest.$ac_ext <<_ACEOF
  11986. /* confdefs.h. */
  11987. _ACEOF
  11988. cat confdefs.h >>conftest.$ac_ext
  11989. cat >>conftest.$ac_ext <<_ACEOF
  11990. /* end confdefs.h. */
  11991. #include <pthread.h>
  11992. int
  11993. main ()
  11994. {
  11995. int attr = $attr; return attr /* ; */
  11996. ;
  11997. return 0;
  11998. }
  11999. _ACEOF
  12000. rm -f conftest.$ac_objext conftest$ac_exeext
  12001. if { (ac_try="$ac_link"
  12002. case "(($ac_try" in
  12003. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12004. *) ac_try_echo=$ac_try;;
  12005. esac
  12006. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12007. $as_echo "$ac_try_echo") >&5
  12008. (eval "$ac_link") 2>conftest.er1
  12009. ac_status=$?
  12010. grep -v '^ *+' conftest.er1 >conftest.err
  12011. rm -f conftest.er1
  12012. cat conftest.err >&5
  12013. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12014. (exit $ac_status); } && {
  12015. test -z "$ac_c_werror_flag" ||
  12016. test ! -s conftest.err
  12017. } && test -s conftest$ac_exeext && {
  12018. test "$cross_compiling" = yes ||
  12019. $as_test_x conftest$ac_exeext
  12020. }; then
  12021. attr_name=$attr; break
  12022. else
  12023. $as_echo "$as_me: failed program was:" >&5
  12024. sed 's/^/| /' conftest.$ac_ext >&5
  12025.  
  12026.  
  12027. fi
  12028.  
  12029. rm -rf conftest.dSYM
  12030. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12031. conftest$ac_exeext conftest.$ac_ext
  12032. done
  12033. { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
  12034. $as_echo "$attr_name" >&6; }
  12035. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  12036.  
  12037. cat >>confdefs.h <<_ACEOF
  12038. #define PTHREAD_CREATE_JOINABLE $attr_name
  12039. _ACEOF
  12040.  
  12041. fi
  12042.  
  12043. { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
  12044. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  12045. flag=no
  12046. case ${host_os} in
  12047. aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
  12048. osf* | hpux*) flag="-D_REENTRANT";;
  12049. solaris*)
  12050. if test "$GCC" = "yes"; then
  12051. flag="-D_REENTRANT"
  12052. else
  12053. # TODO: What about Clang on Solaris?
  12054. flag="-mt -D_REENTRANT"
  12055. fi
  12056. ;;
  12057. esac
  12058. { $as_echo "$as_me:$LINENO: result: $flag" >&5
  12059. $as_echo "$flag" >&6; }
  12060. if test "x$flag" != xno; then
  12061. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  12062. fi
  12063.  
  12064. { $as_echo "$as_me:$LINENO: checking for PTHREAD_PRIO_INHERIT" >&5
  12065. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  12066. if test "${ax_cv_PTHREAD_PRIO_INHERIT+set}" = set; then
  12067. $as_echo_n "(cached) " >&6
  12068. else
  12069.  
  12070. cat >conftest.$ac_ext <<_ACEOF
  12071. /* confdefs.h. */
  12072. _ACEOF
  12073. cat confdefs.h >>conftest.$ac_ext
  12074. cat >>conftest.$ac_ext <<_ACEOF
  12075. /* end confdefs.h. */
  12076. #include <pthread.h>
  12077. int
  12078. main ()
  12079. {
  12080. int i = PTHREAD_PRIO_INHERIT;
  12081. ;
  12082. return 0;
  12083. }
  12084. _ACEOF
  12085. rm -f conftest.$ac_objext conftest$ac_exeext
  12086. if { (ac_try="$ac_link"
  12087. case "(($ac_try" in
  12088. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12089. *) ac_try_echo=$ac_try;;
  12090. esac
  12091. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12092. $as_echo "$ac_try_echo") >&5
  12093. (eval "$ac_link") 2>conftest.er1
  12094. ac_status=$?
  12095. grep -v '^ *+' conftest.er1 >conftest.err
  12096. rm -f conftest.er1
  12097. cat conftest.err >&5
  12098. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12099. (exit $ac_status); } && {
  12100. test -z "$ac_c_werror_flag" ||
  12101. test ! -s conftest.err
  12102. } && test -s conftest$ac_exeext && {
  12103. test "$cross_compiling" = yes ||
  12104. $as_test_x conftest$ac_exeext
  12105. }; then
  12106. ax_cv_PTHREAD_PRIO_INHERIT=yes
  12107. else
  12108. $as_echo "$as_me: failed program was:" >&5
  12109. sed 's/^/| /' conftest.$ac_ext >&5
  12110.  
  12111. ax_cv_PTHREAD_PRIO_INHERIT=no
  12112. fi
  12113.  
  12114. rm -rf conftest.dSYM
  12115. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12116. conftest$ac_exeext conftest.$ac_ext
  12117.  
  12118. fi
  12119. { $as_echo "$as_me:$LINENO: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  12120. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  12121. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then
  12122.  
  12123. cat >>confdefs.h <<\_ACEOF
  12124. #define HAVE_PTHREAD_PRIO_INHERIT 1
  12125. _ACEOF
  12126.  
  12127. fi
  12128.  
  12129.  
  12130. LIBS="$save_LIBS"
  12131. CFLAGS="$save_CFLAGS"
  12132.  
  12133. # More AIX lossage: compile with *_r variant
  12134. if test "x$GCC" != xyes; then
  12135. case $host_os in
  12136. aix*)
  12137. case "x/$CC" in
  12138. x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) #handle absolute path differently from PATH based program lookup
  12139. case "x$CC" in
  12140. x/*) if { test -f ${CC}_r && $as_test_x ${CC}_r; }; then
  12141. PTHREAD_CC="${CC}_r"
  12142. fi
  12143. ;;
  12144. *) for ac_prog in ${CC}_r
  12145. do
  12146. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12147. set dummy $ac_prog; ac_word=$2
  12148. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12149. $as_echo_n "checking for $ac_word... " >&6; }
  12150. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
  12151. $as_echo_n "(cached) " >&6
  12152. else
  12153. if test -n "$PTHREAD_CC"; then
  12154. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  12155. else
  12156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12157. for as_dir in $PATH
  12158. do
  12159. IFS=$as_save_IFS
  12160. test -z "$as_dir" && as_dir=.
  12161. for ac_exec_ext in '' $ac_executable_extensions; do
  12162. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12163. ac_cv_prog_PTHREAD_CC="$ac_prog"
  12164. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12165. break 2
  12166. fi
  12167. done
  12168. done
  12169. IFS=$as_save_IFS
  12170.  
  12171. fi
  12172. fi
  12173. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  12174. if test -n "$PTHREAD_CC"; then
  12175. { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
  12176. $as_echo "$PTHREAD_CC" >&6; }
  12177. else
  12178. { $as_echo "$as_me:$LINENO: result: no" >&5
  12179. $as_echo "no" >&6; }
  12180. fi
  12181.  
  12182.  
  12183. test -n "$PTHREAD_CC" && break
  12184. done
  12185. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12186. ;;
  12187. esac
  12188. ;;
  12189. esac
  12190.  
  12191. ;;
  12192. esac
  12193. fi
  12194. fi
  12195.  
  12196. test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
  12197.  
  12198.  
  12199.  
  12200.  
  12201.  
  12202. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  12203. if test x"$ax_pthread_ok" = xyes; then
  12204.  
  12205. CC="$PTHREAD_CC"
  12206. LIBS="$LIBS $PTHREAD_LIBS"
  12207. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12208. LDFLAGS="$LDFLAGS $PTHREAD_LDFLAGS"
  12209.  
  12210. :
  12211. else
  12212. ax_pthread_ok=no
  12213.  
  12214. { { $as_echo "$as_me:$LINENO: error: Pthread library not found. Please set PTHREAD_CFLAGS and PTHREAD_LIBS correctly for your setup" >&5
  12215. $as_echo "$as_me: error: Pthread library not found. Please set PTHREAD_CFLAGS and PTHREAD_LIBS correctly for your setup" >&2;}
  12216. { (exit 1); exit 1; }; }
  12217.  
  12218.  
  12219. fi
  12220. ac_ext=c
  12221. ac_cpp='$CPP $CPPFLAGS'
  12222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12225.  
  12226.  
  12227.  
  12228.  
  12229. HAVE_BACKTRACE=1
  12230. case $host_os in
  12231. *bsd*)
  12232. { $as_echo "$as_me:$LINENO: checking for library containing backtrace" >&5
  12233. $as_echo_n "checking for library containing backtrace... " >&6; }
  12234. if test "${ac_cv_search_backtrace+set}" = set; then
  12235. $as_echo_n "(cached) " >&6
  12236. else
  12237. ac_func_search_save_LIBS=$LIBS
  12238. cat >conftest.$ac_ext <<_ACEOF
  12239. /* confdefs.h. */
  12240. _ACEOF
  12241. cat confdefs.h >>conftest.$ac_ext
  12242. cat >>conftest.$ac_ext <<_ACEOF
  12243. /* end confdefs.h. */
  12244.  
  12245. /* Override any GCC internal prototype to avoid an error.
  12246. Use char because int might match the return type of a GCC
  12247. builtin and then its argument prototype would still apply. */
  12248. #ifdef __cplusplus
  12249. extern "C"
  12250. #endif
  12251. char backtrace ();
  12252. int
  12253. main ()
  12254. {
  12255. return backtrace ();
  12256. ;
  12257. return 0;
  12258. }
  12259. _ACEOF
  12260. for ac_lib in '' execinfo; do
  12261. if test -z "$ac_lib"; then
  12262. ac_res="none required"
  12263. else
  12264. ac_res=-l$ac_lib
  12265. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12266. fi
  12267. rm -f conftest.$ac_objext conftest$ac_exeext
  12268. if { (ac_try="$ac_link"
  12269. case "(($ac_try" in
  12270. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12271. *) ac_try_echo=$ac_try;;
  12272. esac
  12273. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12274. $as_echo "$ac_try_echo") >&5
  12275. (eval "$ac_link") 2>conftest.er1
  12276. ac_status=$?
  12277. grep -v '^ *+' conftest.er1 >conftest.err
  12278. rm -f conftest.er1
  12279. cat conftest.err >&5
  12280. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12281. (exit $ac_status); } && {
  12282. test -z "$ac_c_werror_flag" ||
  12283. test ! -s conftest.err
  12284. } && test -s conftest$ac_exeext && {
  12285. test "$cross_compiling" = yes ||
  12286. $as_test_x conftest$ac_exeext
  12287. }; then
  12288. ac_cv_search_backtrace=$ac_res
  12289. else
  12290. $as_echo "$as_me: failed program was:" >&5
  12291. sed 's/^/| /' conftest.$ac_ext >&5
  12292.  
  12293.  
  12294. fi
  12295.  
  12296. rm -rf conftest.dSYM
  12297. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12298. conftest$ac_exeext
  12299. if test "${ac_cv_search_backtrace+set}" = set; then
  12300. break
  12301. fi
  12302. done
  12303. if test "${ac_cv_search_backtrace+set}" = set; then
  12304. :
  12305. else
  12306. ac_cv_search_backtrace=no
  12307. fi
  12308. rm conftest.$ac_ext
  12309. LIBS=$ac_func_search_save_LIBS
  12310. fi
  12311. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_backtrace" >&5
  12312. $as_echo "$ac_cv_search_backtrace" >&6; }
  12313. ac_res=$ac_cv_search_backtrace
  12314. if test "$ac_res" != no; then
  12315. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12316.  
  12317. else
  12318. HAVE_BACKTRACE=
  12319. fi
  12320.  
  12321. ;;
  12322. esac
  12323.  
  12324. # Check whether --enable-clsync was given.
  12325. if test "${enable_clsync+set}" = set; then
  12326. enableval=$enable_clsync;
  12327. fi
  12328.  
  12329. if test "x$enable_clsync" != "xno"; then
  12330. CLSYNC_TRUE=
  12331. CLSYNC_FALSE='#'
  12332. else
  12333. CLSYNC_TRUE='#'
  12334. CLSYNC_FALSE=
  12335. fi
  12336.  
  12337.  
  12338.  
  12339.  
  12340.  
  12341.  
  12342.  
  12343.  
  12344.  
  12345. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  12346. if test -n "$ac_tool_prefix"; then
  12347. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  12348. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  12349. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12350. $as_echo_n "checking for $ac_word... " >&6; }
  12351. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  12352. $as_echo_n "(cached) " >&6
  12353. else
  12354. case $PKG_CONFIG in
  12355. [\\/]* | ?:[\\/]*)
  12356. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12357. ;;
  12358. *)
  12359. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12360. for as_dir in $PATH
  12361. do
  12362. IFS=$as_save_IFS
  12363. test -z "$as_dir" && as_dir=.
  12364. for ac_exec_ext in '' $ac_executable_extensions; do
  12365. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12366. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12367. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12368. break 2
  12369. fi
  12370. done
  12371. done
  12372. IFS=$as_save_IFS
  12373.  
  12374. ;;
  12375. esac
  12376. fi
  12377. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12378. if test -n "$PKG_CONFIG"; then
  12379. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  12380. $as_echo "$PKG_CONFIG" >&6; }
  12381. else
  12382. { $as_echo "$as_me:$LINENO: result: no" >&5
  12383. $as_echo "no" >&6; }
  12384. fi
  12385.  
  12386.  
  12387. fi
  12388. if test -z "$ac_cv_path_PKG_CONFIG"; then
  12389. ac_pt_PKG_CONFIG=$PKG_CONFIG
  12390. # Extract the first word of "pkg-config", so it can be a program name with args.
  12391. set dummy pkg-config; ac_word=$2
  12392. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  12393. $as_echo_n "checking for $ac_word... " >&6; }
  12394. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  12395. $as_echo_n "(cached) " >&6
  12396. else
  12397. case $ac_pt_PKG_CONFIG in
  12398. [\\/]* | ?:[\\/]*)
  12399. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  12400. ;;
  12401. *)
  12402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12403. for as_dir in $PATH
  12404. do
  12405. IFS=$as_save_IFS
  12406. test -z "$as_dir" && as_dir=.
  12407. for ac_exec_ext in '' $ac_executable_extensions; do
  12408. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12409. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12410. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12411. break 2
  12412. fi
  12413. done
  12414. done
  12415. IFS=$as_save_IFS
  12416.  
  12417. ;;
  12418. esac
  12419. fi
  12420. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  12421. if test -n "$ac_pt_PKG_CONFIG"; then
  12422. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  12423. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  12424. else
  12425. { $as_echo "$as_me:$LINENO: result: no" >&5
  12426. $as_echo "no" >&6; }
  12427. fi
  12428.  
  12429. if test "x$ac_pt_PKG_CONFIG" = x; then
  12430. PKG_CONFIG=""
  12431. else
  12432. case $cross_compiling:$ac_tool_warned in
  12433. yes:)
  12434. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  12435. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12436. ac_tool_warned=yes ;;
  12437. esac
  12438. PKG_CONFIG=$ac_pt_PKG_CONFIG
  12439. fi
  12440. else
  12441. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12442. fi
  12443.  
  12444. fi
  12445. if test -n "$PKG_CONFIG"; then
  12446. _pkg_min_version=0.9.0
  12447. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  12448. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  12449. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  12450. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12451. $as_echo "yes" >&6; }
  12452. else
  12453. { $as_echo "$as_me:$LINENO: result: no" >&5
  12454. $as_echo "no" >&6; }
  12455. PKG_CONFIG=""
  12456. fi
  12457. fi
  12458. if test "x$enable_clsync" != "xno"; then
  12459.  
  12460.  
  12461. pkg_failed=no
  12462. { $as_echo "$as_me:$LINENO: checking for GLIB" >&5
  12463. $as_echo_n "checking for GLIB... " >&6; }
  12464.  
  12465. if test -n "$GLIB_CFLAGS"; then
  12466. pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
  12467. elif test -n "$PKG_CONFIG"; then
  12468. if test -n "$PKG_CONFIG" && \
  12469. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  12470. ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  12471. ac_status=$?
  12472. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12473. (exit $ac_status); }; then
  12474. pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
  12475. test "x$?" != "x0" && pkg_failed=yes
  12476. else
  12477. pkg_failed=yes
  12478. fi
  12479. else
  12480. pkg_failed=untried
  12481. fi
  12482. if test -n "$GLIB_LIBS"; then
  12483. pkg_cv_GLIB_LIBS="$GLIB_LIBS"
  12484. elif test -n "$PKG_CONFIG"; then
  12485. if test -n "$PKG_CONFIG" && \
  12486. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"glib-2.0\"") >&5
  12487. ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
  12488. ac_status=$?
  12489. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12490. (exit $ac_status); }; then
  12491. pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
  12492. test "x$?" != "x0" && pkg_failed=yes
  12493. else
  12494. pkg_failed=yes
  12495. fi
  12496. else
  12497. pkg_failed=untried
  12498. fi
  12499.  
  12500.  
  12501.  
  12502. if test $pkg_failed = yes; then
  12503. { $as_echo "$as_me:$LINENO: result: no" >&5
  12504. $as_echo "no" >&6; }
  12505.  
  12506. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  12507. _pkg_short_errors_supported=yes
  12508. else
  12509. _pkg_short_errors_supported=no
  12510. fi
  12511. if test $_pkg_short_errors_supported = yes; then
  12512. GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
  12513. else
  12514. GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
  12515. fi
  12516. # Put the nasty error message in config.log where it belongs
  12517. echo "$GLIB_PKG_ERRORS" >&5
  12518.  
  12519. { { $as_echo "$as_me:$LINENO: error: Package requirements (glib-2.0) were not met:
  12520.  
  12521. $GLIB_PKG_ERRORS
  12522.  
  12523. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12524. installed software in a non-standard prefix.
  12525.  
  12526. Alternatively, you may set the environment variables GLIB_CFLAGS
  12527. and GLIB_LIBS to avoid the need to call pkg-config.
  12528. See the pkg-config man page for more details." >&5
  12529. $as_echo "$as_me: error: Package requirements (glib-2.0) were not met:
  12530.  
  12531. $GLIB_PKG_ERRORS
  12532.  
  12533. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  12534. installed software in a non-standard prefix.
  12535.  
  12536. Alternatively, you may set the environment variables GLIB_CFLAGS
  12537. and GLIB_LIBS to avoid the need to call pkg-config.
  12538. See the pkg-config man page for more details." >&2;}
  12539. { (exit 1); exit 1; }; }
  12540. elif test $pkg_failed = untried; then
  12541. { $as_echo "$as_me:$LINENO: result: no" >&5
  12542. $as_echo "no" >&6; }
  12543. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  12544. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12545. { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  12546. is in your PATH or set the PKG_CONFIG environment variable to the full
  12547. path to pkg-config.
  12548.  
  12549. Alternatively, you may set the environment variables GLIB_CFLAGS
  12550. and GLIB_LIBS to avoid the need to call pkg-config.
  12551. See the pkg-config man page for more details.
  12552.  
  12553. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12554. See \`config.log' for more details." >&5
  12555. $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  12556. is in your PATH or set the PKG_CONFIG environment variable to the full
  12557. path to pkg-config.
  12558.  
  12559. Alternatively, you may set the environment variables GLIB_CFLAGS
  12560. and GLIB_LIBS to avoid the need to call pkg-config.
  12561. See the pkg-config man page for more details.
  12562.  
  12563. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  12564. See \`config.log' for more details." >&2;}
  12565. { (exit 1); exit 1; }; }; }
  12566. else
  12567. GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
  12568. GLIB_LIBS=$pkg_cv_GLIB_LIBS
  12569. { $as_echo "$as_me:$LINENO: result: yes" >&5
  12570. $as_echo "yes" >&6; }
  12571.  
  12572. fi
  12573.  
  12574. fi
  12575.  
  12576.  
  12577. # Check whether --enable-cluster was given.
  12578. if test "${enable_cluster+set}" = set; then
  12579. enableval=$enable_cluster;
  12580. fi
  12581.  
  12582.  
  12583. if test "x$enable_cluster" = "xyes"; then
  12584. CPPFLAGS="${CPPFLAGS} -DCLUSTER_SUPPORT"
  12585.  
  12586. # Check whether --with-mhash was given.
  12587. if test "${with_mhash+set}" = set; then
  12588. withval=$with_mhash;
  12589. fi
  12590.  
  12591.  
  12592. if test "x$with_mhash" = "xno"; then
  12593. :
  12594. else
  12595.  
  12596. if test "${ac_cv_header_mhash_h+set}" = set; then
  12597. { $as_echo "$as_me:$LINENO: checking for mhash.h" >&5
  12598. $as_echo_n "checking for mhash.h... " >&6; }
  12599. if test "${ac_cv_header_mhash_h+set}" = set; then
  12600. $as_echo_n "(cached) " >&6
  12601. fi
  12602. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
  12603. $as_echo "$ac_cv_header_mhash_h" >&6; }
  12604. else
  12605. # Is the header compilable?
  12606. { $as_echo "$as_me:$LINENO: checking mhash.h usability" >&5
  12607. $as_echo_n "checking mhash.h usability... " >&6; }
  12608. cat >conftest.$ac_ext <<_ACEOF
  12609. /* confdefs.h. */
  12610. _ACEOF
  12611. cat confdefs.h >>conftest.$ac_ext
  12612. cat >>conftest.$ac_ext <<_ACEOF
  12613. /* end confdefs.h. */
  12614. $ac_includes_default
  12615. #include <mhash.h>
  12616. _ACEOF
  12617. rm -f conftest.$ac_objext
  12618. if { (ac_try="$ac_compile"
  12619. case "(($ac_try" in
  12620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12621. *) ac_try_echo=$ac_try;;
  12622. esac
  12623. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12624. $as_echo "$ac_try_echo") >&5
  12625. (eval "$ac_compile") 2>conftest.er1
  12626. ac_status=$?
  12627. grep -v '^ *+' conftest.er1 >conftest.err
  12628. rm -f conftest.er1
  12629. cat conftest.err >&5
  12630. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12631. (exit $ac_status); } && {
  12632. test -z "$ac_c_werror_flag" ||
  12633. test ! -s conftest.err
  12634. } && test -s conftest.$ac_objext; then
  12635. ac_header_compiler=yes
  12636. else
  12637. $as_echo "$as_me: failed program was:" >&5
  12638. sed 's/^/| /' conftest.$ac_ext >&5
  12639.  
  12640. ac_header_compiler=no
  12641. fi
  12642.  
  12643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12644. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  12645. $as_echo "$ac_header_compiler" >&6; }
  12646.  
  12647. # Is the header present?
  12648. { $as_echo "$as_me:$LINENO: checking mhash.h presence" >&5
  12649. $as_echo_n "checking mhash.h presence... " >&6; }
  12650. cat >conftest.$ac_ext <<_ACEOF
  12651. /* confdefs.h. */
  12652. _ACEOF
  12653. cat confdefs.h >>conftest.$ac_ext
  12654. cat >>conftest.$ac_ext <<_ACEOF
  12655. /* end confdefs.h. */
  12656. #include <mhash.h>
  12657. _ACEOF
  12658. if { (ac_try="$ac_cpp conftest.$ac_ext"
  12659. case "(($ac_try" in
  12660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12661. *) ac_try_echo=$ac_try;;
  12662. esac
  12663. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12664. $as_echo "$ac_try_echo") >&5
  12665. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  12666. ac_status=$?
  12667. grep -v '^ *+' conftest.er1 >conftest.err
  12668. rm -f conftest.er1
  12669. cat conftest.err >&5
  12670. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12671. (exit $ac_status); } >/dev/null && {
  12672. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  12673. test ! -s conftest.err
  12674. }; then
  12675. ac_header_preproc=yes
  12676. else
  12677. $as_echo "$as_me: failed program was:" >&5
  12678. sed 's/^/| /' conftest.$ac_ext >&5
  12679.  
  12680. ac_header_preproc=no
  12681. fi
  12682.  
  12683. rm -f conftest.err conftest.$ac_ext
  12684. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  12685. $as_echo "$ac_header_preproc" >&6; }
  12686.  
  12687. # So? What about this header?
  12688. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  12689. yes:no: )
  12690. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&5
  12691. $as_echo "$as_me: WARNING: mhash.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  12692. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the compiler's result" >&5
  12693. $as_echo "$as_me: WARNING: mhash.h: proceeding with the compiler's result" >&2;}
  12694. ac_header_preproc=yes
  12695. ;;
  12696. no:yes:* )
  12697. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: present but cannot be compiled" >&5
  12698. $as_echo "$as_me: WARNING: mhash.h: present but cannot be compiled" >&2;}
  12699. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: check for missing prerequisite headers?" >&5
  12700. $as_echo "$as_me: WARNING: mhash.h: check for missing prerequisite headers?" >&2;}
  12701. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: see the Autoconf documentation" >&5
  12702. $as_echo "$as_me: WARNING: mhash.h: see the Autoconf documentation" >&2;}
  12703. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: section \"Present But Cannot Be Compiled\"" >&5
  12704. $as_echo "$as_me: WARNING: mhash.h: section \"Present But Cannot Be Compiled\"" >&2;}
  12705. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: proceeding with the preprocessor's result" >&5
  12706. $as_echo "$as_me: WARNING: mhash.h: proceeding with the preprocessor's result" >&2;}
  12707. { $as_echo "$as_me:$LINENO: WARNING: mhash.h: in the future, the compiler will take precedence" >&5
  12708. $as_echo "$as_me: WARNING: mhash.h: in the future, the compiler will take precedence" >&2;}
  12709. ( cat <<\_ASBOX
  12710. ## ------------------------------------------------------ ##
  12711. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  12712. ## ------------------------------------------------------ ##
  12713. _ASBOX
  12714. ) | sed "s/^/$as_me: WARNING: /" >&2
  12715. ;;
  12716. esac
  12717. { $as_echo "$as_me:$LINENO: checking for mhash.h" >&5
  12718. $as_echo_n "checking for mhash.h... " >&6; }
  12719. if test "${ac_cv_header_mhash_h+set}" = set; then
  12720. $as_echo_n "(cached) " >&6
  12721. else
  12722. ac_cv_header_mhash_h=$ac_header_preproc
  12723. fi
  12724. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_mhash_h" >&5
  12725. $as_echo "$ac_cv_header_mhash_h" >&6; }
  12726.  
  12727. fi
  12728. if test "x$ac_cv_header_mhash_h" = x""yes; then
  12729. :
  12730. else
  12731. { { $as_echo "$as_me:$LINENO: error: \"Unable to find mhash.h\"" >&5
  12732. $as_echo "$as_me: error: \"Unable to find mhash.h\"" >&2;}
  12733. { (exit 1); exit 1; }; }
  12734. fi
  12735.  
  12736.  
  12737. { $as_echo "$as_me:$LINENO: checking for library containing mhash_init" >&5
  12738. $as_echo_n "checking for library containing mhash_init... " >&6; }
  12739. if test "${ac_cv_search_mhash_init+set}" = set; then
  12740. $as_echo_n "(cached) " >&6
  12741. else
  12742. ac_func_search_save_LIBS=$LIBS
  12743. cat >conftest.$ac_ext <<_ACEOF
  12744. /* confdefs.h. */
  12745. _ACEOF
  12746. cat confdefs.h >>conftest.$ac_ext
  12747. cat >>conftest.$ac_ext <<_ACEOF
  12748. /* end confdefs.h. */
  12749.  
  12750. /* Override any GCC internal prototype to avoid an error.
  12751. Use char because int might match the return type of a GCC
  12752. builtin and then its argument prototype would still apply. */
  12753. #ifdef __cplusplus
  12754. extern "C"
  12755. #endif
  12756. char mhash_init ();
  12757. int
  12758. main ()
  12759. {
  12760. return mhash_init ();
  12761. ;
  12762. return 0;
  12763. }
  12764. _ACEOF
  12765. for ac_lib in '' mhash; do
  12766. if test -z "$ac_lib"; then
  12767. ac_res="none required"
  12768. else
  12769. ac_res=-l$ac_lib
  12770. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  12771. fi
  12772. rm -f conftest.$ac_objext conftest$ac_exeext
  12773. if { (ac_try="$ac_link"
  12774. case "(($ac_try" in
  12775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12776. *) ac_try_echo=$ac_try;;
  12777. esac
  12778. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12779. $as_echo "$ac_try_echo") >&5
  12780. (eval "$ac_link") 2>conftest.er1
  12781. ac_status=$?
  12782. grep -v '^ *+' conftest.er1 >conftest.err
  12783. rm -f conftest.er1
  12784. cat conftest.err >&5
  12785. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12786. (exit $ac_status); } && {
  12787. test -z "$ac_c_werror_flag" ||
  12788. test ! -s conftest.err
  12789. } && test -s conftest$ac_exeext && {
  12790. test "$cross_compiling" = yes ||
  12791. $as_test_x conftest$ac_exeext
  12792. }; then
  12793. ac_cv_search_mhash_init=$ac_res
  12794. else
  12795. $as_echo "$as_me: failed program was:" >&5
  12796. sed 's/^/| /' conftest.$ac_ext >&5
  12797.  
  12798.  
  12799. fi
  12800.  
  12801. rm -rf conftest.dSYM
  12802. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12803. conftest$ac_exeext
  12804. if test "${ac_cv_search_mhash_init+set}" = set; then
  12805. break
  12806. fi
  12807. done
  12808. if test "${ac_cv_search_mhash_init+set}" = set; then
  12809. :
  12810. else
  12811. ac_cv_search_mhash_init=no
  12812. fi
  12813. rm conftest.$ac_ext
  12814. LIBS=$ac_func_search_save_LIBS
  12815. fi
  12816. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_mhash_init" >&5
  12817. $as_echo "$ac_cv_search_mhash_init" >&6; }
  12818. ac_res=$ac_cv_search_mhash_init
  12819. if test "$ac_res" != no; then
  12820. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  12821. CPPFLAGS="${CPPFLAGS} -DHAVE_MHASH"
  12822. else
  12823. { { $as_echo "$as_me:$LINENO: error: \"Unable to find libmhash\"" >&5
  12824. $as_echo "$as_me: error: \"Unable to find libmhash\"" >&2;}
  12825. { (exit 1); exit 1; }; }
  12826. fi
  12827.  
  12828.  
  12829. fi
  12830.  
  12831.  
  12832. fi
  12833.  
  12834.  
  12835.  
  12836. # Check whether --enable-socket was given.
  12837. if test "${enable_socket+set}" = set; then
  12838. enableval=$enable_socket;
  12839. fi
  12840.  
  12841.  
  12842. if test "x$enable_socket" = "xyes"; then
  12843. CPPFLAGS="${CPPFLAGS} -DENABLE_SOCKET"
  12844. fi
  12845.  
  12846.  
  12847. if test "x$enable_socket" = "xyes"; then
  12848. SOCKET_TRUE=
  12849. SOCKET_FALSE='#'
  12850. else
  12851. SOCKET_TRUE='#'
  12852. SOCKET_FALSE=
  12853. fi
  12854.  
  12855.  
  12856. # Check whether --enable-socket-library was given.
  12857. if test "${enable_socket_library+set}" = set; then
  12858. enableval=$enable_socket_library;
  12859. fi
  12860.  
  12861. if test "x$enable_socket_library" = "xyes"; then
  12862. LIBCLSYNC_TRUE=
  12863. LIBCLSYNC_FALSE='#'
  12864. else
  12865. LIBCLSYNC_TRUE='#'
  12866. LIBCLSYNC_FALSE=
  12867. fi
  12868.  
  12869.  
  12870. # Check whether --enable-unshare was given.
  12871. if test "${enable_unshare+set}" = set; then
  12872. enableval=$enable_unshare;
  12873. fi
  12874.  
  12875.  
  12876. if test "x$enable_unshare" != "xno" ; then
  12877.  
  12878. { $as_echo "$as_me:$LINENO: checking for unshare" >&5
  12879. $as_echo_n "checking for unshare... " >&6; }
  12880. if test "${ac_cv_func_unshare+set}" = set; then
  12881. $as_echo_n "(cached) " >&6
  12882. else
  12883. cat >conftest.$ac_ext <<_ACEOF
  12884. /* confdefs.h. */
  12885. _ACEOF
  12886. cat confdefs.h >>conftest.$ac_ext
  12887. cat >>conftest.$ac_ext <<_ACEOF
  12888. /* end confdefs.h. */
  12889. /* Define unshare to an innocuous variant, in case <limits.h> declares unshare.
  12890. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  12891. #define unshare innocuous_unshare
  12892.  
  12893. /* System header to define __stub macros and hopefully few prototypes,
  12894. which can conflict with char unshare (); below.
  12895. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  12896. <limits.h> exists even on freestanding compilers. */
  12897.  
  12898. #ifdef __STDC__
  12899. # include <limits.h>
  12900. #else
  12901. # include <assert.h>
  12902. #endif
  12903.  
  12904. #undef unshare
  12905.  
  12906. /* Override any GCC internal prototype to avoid an error.
  12907. Use char because int might match the return type of a GCC
  12908. builtin and then its argument prototype would still apply. */
  12909. #ifdef __cplusplus
  12910. extern "C"
  12911. #endif
  12912. char unshare ();
  12913. /* The GNU C library defines this for functions which it implements
  12914. to always fail with ENOSYS. Some functions are actually named
  12915. something starting with __ and the normal name is an alias. */
  12916. #if defined __stub_unshare || defined __stub___unshare
  12917. choke me
  12918. #endif
  12919.  
  12920. int
  12921. main ()
  12922. {
  12923. return unshare ();
  12924. ;
  12925. return 0;
  12926. }
  12927. _ACEOF
  12928. rm -f conftest.$ac_objext conftest$ac_exeext
  12929. if { (ac_try="$ac_link"
  12930. case "(($ac_try" in
  12931. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  12932. *) ac_try_echo=$ac_try;;
  12933. esac
  12934. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  12935. $as_echo "$ac_try_echo") >&5
  12936. (eval "$ac_link") 2>conftest.er1
  12937. ac_status=$?
  12938. grep -v '^ *+' conftest.er1 >conftest.err
  12939. rm -f conftest.er1
  12940. cat conftest.err >&5
  12941. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12942. (exit $ac_status); } && {
  12943. test -z "$ac_c_werror_flag" ||
  12944. test ! -s conftest.err
  12945. } && test -s conftest$ac_exeext && {
  12946. test "$cross_compiling" = yes ||
  12947. $as_test_x conftest$ac_exeext
  12948. }; then
  12949. ac_cv_func_unshare=yes
  12950. else
  12951. $as_echo "$as_me: failed program was:" >&5
  12952. sed 's/^/| /' conftest.$ac_ext >&5
  12953.  
  12954. ac_cv_func_unshare=no
  12955. fi
  12956.  
  12957. rm -rf conftest.dSYM
  12958. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  12959. conftest$ac_exeext conftest.$ac_ext
  12960. fi
  12961. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_unshare" >&5
  12962. $as_echo "$ac_cv_func_unshare" >&6; }
  12963. if test "x$ac_cv_func_unshare" = x""yes; then
  12964. HAVE_UNSHARE=1
  12965. fi
  12966.  
  12967.  
  12968. fi
  12969.  
  12970.  
  12971. # Check whether --enable-highload-locks was given.
  12972. if test "${enable_highload_locks+set}" = set; then
  12973. enableval=$enable_highload_locks;
  12974. fi
  12975.  
  12976. if test "x$enable_highload_locks" = "xyes"; then
  12977. HLLOCKS_TRUE=
  12978. HLLOCKS_FALSE='#'
  12979. else
  12980. HLLOCKS_TRUE='#'
  12981. HLLOCKS_FALSE=
  12982. fi
  12983.  
  12984.  
  12985. # Check whether --enable-debug was given.
  12986. if test "${enable_debug+set}" = set; then
  12987. enableval=$enable_debug; case "${enableval}" in
  12988. (0|"no") debug=0 ;;
  12989. (1|"yes") debug=1 ;;
  12990. (2|"force") debug=2 ;;
  12991. (*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
  12992. $as_echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
  12993. { (exit 1); exit 1; }; } ;;
  12994. esac
  12995. else
  12996. debug=1
  12997. fi
  12998.  
  12999.  
  13000. if test "$debug" -ge 1 ; then
  13001. CFLAGS="${CFLAGS} -pipe -Wall -O0 -ggdb3" CPPFLAGS="${CPPFLAGS} -D_DEBUG_SUPPORT"
  13002. fi
  13003.  
  13004.  
  13005. if test "$debug" -ge 2 ; then
  13006. CPPFLAGS="${CPPFLAGS} -D_DEBUG_FORCE"
  13007. fi
  13008.  
  13009.  
  13010. # Check whether --enable-paranoid was given.
  13011. if test "${enable_paranoid+set}" = set; then
  13012. enableval=$enable_paranoid; case "${enableval}" in
  13013. (0|"no") paranoid=0 ;;
  13014. (1|"yes") paranoid=1 ;;
  13015. (2) paranoid=2 ;;
  13016. (*) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-paranoid" >&5
  13017. $as_echo "$as_me: error: bad value ${enableval} for --enable-paranoid" >&2;}
  13018. { (exit 1); exit 1; }; } ;;
  13019. esac
  13020. else
  13021. paranoid=1
  13022. fi
  13023.  
  13024.  
  13025. if test $paranoid -ge 1; then
  13026.  
  13027. CPPFLAGS="${CPPFLAGS} -D_FORTIFY_SOURCE=2 -DPARANOID"
  13028. CFLAGS="${CFLAGS} -fstack-protector-all -Wall --param ssp-buffer-size=4"
  13029. LDFLAGS="${LDFLAGS} -Xlinker -zrelro"
  13030. { $as_echo "$as_me:$LINENO: checking whether C compiler accepts -fstack-check" >&5
  13031. $as_echo_n "checking whether C compiler accepts -fstack-check... " >&6; }
  13032. if test "${ax_cv_check_cflags___fstack_check+set}" = set; then
  13033. $as_echo_n "(cached) " >&6
  13034. else
  13035.  
  13036. ax_check_save_flags=$CFLAGS
  13037. CFLAGS="$CFLAGS -fstack-check"
  13038. cat >conftest.$ac_ext <<_ACEOF
  13039. /* confdefs.h. */
  13040. _ACEOF
  13041. cat confdefs.h >>conftest.$ac_ext
  13042. cat >>conftest.$ac_ext <<_ACEOF
  13043. /* end confdefs.h. */
  13044.  
  13045. int
  13046. main ()
  13047. {
  13048.  
  13049. ;
  13050. return 0;
  13051. }
  13052. _ACEOF
  13053. rm -f conftest.$ac_objext
  13054. if { (ac_try="$ac_compile"
  13055. case "(($ac_try" in
  13056. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13057. *) ac_try_echo=$ac_try;;
  13058. esac
  13059. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13060. $as_echo "$ac_try_echo") >&5
  13061. (eval "$ac_compile") 2>conftest.er1
  13062. ac_status=$?
  13063. grep -v '^ *+' conftest.er1 >conftest.err
  13064. rm -f conftest.er1
  13065. cat conftest.err >&5
  13066. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13067. (exit $ac_status); } && {
  13068. test -z "$ac_c_werror_flag" ||
  13069. test ! -s conftest.err
  13070. } && test -s conftest.$ac_objext; then
  13071. ax_cv_check_cflags___fstack_check=yes
  13072. else
  13073. $as_echo "$as_me: failed program was:" >&5
  13074. sed 's/^/| /' conftest.$ac_ext >&5
  13075.  
  13076. ax_cv_check_cflags___fstack_check=no
  13077. fi
  13078.  
  13079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13080. CFLAGS=$ax_check_save_flags
  13081. fi
  13082. { $as_echo "$as_me:$LINENO: result: $ax_cv_check_cflags___fstack_check" >&5
  13083. $as_echo "$ax_cv_check_cflags___fstack_check" >&6; }
  13084. if test x"$ax_cv_check_cflags___fstack_check" = xyes; then
  13085. CFLAGS="${CFLAGS} -fstack-check"
  13086. else
  13087. :
  13088. fi
  13089.  
  13090.  
  13091.  
  13092.  
  13093. fi
  13094.  
  13095. if test $paranoid -eq 2; then
  13096. CPPFLAGS="${CPPFLAGS} -DVERYPARANOID"
  13097. fi
  13098.  
  13099.  
  13100. # Checks for programs.
  13101. { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
  13102. $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
  13103. if test "${ac_cv_prog_cc_c99+set}" = set; then
  13104. $as_echo_n "(cached) " >&6
  13105. else
  13106. ac_cv_prog_cc_c99=no
  13107. ac_save_CC=$CC
  13108. cat >conftest.$ac_ext <<_ACEOF
  13109. /* confdefs.h. */
  13110. _ACEOF
  13111. cat confdefs.h >>conftest.$ac_ext
  13112. cat >>conftest.$ac_ext <<_ACEOF
  13113. /* end confdefs.h. */
  13114. #include <stdarg.h>
  13115. #include <stdbool.h>
  13116. #include <stdlib.h>
  13117. #include <wchar.h>
  13118. #include <stdio.h>
  13119.  
  13120. // Check varargs macros. These examples are taken from C99 6.10.3.5.
  13121. #define debug(...) fprintf (stderr, __VA_ARGS__)
  13122. #define showlist(...) puts (#__VA_ARGS__)
  13123. #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
  13124. static void
  13125. test_varargs_macros (void)
  13126. {
  13127. int x = 1234;
  13128. int y = 5678;
  13129. debug ("Flag");
  13130. debug ("X = %d\n", x);
  13131. showlist (The first, second, and third items.);
  13132. report (x>y, "x is %d but y is %d", x, y);
  13133. }
  13134.  
  13135. // Check long long types.
  13136. #define BIG64 18446744073709551615ull
  13137. #define BIG32 4294967295ul
  13138. #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
  13139. #if !BIG_OK
  13140. your preprocessor is broken;
  13141. #endif
  13142. #if BIG_OK
  13143. #else
  13144. your preprocessor is broken;
  13145. #endif
  13146. static long long int bignum = -9223372036854775807LL;
  13147. static unsigned long long int ubignum = BIG64;
  13148.  
  13149. struct incomplete_array
  13150. {
  13151. int datasize;
  13152. double data[];
  13153. };
  13154.  
  13155. struct named_init {
  13156. int number;
  13157. const wchar_t *name;
  13158. double average;
  13159. };
  13160.  
  13161. typedef const char *ccp;
  13162.  
  13163. static inline int
  13164. test_restrict (ccp restrict text)
  13165. {
  13166. // See if C++-style comments work.
  13167. // Iterate through items via the restricted pointer.
  13168. // Also check for declarations in for loops.
  13169. for (unsigned int i = 0; *(text+i) != '\0'; ++i)
  13170. continue;
  13171. return 0;
  13172. }
  13173.  
  13174. // Check varargs and va_copy.
  13175. static void
  13176. test_varargs (const char *format, ...)
  13177. {
  13178. va_list args;
  13179. va_start (args, format);
  13180. va_list args_copy;
  13181. va_copy (args_copy, args);
  13182.  
  13183. const char *str;
  13184. int number;
  13185. float fnumber;
  13186.  
  13187. while (*format)
  13188. {
  13189. switch (*format++)
  13190. {
  13191. case 's': // string
  13192. str = va_arg (args_copy, const char *);
  13193. break;
  13194. case 'd': // int
  13195. number = va_arg (args_copy, int);
  13196. break;
  13197. case 'f': // float
  13198. fnumber = va_arg (args_copy, double);
  13199. break;
  13200. default:
  13201. break;
  13202. }
  13203. }
  13204. va_end (args_copy);
  13205. va_end (args);
  13206. }
  13207.  
  13208. int
  13209. main ()
  13210. {
  13211.  
  13212. // Check bool.
  13213. _Bool success = false;
  13214.  
  13215. // Check restrict.
  13216. if (test_restrict ("String literal") == 0)
  13217. success = true;
  13218. char *restrict newvar = "Another string";
  13219.  
  13220. // Check varargs.
  13221. test_varargs ("s, d' f .", "string", 65, 34.234);
  13222. test_varargs_macros ();
  13223.  
  13224. // Check flexible array members.
  13225. struct incomplete_array *ia =
  13226. malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
  13227. ia->datasize = 10;
  13228. for (int i = 0; i < ia->datasize; ++i)
  13229. ia->data[i] = i * 1.234;
  13230.  
  13231. // Check named initializers.
  13232. struct named_init ni = {
  13233. .number = 34,
  13234. .name = L"Test wide string",
  13235. .average = 543.34343,
  13236. };
  13237.  
  13238. ni.number = 58;
  13239.  
  13240. int dynamic_array[ni.number];
  13241. dynamic_array[ni.number - 1] = 543;
  13242.  
  13243. // work around unused variable warnings
  13244. return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
  13245. || dynamic_array[ni.number - 1] != 543);
  13246.  
  13247. ;
  13248. return 0;
  13249. }
  13250. _ACEOF
  13251. for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
  13252. do
  13253. CC="$ac_save_CC $ac_arg"
  13254. rm -f conftest.$ac_objext
  13255. if { (ac_try="$ac_compile"
  13256. case "(($ac_try" in
  13257. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13258. *) ac_try_echo=$ac_try;;
  13259. esac
  13260. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13261. $as_echo "$ac_try_echo") >&5
  13262. (eval "$ac_compile") 2>conftest.er1
  13263. ac_status=$?
  13264. grep -v '^ *+' conftest.er1 >conftest.err
  13265. rm -f conftest.er1
  13266. cat conftest.err >&5
  13267. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13268. (exit $ac_status); } && {
  13269. test -z "$ac_c_werror_flag" ||
  13270. test ! -s conftest.err
  13271. } && test -s conftest.$ac_objext; then
  13272. ac_cv_prog_cc_c99=$ac_arg
  13273. else
  13274. $as_echo "$as_me: failed program was:" >&5
  13275. sed 's/^/| /' conftest.$ac_ext >&5
  13276.  
  13277.  
  13278. fi
  13279.  
  13280. rm -f core conftest.err conftest.$ac_objext
  13281. test "x$ac_cv_prog_cc_c99" != "xno" && break
  13282. done
  13283. rm -f conftest.$ac_ext
  13284. CC=$ac_save_CC
  13285.  
  13286. fi
  13287. # AC_CACHE_VAL
  13288. case "x$ac_cv_prog_cc_c99" in
  13289. x)
  13290. { $as_echo "$as_me:$LINENO: result: none needed" >&5
  13291. $as_echo "none needed" >&6; } ;;
  13292. xno)
  13293. { $as_echo "$as_me:$LINENO: result: unsupported" >&5
  13294. $as_echo "unsupported" >&6; } ;;
  13295. *)
  13296. CC="$CC $ac_cv_prog_cc_c99"
  13297. { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
  13298. $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
  13299. esac
  13300.  
  13301.  
  13302.  
  13303. # Find a good install program. We prefer a C program (faster),
  13304. # so one script is as good as another. But avoid the broken or
  13305. # incompatible versions:
  13306. # SysV /etc/install, /usr/sbin/install
  13307. # SunOS /usr/etc/install
  13308. # IRIX /sbin/install
  13309. # AIX /bin/install
  13310. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13311. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13312. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13313. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13314. # OS/2's system install, which has a completely different semantic
  13315. # ./install, which can be erroneously created by make from ./install.sh.
  13316. # Reject install programs that cannot install multiple files.
  13317. { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  13318. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13319. if test -z "$INSTALL"; then
  13320. if test "${ac_cv_path_install+set}" = set; then
  13321. $as_echo_n "(cached) " >&6
  13322. else
  13323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13324. for as_dir in $PATH
  13325. do
  13326. IFS=$as_save_IFS
  13327. test -z "$as_dir" && as_dir=.
  13328. # Account for people who put trailing slashes in PATH elements.
  13329. case $as_dir/ in
  13330. ./ | .// | /cC/* | \
  13331. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13332. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  13333. /usr/ucb/* ) ;;
  13334. *)
  13335. # OSF1 and SCO ODT 3.0 have their own names for install.
  13336. # Don't use installbsd from OSF since it installs stuff as root
  13337. # by default.
  13338. for ac_prog in ginstall scoinst install; do
  13339. for ac_exec_ext in '' $ac_executable_extensions; do
  13340. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  13341. if test $ac_prog = install &&
  13342. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13343. # AIX install. It has an incompatible calling convention.
  13344. :
  13345. elif test $ac_prog = install &&
  13346. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13347. # program-specific install script used by HP pwplus--don't use.
  13348. :
  13349. else
  13350. rm -rf conftest.one conftest.two conftest.dir
  13351. echo one > conftest.one
  13352. echo two > conftest.two
  13353. mkdir conftest.dir
  13354. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13355. test -s conftest.one && test -s conftest.two &&
  13356. test -s conftest.dir/conftest.one &&
  13357. test -s conftest.dir/conftest.two
  13358. then
  13359. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13360. break 3
  13361. fi
  13362. fi
  13363. fi
  13364. done
  13365. done
  13366. ;;
  13367. esac
  13368.  
  13369. done
  13370. IFS=$as_save_IFS
  13371.  
  13372. rm -rf conftest.one conftest.two conftest.dir
  13373.  
  13374. fi
  13375. if test "${ac_cv_path_install+set}" = set; then
  13376. INSTALL=$ac_cv_path_install
  13377. else
  13378. # As a last resort, use the slow shell script. Don't cache a
  13379. # value for INSTALL within a source directory, because that will
  13380. # break other packages using the cache if that directory is
  13381. # removed, or if the value is a relative name.
  13382. INSTALL=$ac_install_sh
  13383. fi
  13384. fi
  13385. { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
  13386. $as_echo "$INSTALL" >&6; }
  13387.  
  13388. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13389. # It thinks the first close brace ends the variable substitution.
  13390. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13391.  
  13392. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13393.  
  13394. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13395.  
  13396.  
  13397.  
  13398.  
  13399.  
  13400.  
  13401.  
  13402.  
  13403. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  13404. if test -n "$ac_tool_prefix"; then
  13405. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  13406. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  13407. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13408. $as_echo_n "checking for $ac_word... " >&6; }
  13409. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
  13410. $as_echo_n "(cached) " >&6
  13411. else
  13412. case $PKG_CONFIG in
  13413. [\\/]* | ?:[\\/]*)
  13414. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13415. ;;
  13416. *)
  13417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13418. for as_dir in $PATH
  13419. do
  13420. IFS=$as_save_IFS
  13421. test -z "$as_dir" && as_dir=.
  13422. for ac_exec_ext in '' $ac_executable_extensions; do
  13423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13424. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13425. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13426. break 2
  13427. fi
  13428. done
  13429. done
  13430. IFS=$as_save_IFS
  13431.  
  13432. ;;
  13433. esac
  13434. fi
  13435. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13436. if test -n "$PKG_CONFIG"; then
  13437. { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
  13438. $as_echo "$PKG_CONFIG" >&6; }
  13439. else
  13440. { $as_echo "$as_me:$LINENO: result: no" >&5
  13441. $as_echo "no" >&6; }
  13442. fi
  13443.  
  13444.  
  13445. fi
  13446. if test -z "$ac_cv_path_PKG_CONFIG"; then
  13447. ac_pt_PKG_CONFIG=$PKG_CONFIG
  13448. # Extract the first word of "pkg-config", so it can be a program name with args.
  13449. set dummy pkg-config; ac_word=$2
  13450. { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
  13451. $as_echo_n "checking for $ac_word... " >&6; }
  13452. if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
  13453. $as_echo_n "(cached) " >&6
  13454. else
  13455. case $ac_pt_PKG_CONFIG in
  13456. [\\/]* | ?:[\\/]*)
  13457. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  13458. ;;
  13459. *)
  13460. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13461. for as_dir in $PATH
  13462. do
  13463. IFS=$as_save_IFS
  13464. test -z "$as_dir" && as_dir=.
  13465. for ac_exec_ext in '' $ac_executable_extensions; do
  13466. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13467. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13468. $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  13469. break 2
  13470. fi
  13471. done
  13472. done
  13473. IFS=$as_save_IFS
  13474.  
  13475. ;;
  13476. esac
  13477. fi
  13478. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  13479. if test -n "$ac_pt_PKG_CONFIG"; then
  13480. { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
  13481. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  13482. else
  13483. { $as_echo "$as_me:$LINENO: result: no" >&5
  13484. $as_echo "no" >&6; }
  13485. fi
  13486.  
  13487. if test "x$ac_pt_PKG_CONFIG" = x; then
  13488. PKG_CONFIG=""
  13489. else
  13490. case $cross_compiling:$ac_tool_warned in
  13491. yes:)
  13492. { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
  13493. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13494. ac_tool_warned=yes ;;
  13495. esac
  13496. PKG_CONFIG=$ac_pt_PKG_CONFIG
  13497. fi
  13498. else
  13499. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  13500. fi
  13501.  
  13502. fi
  13503. if test -n "$PKG_CONFIG"; then
  13504. _pkg_min_version=0.20
  13505. { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
  13506. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  13507. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  13508. { $as_echo "$as_me:$LINENO: result: yes" >&5
  13509. $as_echo "yes" >&6; }
  13510. else
  13511. { $as_echo "$as_me:$LINENO: result: no" >&5
  13512. $as_echo "no" >&6; }
  13513. PKG_CONFIG=""
  13514. fi
  13515. fi
  13516.  
  13517. # Checks for libraries.
  13518. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  13519. { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  13520. $as_echo_n "checking for dlfcn.h... " >&6; }
  13521. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  13522. $as_echo_n "(cached) " >&6
  13523. fi
  13524. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  13525. $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  13526. else
  13527. # Is the header compilable?
  13528. { $as_echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
  13529. $as_echo_n "checking dlfcn.h usability... " >&6; }
  13530. cat >conftest.$ac_ext <<_ACEOF
  13531. /* confdefs.h. */
  13532. _ACEOF
  13533. cat confdefs.h >>conftest.$ac_ext
  13534. cat >>conftest.$ac_ext <<_ACEOF
  13535. /* end confdefs.h. */
  13536. $ac_includes_default
  13537. #include <dlfcn.h>
  13538. _ACEOF
  13539. rm -f conftest.$ac_objext
  13540. if { (ac_try="$ac_compile"
  13541. case "(($ac_try" in
  13542. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13543. *) ac_try_echo=$ac_try;;
  13544. esac
  13545. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13546. $as_echo "$ac_try_echo") >&5
  13547. (eval "$ac_compile") 2>conftest.er1
  13548. ac_status=$?
  13549. grep -v '^ *+' conftest.er1 >conftest.err
  13550. rm -f conftest.er1
  13551. cat conftest.err >&5
  13552. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13553. (exit $ac_status); } && {
  13554. test -z "$ac_c_werror_flag" ||
  13555. test ! -s conftest.err
  13556. } && test -s conftest.$ac_objext; then
  13557. ac_header_compiler=yes
  13558. else
  13559. $as_echo "$as_me: failed program was:" >&5
  13560. sed 's/^/| /' conftest.$ac_ext >&5
  13561.  
  13562. ac_header_compiler=no
  13563. fi
  13564.  
  13565. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13566. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13567. $as_echo "$ac_header_compiler" >&6; }
  13568.  
  13569. # Is the header present?
  13570. { $as_echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
  13571. $as_echo_n "checking dlfcn.h presence... " >&6; }
  13572. cat >conftest.$ac_ext <<_ACEOF
  13573. /* confdefs.h. */
  13574. _ACEOF
  13575. cat confdefs.h >>conftest.$ac_ext
  13576. cat >>conftest.$ac_ext <<_ACEOF
  13577. /* end confdefs.h. */
  13578. #include <dlfcn.h>
  13579. _ACEOF
  13580. if { (ac_try="$ac_cpp conftest.$ac_ext"
  13581. case "(($ac_try" in
  13582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13583. *) ac_try_echo=$ac_try;;
  13584. esac
  13585. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13586. $as_echo "$ac_try_echo") >&5
  13587. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  13588. ac_status=$?
  13589. grep -v '^ *+' conftest.er1 >conftest.err
  13590. rm -f conftest.er1
  13591. cat conftest.err >&5
  13592. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13593. (exit $ac_status); } >/dev/null && {
  13594. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  13595. test ! -s conftest.err
  13596. }; then
  13597. ac_header_preproc=yes
  13598. else
  13599. $as_echo "$as_me: failed program was:" >&5
  13600. sed 's/^/| /' conftest.$ac_ext >&5
  13601.  
  13602. ac_header_preproc=no
  13603. fi
  13604.  
  13605. rm -f conftest.err conftest.$ac_ext
  13606. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13607. $as_echo "$ac_header_preproc" >&6; }
  13608.  
  13609. # So? What about this header?
  13610. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13611. yes:no: )
  13612. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
  13613. $as_echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13614. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
  13615. $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
  13616. ac_header_preproc=yes
  13617. ;;
  13618. no:yes:* )
  13619. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
  13620. $as_echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
  13621. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
  13622. $as_echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
  13623. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
  13624. $as_echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
  13625. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
  13626. $as_echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
  13627. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
  13628. $as_echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
  13629. { $as_echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
  13630. $as_echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
  13631. ( cat <<\_ASBOX
  13632. ## ------------------------------------------------------ ##
  13633. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  13634. ## ------------------------------------------------------ ##
  13635. _ASBOX
  13636. ) | sed "s/^/$as_me: WARNING: /" >&2
  13637. ;;
  13638. esac
  13639. { $as_echo "$as_me:$LINENO: checking for dlfcn.h" >&5
  13640. $as_echo_n "checking for dlfcn.h... " >&6; }
  13641. if test "${ac_cv_header_dlfcn_h+set}" = set; then
  13642. $as_echo_n "(cached) " >&6
  13643. else
  13644. ac_cv_header_dlfcn_h=$ac_header_preproc
  13645. fi
  13646. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
  13647. $as_echo "$ac_cv_header_dlfcn_h" >&6; }
  13648.  
  13649. fi
  13650. if test "x$ac_cv_header_dlfcn_h" = x""yes; then
  13651. :
  13652. else
  13653. { { $as_echo "$as_me:$LINENO: error: \"Unable to find dlfcn.h\"" >&5
  13654. $as_echo "$as_me: error: \"Unable to find dlfcn.h\"" >&2;}
  13655. { (exit 1); exit 1; }; }
  13656. fi
  13657.  
  13658.  
  13659. { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
  13660. $as_echo_n "checking for library containing dlopen... " >&6; }
  13661. if test "${ac_cv_search_dlopen+set}" = set; then
  13662. $as_echo_n "(cached) " >&6
  13663. else
  13664. ac_func_search_save_LIBS=$LIBS
  13665. cat >conftest.$ac_ext <<_ACEOF
  13666. /* confdefs.h. */
  13667. _ACEOF
  13668. cat confdefs.h >>conftest.$ac_ext
  13669. cat >>conftest.$ac_ext <<_ACEOF
  13670. /* end confdefs.h. */
  13671.  
  13672. /* Override any GCC internal prototype to avoid an error.
  13673. Use char because int might match the return type of a GCC
  13674. builtin and then its argument prototype would still apply. */
  13675. #ifdef __cplusplus
  13676. extern "C"
  13677. #endif
  13678. char dlopen ();
  13679. int
  13680. main ()
  13681. {
  13682. return dlopen ();
  13683. ;
  13684. return 0;
  13685. }
  13686. _ACEOF
  13687. for ac_lib in '' dl; do
  13688. if test -z "$ac_lib"; then
  13689. ac_res="none required"
  13690. else
  13691. ac_res=-l$ac_lib
  13692. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13693. fi
  13694. rm -f conftest.$ac_objext conftest$ac_exeext
  13695. if { (ac_try="$ac_link"
  13696. case "(($ac_try" in
  13697. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13698. *) ac_try_echo=$ac_try;;
  13699. esac
  13700. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13701. $as_echo "$ac_try_echo") >&5
  13702. (eval "$ac_link") 2>conftest.er1
  13703. ac_status=$?
  13704. grep -v '^ *+' conftest.er1 >conftest.err
  13705. rm -f conftest.er1
  13706. cat conftest.err >&5
  13707. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13708. (exit $ac_status); } && {
  13709. test -z "$ac_c_werror_flag" ||
  13710. test ! -s conftest.err
  13711. } && test -s conftest$ac_exeext && {
  13712. test "$cross_compiling" = yes ||
  13713. $as_test_x conftest$ac_exeext
  13714. }; then
  13715. ac_cv_search_dlopen=$ac_res
  13716. else
  13717. $as_echo "$as_me: failed program was:" >&5
  13718. sed 's/^/| /' conftest.$ac_ext >&5
  13719.  
  13720.  
  13721. fi
  13722.  
  13723. rm -rf conftest.dSYM
  13724. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13725. conftest$ac_exeext
  13726. if test "${ac_cv_search_dlopen+set}" = set; then
  13727. break
  13728. fi
  13729. done
  13730. if test "${ac_cv_search_dlopen+set}" = set; then
  13731. :
  13732. else
  13733. ac_cv_search_dlopen=no
  13734. fi
  13735. rm conftest.$ac_ext
  13736. LIBS=$ac_func_search_save_LIBS
  13737. fi
  13738. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
  13739. $as_echo "$ac_cv_search_dlopen" >&6; }
  13740. ac_res=$ac_cv_search_dlopen
  13741. if test "$ac_res" != no; then
  13742. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13743. LDFLAGS="${LDFLAGS} -rdynamic"
  13744. else
  13745. { { $as_echo "$as_me:$LINENO: error: \"Unable to find libdl\"" >&5
  13746. $as_echo "$as_me: error: \"Unable to find libdl\"" >&2;}
  13747. { (exit 1); exit 1; }; }
  13748. fi
  13749.  
  13750.  
  13751. { $as_echo "$as_me:$LINENO: checking for library containing clock_getres" >&5
  13752. $as_echo_n "checking for library containing clock_getres... " >&6; }
  13753. if test "${ac_cv_search_clock_getres+set}" = set; then
  13754. $as_echo_n "(cached) " >&6
  13755. else
  13756. ac_func_search_save_LIBS=$LIBS
  13757. cat >conftest.$ac_ext <<_ACEOF
  13758. /* confdefs.h. */
  13759. _ACEOF
  13760. cat confdefs.h >>conftest.$ac_ext
  13761. cat >>conftest.$ac_ext <<_ACEOF
  13762. /* end confdefs.h. */
  13763.  
  13764. /* Override any GCC internal prototype to avoid an error.
  13765. Use char because int might match the return type of a GCC
  13766. builtin and then its argument prototype would still apply. */
  13767. #ifdef __cplusplus
  13768. extern "C"
  13769. #endif
  13770. char clock_getres ();
  13771. int
  13772. main ()
  13773. {
  13774. return clock_getres ();
  13775. ;
  13776. return 0;
  13777. }
  13778. _ACEOF
  13779. for ac_lib in '' rt; do
  13780. if test -z "$ac_lib"; then
  13781. ac_res="none required"
  13782. else
  13783. ac_res=-l$ac_lib
  13784. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  13785. fi
  13786. rm -f conftest.$ac_objext conftest$ac_exeext
  13787. if { (ac_try="$ac_link"
  13788. case "(($ac_try" in
  13789. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13790. *) ac_try_echo=$ac_try;;
  13791. esac
  13792. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13793. $as_echo "$ac_try_echo") >&5
  13794. (eval "$ac_link") 2>conftest.er1
  13795. ac_status=$?
  13796. grep -v '^ *+' conftest.er1 >conftest.err
  13797. rm -f conftest.er1
  13798. cat conftest.err >&5
  13799. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13800. (exit $ac_status); } && {
  13801. test -z "$ac_c_werror_flag" ||
  13802. test ! -s conftest.err
  13803. } && test -s conftest$ac_exeext && {
  13804. test "$cross_compiling" = yes ||
  13805. $as_test_x conftest$ac_exeext
  13806. }; then
  13807. ac_cv_search_clock_getres=$ac_res
  13808. else
  13809. $as_echo "$as_me: failed program was:" >&5
  13810. sed 's/^/| /' conftest.$ac_ext >&5
  13811.  
  13812.  
  13813. fi
  13814.  
  13815. rm -rf conftest.dSYM
  13816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13817. conftest$ac_exeext
  13818. if test "${ac_cv_search_clock_getres+set}" = set; then
  13819. break
  13820. fi
  13821. done
  13822. if test "${ac_cv_search_clock_getres+set}" = set; then
  13823. :
  13824. else
  13825. ac_cv_search_clock_getres=no
  13826. fi
  13827. rm conftest.$ac_ext
  13828. LIBS=$ac_func_search_save_LIBS
  13829. fi
  13830. { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_getres" >&5
  13831. $as_echo "$ac_cv_search_clock_getres" >&6; }
  13832. ac_res=$ac_cv_search_clock_getres
  13833. if test "$ac_res" != no; then
  13834. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  13835.  
  13836. else
  13837. { { $as_echo "$as_me:$LINENO: error: \"Unable to find librt; clock_getres() is needed\"" >&5
  13838. $as_echo "$as_me: error: \"Unable to find librt; clock_getres() is needed\"" >&2;}
  13839. { (exit 1); exit 1; }; }
  13840. fi
  13841.  
  13842.  
  13843. { $as_echo "$as_me:$LINENO: checking for getmntent" >&5
  13844. $as_echo_n "checking for getmntent... " >&6; }
  13845. if test "${ac_cv_func_getmntent+set}" = set; then
  13846. $as_echo_n "(cached) " >&6
  13847. else
  13848. cat >conftest.$ac_ext <<_ACEOF
  13849. /* confdefs.h. */
  13850. _ACEOF
  13851. cat confdefs.h >>conftest.$ac_ext
  13852. cat >>conftest.$ac_ext <<_ACEOF
  13853. /* end confdefs.h. */
  13854. /* Define getmntent to an innocuous variant, in case <limits.h> declares getmntent.
  13855. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13856. #define getmntent innocuous_getmntent
  13857.  
  13858. /* System header to define __stub macros and hopefully few prototypes,
  13859. which can conflict with char getmntent (); below.
  13860. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13861. <limits.h> exists even on freestanding compilers. */
  13862.  
  13863. #ifdef __STDC__
  13864. # include <limits.h>
  13865. #else
  13866. # include <assert.h>
  13867. #endif
  13868.  
  13869. #undef getmntent
  13870.  
  13871. /* Override any GCC internal prototype to avoid an error.
  13872. Use char because int might match the return type of a GCC
  13873. builtin and then its argument prototype would still apply. */
  13874. #ifdef __cplusplus
  13875. extern "C"
  13876. #endif
  13877. char getmntent ();
  13878. /* The GNU C library defines this for functions which it implements
  13879. to always fail with ENOSYS. Some functions are actually named
  13880. something starting with __ and the normal name is an alias. */
  13881. #if defined __stub_getmntent || defined __stub___getmntent
  13882. choke me
  13883. #endif
  13884.  
  13885. int
  13886. main ()
  13887. {
  13888. return getmntent ();
  13889. ;
  13890. return 0;
  13891. }
  13892. _ACEOF
  13893. rm -f conftest.$ac_objext conftest$ac_exeext
  13894. if { (ac_try="$ac_link"
  13895. case "(($ac_try" in
  13896. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13897. *) ac_try_echo=$ac_try;;
  13898. esac
  13899. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13900. $as_echo "$ac_try_echo") >&5
  13901. (eval "$ac_link") 2>conftest.er1
  13902. ac_status=$?
  13903. grep -v '^ *+' conftest.er1 >conftest.err
  13904. rm -f conftest.er1
  13905. cat conftest.err >&5
  13906. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13907. (exit $ac_status); } && {
  13908. test -z "$ac_c_werror_flag" ||
  13909. test ! -s conftest.err
  13910. } && test -s conftest$ac_exeext && {
  13911. test "$cross_compiling" = yes ||
  13912. $as_test_x conftest$ac_exeext
  13913. }; then
  13914. ac_cv_func_getmntent=yes
  13915. else
  13916. $as_echo "$as_me: failed program was:" >&5
  13917. sed 's/^/| /' conftest.$ac_ext >&5
  13918.  
  13919. ac_cv_func_getmntent=no
  13920. fi
  13921.  
  13922. rm -rf conftest.dSYM
  13923. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  13924. conftest$ac_exeext conftest.$ac_ext
  13925. fi
  13926. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getmntent" >&5
  13927. $as_echo "$ac_cv_func_getmntent" >&6; }
  13928. if test "x$ac_cv_func_getmntent" = x""yes; then
  13929. HAVE_GETMNTENT=1
  13930. fi
  13931.  
  13932.  
  13933. { $as_echo "$as_me:$LINENO: checking for pivot_root" >&5
  13934. $as_echo_n "checking for pivot_root... " >&6; }
  13935. if test "${ac_cv_func_pivot_root+set}" = set; then
  13936. $as_echo_n "(cached) " >&6
  13937. else
  13938. cat >conftest.$ac_ext <<_ACEOF
  13939. /* confdefs.h. */
  13940. _ACEOF
  13941. cat confdefs.h >>conftest.$ac_ext
  13942. cat >>conftest.$ac_ext <<_ACEOF
  13943. /* end confdefs.h. */
  13944. /* Define pivot_root to an innocuous variant, in case <limits.h> declares pivot_root.
  13945. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  13946. #define pivot_root innocuous_pivot_root
  13947.  
  13948. /* System header to define __stub macros and hopefully few prototypes,
  13949. which can conflict with char pivot_root (); below.
  13950. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13951. <limits.h> exists even on freestanding compilers. */
  13952.  
  13953. #ifdef __STDC__
  13954. # include <limits.h>
  13955. #else
  13956. # include <assert.h>
  13957. #endif
  13958.  
  13959. #undef pivot_root
  13960.  
  13961. /* Override any GCC internal prototype to avoid an error.
  13962. Use char because int might match the return type of a GCC
  13963. builtin and then its argument prototype would still apply. */
  13964. #ifdef __cplusplus
  13965. extern "C"
  13966. #endif
  13967. char pivot_root ();
  13968. /* The GNU C library defines this for functions which it implements
  13969. to always fail with ENOSYS. Some functions are actually named
  13970. something starting with __ and the normal name is an alias. */
  13971. #if defined __stub_pivot_root || defined __stub___pivot_root
  13972. choke me
  13973. #endif
  13974.  
  13975. int
  13976. main ()
  13977. {
  13978. return pivot_root ();
  13979. ;
  13980. return 0;
  13981. }
  13982. _ACEOF
  13983. rm -f conftest.$ac_objext conftest$ac_exeext
  13984. if { (ac_try="$ac_link"
  13985. case "(($ac_try" in
  13986. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13987. *) ac_try_echo=$ac_try;;
  13988. esac
  13989. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  13990. $as_echo "$ac_try_echo") >&5
  13991. (eval "$ac_link") 2>conftest.er1
  13992. ac_status=$?
  13993. grep -v '^ *+' conftest.er1 >conftest.err
  13994. rm -f conftest.er1
  13995. cat conftest.err >&5
  13996. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13997. (exit $ac_status); } && {
  13998. test -z "$ac_c_werror_flag" ||
  13999. test ! -s conftest.err
  14000. } && test -s conftest$ac_exeext && {
  14001. test "$cross_compiling" = yes ||
  14002. $as_test_x conftest$ac_exeext
  14003. }; then
  14004. ac_cv_func_pivot_root=yes
  14005. else
  14006. $as_echo "$as_me: failed program was:" >&5
  14007. sed 's/^/| /' conftest.$ac_ext >&5
  14008.  
  14009. ac_cv_func_pivot_root=no
  14010. fi
  14011.  
  14012. rm -rf conftest.dSYM
  14013. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14014. conftest$ac_exeext conftest.$ac_ext
  14015. fi
  14016. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pivot_root" >&5
  14017. $as_echo "$ac_cv_func_pivot_root" >&6; }
  14018. if test "x$ac_cv_func_pivot_root" = x""yes; then
  14019. HAVE_PIVOTROOT=1
  14020. fi
  14021.  
  14022.  
  14023.  
  14024. # Check whether --with-libcgroup was given.
  14025. if test "${with_libcgroup+set}" = set; then
  14026. withval=$with_libcgroup;
  14027. else
  14028. with_libcgroup=check
  14029.  
  14030. fi
  14031.  
  14032.  
  14033. case "$with_libcgroup" in
  14034. yes)
  14035.  
  14036. { $as_echo "$as_me:$LINENO: checking for cgroup_init in -lcgroup" >&5
  14037. $as_echo_n "checking for cgroup_init in -lcgroup... " >&6; }
  14038. if test "${ac_cv_lib_cgroup_cgroup_init+set}" = set; then
  14039. $as_echo_n "(cached) " >&6
  14040. else
  14041. ac_check_lib_save_LIBS=$LIBS
  14042. LIBS="-lcgroup $LIBS"
  14043. cat >conftest.$ac_ext <<_ACEOF
  14044. /* confdefs.h. */
  14045. _ACEOF
  14046. cat confdefs.h >>conftest.$ac_ext
  14047. cat >>conftest.$ac_ext <<_ACEOF
  14048. /* end confdefs.h. */
  14049.  
  14050. /* Override any GCC internal prototype to avoid an error.
  14051. Use char because int might match the return type of a GCC
  14052. builtin and then its argument prototype would still apply. */
  14053. #ifdef __cplusplus
  14054. extern "C"
  14055. #endif
  14056. char cgroup_init ();
  14057. int
  14058. main ()
  14059. {
  14060. return cgroup_init ();
  14061. ;
  14062. return 0;
  14063. }
  14064. _ACEOF
  14065. rm -f conftest.$ac_objext conftest$ac_exeext
  14066. if { (ac_try="$ac_link"
  14067. case "(($ac_try" in
  14068. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14069. *) ac_try_echo=$ac_try;;
  14070. esac
  14071. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14072. $as_echo "$ac_try_echo") >&5
  14073. (eval "$ac_link") 2>conftest.er1
  14074. ac_status=$?
  14075. grep -v '^ *+' conftest.er1 >conftest.err
  14076. rm -f conftest.er1
  14077. cat conftest.err >&5
  14078. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14079. (exit $ac_status); } && {
  14080. test -z "$ac_c_werror_flag" ||
  14081. test ! -s conftest.err
  14082. } && test -s conftest$ac_exeext && {
  14083. test "$cross_compiling" = yes ||
  14084. $as_test_x conftest$ac_exeext
  14085. }; then
  14086. ac_cv_lib_cgroup_cgroup_init=yes
  14087. else
  14088. $as_echo "$as_me: failed program was:" >&5
  14089. sed 's/^/| /' conftest.$ac_ext >&5
  14090.  
  14091. ac_cv_lib_cgroup_cgroup_init=no
  14092. fi
  14093.  
  14094. rm -rf conftest.dSYM
  14095. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14096. conftest$ac_exeext conftest.$ac_ext
  14097. LIBS=$ac_check_lib_save_LIBS
  14098. fi
  14099. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cgroup_cgroup_init" >&5
  14100. $as_echo "$ac_cv_lib_cgroup_cgroup_init" >&6; }
  14101. if test "x$ac_cv_lib_cgroup_cgroup_init" = x""yes; then
  14102.  
  14103. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14104. { $as_echo "$as_me:$LINENO: checking for libcgroup.h" >&5
  14105. $as_echo_n "checking for libcgroup.h... " >&6; }
  14106. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14107. $as_echo_n "(cached) " >&6
  14108. fi
  14109. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcgroup_h" >&5
  14110. $as_echo "$ac_cv_header_libcgroup_h" >&6; }
  14111. else
  14112. # Is the header compilable?
  14113. { $as_echo "$as_me:$LINENO: checking libcgroup.h usability" >&5
  14114. $as_echo_n "checking libcgroup.h usability... " >&6; }
  14115. cat >conftest.$ac_ext <<_ACEOF
  14116. /* confdefs.h. */
  14117. _ACEOF
  14118. cat confdefs.h >>conftest.$ac_ext
  14119. cat >>conftest.$ac_ext <<_ACEOF
  14120. /* end confdefs.h. */
  14121. $ac_includes_default
  14122. #include <libcgroup.h>
  14123. _ACEOF
  14124. rm -f conftest.$ac_objext
  14125. if { (ac_try="$ac_compile"
  14126. case "(($ac_try" in
  14127. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14128. *) ac_try_echo=$ac_try;;
  14129. esac
  14130. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14131. $as_echo "$ac_try_echo") >&5
  14132. (eval "$ac_compile") 2>conftest.er1
  14133. ac_status=$?
  14134. grep -v '^ *+' conftest.er1 >conftest.err
  14135. rm -f conftest.er1
  14136. cat conftest.err >&5
  14137. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14138. (exit $ac_status); } && {
  14139. test -z "$ac_c_werror_flag" ||
  14140. test ! -s conftest.err
  14141. } && test -s conftest.$ac_objext; then
  14142. ac_header_compiler=yes
  14143. else
  14144. $as_echo "$as_me: failed program was:" >&5
  14145. sed 's/^/| /' conftest.$ac_ext >&5
  14146.  
  14147. ac_header_compiler=no
  14148. fi
  14149.  
  14150. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14151. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14152. $as_echo "$ac_header_compiler" >&6; }
  14153.  
  14154. # Is the header present?
  14155. { $as_echo "$as_me:$LINENO: checking libcgroup.h presence" >&5
  14156. $as_echo_n "checking libcgroup.h presence... " >&6; }
  14157. cat >conftest.$ac_ext <<_ACEOF
  14158. /* confdefs.h. */
  14159. _ACEOF
  14160. cat confdefs.h >>conftest.$ac_ext
  14161. cat >>conftest.$ac_ext <<_ACEOF
  14162. /* end confdefs.h. */
  14163. #include <libcgroup.h>
  14164. _ACEOF
  14165. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14166. case "(($ac_try" in
  14167. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14168. *) ac_try_echo=$ac_try;;
  14169. esac
  14170. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14171. $as_echo "$ac_try_echo") >&5
  14172. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14173. ac_status=$?
  14174. grep -v '^ *+' conftest.er1 >conftest.err
  14175. rm -f conftest.er1
  14176. cat conftest.err >&5
  14177. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14178. (exit $ac_status); } >/dev/null && {
  14179. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14180. test ! -s conftest.err
  14181. }; then
  14182. ac_header_preproc=yes
  14183. else
  14184. $as_echo "$as_me: failed program was:" >&5
  14185. sed 's/^/| /' conftest.$ac_ext >&5
  14186.  
  14187. ac_header_preproc=no
  14188. fi
  14189.  
  14190. rm -f conftest.err conftest.$ac_ext
  14191. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14192. $as_echo "$ac_header_preproc" >&6; }
  14193.  
  14194. # So? What about this header?
  14195. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14196. yes:no: )
  14197. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14198. $as_echo "$as_me: WARNING: libcgroup.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14199. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: proceeding with the compiler's result" >&5
  14200. $as_echo "$as_me: WARNING: libcgroup.h: proceeding with the compiler's result" >&2;}
  14201. ac_header_preproc=yes
  14202. ;;
  14203. no:yes:* )
  14204. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: present but cannot be compiled" >&5
  14205. $as_echo "$as_me: WARNING: libcgroup.h: present but cannot be compiled" >&2;}
  14206. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: check for missing prerequisite headers?" >&5
  14207. $as_echo "$as_me: WARNING: libcgroup.h: check for missing prerequisite headers?" >&2;}
  14208. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: see the Autoconf documentation" >&5
  14209. $as_echo "$as_me: WARNING: libcgroup.h: see the Autoconf documentation" >&2;}
  14210. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: section \"Present But Cannot Be Compiled\"" >&5
  14211. $as_echo "$as_me: WARNING: libcgroup.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14212. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: proceeding with the preprocessor's result" >&5
  14213. $as_echo "$as_me: WARNING: libcgroup.h: proceeding with the preprocessor's result" >&2;}
  14214. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: in the future, the compiler will take precedence" >&5
  14215. $as_echo "$as_me: WARNING: libcgroup.h: in the future, the compiler will take precedence" >&2;}
  14216. ( cat <<\_ASBOX
  14217. ## ------------------------------------------------------ ##
  14218. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  14219. ## ------------------------------------------------------ ##
  14220. _ASBOX
  14221. ) | sed "s/^/$as_me: WARNING: /" >&2
  14222. ;;
  14223. esac
  14224. { $as_echo "$as_me:$LINENO: checking for libcgroup.h" >&5
  14225. $as_echo_n "checking for libcgroup.h... " >&6; }
  14226. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14227. $as_echo_n "(cached) " >&6
  14228. else
  14229. ac_cv_header_libcgroup_h=$ac_header_preproc
  14230. fi
  14231. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcgroup_h" >&5
  14232. $as_echo "$ac_cv_header_libcgroup_h" >&6; }
  14233.  
  14234. fi
  14235. if test "x$ac_cv_header_libcgroup_h" = x""yes; then
  14236. :
  14237. else
  14238. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14239. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14240. { { $as_echo "$as_me:$LINENO: error: Cannot find libcgroup.h
  14241. See \`config.log' for more details." >&5
  14242. $as_echo "$as_me: error: Cannot find libcgroup.h
  14243. See \`config.log' for more details." >&2;}
  14244. { (exit 1); exit 1; }; }; }
  14245. fi
  14246.  
  14247.  
  14248. LDFLAGS="${LDFLAGS} -lcgroup"
  14249. HAVE_LIBCGROUP=1
  14250.  
  14251. else
  14252.  
  14253. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14254. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14255. { { $as_echo "$as_me:$LINENO: error: Cannot find libcgroup
  14256. See \`config.log' for more details." >&5
  14257. $as_echo "$as_me: error: Cannot find libcgroup
  14258. See \`config.log' for more details." >&2;}
  14259. { (exit 1); exit 1; }; }; }
  14260.  
  14261.  
  14262. fi
  14263.  
  14264. ;;
  14265. check)
  14266. { $as_echo "$as_me:$LINENO: checking for cgroup_init in -lcgroup" >&5
  14267. $as_echo_n "checking for cgroup_init in -lcgroup... " >&6; }
  14268. if test "${ac_cv_lib_cgroup_cgroup_init+set}" = set; then
  14269. $as_echo_n "(cached) " >&6
  14270. else
  14271. ac_check_lib_save_LIBS=$LIBS
  14272. LIBS="-lcgroup $LIBS"
  14273. cat >conftest.$ac_ext <<_ACEOF
  14274. /* confdefs.h. */
  14275. _ACEOF
  14276. cat confdefs.h >>conftest.$ac_ext
  14277. cat >>conftest.$ac_ext <<_ACEOF
  14278. /* end confdefs.h. */
  14279.  
  14280. /* Override any GCC internal prototype to avoid an error.
  14281. Use char because int might match the return type of a GCC
  14282. builtin and then its argument prototype would still apply. */
  14283. #ifdef __cplusplus
  14284. extern "C"
  14285. #endif
  14286. char cgroup_init ();
  14287. int
  14288. main ()
  14289. {
  14290. return cgroup_init ();
  14291. ;
  14292. return 0;
  14293. }
  14294. _ACEOF
  14295. rm -f conftest.$ac_objext conftest$ac_exeext
  14296. if { (ac_try="$ac_link"
  14297. case "(($ac_try" in
  14298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14299. *) ac_try_echo=$ac_try;;
  14300. esac
  14301. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14302. $as_echo "$ac_try_echo") >&5
  14303. (eval "$ac_link") 2>conftest.er1
  14304. ac_status=$?
  14305. grep -v '^ *+' conftest.er1 >conftest.err
  14306. rm -f conftest.er1
  14307. cat conftest.err >&5
  14308. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14309. (exit $ac_status); } && {
  14310. test -z "$ac_c_werror_flag" ||
  14311. test ! -s conftest.err
  14312. } && test -s conftest$ac_exeext && {
  14313. test "$cross_compiling" = yes ||
  14314. $as_test_x conftest$ac_exeext
  14315. }; then
  14316. ac_cv_lib_cgroup_cgroup_init=yes
  14317. else
  14318. $as_echo "$as_me: failed program was:" >&5
  14319. sed 's/^/| /' conftest.$ac_ext >&5
  14320.  
  14321. ac_cv_lib_cgroup_cgroup_init=no
  14322. fi
  14323.  
  14324. rm -rf conftest.dSYM
  14325. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14326. conftest$ac_exeext conftest.$ac_ext
  14327. LIBS=$ac_check_lib_save_LIBS
  14328. fi
  14329. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cgroup_cgroup_init" >&5
  14330. $as_echo "$ac_cv_lib_cgroup_cgroup_init" >&6; }
  14331. if test "x$ac_cv_lib_cgroup_cgroup_init" = x""yes; then
  14332.  
  14333. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14334. { $as_echo "$as_me:$LINENO: checking for libcgroup.h" >&5
  14335. $as_echo_n "checking for libcgroup.h... " >&6; }
  14336. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14337. $as_echo_n "(cached) " >&6
  14338. fi
  14339. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcgroup_h" >&5
  14340. $as_echo "$ac_cv_header_libcgroup_h" >&6; }
  14341. else
  14342. # Is the header compilable?
  14343. { $as_echo "$as_me:$LINENO: checking libcgroup.h usability" >&5
  14344. $as_echo_n "checking libcgroup.h usability... " >&6; }
  14345. cat >conftest.$ac_ext <<_ACEOF
  14346. /* confdefs.h. */
  14347. _ACEOF
  14348. cat confdefs.h >>conftest.$ac_ext
  14349. cat >>conftest.$ac_ext <<_ACEOF
  14350. /* end confdefs.h. */
  14351. $ac_includes_default
  14352. #include <libcgroup.h>
  14353. _ACEOF
  14354. rm -f conftest.$ac_objext
  14355. if { (ac_try="$ac_compile"
  14356. case "(($ac_try" in
  14357. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14358. *) ac_try_echo=$ac_try;;
  14359. esac
  14360. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14361. $as_echo "$ac_try_echo") >&5
  14362. (eval "$ac_compile") 2>conftest.er1
  14363. ac_status=$?
  14364. grep -v '^ *+' conftest.er1 >conftest.err
  14365. rm -f conftest.er1
  14366. cat conftest.err >&5
  14367. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14368. (exit $ac_status); } && {
  14369. test -z "$ac_c_werror_flag" ||
  14370. test ! -s conftest.err
  14371. } && test -s conftest.$ac_objext; then
  14372. ac_header_compiler=yes
  14373. else
  14374. $as_echo "$as_me: failed program was:" >&5
  14375. sed 's/^/| /' conftest.$ac_ext >&5
  14376.  
  14377. ac_header_compiler=no
  14378. fi
  14379.  
  14380. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14381. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14382. $as_echo "$ac_header_compiler" >&6; }
  14383.  
  14384. # Is the header present?
  14385. { $as_echo "$as_me:$LINENO: checking libcgroup.h presence" >&5
  14386. $as_echo_n "checking libcgroup.h presence... " >&6; }
  14387. cat >conftest.$ac_ext <<_ACEOF
  14388. /* confdefs.h. */
  14389. _ACEOF
  14390. cat confdefs.h >>conftest.$ac_ext
  14391. cat >>conftest.$ac_ext <<_ACEOF
  14392. /* end confdefs.h. */
  14393. #include <libcgroup.h>
  14394. _ACEOF
  14395. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14396. case "(($ac_try" in
  14397. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14398. *) ac_try_echo=$ac_try;;
  14399. esac
  14400. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14401. $as_echo "$ac_try_echo") >&5
  14402. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14403. ac_status=$?
  14404. grep -v '^ *+' conftest.er1 >conftest.err
  14405. rm -f conftest.er1
  14406. cat conftest.err >&5
  14407. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14408. (exit $ac_status); } >/dev/null && {
  14409. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14410. test ! -s conftest.err
  14411. }; then
  14412. ac_header_preproc=yes
  14413. else
  14414. $as_echo "$as_me: failed program was:" >&5
  14415. sed 's/^/| /' conftest.$ac_ext >&5
  14416.  
  14417. ac_header_preproc=no
  14418. fi
  14419.  
  14420. rm -f conftest.err conftest.$ac_ext
  14421. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14422. $as_echo "$ac_header_preproc" >&6; }
  14423.  
  14424. # So? What about this header?
  14425. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14426. yes:no: )
  14427. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14428. $as_echo "$as_me: WARNING: libcgroup.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14429. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: proceeding with the compiler's result" >&5
  14430. $as_echo "$as_me: WARNING: libcgroup.h: proceeding with the compiler's result" >&2;}
  14431. ac_header_preproc=yes
  14432. ;;
  14433. no:yes:* )
  14434. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: present but cannot be compiled" >&5
  14435. $as_echo "$as_me: WARNING: libcgroup.h: present but cannot be compiled" >&2;}
  14436. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: check for missing prerequisite headers?" >&5
  14437. $as_echo "$as_me: WARNING: libcgroup.h: check for missing prerequisite headers?" >&2;}
  14438. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: see the Autoconf documentation" >&5
  14439. $as_echo "$as_me: WARNING: libcgroup.h: see the Autoconf documentation" >&2;}
  14440. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: section \"Present But Cannot Be Compiled\"" >&5
  14441. $as_echo "$as_me: WARNING: libcgroup.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14442. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: proceeding with the preprocessor's result" >&5
  14443. $as_echo "$as_me: WARNING: libcgroup.h: proceeding with the preprocessor's result" >&2;}
  14444. { $as_echo "$as_me:$LINENO: WARNING: libcgroup.h: in the future, the compiler will take precedence" >&5
  14445. $as_echo "$as_me: WARNING: libcgroup.h: in the future, the compiler will take precedence" >&2;}
  14446. ( cat <<\_ASBOX
  14447. ## ------------------------------------------------------ ##
  14448. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  14449. ## ------------------------------------------------------ ##
  14450. _ASBOX
  14451. ) | sed "s/^/$as_me: WARNING: /" >&2
  14452. ;;
  14453. esac
  14454. { $as_echo "$as_me:$LINENO: checking for libcgroup.h" >&5
  14455. $as_echo_n "checking for libcgroup.h... " >&6; }
  14456. if test "${ac_cv_header_libcgroup_h+set}" = set; then
  14457. $as_echo_n "(cached) " >&6
  14458. else
  14459. ac_cv_header_libcgroup_h=$ac_header_preproc
  14460. fi
  14461. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_libcgroup_h" >&5
  14462. $as_echo "$ac_cv_header_libcgroup_h" >&6; }
  14463.  
  14464. fi
  14465. if test "x$ac_cv_header_libcgroup_h" = x""yes; then
  14466. :
  14467. else
  14468. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14469. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14470. { { $as_echo "$as_me:$LINENO: error: Cannot find libcgroup.h
  14471. See \`config.log' for more details." >&5
  14472. $as_echo "$as_me: error: Cannot find libcgroup.h
  14473. See \`config.log' for more details." >&2;}
  14474. { (exit 1); exit 1; }; }; }
  14475. fi
  14476.  
  14477.  
  14478. LDFLAGS="${LDFLAGS} -lcgroup"
  14479. HAVE_LIBCGROUP=1
  14480.  
  14481. else
  14482.  
  14483.  
  14484. fi
  14485.  
  14486. ;;
  14487. esac
  14488.  
  14489.  
  14490. # Check whether --with-capabilities was given.
  14491. if test "${with_capabilities+set}" = set; then
  14492. withval=$with_capabilities;
  14493. else
  14494. with_capabilities=check
  14495.  
  14496. fi
  14497.  
  14498.  
  14499. case "$with_capabilities" in
  14500. yes)
  14501. { $as_echo "$as_me:$LINENO: checking for capset" >&5
  14502. $as_echo_n "checking for capset... " >&6; }
  14503. if test "${ac_cv_func_capset+set}" = set; then
  14504. $as_echo_n "(cached) " >&6
  14505. else
  14506. cat >conftest.$ac_ext <<_ACEOF
  14507. /* confdefs.h. */
  14508. _ACEOF
  14509. cat confdefs.h >>conftest.$ac_ext
  14510. cat >>conftest.$ac_ext <<_ACEOF
  14511. /* end confdefs.h. */
  14512. /* Define capset to an innocuous variant, in case <limits.h> declares capset.
  14513. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14514. #define capset innocuous_capset
  14515.  
  14516. /* System header to define __stub macros and hopefully few prototypes,
  14517. which can conflict with char capset (); below.
  14518. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14519. <limits.h> exists even on freestanding compilers. */
  14520.  
  14521. #ifdef __STDC__
  14522. # include <limits.h>
  14523. #else
  14524. # include <assert.h>
  14525. #endif
  14526.  
  14527. #undef capset
  14528.  
  14529. /* Override any GCC internal prototype to avoid an error.
  14530. Use char because int might match the return type of a GCC
  14531. builtin and then its argument prototype would still apply. */
  14532. #ifdef __cplusplus
  14533. extern "C"
  14534. #endif
  14535. char capset ();
  14536. /* The GNU C library defines this for functions which it implements
  14537. to always fail with ENOSYS. Some functions are actually named
  14538. something starting with __ and the normal name is an alias. */
  14539. #if defined __stub_capset || defined __stub___capset
  14540. choke me
  14541. #endif
  14542.  
  14543. int
  14544. main ()
  14545. {
  14546. return capset ();
  14547. ;
  14548. return 0;
  14549. }
  14550. _ACEOF
  14551. rm -f conftest.$ac_objext conftest$ac_exeext
  14552. if { (ac_try="$ac_link"
  14553. case "(($ac_try" in
  14554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14555. *) ac_try_echo=$ac_try;;
  14556. esac
  14557. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14558. $as_echo "$ac_try_echo") >&5
  14559. (eval "$ac_link") 2>conftest.er1
  14560. ac_status=$?
  14561. grep -v '^ *+' conftest.er1 >conftest.err
  14562. rm -f conftest.er1
  14563. cat conftest.err >&5
  14564. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14565. (exit $ac_status); } && {
  14566. test -z "$ac_c_werror_flag" ||
  14567. test ! -s conftest.err
  14568. } && test -s conftest$ac_exeext && {
  14569. test "$cross_compiling" = yes ||
  14570. $as_test_x conftest$ac_exeext
  14571. }; then
  14572. ac_cv_func_capset=yes
  14573. else
  14574. $as_echo "$as_me: failed program was:" >&5
  14575. sed 's/^/| /' conftest.$ac_ext >&5
  14576.  
  14577. ac_cv_func_capset=no
  14578. fi
  14579.  
  14580. rm -rf conftest.dSYM
  14581. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14582. conftest$ac_exeext conftest.$ac_ext
  14583. fi
  14584. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_capset" >&5
  14585. $as_echo "$ac_cv_func_capset" >&6; }
  14586. if test "x$ac_cv_func_capset" = x""yes; then
  14587.  
  14588. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14589. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  14590. $as_echo_n "checking for sys/capability.h... " >&6; }
  14591. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14592. $as_echo_n "(cached) " >&6
  14593. fi
  14594. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  14595. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  14596. else
  14597. # Is the header compilable?
  14598. { $as_echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
  14599. $as_echo_n "checking sys/capability.h usability... " >&6; }
  14600. cat >conftest.$ac_ext <<_ACEOF
  14601. /* confdefs.h. */
  14602. _ACEOF
  14603. cat confdefs.h >>conftest.$ac_ext
  14604. cat >>conftest.$ac_ext <<_ACEOF
  14605. /* end confdefs.h. */
  14606. $ac_includes_default
  14607. #include <sys/capability.h>
  14608. _ACEOF
  14609. rm -f conftest.$ac_objext
  14610. if { (ac_try="$ac_compile"
  14611. case "(($ac_try" in
  14612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14613. *) ac_try_echo=$ac_try;;
  14614. esac
  14615. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14616. $as_echo "$ac_try_echo") >&5
  14617. (eval "$ac_compile") 2>conftest.er1
  14618. ac_status=$?
  14619. grep -v '^ *+' conftest.er1 >conftest.err
  14620. rm -f conftest.er1
  14621. cat conftest.err >&5
  14622. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14623. (exit $ac_status); } && {
  14624. test -z "$ac_c_werror_flag" ||
  14625. test ! -s conftest.err
  14626. } && test -s conftest.$ac_objext; then
  14627. ac_header_compiler=yes
  14628. else
  14629. $as_echo "$as_me: failed program was:" >&5
  14630. sed 's/^/| /' conftest.$ac_ext >&5
  14631.  
  14632. ac_header_compiler=no
  14633. fi
  14634.  
  14635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14636. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14637. $as_echo "$ac_header_compiler" >&6; }
  14638.  
  14639. # Is the header present?
  14640. { $as_echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
  14641. $as_echo_n "checking sys/capability.h presence... " >&6; }
  14642. cat >conftest.$ac_ext <<_ACEOF
  14643. /* confdefs.h. */
  14644. _ACEOF
  14645. cat confdefs.h >>conftest.$ac_ext
  14646. cat >>conftest.$ac_ext <<_ACEOF
  14647. /* end confdefs.h. */
  14648. #include <sys/capability.h>
  14649. _ACEOF
  14650. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14651. case "(($ac_try" in
  14652. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14653. *) ac_try_echo=$ac_try;;
  14654. esac
  14655. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14656. $as_echo "$ac_try_echo") >&5
  14657. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14658. ac_status=$?
  14659. grep -v '^ *+' conftest.er1 >conftest.err
  14660. rm -f conftest.er1
  14661. cat conftest.err >&5
  14662. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14663. (exit $ac_status); } >/dev/null && {
  14664. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14665. test ! -s conftest.err
  14666. }; then
  14667. ac_header_preproc=yes
  14668. else
  14669. $as_echo "$as_me: failed program was:" >&5
  14670. sed 's/^/| /' conftest.$ac_ext >&5
  14671.  
  14672. ac_header_preproc=no
  14673. fi
  14674.  
  14675. rm -f conftest.err conftest.$ac_ext
  14676. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14677. $as_echo "$ac_header_preproc" >&6; }
  14678.  
  14679. # So? What about this header?
  14680. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14681. yes:no: )
  14682. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14683. $as_echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14684. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
  14685. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
  14686. ac_header_preproc=yes
  14687. ;;
  14688. no:yes:* )
  14689. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
  14690. $as_echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
  14691. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
  14692. $as_echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
  14693. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
  14694. $as_echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
  14695. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
  14696. $as_echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14697. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
  14698. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
  14699. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
  14700. $as_echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
  14701. ( cat <<\_ASBOX
  14702. ## ------------------------------------------------------ ##
  14703. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  14704. ## ------------------------------------------------------ ##
  14705. _ASBOX
  14706. ) | sed "s/^/$as_me: WARNING: /" >&2
  14707. ;;
  14708. esac
  14709. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  14710. $as_echo_n "checking for sys/capability.h... " >&6; }
  14711. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14712. $as_echo_n "(cached) " >&6
  14713. else
  14714. ac_cv_header_sys_capability_h=$ac_header_preproc
  14715. fi
  14716. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  14717. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  14718.  
  14719. fi
  14720. if test "x$ac_cv_header_sys_capability_h" = x""yes; then
  14721. HAVE_CAPABILITIES=2
  14722. else
  14723. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14724. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14725. { { $as_echo "$as_me:$LINENO: error: Cannot find sys/capability.h
  14726. See \`config.log' for more details." >&5
  14727. $as_echo "$as_me: error: Cannot find sys/capability.h
  14728. See \`config.log' for more details." >&2;}
  14729. { (exit 1); exit 1; }; }; }
  14730. fi
  14731.  
  14732.  
  14733.  
  14734. else
  14735.  
  14736. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  14737. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14738. { { $as_echo "$as_me:$LINENO: error: There is no capabilities support on this system
  14739. See \`config.log' for more details." >&5
  14740. $as_echo "$as_me: error: There is no capabilities support on this system
  14741. See \`config.log' for more details." >&2;}
  14742. { (exit 1); exit 1; }; }; }
  14743.  
  14744.  
  14745. fi
  14746.  
  14747. ;;
  14748. check)
  14749. { $as_echo "$as_me:$LINENO: checking for capset" >&5
  14750. $as_echo_n "checking for capset... " >&6; }
  14751. if test "${ac_cv_func_capset+set}" = set; then
  14752. $as_echo_n "(cached) " >&6
  14753. else
  14754. cat >conftest.$ac_ext <<_ACEOF
  14755. /* confdefs.h. */
  14756. _ACEOF
  14757. cat confdefs.h >>conftest.$ac_ext
  14758. cat >>conftest.$ac_ext <<_ACEOF
  14759. /* end confdefs.h. */
  14760. /* Define capset to an innocuous variant, in case <limits.h> declares capset.
  14761. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  14762. #define capset innocuous_capset
  14763.  
  14764. /* System header to define __stub macros and hopefully few prototypes,
  14765. which can conflict with char capset (); below.
  14766. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  14767. <limits.h> exists even on freestanding compilers. */
  14768.  
  14769. #ifdef __STDC__
  14770. # include <limits.h>
  14771. #else
  14772. # include <assert.h>
  14773. #endif
  14774.  
  14775. #undef capset
  14776.  
  14777. /* Override any GCC internal prototype to avoid an error.
  14778. Use char because int might match the return type of a GCC
  14779. builtin and then its argument prototype would still apply. */
  14780. #ifdef __cplusplus
  14781. extern "C"
  14782. #endif
  14783. char capset ();
  14784. /* The GNU C library defines this for functions which it implements
  14785. to always fail with ENOSYS. Some functions are actually named
  14786. something starting with __ and the normal name is an alias. */
  14787. #if defined __stub_capset || defined __stub___capset
  14788. choke me
  14789. #endif
  14790.  
  14791. int
  14792. main ()
  14793. {
  14794. return capset ();
  14795. ;
  14796. return 0;
  14797. }
  14798. _ACEOF
  14799. rm -f conftest.$ac_objext conftest$ac_exeext
  14800. if { (ac_try="$ac_link"
  14801. case "(($ac_try" in
  14802. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14803. *) ac_try_echo=$ac_try;;
  14804. esac
  14805. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14806. $as_echo "$ac_try_echo") >&5
  14807. (eval "$ac_link") 2>conftest.er1
  14808. ac_status=$?
  14809. grep -v '^ *+' conftest.er1 >conftest.err
  14810. rm -f conftest.er1
  14811. cat conftest.err >&5
  14812. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14813. (exit $ac_status); } && {
  14814. test -z "$ac_c_werror_flag" ||
  14815. test ! -s conftest.err
  14816. } && test -s conftest$ac_exeext && {
  14817. test "$cross_compiling" = yes ||
  14818. $as_test_x conftest$ac_exeext
  14819. }; then
  14820. ac_cv_func_capset=yes
  14821. else
  14822. $as_echo "$as_me: failed program was:" >&5
  14823. sed 's/^/| /' conftest.$ac_ext >&5
  14824.  
  14825. ac_cv_func_capset=no
  14826. fi
  14827.  
  14828. rm -rf conftest.dSYM
  14829. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  14830. conftest$ac_exeext conftest.$ac_ext
  14831. fi
  14832. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_capset" >&5
  14833. $as_echo "$ac_cv_func_capset" >&6; }
  14834. if test "x$ac_cv_func_capset" = x""yes; then
  14835.  
  14836. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14837. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  14838. $as_echo_n "checking for sys/capability.h... " >&6; }
  14839. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14840. $as_echo_n "(cached) " >&6
  14841. fi
  14842. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  14843. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  14844. else
  14845. # Is the header compilable?
  14846. { $as_echo "$as_me:$LINENO: checking sys/capability.h usability" >&5
  14847. $as_echo_n "checking sys/capability.h usability... " >&6; }
  14848. cat >conftest.$ac_ext <<_ACEOF
  14849. /* confdefs.h. */
  14850. _ACEOF
  14851. cat confdefs.h >>conftest.$ac_ext
  14852. cat >>conftest.$ac_ext <<_ACEOF
  14853. /* end confdefs.h. */
  14854. $ac_includes_default
  14855. #include <sys/capability.h>
  14856. _ACEOF
  14857. rm -f conftest.$ac_objext
  14858. if { (ac_try="$ac_compile"
  14859. case "(($ac_try" in
  14860. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14861. *) ac_try_echo=$ac_try;;
  14862. esac
  14863. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14864. $as_echo "$ac_try_echo") >&5
  14865. (eval "$ac_compile") 2>conftest.er1
  14866. ac_status=$?
  14867. grep -v '^ *+' conftest.er1 >conftest.err
  14868. rm -f conftest.er1
  14869. cat conftest.err >&5
  14870. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14871. (exit $ac_status); } && {
  14872. test -z "$ac_c_werror_flag" ||
  14873. test ! -s conftest.err
  14874. } && test -s conftest.$ac_objext; then
  14875. ac_header_compiler=yes
  14876. else
  14877. $as_echo "$as_me: failed program was:" >&5
  14878. sed 's/^/| /' conftest.$ac_ext >&5
  14879.  
  14880. ac_header_compiler=no
  14881. fi
  14882.  
  14883. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14884. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  14885. $as_echo "$ac_header_compiler" >&6; }
  14886.  
  14887. # Is the header present?
  14888. { $as_echo "$as_me:$LINENO: checking sys/capability.h presence" >&5
  14889. $as_echo_n "checking sys/capability.h presence... " >&6; }
  14890. cat >conftest.$ac_ext <<_ACEOF
  14891. /* confdefs.h. */
  14892. _ACEOF
  14893. cat confdefs.h >>conftest.$ac_ext
  14894. cat >>conftest.$ac_ext <<_ACEOF
  14895. /* end confdefs.h. */
  14896. #include <sys/capability.h>
  14897. _ACEOF
  14898. if { (ac_try="$ac_cpp conftest.$ac_ext"
  14899. case "(($ac_try" in
  14900. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  14901. *) ac_try_echo=$ac_try;;
  14902. esac
  14903. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  14904. $as_echo "$ac_try_echo") >&5
  14905. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  14906. ac_status=$?
  14907. grep -v '^ *+' conftest.er1 >conftest.err
  14908. rm -f conftest.er1
  14909. cat conftest.err >&5
  14910. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14911. (exit $ac_status); } >/dev/null && {
  14912. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  14913. test ! -s conftest.err
  14914. }; then
  14915. ac_header_preproc=yes
  14916. else
  14917. $as_echo "$as_me: failed program was:" >&5
  14918. sed 's/^/| /' conftest.$ac_ext >&5
  14919.  
  14920. ac_header_preproc=no
  14921. fi
  14922.  
  14923. rm -f conftest.err conftest.$ac_ext
  14924. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  14925. $as_echo "$ac_header_preproc" >&6; }
  14926.  
  14927. # So? What about this header?
  14928. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  14929. yes:no: )
  14930. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&5
  14931. $as_echo "$as_me: WARNING: sys/capability.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  14932. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the compiler's result" >&5
  14933. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the compiler's result" >&2;}
  14934. ac_header_preproc=yes
  14935. ;;
  14936. no:yes:* )
  14937. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: present but cannot be compiled" >&5
  14938. $as_echo "$as_me: WARNING: sys/capability.h: present but cannot be compiled" >&2;}
  14939. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: check for missing prerequisite headers?" >&5
  14940. $as_echo "$as_me: WARNING: sys/capability.h: check for missing prerequisite headers?" >&2;}
  14941. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: see the Autoconf documentation" >&5
  14942. $as_echo "$as_me: WARNING: sys/capability.h: see the Autoconf documentation" >&2;}
  14943. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&5
  14944. $as_echo "$as_me: WARNING: sys/capability.h: section \"Present But Cannot Be Compiled\"" >&2;}
  14945. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&5
  14946. $as_echo "$as_me: WARNING: sys/capability.h: proceeding with the preprocessor's result" >&2;}
  14947. { $as_echo "$as_me:$LINENO: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&5
  14948. $as_echo "$as_me: WARNING: sys/capability.h: in the future, the compiler will take precedence" >&2;}
  14949. ( cat <<\_ASBOX
  14950. ## ------------------------------------------------------ ##
  14951. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  14952. ## ------------------------------------------------------ ##
  14953. _ASBOX
  14954. ) | sed "s/^/$as_me: WARNING: /" >&2
  14955. ;;
  14956. esac
  14957. { $as_echo "$as_me:$LINENO: checking for sys/capability.h" >&5
  14958. $as_echo_n "checking for sys/capability.h... " >&6; }
  14959. if test "${ac_cv_header_sys_capability_h+set}" = set; then
  14960. $as_echo_n "(cached) " >&6
  14961. else
  14962. ac_cv_header_sys_capability_h=$ac_header_preproc
  14963. fi
  14964. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_capability_h" >&5
  14965. $as_echo "$ac_cv_header_sys_capability_h" >&6; }
  14966.  
  14967. fi
  14968. if test "x$ac_cv_header_sys_capability_h" = x""yes; then
  14969. HAVE_CAPABILITIES=2
  14970. fi
  14971.  
  14972.  
  14973.  
  14974.  
  14975. fi
  14976.  
  14977. ;;
  14978. esac
  14979.  
  14980.  
  14981. #AC_ARG_WITH(tre,
  14982. # AS_HELP_STRING(--with-tre,
  14983. # [Enable tre support be able to predict which directories should be scanned for excludes; values: no, check, yes; default: check]),
  14984. # [],
  14985. # [with_tre=check]
  14986. #)
  14987. #
  14988. #case "$with_tre" in
  14989. # yes)
  14990. # AC_CHECK_LIB([tre], [tre_regaexec],
  14991. # [
  14992. # AC_CHECK_HEADER(tre/tre.h, [], [AC_MSG_FAILURE([Cannot find tre/tre.h])])
  14993. # LDFLAGS="${LDFLAGS} -ltre"
  14994. # HAVE_TRE=1
  14995. # ],
  14996. # [
  14997. # AC_MSG_FAILURE(
  14998. # [Cannot find libtre])
  14999. # ]
  15000. # )
  15001. # ;;
  15002. # check)
  15003. # AC_CHECK_LIB([tre], [tre_regaexec],
  15004. # [
  15005. # AC_CHECK_HEADER(tre/tre.h, [], [AC_MSG_FAILURE([Cannot find tre/tre.h])])
  15006. # LDFLAGS="${LDFLAGS} -ltre"
  15007. # HAVE_TRE=1
  15008. # ],
  15009. # []
  15010. # )
  15011. # ;;
  15012. #esac
  15013.  
  15014.  
  15015.  
  15016. # Check whether --with-kqueue was given.
  15017. if test "${with_kqueue+set}" = set; then
  15018. withval=$with_kqueue;
  15019. else
  15020. with_kqueue=check
  15021.  
  15022. fi
  15023.  
  15024.  
  15025.  
  15026. # Check whether --with-inotify was given.
  15027. if test "${with_inotify+set}" = set; then
  15028. withval=$with_inotify;
  15029. else
  15030. with_inotify=check
  15031.  
  15032. fi
  15033.  
  15034.  
  15035.  
  15036. # Check whether --with-gio was given.
  15037. if test "${with_gio+set}" = set; then
  15038. withval=$with_gio;
  15039. else
  15040. with_gio=check
  15041.  
  15042. fi
  15043.  
  15044.  
  15045.  
  15046. # Check whether --with-bsm was given.
  15047. if test "${with_bsm+set}" = set; then
  15048. withval=$with_bsm;
  15049. else
  15050. with_bsm=check
  15051.  
  15052. fi
  15053.  
  15054.  
  15055. case "$with_kqueue" in
  15056. check)
  15057. { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
  15058. $as_echo_n "checking for kqueue... " >&6; }
  15059. if test "${ac_cv_func_kqueue+set}" = set; then
  15060. $as_echo_n "(cached) " >&6
  15061. else
  15062. cat >conftest.$ac_ext <<_ACEOF
  15063. /* confdefs.h. */
  15064. _ACEOF
  15065. cat confdefs.h >>conftest.$ac_ext
  15066. cat >>conftest.$ac_ext <<_ACEOF
  15067. /* end confdefs.h. */
  15068. /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
  15069. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15070. #define kqueue innocuous_kqueue
  15071.  
  15072. /* System header to define __stub macros and hopefully few prototypes,
  15073. which can conflict with char kqueue (); below.
  15074. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15075. <limits.h> exists even on freestanding compilers. */
  15076.  
  15077. #ifdef __STDC__
  15078. # include <limits.h>
  15079. #else
  15080. # include <assert.h>
  15081. #endif
  15082.  
  15083. #undef kqueue
  15084.  
  15085. /* Override any GCC internal prototype to avoid an error.
  15086. Use char because int might match the return type of a GCC
  15087. builtin and then its argument prototype would still apply. */
  15088. #ifdef __cplusplus
  15089. extern "C"
  15090. #endif
  15091. char kqueue ();
  15092. /* The GNU C library defines this for functions which it implements
  15093. to always fail with ENOSYS. Some functions are actually named
  15094. something starting with __ and the normal name is an alias. */
  15095. #if defined __stub_kqueue || defined __stub___kqueue
  15096. choke me
  15097. #endif
  15098.  
  15099. int
  15100. main ()
  15101. {
  15102. return kqueue ();
  15103. ;
  15104. return 0;
  15105. }
  15106. _ACEOF
  15107. rm -f conftest.$ac_objext conftest$ac_exeext
  15108. if { (ac_try="$ac_link"
  15109. case "(($ac_try" in
  15110. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15111. *) ac_try_echo=$ac_try;;
  15112. esac
  15113. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15114. $as_echo "$ac_try_echo") >&5
  15115. (eval "$ac_link") 2>conftest.er1
  15116. ac_status=$?
  15117. grep -v '^ *+' conftest.er1 >conftest.err
  15118. rm -f conftest.er1
  15119. cat conftest.err >&5
  15120. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15121. (exit $ac_status); } && {
  15122. test -z "$ac_c_werror_flag" ||
  15123. test ! -s conftest.err
  15124. } && test -s conftest$ac_exeext && {
  15125. test "$cross_compiling" = yes ||
  15126. $as_test_x conftest$ac_exeext
  15127. }; then
  15128. ac_cv_func_kqueue=yes
  15129. else
  15130. $as_echo "$as_me: failed program was:" >&5
  15131. sed 's/^/| /' conftest.$ac_ext >&5
  15132.  
  15133. ac_cv_func_kqueue=no
  15134. fi
  15135.  
  15136. rm -rf conftest.dSYM
  15137. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15138. conftest$ac_exeext conftest.$ac_ext
  15139. fi
  15140. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
  15141. $as_echo "$ac_cv_func_kqueue" >&6; }
  15142. if test "x$ac_cv_func_kqueue" = x""yes; then
  15143.  
  15144. HAVE_KQUEUE=2
  15145.  
  15146. else
  15147. { $as_echo "$as_me:$LINENO: checking for kqueue in -lkqueue" >&5
  15148. $as_echo_n "checking for kqueue in -lkqueue... " >&6; }
  15149. if test "${ac_cv_lib_kqueue_kqueue+set}" = set; then
  15150. $as_echo_n "(cached) " >&6
  15151. else
  15152. ac_check_lib_save_LIBS=$LIBS
  15153. LIBS="-lkqueue $LIBS"
  15154. cat >conftest.$ac_ext <<_ACEOF
  15155. /* confdefs.h. */
  15156. _ACEOF
  15157. cat confdefs.h >>conftest.$ac_ext
  15158. cat >>conftest.$ac_ext <<_ACEOF
  15159. /* end confdefs.h. */
  15160.  
  15161. /* Override any GCC internal prototype to avoid an error.
  15162. Use char because int might match the return type of a GCC
  15163. builtin and then its argument prototype would still apply. */
  15164. #ifdef __cplusplus
  15165. extern "C"
  15166. #endif
  15167. char kqueue ();
  15168. int
  15169. main ()
  15170. {
  15171. return kqueue ();
  15172. ;
  15173. return 0;
  15174. }
  15175. _ACEOF
  15176. rm -f conftest.$ac_objext conftest$ac_exeext
  15177. if { (ac_try="$ac_link"
  15178. case "(($ac_try" in
  15179. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15180. *) ac_try_echo=$ac_try;;
  15181. esac
  15182. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15183. $as_echo "$ac_try_echo") >&5
  15184. (eval "$ac_link") 2>conftest.er1
  15185. ac_status=$?
  15186. grep -v '^ *+' conftest.er1 >conftest.err
  15187. rm -f conftest.er1
  15188. cat conftest.err >&5
  15189. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15190. (exit $ac_status); } && {
  15191. test -z "$ac_c_werror_flag" ||
  15192. test ! -s conftest.err
  15193. } && test -s conftest$ac_exeext && {
  15194. test "$cross_compiling" = yes ||
  15195. $as_test_x conftest$ac_exeext
  15196. }; then
  15197. ac_cv_lib_kqueue_kqueue=yes
  15198. else
  15199. $as_echo "$as_me: failed program was:" >&5
  15200. sed 's/^/| /' conftest.$ac_ext >&5
  15201.  
  15202. ac_cv_lib_kqueue_kqueue=no
  15203. fi
  15204.  
  15205. rm -rf conftest.dSYM
  15206. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15207. conftest$ac_exeext conftest.$ac_ext
  15208. LIBS=$ac_check_lib_save_LIBS
  15209. fi
  15210. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kqueue_kqueue" >&5
  15211. $as_echo "$ac_cv_lib_kqueue_kqueue" >&6; }
  15212. if test "x$ac_cv_lib_kqueue_kqueue" = x""yes; then
  15213.  
  15214. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15215. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15216. $as_echo_n "checking for sys/event.h... " >&6; }
  15217. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15218. $as_echo_n "(cached) " >&6
  15219. fi
  15220. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15221. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15222. else
  15223. # Is the header compilable?
  15224. { $as_echo "$as_me:$LINENO: checking sys/event.h usability" >&5
  15225. $as_echo_n "checking sys/event.h usability... " >&6; }
  15226. cat >conftest.$ac_ext <<_ACEOF
  15227. /* confdefs.h. */
  15228. _ACEOF
  15229. cat confdefs.h >>conftest.$ac_ext
  15230. cat >>conftest.$ac_ext <<_ACEOF
  15231. /* end confdefs.h. */
  15232. $ac_includes_default
  15233. #include <sys/event.h>
  15234. _ACEOF
  15235. rm -f conftest.$ac_objext
  15236. if { (ac_try="$ac_compile"
  15237. case "(($ac_try" in
  15238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15239. *) ac_try_echo=$ac_try;;
  15240. esac
  15241. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15242. $as_echo "$ac_try_echo") >&5
  15243. (eval "$ac_compile") 2>conftest.er1
  15244. ac_status=$?
  15245. grep -v '^ *+' conftest.er1 >conftest.err
  15246. rm -f conftest.er1
  15247. cat conftest.err >&5
  15248. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15249. (exit $ac_status); } && {
  15250. test -z "$ac_c_werror_flag" ||
  15251. test ! -s conftest.err
  15252. } && test -s conftest.$ac_objext; then
  15253. ac_header_compiler=yes
  15254. else
  15255. $as_echo "$as_me: failed program was:" >&5
  15256. sed 's/^/| /' conftest.$ac_ext >&5
  15257.  
  15258. ac_header_compiler=no
  15259. fi
  15260.  
  15261. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15262. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15263. $as_echo "$ac_header_compiler" >&6; }
  15264.  
  15265. # Is the header present?
  15266. { $as_echo "$as_me:$LINENO: checking sys/event.h presence" >&5
  15267. $as_echo_n "checking sys/event.h presence... " >&6; }
  15268. cat >conftest.$ac_ext <<_ACEOF
  15269. /* confdefs.h. */
  15270. _ACEOF
  15271. cat confdefs.h >>conftest.$ac_ext
  15272. cat >>conftest.$ac_ext <<_ACEOF
  15273. /* end confdefs.h. */
  15274. #include <sys/event.h>
  15275. _ACEOF
  15276. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15277. case "(($ac_try" in
  15278. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15279. *) ac_try_echo=$ac_try;;
  15280. esac
  15281. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15282. $as_echo "$ac_try_echo") >&5
  15283. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15284. ac_status=$?
  15285. grep -v '^ *+' conftest.er1 >conftest.err
  15286. rm -f conftest.er1
  15287. cat conftest.err >&5
  15288. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15289. (exit $ac_status); } >/dev/null && {
  15290. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15291. test ! -s conftest.err
  15292. }; then
  15293. ac_header_preproc=yes
  15294. else
  15295. $as_echo "$as_me: failed program was:" >&5
  15296. sed 's/^/| /' conftest.$ac_ext >&5
  15297.  
  15298. ac_header_preproc=no
  15299. fi
  15300.  
  15301. rm -f conftest.err conftest.$ac_ext
  15302. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15303. $as_echo "$ac_header_preproc" >&6; }
  15304.  
  15305. # So? What about this header?
  15306. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15307. yes:no:
  15308. fi
  15309.  
  15310. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15311. $as_echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15312. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
  15313. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
  15314. ac_header_preproc=yes
  15315. ;;
  15316. no:yes:* )
  15317. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
  15318. $as_echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
  15319. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5
  15320. $as_echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;}
  15321. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
  15322. $as_echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
  15323. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5
  15324. $as_echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15325. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
  15326. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
  15327. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
  15328. $as_echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
  15329. ( cat <<\_ASBOX
  15330. ## ------------------------------------------------------ ##
  15331. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  15332. ## ------------------------------------------------------ ##
  15333. _ASBOX
  15334. ) | sed "s/^/$as_me: WARNING: /" >&2
  15335. ;;
  15336. esac
  15337. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15338. $as_echo_n "checking for sys/event.h... " >&6; }
  15339. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15340. $as_echo_n "(cached) " >&6
  15341. else
  15342. ac_cv_header_sys_event_h=$ac_header_preproc
  15343. fi
  15344. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15345. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15346.  
  15347. fi
  15348. if test "x$ac_cv_header_sys_event_h" = x""yes; then
  15349.  
  15350. LDFLAGS="${LDFLAGS} -lkqueue"
  15351. HAVE_KQUEUE=1
  15352.  
  15353. fi
  15354.  
  15355.  
  15356.  
  15357. fi
  15358.  
  15359. )
  15360. ;;
  15361. native)
  15362. { $as_echo "$as_me:$LINENO: checking for kqueue" >&5
  15363. $as_echo_n "checking for kqueue... " >&6; }
  15364. if test "${ac_cv_func_kqueue+set}" = set; then
  15365. $as_echo_n "(cached) " >&6
  15366. else
  15367. cat >conftest.$ac_ext <<_ACEOF
  15368. /* confdefs.h. */
  15369. _ACEOF
  15370. cat confdefs.h >>conftest.$ac_ext
  15371. cat >>conftest.$ac_ext <<_ACEOF
  15372. /* end confdefs.h. */
  15373. /* Define kqueue to an innocuous variant, in case <limits.h> declares kqueue.
  15374. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15375. #define kqueue innocuous_kqueue
  15376.  
  15377. /* System header to define __stub macros and hopefully few prototypes,
  15378. which can conflict with char kqueue (); below.
  15379. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15380. <limits.h> exists even on freestanding compilers. */
  15381.  
  15382. #ifdef __STDC__
  15383. # include <limits.h>
  15384. #else
  15385. # include <assert.h>
  15386. #endif
  15387.  
  15388. #undef kqueue
  15389.  
  15390. /* Override any GCC internal prototype to avoid an error.
  15391. Use char because int might match the return type of a GCC
  15392. builtin and then its argument prototype would still apply. */
  15393. #ifdef __cplusplus
  15394. extern "C"
  15395. #endif
  15396. char kqueue ();
  15397. /* The GNU C library defines this for functions which it implements
  15398. to always fail with ENOSYS. Some functions are actually named
  15399. something starting with __ and the normal name is an alias. */
  15400. #if defined __stub_kqueue || defined __stub___kqueue
  15401. choke me
  15402. #endif
  15403.  
  15404. int
  15405. main ()
  15406. {
  15407. return kqueue ();
  15408. ;
  15409. return 0;
  15410. }
  15411. _ACEOF
  15412. rm -f conftest.$ac_objext conftest$ac_exeext
  15413. if { (ac_try="$ac_link"
  15414. case "(($ac_try" in
  15415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15416. *) ac_try_echo=$ac_try;;
  15417. esac
  15418. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15419. $as_echo "$ac_try_echo") >&5
  15420. (eval "$ac_link") 2>conftest.er1
  15421. ac_status=$?
  15422. grep -v '^ *+' conftest.er1 >conftest.err
  15423. rm -f conftest.er1
  15424. cat conftest.err >&5
  15425. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15426. (exit $ac_status); } && {
  15427. test -z "$ac_c_werror_flag" ||
  15428. test ! -s conftest.err
  15429. } && test -s conftest$ac_exeext && {
  15430. test "$cross_compiling" = yes ||
  15431. $as_test_x conftest$ac_exeext
  15432. }; then
  15433. ac_cv_func_kqueue=yes
  15434. else
  15435. $as_echo "$as_me: failed program was:" >&5
  15436. sed 's/^/| /' conftest.$ac_ext >&5
  15437.  
  15438. ac_cv_func_kqueue=no
  15439. fi
  15440.  
  15441. rm -rf conftest.dSYM
  15442. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15443. conftest$ac_exeext conftest.$ac_ext
  15444. fi
  15445. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_kqueue" >&5
  15446. $as_echo "$ac_cv_func_kqueue" >&6; }
  15447. if test "x$ac_cv_func_kqueue" = x""yes; then
  15448.  
  15449. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15450. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15451. $as_echo_n "checking for sys/event.h... " >&6; }
  15452. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15453. $as_echo_n "(cached) " >&6
  15454. fi
  15455. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15456. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15457. else
  15458. # Is the header compilable?
  15459. { $as_echo "$as_me:$LINENO: checking sys/event.h usability" >&5
  15460. $as_echo_n "checking sys/event.h usability... " >&6; }
  15461. cat >conftest.$ac_ext <<_ACEOF
  15462. /* confdefs.h. */
  15463. _ACEOF
  15464. cat confdefs.h >>conftest.$ac_ext
  15465. cat >>conftest.$ac_ext <<_ACEOF
  15466. /* end confdefs.h. */
  15467. $ac_includes_default
  15468. #include <sys/event.h>
  15469. _ACEOF
  15470. rm -f conftest.$ac_objext
  15471. if { (ac_try="$ac_compile"
  15472. case "(($ac_try" in
  15473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15474. *) ac_try_echo=$ac_try;;
  15475. esac
  15476. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15477. $as_echo "$ac_try_echo") >&5
  15478. (eval "$ac_compile") 2>conftest.er1
  15479. ac_status=$?
  15480. grep -v '^ *+' conftest.er1 >conftest.err
  15481. rm -f conftest.er1
  15482. cat conftest.err >&5
  15483. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15484. (exit $ac_status); } && {
  15485. test -z "$ac_c_werror_flag" ||
  15486. test ! -s conftest.err
  15487. } && test -s conftest.$ac_objext; then
  15488. ac_header_compiler=yes
  15489. else
  15490. $as_echo "$as_me: failed program was:" >&5
  15491. sed 's/^/| /' conftest.$ac_ext >&5
  15492.  
  15493. ac_header_compiler=no
  15494. fi
  15495.  
  15496. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15497. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15498. $as_echo "$ac_header_compiler" >&6; }
  15499.  
  15500. # Is the header present?
  15501. { $as_echo "$as_me:$LINENO: checking sys/event.h presence" >&5
  15502. $as_echo_n "checking sys/event.h presence... " >&6; }
  15503. cat >conftest.$ac_ext <<_ACEOF
  15504. /* confdefs.h. */
  15505. _ACEOF
  15506. cat confdefs.h >>conftest.$ac_ext
  15507. cat >>conftest.$ac_ext <<_ACEOF
  15508. /* end confdefs.h. */
  15509. #include <sys/event.h>
  15510. _ACEOF
  15511. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15512. case "(($ac_try" in
  15513. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15514. *) ac_try_echo=$ac_try;;
  15515. esac
  15516. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15517. $as_echo "$ac_try_echo") >&5
  15518. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15519. ac_status=$?
  15520. grep -v '^ *+' conftest.er1 >conftest.err
  15521. rm -f conftest.er1
  15522. cat conftest.err >&5
  15523. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15524. (exit $ac_status); } >/dev/null && {
  15525. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15526. test ! -s conftest.err
  15527. }; then
  15528. ac_header_preproc=yes
  15529. else
  15530. $as_echo "$as_me: failed program was:" >&5
  15531. sed 's/^/| /' conftest.$ac_ext >&5
  15532.  
  15533. ac_header_preproc=no
  15534. fi
  15535.  
  15536. rm -f conftest.err conftest.$ac_ext
  15537. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15538. $as_echo "$ac_header_preproc" >&6; }
  15539.  
  15540. # So? What about this header?
  15541. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15542. yes:no: )
  15543. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15544. $as_echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15545. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
  15546. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
  15547. ac_header_preproc=yes
  15548. ;;
  15549. no:yes:* )
  15550. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
  15551. $as_echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
  15552. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5
  15553. $as_echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;}
  15554. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
  15555. $as_echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
  15556. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5
  15557. $as_echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15558. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
  15559. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
  15560. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
  15561. $as_echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
  15562. ( cat <<\_ASBOX
  15563. ## ------------------------------------------------------ ##
  15564. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  15565. ## ------------------------------------------------------ ##
  15566. _ASBOX
  15567. ) | sed "s/^/$as_me: WARNING: /" >&2
  15568. ;;
  15569. esac
  15570. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15571. $as_echo_n "checking for sys/event.h... " >&6; }
  15572. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15573. $as_echo_n "(cached) " >&6
  15574. else
  15575. ac_cv_header_sys_event_h=$ac_header_preproc
  15576. fi
  15577. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15578. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15579.  
  15580. fi
  15581. if test "x$ac_cv_header_sys_event_h" = x""yes; then
  15582. :
  15583. else
  15584. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15585. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15586. { { $as_echo "$as_me:$LINENO: error: Cannot find sys/event.h
  15587. See \`config.log' for more details." >&5
  15588. $as_echo "$as_me: error: Cannot find sys/event.h
  15589. See \`config.log' for more details." >&2;}
  15590. { (exit 1); exit 1; }; }; }
  15591. fi
  15592.  
  15593.  
  15594. HAVE_KQUEUE=2
  15595.  
  15596. else
  15597.  
  15598. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15599. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15600. { { $as_echo "$as_me:$LINENO: error: There is no kqueue native support on this system
  15601. See \`config.log' for more details." >&5
  15602. $as_echo "$as_me: error: There is no kqueue native support on this system
  15603. See \`config.log' for more details." >&2;}
  15604. { (exit 1); exit 1; }; }; }
  15605.  
  15606.  
  15607. fi
  15608.  
  15609. ;;
  15610. lib)
  15611. { $as_echo "$as_me:$LINENO: checking for kqueue in -lkqueue" >&5
  15612. $as_echo_n "checking for kqueue in -lkqueue... " >&6; }
  15613. if test "${ac_cv_lib_kqueue_kqueue+set}" = set; then
  15614. $as_echo_n "(cached) " >&6
  15615. else
  15616. ac_check_lib_save_LIBS=$LIBS
  15617. LIBS="-lkqueue $LIBS"
  15618. cat >conftest.$ac_ext <<_ACEOF
  15619. /* confdefs.h. */
  15620. _ACEOF
  15621. cat confdefs.h >>conftest.$ac_ext
  15622. cat >>conftest.$ac_ext <<_ACEOF
  15623. /* end confdefs.h. */
  15624.  
  15625. /* Override any GCC internal prototype to avoid an error.
  15626. Use char because int might match the return type of a GCC
  15627. builtin and then its argument prototype would still apply. */
  15628. #ifdef __cplusplus
  15629. extern "C"
  15630. #endif
  15631. char kqueue ();
  15632. int
  15633. main ()
  15634. {
  15635. return kqueue ();
  15636. ;
  15637. return 0;
  15638. }
  15639. _ACEOF
  15640. rm -f conftest.$ac_objext conftest$ac_exeext
  15641. if { (ac_try="$ac_link"
  15642. case "(($ac_try" in
  15643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15644. *) ac_try_echo=$ac_try;;
  15645. esac
  15646. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15647. $as_echo "$ac_try_echo") >&5
  15648. (eval "$ac_link") 2>conftest.er1
  15649. ac_status=$?
  15650. grep -v '^ *+' conftest.er1 >conftest.err
  15651. rm -f conftest.er1
  15652. cat conftest.err >&5
  15653. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15654. (exit $ac_status); } && {
  15655. test -z "$ac_c_werror_flag" ||
  15656. test ! -s conftest.err
  15657. } && test -s conftest$ac_exeext && {
  15658. test "$cross_compiling" = yes ||
  15659. $as_test_x conftest$ac_exeext
  15660. }; then
  15661. ac_cv_lib_kqueue_kqueue=yes
  15662. else
  15663. $as_echo "$as_me: failed program was:" >&5
  15664. sed 's/^/| /' conftest.$ac_ext >&5
  15665.  
  15666. ac_cv_lib_kqueue_kqueue=no
  15667. fi
  15668.  
  15669. rm -rf conftest.dSYM
  15670. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15671. conftest$ac_exeext conftest.$ac_ext
  15672. LIBS=$ac_check_lib_save_LIBS
  15673. fi
  15674. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kqueue_kqueue" >&5
  15675. $as_echo "$ac_cv_lib_kqueue_kqueue" >&6; }
  15676. if test "x$ac_cv_lib_kqueue_kqueue" = x""yes; then
  15677.  
  15678. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15679. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15680. $as_echo_n "checking for sys/event.h... " >&6; }
  15681. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15682. $as_echo_n "(cached) " >&6
  15683. fi
  15684. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15685. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15686. else
  15687. # Is the header compilable?
  15688. { $as_echo "$as_me:$LINENO: checking sys/event.h usability" >&5
  15689. $as_echo_n "checking sys/event.h usability... " >&6; }
  15690. cat >conftest.$ac_ext <<_ACEOF
  15691. /* confdefs.h. */
  15692. _ACEOF
  15693. cat confdefs.h >>conftest.$ac_ext
  15694. cat >>conftest.$ac_ext <<_ACEOF
  15695. /* end confdefs.h. */
  15696. $ac_includes_default
  15697. #include <sys/event.h>
  15698. _ACEOF
  15699. rm -f conftest.$ac_objext
  15700. if { (ac_try="$ac_compile"
  15701. case "(($ac_try" in
  15702. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15703. *) ac_try_echo=$ac_try;;
  15704. esac
  15705. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15706. $as_echo "$ac_try_echo") >&5
  15707. (eval "$ac_compile") 2>conftest.er1
  15708. ac_status=$?
  15709. grep -v '^ *+' conftest.er1 >conftest.err
  15710. rm -f conftest.er1
  15711. cat conftest.err >&5
  15712. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15713. (exit $ac_status); } && {
  15714. test -z "$ac_c_werror_flag" ||
  15715. test ! -s conftest.err
  15716. } && test -s conftest.$ac_objext; then
  15717. ac_header_compiler=yes
  15718. else
  15719. $as_echo "$as_me: failed program was:" >&5
  15720. sed 's/^/| /' conftest.$ac_ext >&5
  15721.  
  15722. ac_header_compiler=no
  15723. fi
  15724.  
  15725. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15726. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  15727. $as_echo "$ac_header_compiler" >&6; }
  15728.  
  15729. # Is the header present?
  15730. { $as_echo "$as_me:$LINENO: checking sys/event.h presence" >&5
  15731. $as_echo_n "checking sys/event.h presence... " >&6; }
  15732. cat >conftest.$ac_ext <<_ACEOF
  15733. /* confdefs.h. */
  15734. _ACEOF
  15735. cat confdefs.h >>conftest.$ac_ext
  15736. cat >>conftest.$ac_ext <<_ACEOF
  15737. /* end confdefs.h. */
  15738. #include <sys/event.h>
  15739. _ACEOF
  15740. if { (ac_try="$ac_cpp conftest.$ac_ext"
  15741. case "(($ac_try" in
  15742. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15743. *) ac_try_echo=$ac_try;;
  15744. esac
  15745. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15746. $as_echo "$ac_try_echo") >&5
  15747. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  15748. ac_status=$?
  15749. grep -v '^ *+' conftest.er1 >conftest.err
  15750. rm -f conftest.er1
  15751. cat conftest.err >&5
  15752. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15753. (exit $ac_status); } >/dev/null && {
  15754. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15755. test ! -s conftest.err
  15756. }; then
  15757. ac_header_preproc=yes
  15758. else
  15759. $as_echo "$as_me: failed program was:" >&5
  15760. sed 's/^/| /' conftest.$ac_ext >&5
  15761.  
  15762. ac_header_preproc=no
  15763. fi
  15764.  
  15765. rm -f conftest.err conftest.$ac_ext
  15766. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  15767. $as_echo "$ac_header_preproc" >&6; }
  15768.  
  15769. # So? What about this header?
  15770. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  15771. yes:no: )
  15772. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&5
  15773. $as_echo "$as_me: WARNING: sys/event.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  15774. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the compiler's result" >&5
  15775. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the compiler's result" >&2;}
  15776. ac_header_preproc=yes
  15777. ;;
  15778. no:yes:* )
  15779. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: present but cannot be compiled" >&5
  15780. $as_echo "$as_me: WARNING: sys/event.h: present but cannot be compiled" >&2;}
  15781. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: check for missing prerequisite headers?" >&5
  15782. $as_echo "$as_me: WARNING: sys/event.h: check for missing prerequisite headers?" >&2;}
  15783. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: see the Autoconf documentation" >&5
  15784. $as_echo "$as_me: WARNING: sys/event.h: see the Autoconf documentation" >&2;}
  15785. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&5
  15786. $as_echo "$as_me: WARNING: sys/event.h: section \"Present But Cannot Be Compiled\"" >&2;}
  15787. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: proceeding with the preprocessor's result" >&5
  15788. $as_echo "$as_me: WARNING: sys/event.h: proceeding with the preprocessor's result" >&2;}
  15789. { $as_echo "$as_me:$LINENO: WARNING: sys/event.h: in the future, the compiler will take precedence" >&5
  15790. $as_echo "$as_me: WARNING: sys/event.h: in the future, the compiler will take precedence" >&2;}
  15791. ( cat <<\_ASBOX
  15792. ## ------------------------------------------------------ ##
  15793. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  15794. ## ------------------------------------------------------ ##
  15795. _ASBOX
  15796. ) | sed "s/^/$as_me: WARNING: /" >&2
  15797. ;;
  15798. esac
  15799. { $as_echo "$as_me:$LINENO: checking for sys/event.h" >&5
  15800. $as_echo_n "checking for sys/event.h... " >&6; }
  15801. if test "${ac_cv_header_sys_event_h+set}" = set; then
  15802. $as_echo_n "(cached) " >&6
  15803. else
  15804. ac_cv_header_sys_event_h=$ac_header_preproc
  15805. fi
  15806. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_event_h" >&5
  15807. $as_echo "$ac_cv_header_sys_event_h" >&6; }
  15808.  
  15809. fi
  15810. if test "x$ac_cv_header_sys_event_h" = x""yes; then
  15811. :
  15812. else
  15813. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15814. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15815. { { $as_echo "$as_me:$LINENO: error: Cannot find sys/event.h
  15816. See \`config.log' for more details." >&5
  15817. $as_echo "$as_me: error: Cannot find sys/event.h
  15818. See \`config.log' for more details." >&2;}
  15819. { (exit 1); exit 1; }; }; }
  15820. fi
  15821.  
  15822.  
  15823. LDFLAGS="${LDFLAGS} -lkqueue"
  15824. HAVE_KQUEUE=1
  15825.  
  15826. else
  15827.  
  15828. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  15829. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15830. { { $as_echo "$as_me:$LINENO: error: Cannot find libkqueue
  15831. See \`config.log' for more details." >&5
  15832. $as_echo "$as_me: error: Cannot find libkqueue
  15833. See \`config.log' for more details." >&2;}
  15834. { (exit 1); exit 1; }; }; }
  15835.  
  15836.  
  15837. fi
  15838.  
  15839. ;;
  15840. esac
  15841.  
  15842. case "$with_inotify" in
  15843. check)
  15844. { $as_echo "$as_me:$LINENO: checking for inotify_init" >&5
  15845. $as_echo_n "checking for inotify_init... " >&6; }
  15846. if test "${ac_cv_func_inotify_init+set}" = set; then
  15847. $as_echo_n "(cached) " >&6
  15848. else
  15849. cat >conftest.$ac_ext <<_ACEOF
  15850. /* confdefs.h. */
  15851. _ACEOF
  15852. cat confdefs.h >>conftest.$ac_ext
  15853. cat >>conftest.$ac_ext <<_ACEOF
  15854. /* end confdefs.h. */
  15855. /* Define inotify_init to an innocuous variant, in case <limits.h> declares inotify_init.
  15856. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  15857. #define inotify_init innocuous_inotify_init
  15858.  
  15859. /* System header to define __stub macros and hopefully few prototypes,
  15860. which can conflict with char inotify_init (); below.
  15861. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15862. <limits.h> exists even on freestanding compilers. */
  15863.  
  15864. #ifdef __STDC__
  15865. # include <limits.h>
  15866. #else
  15867. # include <assert.h>
  15868. #endif
  15869.  
  15870. #undef inotify_init
  15871.  
  15872. /* Override any GCC internal prototype to avoid an error.
  15873. Use char because int might match the return type of a GCC
  15874. builtin and then its argument prototype would still apply. */
  15875. #ifdef __cplusplus
  15876. extern "C"
  15877. #endif
  15878. char inotify_init ();
  15879. /* The GNU C library defines this for functions which it implements
  15880. to always fail with ENOSYS. Some functions are actually named
  15881. something starting with __ and the normal name is an alias. */
  15882. #if defined __stub_inotify_init || defined __stub___inotify_init
  15883. choke me
  15884. #endif
  15885.  
  15886. int
  15887. main ()
  15888. {
  15889. return inotify_init ();
  15890. ;
  15891. return 0;
  15892. }
  15893. _ACEOF
  15894. rm -f conftest.$ac_objext conftest$ac_exeext
  15895. if { (ac_try="$ac_link"
  15896. case "(($ac_try" in
  15897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15898. *) ac_try_echo=$ac_try;;
  15899. esac
  15900. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15901. $as_echo "$ac_try_echo") >&5
  15902. (eval "$ac_link") 2>conftest.er1
  15903. ac_status=$?
  15904. grep -v '^ *+' conftest.er1 >conftest.err
  15905. rm -f conftest.er1
  15906. cat conftest.err >&5
  15907. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15908. (exit $ac_status); } && {
  15909. test -z "$ac_c_werror_flag" ||
  15910. test ! -s conftest.err
  15911. } && test -s conftest$ac_exeext && {
  15912. test "$cross_compiling" = yes ||
  15913. $as_test_x conftest$ac_exeext
  15914. }; then
  15915. ac_cv_func_inotify_init=yes
  15916. else
  15917. $as_echo "$as_me: failed program was:" >&5
  15918. sed 's/^/| /' conftest.$ac_ext >&5
  15919.  
  15920. ac_cv_func_inotify_init=no
  15921. fi
  15922.  
  15923. rm -rf conftest.dSYM
  15924. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15925. conftest$ac_exeext conftest.$ac_ext
  15926. fi
  15927. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inotify_init" >&5
  15928. $as_echo "$ac_cv_func_inotify_init" >&6; }
  15929. if test "x$ac_cv_func_inotify_init" = x""yes; then
  15930.  
  15931. HAVE_INOTIFY=2
  15932.  
  15933. else
  15934. { $as_echo "$as_me:$LINENO: checking for inotify_init in -linotify" >&5
  15935. $as_echo_n "checking for inotify_init in -linotify... " >&6; }
  15936. if test "${ac_cv_lib_inotify_inotify_init+set}" = set; then
  15937. $as_echo_n "(cached) " >&6
  15938. else
  15939. ac_check_lib_save_LIBS=$LIBS
  15940. LIBS="-linotify $LIBS"
  15941. cat >conftest.$ac_ext <<_ACEOF
  15942. /* confdefs.h. */
  15943. _ACEOF
  15944. cat confdefs.h >>conftest.$ac_ext
  15945. cat >>conftest.$ac_ext <<_ACEOF
  15946. /* end confdefs.h. */
  15947.  
  15948. /* Override any GCC internal prototype to avoid an error.
  15949. Use char because int might match the return type of a GCC
  15950. builtin and then its argument prototype would still apply. */
  15951. #ifdef __cplusplus
  15952. extern "C"
  15953. #endif
  15954. char inotify_init ();
  15955. int
  15956. main ()
  15957. {
  15958. return inotify_init ();
  15959. ;
  15960. return 0;
  15961. }
  15962. _ACEOF
  15963. rm -f conftest.$ac_objext conftest$ac_exeext
  15964. if { (ac_try="$ac_link"
  15965. case "(($ac_try" in
  15966. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15967. *) ac_try_echo=$ac_try;;
  15968. esac
  15969. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  15970. $as_echo "$ac_try_echo") >&5
  15971. (eval "$ac_link") 2>conftest.er1
  15972. ac_status=$?
  15973. grep -v '^ *+' conftest.er1 >conftest.err
  15974. rm -f conftest.er1
  15975. cat conftest.err >&5
  15976. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  15977. (exit $ac_status); } && {
  15978. test -z "$ac_c_werror_flag" ||
  15979. test ! -s conftest.err
  15980. } && test -s conftest$ac_exeext && {
  15981. test "$cross_compiling" = yes ||
  15982. $as_test_x conftest$ac_exeext
  15983. }; then
  15984. ac_cv_lib_inotify_inotify_init=yes
  15985. else
  15986. $as_echo "$as_me: failed program was:" >&5
  15987. sed 's/^/| /' conftest.$ac_ext >&5
  15988.  
  15989. ac_cv_lib_inotify_inotify_init=no
  15990. fi
  15991.  
  15992. rm -rf conftest.dSYM
  15993. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  15994. conftest$ac_exeext conftest.$ac_ext
  15995. LIBS=$ac_check_lib_save_LIBS
  15996. fi
  15997. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inotify_inotify_init" >&5
  15998. $as_echo "$ac_cv_lib_inotify_inotify_init" >&6; }
  15999. if test "x$ac_cv_lib_inotify_inotify_init" = x""yes; then
  16000.  
  16001. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16002. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16003. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16004. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16005. $as_echo_n "(cached) " >&6
  16006. fi
  16007. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16008. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16009. else
  16010. # Is the header compilable?
  16011. { $as_echo "$as_me:$LINENO: checking sys/inotify.h usability" >&5
  16012. $as_echo_n "checking sys/inotify.h usability... " >&6; }
  16013. cat >conftest.$ac_ext <<_ACEOF
  16014. /* confdefs.h. */
  16015. _ACEOF
  16016. cat confdefs.h >>conftest.$ac_ext
  16017. cat >>conftest.$ac_ext <<_ACEOF
  16018. /* end confdefs.h. */
  16019. $ac_includes_default
  16020. #include <sys/inotify.h>
  16021. _ACEOF
  16022. rm -f conftest.$ac_objext
  16023. if { (ac_try="$ac_compile"
  16024. case "(($ac_try" in
  16025. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16026. *) ac_try_echo=$ac_try;;
  16027. esac
  16028. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16029. $as_echo "$ac_try_echo") >&5
  16030. (eval "$ac_compile") 2>conftest.er1
  16031. ac_status=$?
  16032. grep -v '^ *+' conftest.er1 >conftest.err
  16033. rm -f conftest.er1
  16034. cat conftest.err >&5
  16035. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16036. (exit $ac_status); } && {
  16037. test -z "$ac_c_werror_flag" ||
  16038. test ! -s conftest.err
  16039. } && test -s conftest.$ac_objext; then
  16040. ac_header_compiler=yes
  16041. else
  16042. $as_echo "$as_me: failed program was:" >&5
  16043. sed 's/^/| /' conftest.$ac_ext >&5
  16044.  
  16045. ac_header_compiler=no
  16046. fi
  16047.  
  16048. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16049. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16050. $as_echo "$ac_header_compiler" >&6; }
  16051.  
  16052. # Is the header present?
  16053. { $as_echo "$as_me:$LINENO: checking sys/inotify.h presence" >&5
  16054. $as_echo_n "checking sys/inotify.h presence... " >&6; }
  16055. cat >conftest.$ac_ext <<_ACEOF
  16056. /* confdefs.h. */
  16057. _ACEOF
  16058. cat confdefs.h >>conftest.$ac_ext
  16059. cat >>conftest.$ac_ext <<_ACEOF
  16060. /* end confdefs.h. */
  16061. #include <sys/inotify.h>
  16062. _ACEOF
  16063. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16064. case "(($ac_try" in
  16065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16066. *) ac_try_echo=$ac_try;;
  16067. esac
  16068. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16069. $as_echo "$ac_try_echo") >&5
  16070. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16071. ac_status=$?
  16072. grep -v '^ *+' conftest.er1 >conftest.err
  16073. rm -f conftest.er1
  16074. cat conftest.err >&5
  16075. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16076. (exit $ac_status); } >/dev/null && {
  16077. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16078. test ! -s conftest.err
  16079. }; then
  16080. ac_header_preproc=yes
  16081. else
  16082. $as_echo "$as_me: failed program was:" >&5
  16083. sed 's/^/| /' conftest.$ac_ext >&5
  16084.  
  16085. ac_header_preproc=no
  16086. fi
  16087.  
  16088. rm -f conftest.err conftest.$ac_ext
  16089. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16090. $as_echo "$ac_header_preproc" >&6; }
  16091.  
  16092. # So? What about this header?
  16093. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16094. yes:no:
  16095. fi
  16096.  
  16097. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16098. $as_echo "$as_me: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16099. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the compiler's result" >&5
  16100. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the compiler's result" >&2;}
  16101. ac_header_preproc=yes
  16102. ;;
  16103. no:yes:* )
  16104. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: present but cannot be compiled" >&5
  16105. $as_echo "$as_me: WARNING: sys/inotify.h: present but cannot be compiled" >&2;}
  16106. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&5
  16107. $as_echo "$as_me: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&2;}
  16108. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: see the Autoconf documentation" >&5
  16109. $as_echo "$as_me: WARNING: sys/inotify.h: see the Autoconf documentation" >&2;}
  16110. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&5
  16111. $as_echo "$as_me: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16112. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&5
  16113. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&2;}
  16114. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&5
  16115. $as_echo "$as_me: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&2;}
  16116. ( cat <<\_ASBOX
  16117. ## ------------------------------------------------------ ##
  16118. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  16119. ## ------------------------------------------------------ ##
  16120. _ASBOX
  16121. ) | sed "s/^/$as_me: WARNING: /" >&2
  16122. ;;
  16123. esac
  16124. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16125. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16126. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16127. $as_echo_n "(cached) " >&6
  16128. else
  16129. ac_cv_header_sys_inotify_h=$ac_header_preproc
  16130. fi
  16131. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16132. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16133.  
  16134. fi
  16135. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then
  16136.  
  16137. LDFLAGS="${LDFLAGS} -linotify"
  16138. HAVE_INOTIFY=1
  16139.  
  16140. fi
  16141.  
  16142.  
  16143.  
  16144. fi
  16145.  
  16146. )
  16147. ;;
  16148. native)
  16149. { $as_echo "$as_me:$LINENO: checking for inotify_init" >&5
  16150. $as_echo_n "checking for inotify_init... " >&6; }
  16151. if test "${ac_cv_func_inotify_init+set}" = set; then
  16152. $as_echo_n "(cached) " >&6
  16153. else
  16154. cat >conftest.$ac_ext <<_ACEOF
  16155. /* confdefs.h. */
  16156. _ACEOF
  16157. cat confdefs.h >>conftest.$ac_ext
  16158. cat >>conftest.$ac_ext <<_ACEOF
  16159. /* end confdefs.h. */
  16160. /* Define inotify_init to an innocuous variant, in case <limits.h> declares inotify_init.
  16161. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16162. #define inotify_init innocuous_inotify_init
  16163.  
  16164. /* System header to define __stub macros and hopefully few prototypes,
  16165. which can conflict with char inotify_init (); below.
  16166. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16167. <limits.h> exists even on freestanding compilers. */
  16168.  
  16169. #ifdef __STDC__
  16170. # include <limits.h>
  16171. #else
  16172. # include <assert.h>
  16173. #endif
  16174.  
  16175. #undef inotify_init
  16176.  
  16177. /* Override any GCC internal prototype to avoid an error.
  16178. Use char because int might match the return type of a GCC
  16179. builtin and then its argument prototype would still apply. */
  16180. #ifdef __cplusplus
  16181. extern "C"
  16182. #endif
  16183. char inotify_init ();
  16184. /* The GNU C library defines this for functions which it implements
  16185. to always fail with ENOSYS. Some functions are actually named
  16186. something starting with __ and the normal name is an alias. */
  16187. #if defined __stub_inotify_init || defined __stub___inotify_init
  16188. choke me
  16189. #endif
  16190.  
  16191. int
  16192. main ()
  16193. {
  16194. return inotify_init ();
  16195. ;
  16196. return 0;
  16197. }
  16198. _ACEOF
  16199. rm -f conftest.$ac_objext conftest$ac_exeext
  16200. if { (ac_try="$ac_link"
  16201. case "(($ac_try" in
  16202. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16203. *) ac_try_echo=$ac_try;;
  16204. esac
  16205. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16206. $as_echo "$ac_try_echo") >&5
  16207. (eval "$ac_link") 2>conftest.er1
  16208. ac_status=$?
  16209. grep -v '^ *+' conftest.er1 >conftest.err
  16210. rm -f conftest.er1
  16211. cat conftest.err >&5
  16212. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16213. (exit $ac_status); } && {
  16214. test -z "$ac_c_werror_flag" ||
  16215. test ! -s conftest.err
  16216. } && test -s conftest$ac_exeext && {
  16217. test "$cross_compiling" = yes ||
  16218. $as_test_x conftest$ac_exeext
  16219. }; then
  16220. ac_cv_func_inotify_init=yes
  16221. else
  16222. $as_echo "$as_me: failed program was:" >&5
  16223. sed 's/^/| /' conftest.$ac_ext >&5
  16224.  
  16225. ac_cv_func_inotify_init=no
  16226. fi
  16227.  
  16228. rm -rf conftest.dSYM
  16229. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16230. conftest$ac_exeext conftest.$ac_ext
  16231. fi
  16232. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inotify_init" >&5
  16233. $as_echo "$ac_cv_func_inotify_init" >&6; }
  16234. if test "x$ac_cv_func_inotify_init" = x""yes; then
  16235.  
  16236. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16237. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16238. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16239. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16240. $as_echo_n "(cached) " >&6
  16241. fi
  16242. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16243. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16244. else
  16245. # Is the header compilable?
  16246. { $as_echo "$as_me:$LINENO: checking sys/inotify.h usability" >&5
  16247. $as_echo_n "checking sys/inotify.h usability... " >&6; }
  16248. cat >conftest.$ac_ext <<_ACEOF
  16249. /* confdefs.h. */
  16250. _ACEOF
  16251. cat confdefs.h >>conftest.$ac_ext
  16252. cat >>conftest.$ac_ext <<_ACEOF
  16253. /* end confdefs.h. */
  16254. $ac_includes_default
  16255. #include <sys/inotify.h>
  16256. _ACEOF
  16257. rm -f conftest.$ac_objext
  16258. if { (ac_try="$ac_compile"
  16259. case "(($ac_try" in
  16260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16261. *) ac_try_echo=$ac_try;;
  16262. esac
  16263. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16264. $as_echo "$ac_try_echo") >&5
  16265. (eval "$ac_compile") 2>conftest.er1
  16266. ac_status=$?
  16267. grep -v '^ *+' conftest.er1 >conftest.err
  16268. rm -f conftest.er1
  16269. cat conftest.err >&5
  16270. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16271. (exit $ac_status); } && {
  16272. test -z "$ac_c_werror_flag" ||
  16273. test ! -s conftest.err
  16274. } && test -s conftest.$ac_objext; then
  16275. ac_header_compiler=yes
  16276. else
  16277. $as_echo "$as_me: failed program was:" >&5
  16278. sed 's/^/| /' conftest.$ac_ext >&5
  16279.  
  16280. ac_header_compiler=no
  16281. fi
  16282.  
  16283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16284. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16285. $as_echo "$ac_header_compiler" >&6; }
  16286.  
  16287. # Is the header present?
  16288. { $as_echo "$as_me:$LINENO: checking sys/inotify.h presence" >&5
  16289. $as_echo_n "checking sys/inotify.h presence... " >&6; }
  16290. cat >conftest.$ac_ext <<_ACEOF
  16291. /* confdefs.h. */
  16292. _ACEOF
  16293. cat confdefs.h >>conftest.$ac_ext
  16294. cat >>conftest.$ac_ext <<_ACEOF
  16295. /* end confdefs.h. */
  16296. #include <sys/inotify.h>
  16297. _ACEOF
  16298. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16299. case "(($ac_try" in
  16300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16301. *) ac_try_echo=$ac_try;;
  16302. esac
  16303. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16304. $as_echo "$ac_try_echo") >&5
  16305. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16306. ac_status=$?
  16307. grep -v '^ *+' conftest.er1 >conftest.err
  16308. rm -f conftest.er1
  16309. cat conftest.err >&5
  16310. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16311. (exit $ac_status); } >/dev/null && {
  16312. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16313. test ! -s conftest.err
  16314. }; then
  16315. ac_header_preproc=yes
  16316. else
  16317. $as_echo "$as_me: failed program was:" >&5
  16318. sed 's/^/| /' conftest.$ac_ext >&5
  16319.  
  16320. ac_header_preproc=no
  16321. fi
  16322.  
  16323. rm -f conftest.err conftest.$ac_ext
  16324. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16325. $as_echo "$ac_header_preproc" >&6; }
  16326.  
  16327. # So? What about this header?
  16328. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16329. yes:no: )
  16330. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16331. $as_echo "$as_me: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16332. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the compiler's result" >&5
  16333. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the compiler's result" >&2;}
  16334. ac_header_preproc=yes
  16335. ;;
  16336. no:yes:* )
  16337. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: present but cannot be compiled" >&5
  16338. $as_echo "$as_me: WARNING: sys/inotify.h: present but cannot be compiled" >&2;}
  16339. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&5
  16340. $as_echo "$as_me: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&2;}
  16341. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: see the Autoconf documentation" >&5
  16342. $as_echo "$as_me: WARNING: sys/inotify.h: see the Autoconf documentation" >&2;}
  16343. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&5
  16344. $as_echo "$as_me: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16345. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&5
  16346. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&2;}
  16347. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&5
  16348. $as_echo "$as_me: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&2;}
  16349. ( cat <<\_ASBOX
  16350. ## ------------------------------------------------------ ##
  16351. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  16352. ## ------------------------------------------------------ ##
  16353. _ASBOX
  16354. ) | sed "s/^/$as_me: WARNING: /" >&2
  16355. ;;
  16356. esac
  16357. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16358. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16359. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16360. $as_echo_n "(cached) " >&6
  16361. else
  16362. ac_cv_header_sys_inotify_h=$ac_header_preproc
  16363. fi
  16364. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16365. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16366.  
  16367. fi
  16368. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then
  16369. :
  16370. else
  16371. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16372. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16373. { { $as_echo "$as_me:$LINENO: error: Cannot find sys/inotify.h
  16374. See \`config.log' for more details." >&5
  16375. $as_echo "$as_me: error: Cannot find sys/inotify.h
  16376. See \`config.log' for more details." >&2;}
  16377. { (exit 1); exit 1; }; }; }
  16378. fi
  16379.  
  16380.  
  16381. HAVE_INOTIFY=2
  16382.  
  16383. else
  16384.  
  16385. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16386. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16387. { { $as_echo "$as_me:$LINENO: error: There is no inotify native support on this system
  16388. See \`config.log' for more details." >&5
  16389. $as_echo "$as_me: error: There is no inotify native support on this system
  16390. See \`config.log' for more details." >&2;}
  16391. { (exit 1); exit 1; }; }; }
  16392.  
  16393.  
  16394. fi
  16395.  
  16396. ;;
  16397. lib)
  16398. { $as_echo "$as_me:$LINENO: checking for inotify_init in -linotify" >&5
  16399. $as_echo_n "checking for inotify_init in -linotify... " >&6; }
  16400. if test "${ac_cv_lib_inotify_inotify_init+set}" = set; then
  16401. $as_echo_n "(cached) " >&6
  16402. else
  16403. ac_check_lib_save_LIBS=$LIBS
  16404. LIBS="-linotify $LIBS"
  16405. cat >conftest.$ac_ext <<_ACEOF
  16406. /* confdefs.h. */
  16407. _ACEOF
  16408. cat confdefs.h >>conftest.$ac_ext
  16409. cat >>conftest.$ac_ext <<_ACEOF
  16410. /* end confdefs.h. */
  16411.  
  16412. /* Override any GCC internal prototype to avoid an error.
  16413. Use char because int might match the return type of a GCC
  16414. builtin and then its argument prototype would still apply. */
  16415. #ifdef __cplusplus
  16416. extern "C"
  16417. #endif
  16418. char inotify_init ();
  16419. int
  16420. main ()
  16421. {
  16422. return inotify_init ();
  16423. ;
  16424. return 0;
  16425. }
  16426. _ACEOF
  16427. rm -f conftest.$ac_objext conftest$ac_exeext
  16428. if { (ac_try="$ac_link"
  16429. case "(($ac_try" in
  16430. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16431. *) ac_try_echo=$ac_try;;
  16432. esac
  16433. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16434. $as_echo "$ac_try_echo") >&5
  16435. (eval "$ac_link") 2>conftest.er1
  16436. ac_status=$?
  16437. grep -v '^ *+' conftest.er1 >conftest.err
  16438. rm -f conftest.er1
  16439. cat conftest.err >&5
  16440. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16441. (exit $ac_status); } && {
  16442. test -z "$ac_c_werror_flag" ||
  16443. test ! -s conftest.err
  16444. } && test -s conftest$ac_exeext && {
  16445. test "$cross_compiling" = yes ||
  16446. $as_test_x conftest$ac_exeext
  16447. }; then
  16448. ac_cv_lib_inotify_inotify_init=yes
  16449. else
  16450. $as_echo "$as_me: failed program was:" >&5
  16451. sed 's/^/| /' conftest.$ac_ext >&5
  16452.  
  16453. ac_cv_lib_inotify_inotify_init=no
  16454. fi
  16455.  
  16456. rm -rf conftest.dSYM
  16457. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16458. conftest$ac_exeext conftest.$ac_ext
  16459. LIBS=$ac_check_lib_save_LIBS
  16460. fi
  16461. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_inotify_inotify_init" >&5
  16462. $as_echo "$ac_cv_lib_inotify_inotify_init" >&6; }
  16463. if test "x$ac_cv_lib_inotify_inotify_init" = x""yes; then
  16464.  
  16465. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16466. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16467. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16468. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16469. $as_echo_n "(cached) " >&6
  16470. fi
  16471. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16472. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16473. else
  16474. # Is the header compilable?
  16475. { $as_echo "$as_me:$LINENO: checking sys/inotify.h usability" >&5
  16476. $as_echo_n "checking sys/inotify.h usability... " >&6; }
  16477. cat >conftest.$ac_ext <<_ACEOF
  16478. /* confdefs.h. */
  16479. _ACEOF
  16480. cat confdefs.h >>conftest.$ac_ext
  16481. cat >>conftest.$ac_ext <<_ACEOF
  16482. /* end confdefs.h. */
  16483. $ac_includes_default
  16484. #include <sys/inotify.h>
  16485. _ACEOF
  16486. rm -f conftest.$ac_objext
  16487. if { (ac_try="$ac_compile"
  16488. case "(($ac_try" in
  16489. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16490. *) ac_try_echo=$ac_try;;
  16491. esac
  16492. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16493. $as_echo "$ac_try_echo") >&5
  16494. (eval "$ac_compile") 2>conftest.er1
  16495. ac_status=$?
  16496. grep -v '^ *+' conftest.er1 >conftest.err
  16497. rm -f conftest.er1
  16498. cat conftest.err >&5
  16499. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16500. (exit $ac_status); } && {
  16501. test -z "$ac_c_werror_flag" ||
  16502. test ! -s conftest.err
  16503. } && test -s conftest.$ac_objext; then
  16504. ac_header_compiler=yes
  16505. else
  16506. $as_echo "$as_me: failed program was:" >&5
  16507. sed 's/^/| /' conftest.$ac_ext >&5
  16508.  
  16509. ac_header_compiler=no
  16510. fi
  16511.  
  16512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16513. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  16514. $as_echo "$ac_header_compiler" >&6; }
  16515.  
  16516. # Is the header present?
  16517. { $as_echo "$as_me:$LINENO: checking sys/inotify.h presence" >&5
  16518. $as_echo_n "checking sys/inotify.h presence... " >&6; }
  16519. cat >conftest.$ac_ext <<_ACEOF
  16520. /* confdefs.h. */
  16521. _ACEOF
  16522. cat confdefs.h >>conftest.$ac_ext
  16523. cat >>conftest.$ac_ext <<_ACEOF
  16524. /* end confdefs.h. */
  16525. #include <sys/inotify.h>
  16526. _ACEOF
  16527. if { (ac_try="$ac_cpp conftest.$ac_ext"
  16528. case "(($ac_try" in
  16529. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16530. *) ac_try_echo=$ac_try;;
  16531. esac
  16532. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16533. $as_echo "$ac_try_echo") >&5
  16534. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  16535. ac_status=$?
  16536. grep -v '^ *+' conftest.er1 >conftest.err
  16537. rm -f conftest.er1
  16538. cat conftest.err >&5
  16539. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16540. (exit $ac_status); } >/dev/null && {
  16541. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  16542. test ! -s conftest.err
  16543. }; then
  16544. ac_header_preproc=yes
  16545. else
  16546. $as_echo "$as_me: failed program was:" >&5
  16547. sed 's/^/| /' conftest.$ac_ext >&5
  16548.  
  16549. ac_header_preproc=no
  16550. fi
  16551.  
  16552. rm -f conftest.err conftest.$ac_ext
  16553. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  16554. $as_echo "$ac_header_preproc" >&6; }
  16555.  
  16556. # So? What about this header?
  16557. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  16558. yes:no: )
  16559. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&5
  16560. $as_echo "$as_me: WARNING: sys/inotify.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  16561. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the compiler's result" >&5
  16562. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the compiler's result" >&2;}
  16563. ac_header_preproc=yes
  16564. ;;
  16565. no:yes:* )
  16566. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: present but cannot be compiled" >&5
  16567. $as_echo "$as_me: WARNING: sys/inotify.h: present but cannot be compiled" >&2;}
  16568. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&5
  16569. $as_echo "$as_me: WARNING: sys/inotify.h: check for missing prerequisite headers?" >&2;}
  16570. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: see the Autoconf documentation" >&5
  16571. $as_echo "$as_me: WARNING: sys/inotify.h: see the Autoconf documentation" >&2;}
  16572. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&5
  16573. $as_echo "$as_me: WARNING: sys/inotify.h: section \"Present But Cannot Be Compiled\"" >&2;}
  16574. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&5
  16575. $as_echo "$as_me: WARNING: sys/inotify.h: proceeding with the preprocessor's result" >&2;}
  16576. { $as_echo "$as_me:$LINENO: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&5
  16577. $as_echo "$as_me: WARNING: sys/inotify.h: in the future, the compiler will take precedence" >&2;}
  16578. ( cat <<\_ASBOX
  16579. ## ------------------------------------------------------ ##
  16580. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  16581. ## ------------------------------------------------------ ##
  16582. _ASBOX
  16583. ) | sed "s/^/$as_me: WARNING: /" >&2
  16584. ;;
  16585. esac
  16586. { $as_echo "$as_me:$LINENO: checking for sys/inotify.h" >&5
  16587. $as_echo_n "checking for sys/inotify.h... " >&6; }
  16588. if test "${ac_cv_header_sys_inotify_h+set}" = set; then
  16589. $as_echo_n "(cached) " >&6
  16590. else
  16591. ac_cv_header_sys_inotify_h=$ac_header_preproc
  16592. fi
  16593. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_inotify_h" >&5
  16594. $as_echo "$ac_cv_header_sys_inotify_h" >&6; }
  16595.  
  16596. fi
  16597. if test "x$ac_cv_header_sys_inotify_h" = x""yes; then
  16598. :
  16599. else
  16600. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16601. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16602. { { $as_echo "$as_me:$LINENO: error: Cannot find sys/inotify.h
  16603. See \`config.log' for more details." >&5
  16604. $as_echo "$as_me: error: Cannot find sys/inotify.h
  16605. See \`config.log' for more details." >&2;}
  16606. { (exit 1); exit 1; }; }; }
  16607. fi
  16608.  
  16609.  
  16610. LDFLAGS="${LDFLAGS} -linotify"
  16611. HAVE_INOTIFY=1
  16612.  
  16613. else
  16614.  
  16615. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16616. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16617. { { $as_echo "$as_me:$LINENO: error: Cannot find libinotify
  16618. See \`config.log' for more details." >&5
  16619. $as_echo "$as_me: error: Cannot find libinotify
  16620. See \`config.log' for more details." >&2;}
  16621. { (exit 1); exit 1; }; }; }
  16622.  
  16623.  
  16624. fi
  16625.  
  16626. ;;
  16627. esac
  16628.  
  16629. case "$with_gio" in
  16630. check)
  16631.  
  16632. pkg_failed=no
  16633. { $as_echo "$as_me:$LINENO: checking for GIO" >&5
  16634. $as_echo_n "checking for GIO... " >&6; }
  16635.  
  16636. if test -n "$GIO_CFLAGS"; then
  16637. pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
  16638. elif test -n "$PKG_CONFIG"; then
  16639. if test -n "$PKG_CONFIG" && \
  16640. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
  16641. ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
  16642. ac_status=$?
  16643. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16644. (exit $ac_status); }; then
  16645. pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
  16646. test "x$?" != "x0" && pkg_failed=yes
  16647. else
  16648. pkg_failed=yes
  16649. fi
  16650. else
  16651. pkg_failed=untried
  16652. fi
  16653. if test -n "$GIO_LIBS"; then
  16654. pkg_cv_GIO_LIBS="$GIO_LIBS"
  16655. elif test -n "$PKG_CONFIG"; then
  16656. if test -n "$PKG_CONFIG" && \
  16657. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
  16658. ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
  16659. ac_status=$?
  16660. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16661. (exit $ac_status); }; then
  16662. pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
  16663. test "x$?" != "x0" && pkg_failed=yes
  16664. else
  16665. pkg_failed=yes
  16666. fi
  16667. else
  16668. pkg_failed=untried
  16669. fi
  16670.  
  16671.  
  16672.  
  16673. if test $pkg_failed = yes; then
  16674. { $as_echo "$as_me:$LINENO: result: no" >&5
  16675. $as_echo "no" >&6; }
  16676.  
  16677. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16678. _pkg_short_errors_supported=yes
  16679. else
  16680. _pkg_short_errors_supported=no
  16681. fi
  16682. if test $_pkg_short_errors_supported = yes; then
  16683. GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
  16684. else
  16685. GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
  16686. fi
  16687. # Put the nasty error message in config.log where it belongs
  16688. echo "$GIO_PKG_ERRORS" >&5
  16689.  
  16690. { { $as_echo "$as_me:$LINENO: error: Package requirements (gio-2.0) were not met:
  16691.  
  16692. $GIO_PKG_ERRORS
  16693.  
  16694. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16695. installed software in a non-standard prefix.
  16696.  
  16697. Alternatively, you may set the environment variables GIO_CFLAGS
  16698. and GIO_LIBS to avoid the need to call pkg-config.
  16699. See the pkg-config man page for more details." >&5
  16700. $as_echo "$as_me: error: Package requirements (gio-2.0) were not met:
  16701.  
  16702. $GIO_PKG_ERRORS
  16703.  
  16704. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  16705. installed software in a non-standard prefix.
  16706.  
  16707. Alternatively, you may set the environment variables GIO_CFLAGS
  16708. and GIO_LIBS to avoid the need to call pkg-config.
  16709. See the pkg-config man page for more details." >&2;}
  16710. { (exit 1); exit 1; }; }
  16711. elif test $pkg_failed = untried; then
  16712. { $as_echo "$as_me:$LINENO: result: no" >&5
  16713. $as_echo "no" >&6; }
  16714. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16715. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16716. { { $as_echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it
  16717. is in your PATH or set the PKG_CONFIG environment variable to the full
  16718. path to pkg-config.
  16719.  
  16720. Alternatively, you may set the environment variables GIO_CFLAGS
  16721. and GIO_LIBS to avoid the need to call pkg-config.
  16722. See the pkg-config man page for more details.
  16723.  
  16724. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16725. See \`config.log' for more details." >&5
  16726. $as_echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it
  16727. is in your PATH or set the PKG_CONFIG environment variable to the full
  16728. path to pkg-config.
  16729.  
  16730. Alternatively, you may set the environment variables GIO_CFLAGS
  16731. and GIO_LIBS to avoid the need to call pkg-config.
  16732. See the pkg-config man page for more details.
  16733.  
  16734. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  16735. See \`config.log' for more details." >&2;}
  16736. { (exit 1); exit 1; }; }; }
  16737. else
  16738. GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
  16739. GIO_LIBS=$pkg_cv_GIO_LIBS
  16740. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16741. $as_echo "yes" >&6; }
  16742.  
  16743. HAVE_GIO=1
  16744.  
  16745.  
  16746.  
  16747. fi
  16748. ;;
  16749. lib)
  16750.  
  16751. pkg_failed=no
  16752. { $as_echo "$as_me:$LINENO: checking for GIO" >&5
  16753. $as_echo_n "checking for GIO... " >&6; }
  16754.  
  16755. if test -n "$GIO_CFLAGS"; then
  16756. pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
  16757. elif test -n "$PKG_CONFIG"; then
  16758. if test -n "$PKG_CONFIG" && \
  16759. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
  16760. ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
  16761. ac_status=$?
  16762. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16763. (exit $ac_status); }; then
  16764. pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
  16765. test "x$?" != "x0" && pkg_failed=yes
  16766. else
  16767. pkg_failed=yes
  16768. fi
  16769. else
  16770. pkg_failed=untried
  16771. fi
  16772. if test -n "$GIO_LIBS"; then
  16773. pkg_cv_GIO_LIBS="$GIO_LIBS"
  16774. elif test -n "$PKG_CONFIG"; then
  16775. if test -n "$PKG_CONFIG" && \
  16776. { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gio-2.0\"") >&5
  16777. ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
  16778. ac_status=$?
  16779. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16780. (exit $ac_status); }; then
  16781. pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
  16782. test "x$?" != "x0" && pkg_failed=yes
  16783. else
  16784. pkg_failed=yes
  16785. fi
  16786. else
  16787. pkg_failed=untried
  16788. fi
  16789.  
  16790.  
  16791.  
  16792. if test $pkg_failed = yes; then
  16793. { $as_echo "$as_me:$LINENO: result: no" >&5
  16794. $as_echo "no" >&6; }
  16795.  
  16796. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  16797. _pkg_short_errors_supported=yes
  16798. else
  16799. _pkg_short_errors_supported=no
  16800. fi
  16801. if test $_pkg_short_errors_supported = yes; then
  16802. GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
  16803. else
  16804. GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
  16805. fi
  16806. # Put the nasty error message in config.log where it belongs
  16807. echo "$GIO_PKG_ERRORS" >&5
  16808.  
  16809.  
  16810. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16812. { { $as_echo "$as_me:$LINENO: error: Cannot find libgio-2.0
  16813. See \`config.log' for more details." >&5
  16814. $as_echo "$as_me: error: Cannot find libgio-2.0
  16815. See \`config.log' for more details." >&2;}
  16816. { (exit 1); exit 1; }; }; }
  16817.  
  16818. elif test $pkg_failed = untried; then
  16819. { $as_echo "$as_me:$LINENO: result: no" >&5
  16820. $as_echo "no" >&6; }
  16821.  
  16822. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  16823. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16824. { { $as_echo "$as_me:$LINENO: error: Cannot find libgio-2.0
  16825. See \`config.log' for more details." >&5
  16826. $as_echo "$as_me: error: Cannot find libgio-2.0
  16827. See \`config.log' for more details." >&2;}
  16828. { (exit 1); exit 1; }; }; }
  16829.  
  16830. else
  16831. GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
  16832. GIO_LIBS=$pkg_cv_GIO_LIBS
  16833. { $as_echo "$as_me:$LINENO: result: yes" >&5
  16834. $as_echo "yes" >&6; }
  16835.  
  16836. HAVE_GIO=1
  16837.  
  16838.  
  16839.  
  16840. fi
  16841. ;;
  16842. esac
  16843.  
  16844. case "$with_bsm" in
  16845. check)
  16846. { $as_echo "$as_me:$LINENO: checking for au_fetch_tok" >&5
  16847. $as_echo_n "checking for au_fetch_tok... " >&6; }
  16848. if test "${ac_cv_func_au_fetch_tok+set}" = set; then
  16849. $as_echo_n "(cached) " >&6
  16850. else
  16851. cat >conftest.$ac_ext <<_ACEOF
  16852. /* confdefs.h. */
  16853. _ACEOF
  16854. cat confdefs.h >>conftest.$ac_ext
  16855. cat >>conftest.$ac_ext <<_ACEOF
  16856. /* end confdefs.h. */
  16857. /* Define au_fetch_tok to an innocuous variant, in case <limits.h> declares au_fetch_tok.
  16858. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16859. #define au_fetch_tok innocuous_au_fetch_tok
  16860.  
  16861. /* System header to define __stub macros and hopefully few prototypes,
  16862. which can conflict with char au_fetch_tok (); below.
  16863. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16864. <limits.h> exists even on freestanding compilers. */
  16865.  
  16866. #ifdef __STDC__
  16867. # include <limits.h>
  16868. #else
  16869. # include <assert.h>
  16870. #endif
  16871.  
  16872. #undef au_fetch_tok
  16873.  
  16874. /* Override any GCC internal prototype to avoid an error.
  16875. Use char because int might match the return type of a GCC
  16876. builtin and then its argument prototype would still apply. */
  16877. #ifdef __cplusplus
  16878. extern "C"
  16879. #endif
  16880. char au_fetch_tok ();
  16881. /* The GNU C library defines this for functions which it implements
  16882. to always fail with ENOSYS. Some functions are actually named
  16883. something starting with __ and the normal name is an alias. */
  16884. #if defined __stub_au_fetch_tok || defined __stub___au_fetch_tok
  16885. choke me
  16886. #endif
  16887.  
  16888. int
  16889. main ()
  16890. {
  16891. return au_fetch_tok ();
  16892. ;
  16893. return 0;
  16894. }
  16895. _ACEOF
  16896. rm -f conftest.$ac_objext conftest$ac_exeext
  16897. if { (ac_try="$ac_link"
  16898. case "(($ac_try" in
  16899. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16900. *) ac_try_echo=$ac_try;;
  16901. esac
  16902. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16903. $as_echo "$ac_try_echo") >&5
  16904. (eval "$ac_link") 2>conftest.er1
  16905. ac_status=$?
  16906. grep -v '^ *+' conftest.er1 >conftest.err
  16907. rm -f conftest.er1
  16908. cat conftest.err >&5
  16909. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16910. (exit $ac_status); } && {
  16911. test -z "$ac_c_werror_flag" ||
  16912. test ! -s conftest.err
  16913. } && test -s conftest$ac_exeext && {
  16914. test "$cross_compiling" = yes ||
  16915. $as_test_x conftest$ac_exeext
  16916. }; then
  16917. ac_cv_func_au_fetch_tok=yes
  16918. else
  16919. $as_echo "$as_me: failed program was:" >&5
  16920. sed 's/^/| /' conftest.$ac_ext >&5
  16921.  
  16922. ac_cv_func_au_fetch_tok=no
  16923. fi
  16924.  
  16925. rm -rf conftest.dSYM
  16926. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16927. conftest$ac_exeext conftest.$ac_ext
  16928. fi
  16929. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_au_fetch_tok" >&5
  16930. $as_echo "$ac_cv_func_au_fetch_tok" >&6; }
  16931. if test "x$ac_cv_func_au_fetch_tok" = x""yes; then
  16932.  
  16933. HAVE_BSM=2
  16934.  
  16935. else
  16936. { $as_echo "$as_me:$LINENO: checking for au_fetch_tok in -lbsm" >&5
  16937. $as_echo_n "checking for au_fetch_tok in -lbsm... " >&6; }
  16938. if test "${ac_cv_lib_bsm_au_fetch_tok+set}" = set; then
  16939. $as_echo_n "(cached) " >&6
  16940. else
  16941. ac_check_lib_save_LIBS=$LIBS
  16942. LIBS="-lbsm $LIBS"
  16943. cat >conftest.$ac_ext <<_ACEOF
  16944. /* confdefs.h. */
  16945. _ACEOF
  16946. cat confdefs.h >>conftest.$ac_ext
  16947. cat >>conftest.$ac_ext <<_ACEOF
  16948. /* end confdefs.h. */
  16949.  
  16950. /* Override any GCC internal prototype to avoid an error.
  16951. Use char because int might match the return type of a GCC
  16952. builtin and then its argument prototype would still apply. */
  16953. #ifdef __cplusplus
  16954. extern "C"
  16955. #endif
  16956. char au_fetch_tok ();
  16957. int
  16958. main ()
  16959. {
  16960. return au_fetch_tok ();
  16961. ;
  16962. return 0;
  16963. }
  16964. _ACEOF
  16965. rm -f conftest.$ac_objext conftest$ac_exeext
  16966. if { (ac_try="$ac_link"
  16967. case "(($ac_try" in
  16968. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  16969. *) ac_try_echo=$ac_try;;
  16970. esac
  16971. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  16972. $as_echo "$ac_try_echo") >&5
  16973. (eval "$ac_link") 2>conftest.er1
  16974. ac_status=$?
  16975. grep -v '^ *+' conftest.er1 >conftest.err
  16976. rm -f conftest.er1
  16977. cat conftest.err >&5
  16978. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16979. (exit $ac_status); } && {
  16980. test -z "$ac_c_werror_flag" ||
  16981. test ! -s conftest.err
  16982. } && test -s conftest$ac_exeext && {
  16983. test "$cross_compiling" = yes ||
  16984. $as_test_x conftest$ac_exeext
  16985. }; then
  16986. ac_cv_lib_bsm_au_fetch_tok=yes
  16987. else
  16988. $as_echo "$as_me: failed program was:" >&5
  16989. sed 's/^/| /' conftest.$ac_ext >&5
  16990.  
  16991. ac_cv_lib_bsm_au_fetch_tok=no
  16992. fi
  16993.  
  16994. rm -rf conftest.dSYM
  16995. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  16996. conftest$ac_exeext conftest.$ac_ext
  16997. LIBS=$ac_check_lib_save_LIBS
  16998. fi
  16999. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_au_fetch_tok" >&5
  17000. $as_echo "$ac_cv_lib_bsm_au_fetch_tok" >&6; }
  17001. if test "x$ac_cv_lib_bsm_au_fetch_tok" = x""yes; then
  17002.  
  17003. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17004. { $as_echo "$as_me:$LINENO: checking for bsm/libbsm.h" >&5
  17005. $as_echo_n "checking for bsm/libbsm.h... " >&6; }
  17006. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17007. $as_echo_n "(cached) " >&6
  17008. fi
  17009. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bsm_libbsm_h" >&5
  17010. $as_echo "$ac_cv_header_bsm_libbsm_h" >&6; }
  17011. else
  17012. # Is the header compilable?
  17013. { $as_echo "$as_me:$LINENO: checking bsm/libbsm.h usability" >&5
  17014. $as_echo_n "checking bsm/libbsm.h usability... " >&6; }
  17015. cat >conftest.$ac_ext <<_ACEOF
  17016. /* confdefs.h. */
  17017. _ACEOF
  17018. cat confdefs.h >>conftest.$ac_ext
  17019. cat >>conftest.$ac_ext <<_ACEOF
  17020. /* end confdefs.h. */
  17021. $ac_includes_default
  17022. #include <bsm/libbsm.h>
  17023. _ACEOF
  17024. rm -f conftest.$ac_objext
  17025. if { (ac_try="$ac_compile"
  17026. case "(($ac_try" in
  17027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17028. *) ac_try_echo=$ac_try;;
  17029. esac
  17030. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17031. $as_echo "$ac_try_echo") >&5
  17032. (eval "$ac_compile") 2>conftest.er1
  17033. ac_status=$?
  17034. grep -v '^ *+' conftest.er1 >conftest.err
  17035. rm -f conftest.er1
  17036. cat conftest.err >&5
  17037. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17038. (exit $ac_status); } && {
  17039. test -z "$ac_c_werror_flag" ||
  17040. test ! -s conftest.err
  17041. } && test -s conftest.$ac_objext; then
  17042. ac_header_compiler=yes
  17043. else
  17044. $as_echo "$as_me: failed program was:" >&5
  17045. sed 's/^/| /' conftest.$ac_ext >&5
  17046.  
  17047. ac_header_compiler=no
  17048. fi
  17049.  
  17050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17051. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17052. $as_echo "$ac_header_compiler" >&6; }
  17053.  
  17054. # Is the header present?
  17055. { $as_echo "$as_me:$LINENO: checking bsm/libbsm.h presence" >&5
  17056. $as_echo_n "checking bsm/libbsm.h presence... " >&6; }
  17057. cat >conftest.$ac_ext <<_ACEOF
  17058. /* confdefs.h. */
  17059. _ACEOF
  17060. cat confdefs.h >>conftest.$ac_ext
  17061. cat >>conftest.$ac_ext <<_ACEOF
  17062. /* end confdefs.h. */
  17063. #include <bsm/libbsm.h>
  17064. _ACEOF
  17065. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17066. case "(($ac_try" in
  17067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17068. *) ac_try_echo=$ac_try;;
  17069. esac
  17070. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17071. $as_echo "$ac_try_echo") >&5
  17072. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17073. ac_status=$?
  17074. grep -v '^ *+' conftest.er1 >conftest.err
  17075. rm -f conftest.er1
  17076. cat conftest.err >&5
  17077. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17078. (exit $ac_status); } >/dev/null && {
  17079. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17080. test ! -s conftest.err
  17081. }; then
  17082. ac_header_preproc=yes
  17083. else
  17084. $as_echo "$as_me: failed program was:" >&5
  17085. sed 's/^/| /' conftest.$ac_ext >&5
  17086.  
  17087. ac_header_preproc=no
  17088. fi
  17089.  
  17090. rm -f conftest.err conftest.$ac_ext
  17091. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17092. $as_echo "$ac_header_preproc" >&6; }
  17093.  
  17094. # So? What about this header?
  17095. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17096. yes:no:
  17097. fi
  17098.  
  17099. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17100. $as_echo "$as_me: WARNING: bsm/libbsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17101. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: proceeding with the compiler's result" >&5
  17102. $as_echo "$as_me: WARNING: bsm/libbsm.h: proceeding with the compiler's result" >&2;}
  17103. ac_header_preproc=yes
  17104. ;;
  17105. no:yes:* )
  17106. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: present but cannot be compiled" >&5
  17107. $as_echo "$as_me: WARNING: bsm/libbsm.h: present but cannot be compiled" >&2;}
  17108. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: check for missing prerequisite headers?" >&5
  17109. $as_echo "$as_me: WARNING: bsm/libbsm.h: check for missing prerequisite headers?" >&2;}
  17110. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: see the Autoconf documentation" >&5
  17111. $as_echo "$as_me: WARNING: bsm/libbsm.h: see the Autoconf documentation" >&2;}
  17112. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: section \"Present But Cannot Be Compiled\"" >&5
  17113. $as_echo "$as_me: WARNING: bsm/libbsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17114. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: proceeding with the preprocessor's result" >&5
  17115. $as_echo "$as_me: WARNING: bsm/libbsm.h: proceeding with the preprocessor's result" >&2;}
  17116. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: in the future, the compiler will take precedence" >&5
  17117. $as_echo "$as_me: WARNING: bsm/libbsm.h: in the future, the compiler will take precedence" >&2;}
  17118. ( cat <<\_ASBOX
  17119. ## ------------------------------------------------------ ##
  17120. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  17121. ## ------------------------------------------------------ ##
  17122. _ASBOX
  17123. ) | sed "s/^/$as_me: WARNING: /" >&2
  17124. ;;
  17125. esac
  17126. { $as_echo "$as_me:$LINENO: checking for bsm/libbsm.h" >&5
  17127. $as_echo_n "checking for bsm/libbsm.h... " >&6; }
  17128. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17129. $as_echo_n "(cached) " >&6
  17130. else
  17131. ac_cv_header_bsm_libbsm_h=$ac_header_preproc
  17132. fi
  17133. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bsm_libbsm_h" >&5
  17134. $as_echo "$ac_cv_header_bsm_libbsm_h" >&6; }
  17135.  
  17136. fi
  17137. if test "x$ac_cv_header_bsm_libbsm_h" = x""yes; then
  17138.  
  17139. LDFLAGS="${LDFLAGS} -lbsm"
  17140. HAVE_BSM=1
  17141.  
  17142. fi
  17143.  
  17144.  
  17145.  
  17146. fi
  17147.  
  17148. )
  17149. ;;
  17150. lib)
  17151. { $as_echo "$as_me:$LINENO: checking for au_fetch_tok in -lbsm" >&5
  17152. $as_echo_n "checking for au_fetch_tok in -lbsm... " >&6; }
  17153. if test "${ac_cv_lib_bsm_au_fetch_tok+set}" = set; then
  17154. $as_echo_n "(cached) " >&6
  17155. else
  17156. ac_check_lib_save_LIBS=$LIBS
  17157. LIBS="-lbsm $LIBS"
  17158. cat >conftest.$ac_ext <<_ACEOF
  17159. /* confdefs.h. */
  17160. _ACEOF
  17161. cat confdefs.h >>conftest.$ac_ext
  17162. cat >>conftest.$ac_ext <<_ACEOF
  17163. /* end confdefs.h. */
  17164.  
  17165. /* Override any GCC internal prototype to avoid an error.
  17166. Use char because int might match the return type of a GCC
  17167. builtin and then its argument prototype would still apply. */
  17168. #ifdef __cplusplus
  17169. extern "C"
  17170. #endif
  17171. char au_fetch_tok ();
  17172. int
  17173. main ()
  17174. {
  17175. return au_fetch_tok ();
  17176. ;
  17177. return 0;
  17178. }
  17179. _ACEOF
  17180. rm -f conftest.$ac_objext conftest$ac_exeext
  17181. if { (ac_try="$ac_link"
  17182. case "(($ac_try" in
  17183. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17184. *) ac_try_echo=$ac_try;;
  17185. esac
  17186. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17187. $as_echo "$ac_try_echo") >&5
  17188. (eval "$ac_link") 2>conftest.er1
  17189. ac_status=$?
  17190. grep -v '^ *+' conftest.er1 >conftest.err
  17191. rm -f conftest.er1
  17192. cat conftest.err >&5
  17193. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17194. (exit $ac_status); } && {
  17195. test -z "$ac_c_werror_flag" ||
  17196. test ! -s conftest.err
  17197. } && test -s conftest$ac_exeext && {
  17198. test "$cross_compiling" = yes ||
  17199. $as_test_x conftest$ac_exeext
  17200. }; then
  17201. ac_cv_lib_bsm_au_fetch_tok=yes
  17202. else
  17203. $as_echo "$as_me: failed program was:" >&5
  17204. sed 's/^/| /' conftest.$ac_ext >&5
  17205.  
  17206. ac_cv_lib_bsm_au_fetch_tok=no
  17207. fi
  17208.  
  17209. rm -rf conftest.dSYM
  17210. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17211. conftest$ac_exeext conftest.$ac_ext
  17212. LIBS=$ac_check_lib_save_LIBS
  17213. fi
  17214. { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsm_au_fetch_tok" >&5
  17215. $as_echo "$ac_cv_lib_bsm_au_fetch_tok" >&6; }
  17216. if test "x$ac_cv_lib_bsm_au_fetch_tok" = x""yes; then
  17217.  
  17218. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17219. { $as_echo "$as_me:$LINENO: checking for bsm/libbsm.h" >&5
  17220. $as_echo_n "checking for bsm/libbsm.h... " >&6; }
  17221. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17222. $as_echo_n "(cached) " >&6
  17223. fi
  17224. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bsm_libbsm_h" >&5
  17225. $as_echo "$ac_cv_header_bsm_libbsm_h" >&6; }
  17226. else
  17227. # Is the header compilable?
  17228. { $as_echo "$as_me:$LINENO: checking bsm/libbsm.h usability" >&5
  17229. $as_echo_n "checking bsm/libbsm.h usability... " >&6; }
  17230. cat >conftest.$ac_ext <<_ACEOF
  17231. /* confdefs.h. */
  17232. _ACEOF
  17233. cat confdefs.h >>conftest.$ac_ext
  17234. cat >>conftest.$ac_ext <<_ACEOF
  17235. /* end confdefs.h. */
  17236. $ac_includes_default
  17237. #include <bsm/libbsm.h>
  17238. _ACEOF
  17239. rm -f conftest.$ac_objext
  17240. if { (ac_try="$ac_compile"
  17241. case "(($ac_try" in
  17242. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17243. *) ac_try_echo=$ac_try;;
  17244. esac
  17245. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17246. $as_echo "$ac_try_echo") >&5
  17247. (eval "$ac_compile") 2>conftest.er1
  17248. ac_status=$?
  17249. grep -v '^ *+' conftest.er1 >conftest.err
  17250. rm -f conftest.er1
  17251. cat conftest.err >&5
  17252. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17253. (exit $ac_status); } && {
  17254. test -z "$ac_c_werror_flag" ||
  17255. test ! -s conftest.err
  17256. } && test -s conftest.$ac_objext; then
  17257. ac_header_compiler=yes
  17258. else
  17259. $as_echo "$as_me: failed program was:" >&5
  17260. sed 's/^/| /' conftest.$ac_ext >&5
  17261.  
  17262. ac_header_compiler=no
  17263. fi
  17264.  
  17265. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17266. { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  17267. $as_echo "$ac_header_compiler" >&6; }
  17268.  
  17269. # Is the header present?
  17270. { $as_echo "$as_me:$LINENO: checking bsm/libbsm.h presence" >&5
  17271. $as_echo_n "checking bsm/libbsm.h presence... " >&6; }
  17272. cat >conftest.$ac_ext <<_ACEOF
  17273. /* confdefs.h. */
  17274. _ACEOF
  17275. cat confdefs.h >>conftest.$ac_ext
  17276. cat >>conftest.$ac_ext <<_ACEOF
  17277. /* end confdefs.h. */
  17278. #include <bsm/libbsm.h>
  17279. _ACEOF
  17280. if { (ac_try="$ac_cpp conftest.$ac_ext"
  17281. case "(($ac_try" in
  17282. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17283. *) ac_try_echo=$ac_try;;
  17284. esac
  17285. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17286. $as_echo "$ac_try_echo") >&5
  17287. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  17288. ac_status=$?
  17289. grep -v '^ *+' conftest.er1 >conftest.err
  17290. rm -f conftest.er1
  17291. cat conftest.err >&5
  17292. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17293. (exit $ac_status); } >/dev/null && {
  17294. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17295. test ! -s conftest.err
  17296. }; then
  17297. ac_header_preproc=yes
  17298. else
  17299. $as_echo "$as_me: failed program was:" >&5
  17300. sed 's/^/| /' conftest.$ac_ext >&5
  17301.  
  17302. ac_header_preproc=no
  17303. fi
  17304.  
  17305. rm -f conftest.err conftest.$ac_ext
  17306. { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  17307. $as_echo "$ac_header_preproc" >&6; }
  17308.  
  17309. # So? What about this header?
  17310. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  17311. yes:no: )
  17312. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: accepted by the compiler, rejected by the preprocessor!" >&5
  17313. $as_echo "$as_me: WARNING: bsm/libbsm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  17314. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: proceeding with the compiler's result" >&5
  17315. $as_echo "$as_me: WARNING: bsm/libbsm.h: proceeding with the compiler's result" >&2;}
  17316. ac_header_preproc=yes
  17317. ;;
  17318. no:yes:* )
  17319. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: present but cannot be compiled" >&5
  17320. $as_echo "$as_me: WARNING: bsm/libbsm.h: present but cannot be compiled" >&2;}
  17321. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: check for missing prerequisite headers?" >&5
  17322. $as_echo "$as_me: WARNING: bsm/libbsm.h: check for missing prerequisite headers?" >&2;}
  17323. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: see the Autoconf documentation" >&5
  17324. $as_echo "$as_me: WARNING: bsm/libbsm.h: see the Autoconf documentation" >&2;}
  17325. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: section \"Present But Cannot Be Compiled\"" >&5
  17326. $as_echo "$as_me: WARNING: bsm/libbsm.h: section \"Present But Cannot Be Compiled\"" >&2;}
  17327. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: proceeding with the preprocessor's result" >&5
  17328. $as_echo "$as_me: WARNING: bsm/libbsm.h: proceeding with the preprocessor's result" >&2;}
  17329. { $as_echo "$as_me:$LINENO: WARNING: bsm/libbsm.h: in the future, the compiler will take precedence" >&5
  17330. $as_echo "$as_me: WARNING: bsm/libbsm.h: in the future, the compiler will take precedence" >&2;}
  17331. ( cat <<\_ASBOX
  17332. ## ------------------------------------------------------ ##
  17333. ## Report this to Dmitry Yu Okunev <dyokunev@ut.mephi.ru> ##
  17334. ## ------------------------------------------------------ ##
  17335. _ASBOX
  17336. ) | sed "s/^/$as_me: WARNING: /" >&2
  17337. ;;
  17338. esac
  17339. { $as_echo "$as_me:$LINENO: checking for bsm/libbsm.h" >&5
  17340. $as_echo_n "checking for bsm/libbsm.h... " >&6; }
  17341. if test "${ac_cv_header_bsm_libbsm_h+set}" = set; then
  17342. $as_echo_n "(cached) " >&6
  17343. else
  17344. ac_cv_header_bsm_libbsm_h=$ac_header_preproc
  17345. fi
  17346. { $as_echo "$as_me:$LINENO: result: $ac_cv_header_bsm_libbsm_h" >&5
  17347. $as_echo "$ac_cv_header_bsm_libbsm_h" >&6; }
  17348.  
  17349. fi
  17350. if test "x$ac_cv_header_bsm_libbsm_h" = x""yes; then
  17351. :
  17352. else
  17353. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17354. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17355. { { $as_echo "$as_me:$LINENO: error: Cannot find bsm/libbsm.h
  17356. See \`config.log' for more details." >&5
  17357. $as_echo "$as_me: error: Cannot find bsm/libbsm.h
  17358. See \`config.log' for more details." >&2;}
  17359. { (exit 1); exit 1; }; }; }
  17360. fi
  17361.  
  17362.  
  17363. LDFLAGS="${LDFLAGS} -lbsm"
  17364. HAVE_BSM=1
  17365.  
  17366. else
  17367.  
  17368. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17369. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17370. { { $as_echo "$as_me:$LINENO: error: Cannot find libbsm
  17371. See \`config.log' for more details." >&5
  17372. $as_echo "$as_me: error: Cannot find libbsm
  17373. See \`config.log' for more details." >&2;}
  17374. { (exit 1); exit 1; }; }; }
  17375.  
  17376.  
  17377. fi
  17378.  
  17379. ;;
  17380. esac
  17381. #AC_CHECK_PROG([HAVE_DTRACEPIPE], [dtrace], [found])
  17382.  
  17383. if test "$HAVE_INOTIFY" != ""; then
  17384. { $as_echo "$as_me:$LINENO: checking for inotify_init1" >&5
  17385. $as_echo_n "checking for inotify_init1... " >&6; }
  17386. if test "${ac_cv_func_inotify_init1+set}" = set; then
  17387. $as_echo_n "(cached) " >&6
  17388. else
  17389. cat >conftest.$ac_ext <<_ACEOF
  17390. /* confdefs.h. */
  17391. _ACEOF
  17392. cat confdefs.h >>conftest.$ac_ext
  17393. cat >>conftest.$ac_ext <<_ACEOF
  17394. /* end confdefs.h. */
  17395. /* Define inotify_init1 to an innocuous variant, in case <limits.h> declares inotify_init1.
  17396. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17397. #define inotify_init1 innocuous_inotify_init1
  17398.  
  17399. /* System header to define __stub macros and hopefully few prototypes,
  17400. which can conflict with char inotify_init1 (); below.
  17401. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17402. <limits.h> exists even on freestanding compilers. */
  17403.  
  17404. #ifdef __STDC__
  17405. # include <limits.h>
  17406. #else
  17407. # include <assert.h>
  17408. #endif
  17409.  
  17410. #undef inotify_init1
  17411.  
  17412. /* Override any GCC internal prototype to avoid an error.
  17413. Use char because int might match the return type of a GCC
  17414. builtin and then its argument prototype would still apply. */
  17415. #ifdef __cplusplus
  17416. extern "C"
  17417. #endif
  17418. char inotify_init1 ();
  17419. /* The GNU C library defines this for functions which it implements
  17420. to always fail with ENOSYS. Some functions are actually named
  17421. something starting with __ and the normal name is an alias. */
  17422. #if defined __stub_inotify_init1 || defined __stub___inotify_init1
  17423. choke me
  17424. #endif
  17425.  
  17426. int
  17427. main ()
  17428. {
  17429. return inotify_init1 ();
  17430. ;
  17431. return 0;
  17432. }
  17433. _ACEOF
  17434. rm -f conftest.$ac_objext conftest$ac_exeext
  17435. if { (ac_try="$ac_link"
  17436. case "(($ac_try" in
  17437. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17438. *) ac_try_echo=$ac_try;;
  17439. esac
  17440. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17441. $as_echo "$ac_try_echo") >&5
  17442. (eval "$ac_link") 2>conftest.er1
  17443. ac_status=$?
  17444. grep -v '^ *+' conftest.er1 >conftest.err
  17445. rm -f conftest.er1
  17446. cat conftest.err >&5
  17447. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17448. (exit $ac_status); } && {
  17449. test -z "$ac_c_werror_flag" ||
  17450. test ! -s conftest.err
  17451. } && test -s conftest$ac_exeext && {
  17452. test "$cross_compiling" = yes ||
  17453. $as_test_x conftest$ac_exeext
  17454. }; then
  17455. ac_cv_func_inotify_init1=yes
  17456. else
  17457. $as_echo "$as_me: failed program was:" >&5
  17458. sed 's/^/| /' conftest.$ac_ext >&5
  17459.  
  17460. ac_cv_func_inotify_init1=no
  17461. fi
  17462.  
  17463. rm -rf conftest.dSYM
  17464. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  17465. conftest$ac_exeext conftest.$ac_ext
  17466. fi
  17467. { $as_echo "$as_me:$LINENO: result: $ac_cv_func_inotify_init1" >&5
  17468. $as_echo "$ac_cv_func_inotify_init1" >&6; }
  17469. if test "x$ac_cv_func_inotify_init1" = x""yes; then
  17470. :
  17471. else
  17472. INOTIFY_OLD=1
  17473. fi
  17474.  
  17475. fi
  17476.  
  17477.  
  17478.  
  17479. # Check whether --with-libseccomp was given.
  17480. if test "${with_libseccomp+set}" = set; then
  17481. withval=$with_libseccomp;
  17482. else
  17483. with_libseccomp=check
  17484.  
  17485. fi
  17486.  
  17487.  
  17488. case "$with_libseccomp" in
  17489. yes)
  17490. { $as_echo "$as_me:$LINENO: checking for scmp_filter_ctx" >&5
  17491. $as_echo_n "checking for scmp_filter_ctx... " >&6; }
  17492. if test "${ac_cv_type_scmp_filter_ctx+set}" = set; then
  17493. $as_echo_n "(cached) " >&6
  17494. else
  17495. ac_cv_type_scmp_filter_ctx=no
  17496. cat >conftest.$ac_ext <<_ACEOF
  17497. /* confdefs.h. */
  17498. _ACEOF
  17499. cat confdefs.h >>conftest.$ac_ext
  17500. cat >>conftest.$ac_ext <<_ACEOF
  17501. /* end confdefs.h. */
  17502. #include <seccomp.h>
  17503.  
  17504. int
  17505. main ()
  17506. {
  17507. if (sizeof (scmp_filter_ctx))
  17508. return 0;
  17509. ;
  17510. return 0;
  17511. }
  17512. _ACEOF
  17513. rm -f conftest.$ac_objext
  17514. if { (ac_try="$ac_compile"
  17515. case "(($ac_try" in
  17516. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17517. *) ac_try_echo=$ac_try;;
  17518. esac
  17519. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17520. $as_echo "$ac_try_echo") >&5
  17521. (eval "$ac_compile") 2>conftest.er1
  17522. ac_status=$?
  17523. grep -v '^ *+' conftest.er1 >conftest.err
  17524. rm -f conftest.er1
  17525. cat conftest.err >&5
  17526. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17527. (exit $ac_status); } && {
  17528. test -z "$ac_c_werror_flag" ||
  17529. test ! -s conftest.err
  17530. } && test -s conftest.$ac_objext; then
  17531. cat >conftest.$ac_ext <<_ACEOF
  17532. /* confdefs.h. */
  17533. _ACEOF
  17534. cat confdefs.h >>conftest.$ac_ext
  17535. cat >>conftest.$ac_ext <<_ACEOF
  17536. /* end confdefs.h. */
  17537. #include <seccomp.h>
  17538.  
  17539. int
  17540. main ()
  17541. {
  17542. if (sizeof ((scmp_filter_ctx)))
  17543. return 0;
  17544. ;
  17545. return 0;
  17546. }
  17547. _ACEOF
  17548. rm -f conftest.$ac_objext
  17549. if { (ac_try="$ac_compile"
  17550. case "(($ac_try" in
  17551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17552. *) ac_try_echo=$ac_try;;
  17553. esac
  17554. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17555. $as_echo "$ac_try_echo") >&5
  17556. (eval "$ac_compile") 2>conftest.er1
  17557. ac_status=$?
  17558. grep -v '^ *+' conftest.er1 >conftest.err
  17559. rm -f conftest.er1
  17560. cat conftest.err >&5
  17561. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17562. (exit $ac_status); } && {
  17563. test -z "$ac_c_werror_flag" ||
  17564. test ! -s conftest.err
  17565. } && test -s conftest.$ac_objext; then
  17566. :
  17567. else
  17568. $as_echo "$as_me: failed program was:" >&5
  17569. sed 's/^/| /' conftest.$ac_ext >&5
  17570.  
  17571. ac_cv_type_scmp_filter_ctx=yes
  17572. fi
  17573.  
  17574. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17575. else
  17576. $as_echo "$as_me: failed program was:" >&5
  17577. sed 's/^/| /' conftest.$ac_ext >&5
  17578.  
  17579.  
  17580. fi
  17581.  
  17582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17583. fi
  17584. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scmp_filter_ctx" >&5
  17585. $as_echo "$ac_cv_type_scmp_filter_ctx" >&6; }
  17586. if test "x$ac_cv_type_scmp_filter_ctx" = x""yes; then
  17587.  
  17588. cat >>confdefs.h <<_ACEOF
  17589. #define HAVE_SCMP_FILTER_CTX 1
  17590. _ACEOF
  17591.  
  17592.  
  17593. else
  17594. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17595. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17596. { { $as_echo "$as_me:$LINENO: error: Cannot find valid seccomp.h
  17597. See \`config.log' for more details." >&5
  17598. $as_echo "$as_me: error: Cannot find valid seccomp.h
  17599. See \`config.log' for more details." >&2;}
  17600. { (exit 1); exit 1; }; }; }
  17601. fi
  17602.  
  17603. { $as_echo "$as_me:$LINENO: checking whether seccomp_syscall_resolve_name_arch is declared" >&5
  17604. $as_echo_n "checking whether seccomp_syscall_resolve_name_arch is declared... " >&6; }
  17605. if test "${ac_cv_have_decl_seccomp_syscall_resolve_name_arch+set}" = set; then
  17606. $as_echo_n "(cached) " >&6
  17607. else
  17608. cat >conftest.$ac_ext <<_ACEOF
  17609. /* confdefs.h. */
  17610. _ACEOF
  17611. cat confdefs.h >>conftest.$ac_ext
  17612. cat >>conftest.$ac_ext <<_ACEOF
  17613. /* end confdefs.h. */
  17614. #include <seccomp.h>
  17615.  
  17616. int
  17617. main ()
  17618. {
  17619. #ifndef seccomp_syscall_resolve_name_arch
  17620. (void) seccomp_syscall_resolve_name_arch;
  17621. #endif
  17622.  
  17623. ;
  17624. return 0;
  17625. }
  17626. _ACEOF
  17627. rm -f conftest.$ac_objext
  17628. if { (ac_try="$ac_compile"
  17629. case "(($ac_try" in
  17630. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17631. *) ac_try_echo=$ac_try;;
  17632. esac
  17633. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17634. $as_echo "$ac_try_echo") >&5
  17635. (eval "$ac_compile") 2>conftest.er1
  17636. ac_status=$?
  17637. grep -v '^ *+' conftest.er1 >conftest.err
  17638. rm -f conftest.er1
  17639. cat conftest.err >&5
  17640. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17641. (exit $ac_status); } && {
  17642. test -z "$ac_c_werror_flag" ||
  17643. test ! -s conftest.err
  17644. } && test -s conftest.$ac_objext; then
  17645. ac_cv_have_decl_seccomp_syscall_resolve_name_arch=yes
  17646. else
  17647. $as_echo "$as_me: failed program was:" >&5
  17648. sed 's/^/| /' conftest.$ac_ext >&5
  17649.  
  17650. ac_cv_have_decl_seccomp_syscall_resolve_name_arch=no
  17651. fi
  17652.  
  17653. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17654. fi
  17655. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_seccomp_syscall_resolve_name_arch" >&5
  17656. $as_echo "$ac_cv_have_decl_seccomp_syscall_resolve_name_arch" >&6; }
  17657. if test "x$ac_cv_have_decl_seccomp_syscall_resolve_name_arch" = x""yes; then
  17658.  
  17659. cat >>confdefs.h <<_ACEOF
  17660. #define HAVE_DECL_SECCOMP_SYSCALL_RESOLVE_NAME_ARCH 1
  17661. _ACEOF
  17662.  
  17663.  
  17664. else
  17665. cat >>confdefs.h <<_ACEOF
  17666. #define HAVE_DECL_SECCOMP_SYSCALL_RESOLVE_NAME_ARCH 0
  17667. _ACEOF
  17668.  
  17669. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17670. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17671. { { $as_echo "$as_me:$LINENO: error: Cannot find valid seccomp.h
  17672. See \`config.log' for more details." >&5
  17673. $as_echo "$as_me: error: Cannot find valid seccomp.h
  17674. See \`config.log' for more details." >&2;}
  17675. { (exit 1); exit 1; }; }; }
  17676. fi
  17677.  
  17678.  
  17679. { $as_echo "$as_me:$LINENO: checking for struct seccomp_data" >&5
  17680. $as_echo_n "checking for struct seccomp_data... " >&6; }
  17681. if test "${ac_cv_type_struct_seccomp_data+set}" = set; then
  17682. $as_echo_n "(cached) " >&6
  17683. else
  17684. ac_cv_type_struct_seccomp_data=no
  17685. cat >conftest.$ac_ext <<_ACEOF
  17686. /* confdefs.h. */
  17687. _ACEOF
  17688. cat confdefs.h >>conftest.$ac_ext
  17689. cat >>conftest.$ac_ext <<_ACEOF
  17690. /* end confdefs.h. */
  17691. #include <linux/seccomp.h>
  17692.  
  17693. int
  17694. main ()
  17695. {
  17696. if (sizeof (struct seccomp_data))
  17697. return 0;
  17698. ;
  17699. return 0;
  17700. }
  17701. _ACEOF
  17702. rm -f conftest.$ac_objext
  17703. if { (ac_try="$ac_compile"
  17704. case "(($ac_try" in
  17705. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17706. *) ac_try_echo=$ac_try;;
  17707. esac
  17708. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17709. $as_echo "$ac_try_echo") >&5
  17710. (eval "$ac_compile") 2>conftest.er1
  17711. ac_status=$?
  17712. grep -v '^ *+' conftest.er1 >conftest.err
  17713. rm -f conftest.er1
  17714. cat conftest.err >&5
  17715. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17716. (exit $ac_status); } && {
  17717. test -z "$ac_c_werror_flag" ||
  17718. test ! -s conftest.err
  17719. } && test -s conftest.$ac_objext; then
  17720. cat >conftest.$ac_ext <<_ACEOF
  17721. /* confdefs.h. */
  17722. _ACEOF
  17723. cat confdefs.h >>conftest.$ac_ext
  17724. cat >>conftest.$ac_ext <<_ACEOF
  17725. /* end confdefs.h. */
  17726. #include <linux/seccomp.h>
  17727.  
  17728. int
  17729. main ()
  17730. {
  17731. if (sizeof ((struct seccomp_data)))
  17732. return 0;
  17733. ;
  17734. return 0;
  17735. }
  17736. _ACEOF
  17737. rm -f conftest.$ac_objext
  17738. if { (ac_try="$ac_compile"
  17739. case "(($ac_try" in
  17740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17741. *) ac_try_echo=$ac_try;;
  17742. esac
  17743. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17744. $as_echo "$ac_try_echo") >&5
  17745. (eval "$ac_compile") 2>conftest.er1
  17746. ac_status=$?
  17747. grep -v '^ *+' conftest.er1 >conftest.err
  17748. rm -f conftest.er1
  17749. cat conftest.err >&5
  17750. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17751. (exit $ac_status); } && {
  17752. test -z "$ac_c_werror_flag" ||
  17753. test ! -s conftest.err
  17754. } && test -s conftest.$ac_objext; then
  17755. :
  17756. else
  17757. $as_echo "$as_me: failed program was:" >&5
  17758. sed 's/^/| /' conftest.$ac_ext >&5
  17759.  
  17760. ac_cv_type_struct_seccomp_data=yes
  17761. fi
  17762.  
  17763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17764. else
  17765. $as_echo "$as_me: failed program was:" >&5
  17766. sed 's/^/| /' conftest.$ac_ext >&5
  17767.  
  17768.  
  17769. fi
  17770.  
  17771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17772. fi
  17773. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_seccomp_data" >&5
  17774. $as_echo "$ac_cv_type_struct_seccomp_data" >&6; }
  17775. if test "x$ac_cv_type_struct_seccomp_data" = x""yes; then
  17776.  
  17777. cat >>confdefs.h <<_ACEOF
  17778. #define HAVE_STRUCT_SECCOMP_DATA 1
  17779. _ACEOF
  17780.  
  17781. HAVE_SECCOMP=1
  17782. else
  17783. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  17784. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17785. { { $as_echo "$as_me:$LINENO: error: Cannot find valid linux/seccomp.h
  17786. See \`config.log' for more details." >&5
  17787. $as_echo "$as_me: error: Cannot find valid linux/seccomp.h
  17788. See \`config.log' for more details." >&2;}
  17789. { (exit 1); exit 1; }; }; }
  17790. fi
  17791.  
  17792. ;;
  17793. check)
  17794. { $as_echo "$as_me:$LINENO: checking for scmp_filter_ctx" >&5
  17795. $as_echo_n "checking for scmp_filter_ctx... " >&6; }
  17796. if test "${ac_cv_type_scmp_filter_ctx+set}" = set; then
  17797. $as_echo_n "(cached) " >&6
  17798. else
  17799. ac_cv_type_scmp_filter_ctx=no
  17800. cat >conftest.$ac_ext <<_ACEOF
  17801. /* confdefs.h. */
  17802. _ACEOF
  17803. cat confdefs.h >>conftest.$ac_ext
  17804. cat >>conftest.$ac_ext <<_ACEOF
  17805. /* end confdefs.h. */
  17806. #include <seccomp.h>
  17807.  
  17808. int
  17809. main ()
  17810. {
  17811. if (sizeof (scmp_filter_ctx))
  17812. return 0;
  17813. ;
  17814. return 0;
  17815. }
  17816. _ACEOF
  17817. rm -f conftest.$ac_objext
  17818. if { (ac_try="$ac_compile"
  17819. case "(($ac_try" in
  17820. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17821. *) ac_try_echo=$ac_try;;
  17822. esac
  17823. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17824. $as_echo "$ac_try_echo") >&5
  17825. (eval "$ac_compile") 2>conftest.er1
  17826. ac_status=$?
  17827. grep -v '^ *+' conftest.er1 >conftest.err
  17828. rm -f conftest.er1
  17829. cat conftest.err >&5
  17830. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17831. (exit $ac_status); } && {
  17832. test -z "$ac_c_werror_flag" ||
  17833. test ! -s conftest.err
  17834. } && test -s conftest.$ac_objext; then
  17835. cat >conftest.$ac_ext <<_ACEOF
  17836. /* confdefs.h. */
  17837. _ACEOF
  17838. cat confdefs.h >>conftest.$ac_ext
  17839. cat >>conftest.$ac_ext <<_ACEOF
  17840. /* end confdefs.h. */
  17841. #include <seccomp.h>
  17842.  
  17843. int
  17844. main ()
  17845. {
  17846. if (sizeof ((scmp_filter_ctx)))
  17847. return 0;
  17848. ;
  17849. return 0;
  17850. }
  17851. _ACEOF
  17852. rm -f conftest.$ac_objext
  17853. if { (ac_try="$ac_compile"
  17854. case "(($ac_try" in
  17855. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17856. *) ac_try_echo=$ac_try;;
  17857. esac
  17858. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17859. $as_echo "$ac_try_echo") >&5
  17860. (eval "$ac_compile") 2>conftest.er1
  17861. ac_status=$?
  17862. grep -v '^ *+' conftest.er1 >conftest.err
  17863. rm -f conftest.er1
  17864. cat conftest.err >&5
  17865. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17866. (exit $ac_status); } && {
  17867. test -z "$ac_c_werror_flag" ||
  17868. test ! -s conftest.err
  17869. } && test -s conftest.$ac_objext; then
  17870. :
  17871. else
  17872. $as_echo "$as_me: failed program was:" >&5
  17873. sed 's/^/| /' conftest.$ac_ext >&5
  17874.  
  17875. ac_cv_type_scmp_filter_ctx=yes
  17876. fi
  17877.  
  17878. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17879. else
  17880. $as_echo "$as_me: failed program was:" >&5
  17881. sed 's/^/| /' conftest.$ac_ext >&5
  17882.  
  17883.  
  17884. fi
  17885.  
  17886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17887. fi
  17888. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_scmp_filter_ctx" >&5
  17889. $as_echo "$ac_cv_type_scmp_filter_ctx" >&6; }
  17890. if test "x$ac_cv_type_scmp_filter_ctx" = x""yes; then
  17891.  
  17892. cat >>confdefs.h <<_ACEOF
  17893. #define HAVE_SCMP_FILTER_CTX 1
  17894. _ACEOF
  17895.  
  17896.  
  17897. { $as_echo "$as_me:$LINENO: checking whether seccomp_syscall_resolve_name_arch is declared" >&5
  17898. $as_echo_n "checking whether seccomp_syscall_resolve_name_arch is declared... " >&6; }
  17899. if test "${ac_cv_have_decl_seccomp_syscall_resolve_name_arch+set}" = set; then
  17900. $as_echo_n "(cached) " >&6
  17901. else
  17902. cat >conftest.$ac_ext <<_ACEOF
  17903. /* confdefs.h. */
  17904. _ACEOF
  17905. cat confdefs.h >>conftest.$ac_ext
  17906. cat >>conftest.$ac_ext <<_ACEOF
  17907. /* end confdefs.h. */
  17908. #include <seccomp.h>
  17909.  
  17910. int
  17911. main ()
  17912. {
  17913. #ifndef seccomp_syscall_resolve_name_arch
  17914. (void) seccomp_syscall_resolve_name_arch;
  17915. #endif
  17916.  
  17917. ;
  17918. return 0;
  17919. }
  17920. _ACEOF
  17921. rm -f conftest.$ac_objext
  17922. if { (ac_try="$ac_compile"
  17923. case "(($ac_try" in
  17924. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17925. *) ac_try_echo=$ac_try;;
  17926. esac
  17927. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17928. $as_echo "$ac_try_echo") >&5
  17929. (eval "$ac_compile") 2>conftest.er1
  17930. ac_status=$?
  17931. grep -v '^ *+' conftest.er1 >conftest.err
  17932. rm -f conftest.er1
  17933. cat conftest.err >&5
  17934. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17935. (exit $ac_status); } && {
  17936. test -z "$ac_c_werror_flag" ||
  17937. test ! -s conftest.err
  17938. } && test -s conftest.$ac_objext; then
  17939. ac_cv_have_decl_seccomp_syscall_resolve_name_arch=yes
  17940. else
  17941. $as_echo "$as_me: failed program was:" >&5
  17942. sed 's/^/| /' conftest.$ac_ext >&5
  17943.  
  17944. ac_cv_have_decl_seccomp_syscall_resolve_name_arch=no
  17945. fi
  17946.  
  17947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17948. fi
  17949. { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_seccomp_syscall_resolve_name_arch" >&5
  17950. $as_echo "$ac_cv_have_decl_seccomp_syscall_resolve_name_arch" >&6; }
  17951. if test "x$ac_cv_have_decl_seccomp_syscall_resolve_name_arch" = x""yes; then
  17952.  
  17953. cat >>confdefs.h <<_ACEOF
  17954. #define HAVE_DECL_SECCOMP_SYSCALL_RESOLVE_NAME_ARCH 1
  17955. _ACEOF
  17956.  
  17957.  
  17958. { $as_echo "$as_me:$LINENO: checking for struct seccomp_data" >&5
  17959. $as_echo_n "checking for struct seccomp_data... " >&6; }
  17960. if test "${ac_cv_type_struct_seccomp_data+set}" = set; then
  17961. $as_echo_n "(cached) " >&6
  17962. else
  17963. ac_cv_type_struct_seccomp_data=no
  17964. cat >conftest.$ac_ext <<_ACEOF
  17965. /* confdefs.h. */
  17966. _ACEOF
  17967. cat confdefs.h >>conftest.$ac_ext
  17968. cat >>conftest.$ac_ext <<_ACEOF
  17969. /* end confdefs.h. */
  17970. #include <linux/seccomp.h>
  17971.  
  17972. int
  17973. main ()
  17974. {
  17975. if (sizeof (struct seccomp_data))
  17976. return 0;
  17977. ;
  17978. return 0;
  17979. }
  17980. _ACEOF
  17981. rm -f conftest.$ac_objext
  17982. if { (ac_try="$ac_compile"
  17983. case "(($ac_try" in
  17984. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17985. *) ac_try_echo=$ac_try;;
  17986. esac
  17987. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  17988. $as_echo "$ac_try_echo") >&5
  17989. (eval "$ac_compile") 2>conftest.er1
  17990. ac_status=$?
  17991. grep -v '^ *+' conftest.er1 >conftest.err
  17992. rm -f conftest.er1
  17993. cat conftest.err >&5
  17994. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17995. (exit $ac_status); } && {
  17996. test -z "$ac_c_werror_flag" ||
  17997. test ! -s conftest.err
  17998. } && test -s conftest.$ac_objext; then
  17999. cat >conftest.$ac_ext <<_ACEOF
  18000. /* confdefs.h. */
  18001. _ACEOF
  18002. cat confdefs.h >>conftest.$ac_ext
  18003. cat >>conftest.$ac_ext <<_ACEOF
  18004. /* end confdefs.h. */
  18005. #include <linux/seccomp.h>
  18006.  
  18007. int
  18008. main ()
  18009. {
  18010. if (sizeof ((struct seccomp_data)))
  18011. return 0;
  18012. ;
  18013. return 0;
  18014. }
  18015. _ACEOF
  18016. rm -f conftest.$ac_objext
  18017. if { (ac_try="$ac_compile"
  18018. case "(($ac_try" in
  18019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18020. *) ac_try_echo=$ac_try;;
  18021. esac
  18022. eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
  18023. $as_echo "$ac_try_echo") >&5
  18024. (eval "$ac_compile") 2>conftest.er1
  18025. ac_status=$?
  18026. grep -v '^ *+' conftest.er1 >conftest.err
  18027. rm -f conftest.er1
  18028. cat conftest.err >&5
  18029. $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18030. (exit $ac_status); } && {
  18031. test -z "$ac_c_werror_flag" ||
  18032. test ! -s conftest.err
  18033. } && test -s conftest.$ac_objext; then
  18034. :
  18035. else
  18036. $as_echo "$as_me: failed program was:" >&5
  18037. sed 's/^/| /' conftest.$ac_ext >&5
  18038.  
  18039. ac_cv_type_struct_seccomp_data=yes
  18040. fi
  18041.  
  18042. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18043. else
  18044. $as_echo "$as_me: failed program was:" >&5
  18045. sed 's/^/| /' conftest.$ac_ext >&5
  18046.  
  18047.  
  18048. fi
  18049.  
  18050. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18051. fi
  18052. { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_seccomp_data" >&5
  18053. $as_echo "$ac_cv_type_struct_seccomp_data" >&6; }
  18054. if test "x$ac_cv_type_struct_seccomp_data" = x""yes; then
  18055.  
  18056. cat >>confdefs.h <<_ACEOF
  18057. #define HAVE_STRUCT_SECCOMP_DATA 1
  18058. _ACEOF
  18059.  
  18060. HAVE_SECCOMP=1
  18061. fi
  18062.  
  18063.  
  18064. else
  18065. cat >>confdefs.h <<_ACEOF
  18066. #define HAVE_DECL_SECCOMP_SYSCALL_RESOLVE_NAME_ARCH 0
  18067. _ACEOF
  18068.  
  18069.  
  18070. fi
  18071.  
  18072.  
  18073.  
  18074. fi
  18075.  
  18076. ;;
  18077. esac
  18078. if test "$HAVE_CAPABILITIES" != ""; then
  18079.  
  18080.  
  18081. fi
  18082.  
  18083.  
  18084. if test "x$HAVE_KQUEUE" != "x"; then
  18085. HAVE_KQUEUE_TRUE=
  18086. HAVE_KQUEUE_FALSE='#'
  18087. else
  18088. HAVE_KQUEUE_TRUE='#'
  18089. HAVE_KQUEUE_FALSE=
  18090. fi
  18091.  
  18092. if test "x$HAVE_INOTIFY" != "x"; then
  18093. HAVE_INOTIFY_TRUE=
  18094. HAVE_INOTIFY_FALSE='#'
  18095. else
  18096. HAVE_INOTIFY_TRUE='#'
  18097. HAVE_INOTIFY_FALSE=
  18098. fi
  18099.  
  18100. if test "x$INOTIFY_OLD" != "x"; then
  18101. INOTIFY_OLD_TRUE=
  18102. INOTIFY_OLD_FALSE='#'
  18103. else
  18104. INOTIFY_OLD_TRUE='#'
  18105. INOTIFY_OLD_FALSE=
  18106. fi
  18107.  
  18108. if test "x$HAVE_FANOTIFY" != "x"; then
  18109. HAVE_FANOTIFY_TRUE=
  18110. HAVE_FANOTIFY_FALSE='#'
  18111. else
  18112. HAVE_FANOTIFY_TRUE='#'
  18113. HAVE_FANOTIFY_FALSE=
  18114. fi
  18115.  
  18116. if test "x$HAVE_BSM" != "x"; then
  18117. HAVE_BSM_TRUE=
  18118. HAVE_BSM_FALSE='#'
  18119. else
  18120. HAVE_BSM_TRUE='#'
  18121. HAVE_BSM_FALSE=
  18122. fi
  18123.  
  18124. if test "x$HAVE_GIO" != "x"; then
  18125. HAVE_GIO_TRUE=
  18126. HAVE_GIO_FALSE='#'
  18127. else
  18128. HAVE_GIO_TRUE='#'
  18129. HAVE_GIO_FALSE=
  18130. fi
  18131.  
  18132. if test "x$HAVE_DTRACEPIPE" != "x"; then
  18133. HAVE_DTRACEPIPE_TRUE=
  18134. HAVE_DTRACEPIPE_FALSE='#'
  18135. else
  18136. HAVE_DTRACEPIPE_TRUE='#'
  18137. HAVE_DTRACEPIPE_FALSE=
  18138. fi
  18139.  
  18140. if test "x$HAVE_BACKTRACE" != "x"; then
  18141. HAVE_BACKTRACE_TRUE=
  18142. HAVE_BACKTRACE_FALSE='#'
  18143. else
  18144. HAVE_BACKTRACE_TRUE='#'
  18145. HAVE_BACKTRACE_FALSE=
  18146. fi
  18147.  
  18148. if test "x$HAVE_CAPABILITIES" != "x"; then
  18149. HAVE_CAPABILITIES_TRUE=
  18150. HAVE_CAPABILITIES_FALSE='#'
  18151. else
  18152. HAVE_CAPABILITIES_TRUE='#'
  18153. HAVE_CAPABILITIES_FALSE=
  18154. fi
  18155.  
  18156. if test "x$HAVE_GETMNTENT" != "x"; then
  18157. HAVE_GETMNTENT_TRUE=
  18158. HAVE_GETMNTENT_FALSE='#'
  18159. else
  18160. HAVE_GETMNTENT_TRUE='#'
  18161. HAVE_GETMNTENT_FALSE=
  18162. fi
  18163.  
  18164. if test "x$HAVE_PIVOTROOT" != "x"; then
  18165. HAVE_PIVOTROOT_TRUE=
  18166. HAVE_PIVOTROOT_FALSE='#'
  18167. else
  18168. HAVE_PIVOTROOT_TRUE='#'
  18169. HAVE_PIVOTROOT_FALSE=
  18170. fi
  18171.  
  18172. if test "x$HAVE_UNSHARE" != "x"; then
  18173. HAVE_UNSHARE_TRUE=
  18174. HAVE_UNSHARE_FALSE='#'
  18175. else
  18176. HAVE_UNSHARE_TRUE='#'
  18177. HAVE_UNSHARE_FALSE=
  18178. fi
  18179.  
  18180. if test "x$HAVE_SECCOMP" != "x"; then
  18181. HAVE_SECCOMP_TRUE=
  18182. HAVE_SECCOMP_FALSE='#'
  18183. else
  18184. HAVE_SECCOMP_TRUE='#'
  18185. HAVE_SECCOMP_FALSE=
  18186. fi
  18187.  
  18188. if test "x$HAVE_TRE" != "x"; then
  18189. HAVE_TRE_TRUE=
  18190. HAVE_TRE_FALSE='#'
  18191. else
  18192. HAVE_TRE_TRUE='#'
  18193. HAVE_TRE_FALSE=
  18194. fi
  18195.  
  18196. if test "x$HAVE_LIBCGROUP" != "x"; then
  18197. HAVE_LIBCGROUP_TRUE=
  18198. HAVE_LIBCGROUP_FALSE='#'
  18199. else
  18200. HAVE_LIBCGROUP_TRUE='#'
  18201. HAVE_LIBCGROUP_FALSE=
  18202. fi
  18203.  
  18204.  
  18205. if test "$HAVE_KQUEUE" = '' -a "$HAVE_INOTIFY" = '' -a "$HAVE_FANOTIFY" = '' -a "$HAVE_BSM" = '' ; then
  18206. { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
  18207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18208. { { $as_echo "$as_me:$LINENO: error: kqueue, inotify and bsm are not supported on this system
  18209. See \`config.log' for more details." >&5
  18210. $as_echo "$as_me: error: kqueue, inotify and bsm are not supported on this system
  18211. See \`config.log' for more details." >&2;}
  18212. { (exit 1); exit 1; }; }; }
  18213. fi
  18214.  
  18215.  
  18216. LIBS="${GLIB_LIBS} ${LIBS}"
  18217. AM_CPPFLAGS="${GLIB_CFLAGS}"
  18218.  
  18219.  
  18220.  
  18221. ac_config_files="$ac_config_files Makefile examples/Makefile pkgconfig/libclsync.pc"
  18222.  
  18223. cat >confcache <<\_ACEOF
  18224. # This file is a shell script that caches the results of configure
  18225. # tests run on this system so they can be shared between configure
  18226. # scripts and configure runs, see configure's option --config-cache.
  18227. # It is not useful on other systems. If it contains results you don't
  18228. # want to keep, you may remove or edit it.
  18229. #
  18230. # config.status only pays attention to the cache file if you give it
  18231. # the --recheck option to rerun configure.
  18232. #
  18233. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18234. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18235. # following values.
  18236.  
  18237. _ACEOF
  18238.  
  18239. # The following way of writing the cache mishandles newlines in values,
  18240. # but we know of no workaround that is simple, portable, and efficient.
  18241. # So, we kill variables containing newlines.
  18242. # Ultrix sh set writes to stderr and can't be redirected directly,
  18243. # and sets the high bit in the cache file unless we assign to the vars.
  18244. (
  18245. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18246. eval ac_val=\$$ac_var
  18247. case $ac_val in #(
  18248. *${as_nl}*)
  18249. case $ac_var in #(
  18250. *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
  18251. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18252. esac
  18253. case $ac_var in #(
  18254. _ | IFS | as_nl) ;; #(
  18255. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18256. *) $as_unset $ac_var ;;
  18257. esac ;;
  18258. esac
  18259. done
  18260.  
  18261. (set) 2>&1 |
  18262. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18263. *${as_nl}ac_space=\ *)
  18264. # `set' does not quote correctly, so add quotes (double-quote
  18265. # substitution turns \\\\ into \\, and sed turns \\ into \).
  18266. sed -n \
  18267. "s/'/'\\\\''/g;
  18268. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18269. ;; #(
  18270. *)
  18271. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18272. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18273. ;;
  18274. esac |
  18275. sort
  18276. ) |
  18277. sed '
  18278. /^ac_cv_env_/b end
  18279. t clear
  18280. :clear
  18281. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18282. t end
  18283. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18284. :end' >>confcache
  18285. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18286. if test -w "$cache_file"; then
  18287. test "x$cache_file" != "x/dev/null" &&
  18288. { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
  18289. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18290. cat confcache >$cache_file
  18291. else
  18292. { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  18293. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18294. fi
  18295. fi
  18296. rm -f confcache
  18297.  
  18298. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18299. # Let make expand exec_prefix.
  18300. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18301.  
  18302. DEFS=-DHAVE_CONFIG_H
  18303.  
  18304. ac_libobjs=
  18305. ac_ltlibobjs=
  18306. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18307. # 1. Remove the extension, and $U if already installed.
  18308. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18309. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18310. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18311. # will be set to the directory where LIBOBJS objects are built.
  18312. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18313. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  18314. done
  18315. LIBOBJS=$ac_libobjs
  18316.  
  18317. LTLIBOBJS=$ac_ltlibobjs
  18318.  
  18319.  
  18320. if test -n "$EXEEXT"; then
  18321. am__EXEEXT_TRUE=
  18322. am__EXEEXT_FALSE='#'
  18323. else
  18324. am__EXEEXT_TRUE='#'
  18325. am__EXEEXT_FALSE=
  18326. fi
  18327.  
  18328. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18329. { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  18330. Usually this means the macro was only invoked conditionally." >&5
  18331. $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
  18332. Usually this means the macro was only invoked conditionally." >&2;}
  18333. { (exit 1); exit 1; }; }
  18334. fi
  18335. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18336. { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  18337. Usually this means the macro was only invoked conditionally." >&5
  18338. $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  18339. Usually this means the macro was only invoked conditionally." >&2;}
  18340. { (exit 1); exit 1; }; }
  18341. fi
  18342. if test -z "${CLSYNC_TRUE}" && test -z "${CLSYNC_FALSE}"; then
  18343. { { $as_echo "$as_me:$LINENO: error: conditional \"CLSYNC\" was never defined.
  18344. Usually this means the macro was only invoked conditionally." >&5
  18345. $as_echo "$as_me: error: conditional \"CLSYNC\" was never defined.
  18346. Usually this means the macro was only invoked conditionally." >&2;}
  18347. { (exit 1); exit 1; }; }
  18348. fi
  18349. if test -z "${SOCKET_TRUE}" && test -z "${SOCKET_FALSE}"; then
  18350. { { $as_echo "$as_me:$LINENO: error: conditional \"SOCKET\" was never defined.
  18351. Usually this means the macro was only invoked conditionally." >&5
  18352. $as_echo "$as_me: error: conditional \"SOCKET\" was never defined.
  18353. Usually this means the macro was only invoked conditionally." >&2;}
  18354. { (exit 1); exit 1; }; }
  18355. fi
  18356. if test -z "${LIBCLSYNC_TRUE}" && test -z "${LIBCLSYNC_FALSE}"; then
  18357. { { $as_echo "$as_me:$LINENO: error: conditional \"LIBCLSYNC\" was never defined.
  18358. Usually this means the macro was only invoked conditionally." >&5
  18359. $as_echo "$as_me: error: conditional \"LIBCLSYNC\" was never defined.
  18360. Usually this means the macro was only invoked conditionally." >&2;}
  18361. { (exit 1); exit 1; }; }
  18362. fi
  18363. if test -z "${HLLOCKS_TRUE}" && test -z "${HLLOCKS_FALSE}"; then
  18364. { { $as_echo "$as_me:$LINENO: error: conditional \"HLLOCKS\" was never defined.
  18365. Usually this means the macro was only invoked conditionally." >&5
  18366. $as_echo "$as_me: error: conditional \"HLLOCKS\" was never defined.
  18367. Usually this means the macro was only invoked conditionally." >&2;}
  18368. { (exit 1); exit 1; }; }
  18369. fi
  18370. if test -z "${HAVE_KQUEUE_TRUE}" && test -z "${HAVE_KQUEUE_FALSE}"; then
  18371. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_KQUEUE\" was never defined.
  18372. Usually this means the macro was only invoked conditionally." >&5
  18373. $as_echo "$as_me: error: conditional \"HAVE_KQUEUE\" was never defined.
  18374. Usually this means the macro was only invoked conditionally." >&2;}
  18375. { (exit 1); exit 1; }; }
  18376. fi
  18377. if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
  18378. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_INOTIFY\" was never defined.
  18379. Usually this means the macro was only invoked conditionally." >&5
  18380. $as_echo "$as_me: error: conditional \"HAVE_INOTIFY\" was never defined.
  18381. Usually this means the macro was only invoked conditionally." >&2;}
  18382. { (exit 1); exit 1; }; }
  18383. fi
  18384. if test -z "${INOTIFY_OLD_TRUE}" && test -z "${INOTIFY_OLD_FALSE}"; then
  18385. { { $as_echo "$as_me:$LINENO: error: conditional \"INOTIFY_OLD\" was never defined.
  18386. Usually this means the macro was only invoked conditionally." >&5
  18387. $as_echo "$as_me: error: conditional \"INOTIFY_OLD\" was never defined.
  18388. Usually this means the macro was only invoked conditionally." >&2;}
  18389. { (exit 1); exit 1; }; }
  18390. fi
  18391. if test -z "${HAVE_FANOTIFY_TRUE}" && test -z "${HAVE_FANOTIFY_FALSE}"; then
  18392. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_FANOTIFY\" was never defined.
  18393. Usually this means the macro was only invoked conditionally." >&5
  18394. $as_echo "$as_me: error: conditional \"HAVE_FANOTIFY\" was never defined.
  18395. Usually this means the macro was only invoked conditionally." >&2;}
  18396. { (exit 1); exit 1; }; }
  18397. fi
  18398. if test -z "${HAVE_BSM_TRUE}" && test -z "${HAVE_BSM_FALSE}"; then
  18399. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BSM\" was never defined.
  18400. Usually this means the macro was only invoked conditionally." >&5
  18401. $as_echo "$as_me: error: conditional \"HAVE_BSM\" was never defined.
  18402. Usually this means the macro was only invoked conditionally." >&2;}
  18403. { (exit 1); exit 1; }; }
  18404. fi
  18405. if test -z "${HAVE_GIO_TRUE}" && test -z "${HAVE_GIO_FALSE}"; then
  18406. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GIO\" was never defined.
  18407. Usually this means the macro was only invoked conditionally." >&5
  18408. $as_echo "$as_me: error: conditional \"HAVE_GIO\" was never defined.
  18409. Usually this means the macro was only invoked conditionally." >&2;}
  18410. { (exit 1); exit 1; }; }
  18411. fi
  18412. if test -z "${HAVE_DTRACEPIPE_TRUE}" && test -z "${HAVE_DTRACEPIPE_FALSE}"; then
  18413. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_DTRACEPIPE\" was never defined.
  18414. Usually this means the macro was only invoked conditionally." >&5
  18415. $as_echo "$as_me: error: conditional \"HAVE_DTRACEPIPE\" was never defined.
  18416. Usually this means the macro was only invoked conditionally." >&2;}
  18417. { (exit 1); exit 1; }; }
  18418. fi
  18419. if test -z "${HAVE_BACKTRACE_TRUE}" && test -z "${HAVE_BACKTRACE_FALSE}"; then
  18420. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_BACKTRACE\" was never defined.
  18421. Usually this means the macro was only invoked conditionally." >&5
  18422. $as_echo "$as_me: error: conditional \"HAVE_BACKTRACE\" was never defined.
  18423. Usually this means the macro was only invoked conditionally." >&2;}
  18424. { (exit 1); exit 1; }; }
  18425. fi
  18426. if test -z "${HAVE_CAPABILITIES_TRUE}" && test -z "${HAVE_CAPABILITIES_FALSE}"; then
  18427. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_CAPABILITIES\" was never defined.
  18428. Usually this means the macro was only invoked conditionally." >&5
  18429. $as_echo "$as_me: error: conditional \"HAVE_CAPABILITIES\" was never defined.
  18430. Usually this means the macro was only invoked conditionally." >&2;}
  18431. { (exit 1); exit 1; }; }
  18432. fi
  18433. if test -z "${HAVE_GETMNTENT_TRUE}" && test -z "${HAVE_GETMNTENT_FALSE}"; then
  18434. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_GETMNTENT\" was never defined.
  18435. Usually this means the macro was only invoked conditionally." >&5
  18436. $as_echo "$as_me: error: conditional \"HAVE_GETMNTENT\" was never defined.
  18437. Usually this means the macro was only invoked conditionally." >&2;}
  18438. { (exit 1); exit 1; }; }
  18439. fi
  18440. if test -z "${HAVE_PIVOTROOT_TRUE}" && test -z "${HAVE_PIVOTROOT_FALSE}"; then
  18441. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_PIVOTROOT\" was never defined.
  18442. Usually this means the macro was only invoked conditionally." >&5
  18443. $as_echo "$as_me: error: conditional \"HAVE_PIVOTROOT\" was never defined.
  18444. Usually this means the macro was only invoked conditionally." >&2;}
  18445. { (exit 1); exit 1; }; }
  18446. fi
  18447. if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
  18448. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_UNSHARE\" was never defined.
  18449. Usually this means the macro was only invoked conditionally." >&5
  18450. $as_echo "$as_me: error: conditional \"HAVE_UNSHARE\" was never defined.
  18451. Usually this means the macro was only invoked conditionally." >&2;}
  18452. { (exit 1); exit 1; }; }
  18453. fi
  18454. if test -z "${HAVE_SECCOMP_TRUE}" && test -z "${HAVE_SECCOMP_FALSE}"; then
  18455. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_SECCOMP\" was never defined.
  18456. Usually this means the macro was only invoked conditionally." >&5
  18457. $as_echo "$as_me: error: conditional \"HAVE_SECCOMP\" was never defined.
  18458. Usually this means the macro was only invoked conditionally." >&2;}
  18459. { (exit 1); exit 1; }; }
  18460. fi
  18461. if test -z "${HAVE_TRE_TRUE}" && test -z "${HAVE_TRE_FALSE}"; then
  18462. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_TRE\" was never defined.
  18463. Usually this means the macro was only invoked conditionally." >&5
  18464. $as_echo "$as_me: error: conditional \"HAVE_TRE\" was never defined.
  18465. Usually this means the macro was only invoked conditionally." >&2;}
  18466. { (exit 1); exit 1; }; }
  18467. fi
  18468. if test -z "${HAVE_LIBCGROUP_TRUE}" && test -z "${HAVE_LIBCGROUP_FALSE}"; then
  18469. { { $as_echo "$as_me:$LINENO: error: conditional \"HAVE_LIBCGROUP\" was never defined.
  18470. Usually this means the macro was only invoked conditionally." >&5
  18471. $as_echo "$as_me: error: conditional \"HAVE_LIBCGROUP\" was never defined.
  18472. Usually this means the macro was only invoked conditionally." >&2;}
  18473. { (exit 1); exit 1; }; }
  18474. fi
  18475.  
  18476. : ${CONFIG_STATUS=./config.status}
  18477. ac_write_fail=0
  18478. ac_clean_files_save=$ac_clean_files
  18479. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18480. { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  18481. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18482. cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18483. #! $SHELL
  18484. # Generated by $as_me.
  18485. # Run this file to recreate the current configuration.
  18486. # Compiler output produced by configure, useful for debugging
  18487. # configure, is in config.log if it exists.
  18488.  
  18489. debug=false
  18490. ac_cs_recheck=false
  18491. ac_cs_silent=false
  18492. SHELL=\${CONFIG_SHELL-$SHELL}
  18493. _ACEOF
  18494.  
  18495. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18496. ## --------------------- ##
  18497. ## M4sh Initialization. ##
  18498. ## --------------------- ##
  18499.  
  18500. # Be more Bourne compatible
  18501. DUALCASE=1; export DUALCASE # for MKS sh
  18502. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18503. emulate sh
  18504. NULLCMD=:
  18505. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18506. # is contrary to our usage. Disable this feature.
  18507. alias -g '${1+"$@"}'='"$@"'
  18508. setopt NO_GLOB_SUBST
  18509. else
  18510. case `(set -o) 2>/dev/null` in
  18511. *posix*) set -o posix ;;
  18512. esac
  18513.  
  18514. fi
  18515.  
  18516.  
  18517.  
  18518.  
  18519. # PATH needs CR
  18520. # Avoid depending upon Character Ranges.
  18521. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18522. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18523. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18524. as_cr_digits='0123456789'
  18525. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18526.  
  18527. as_nl='
  18528. '
  18529. export as_nl
  18530. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18531. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18532. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18533. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18534. if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18535. as_echo='printf %s\n'
  18536. as_echo_n='printf %s'
  18537. else
  18538. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18539. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18540. as_echo_n='/usr/ucb/echo -n'
  18541. else
  18542. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18543. as_echo_n_body='eval
  18544. arg=$1;
  18545. case $arg in
  18546. *"$as_nl"*)
  18547. expr "X$arg" : "X\\(.*\\)$as_nl";
  18548. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18549. esac;
  18550. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18551. '
  18552. export as_echo_n_body
  18553. as_echo_n='sh -c $as_echo_n_body as_echo'
  18554. fi
  18555. export as_echo_body
  18556. as_echo='sh -c $as_echo_body as_echo'
  18557. fi
  18558.  
  18559. # The user is always right.
  18560. if test "${PATH_SEPARATOR+set}" != set; then
  18561. PATH_SEPARATOR=:
  18562. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18563. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18564. PATH_SEPARATOR=';'
  18565. }
  18566. fi
  18567.  
  18568. # Support unset when possible.
  18569. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  18570. as_unset=unset
  18571. else
  18572. as_unset=false
  18573. fi
  18574.  
  18575.  
  18576. # IFS
  18577. # We need space, tab and new line, in precisely that order. Quoting is
  18578. # there to prevent editors from complaining about space-tab.
  18579. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18580. # splitting by setting IFS to empty value.)
  18581. IFS=" "" $as_nl"
  18582.  
  18583. # Find who we are. Look in the path if we contain no directory separator.
  18584. case $0 in
  18585. *[\\/]* ) as_myself=$0 ;;
  18586. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18587. for as_dir in $PATH
  18588. do
  18589. IFS=$as_save_IFS
  18590. test -z "$as_dir" && as_dir=.
  18591. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18592. done
  18593. IFS=$as_save_IFS
  18594.  
  18595. ;;
  18596. esac
  18597. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18598. # in which case we are not to be found in the path.
  18599. if test "x$as_myself" = x; then
  18600. as_myself=$0
  18601. fi
  18602. if test ! -f "$as_myself"; then
  18603. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18604. { (exit 1); exit 1; }
  18605. fi
  18606.  
  18607. # Work around bugs in pre-3.0 UWIN ksh.
  18608. for as_var in ENV MAIL MAILPATH
  18609. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  18610. done
  18611. PS1='$ '
  18612. PS2='> '
  18613. PS4='+ '
  18614.  
  18615. # NLS nuisances.
  18616. LC_ALL=C
  18617. export LC_ALL
  18618. LANGUAGE=C
  18619. export LANGUAGE
  18620.  
  18621. # Required to use basename.
  18622. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18623. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18624. as_expr=expr
  18625. else
  18626. as_expr=false
  18627. fi
  18628.  
  18629. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18630. as_basename=basename
  18631. else
  18632. as_basename=false
  18633. fi
  18634.  
  18635.  
  18636. # Name of the executable.
  18637. as_me=`$as_basename -- "$0" ||
  18638. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18639. X"$0" : 'X\(//\)$' \| \
  18640. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18641. $as_echo X/"$0" |
  18642. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18643. s//\1/
  18644. q
  18645. }
  18646. /^X\/\(\/\/\)$/{
  18647. s//\1/
  18648. q
  18649. }
  18650. /^X\/\(\/\).*/{
  18651. s//\1/
  18652. q
  18653. }
  18654. s/.*/./; q'`
  18655.  
  18656. # CDPATH.
  18657. $as_unset CDPATH
  18658.  
  18659.  
  18660.  
  18661. as_lineno_1=$LINENO
  18662. as_lineno_2=$LINENO
  18663. test "x$as_lineno_1" != "x$as_lineno_2" &&
  18664. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  18665.  
  18666. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  18667. # uniformly replaced by the line number. The first 'sed' inserts a
  18668. # line-number line after each line using $LINENO; the second 'sed'
  18669. # does the real work. The second script uses 'N' to pair each
  18670. # line-number line with the line containing $LINENO, and appends
  18671. # trailing '-' during substitution so that $LINENO is not a special
  18672. # case at line end.
  18673. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  18674. # scripts with optimization help from Paolo Bonzini. Blame Lee
  18675. # E. McMahon (1931-1989) for sed's syntax. :-)
  18676. sed -n '
  18677. p
  18678. /[$]LINENO/=
  18679. ' <$as_myself |
  18680. sed '
  18681. s/[$]LINENO.*/&-/
  18682. t lineno
  18683. b
  18684. :lineno
  18685. N
  18686. :loop
  18687. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  18688. t loop
  18689. s/-\n.*//
  18690. ' >$as_me.lineno &&
  18691. chmod +x "$as_me.lineno" ||
  18692. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  18693. { (exit 1); exit 1; }; }
  18694.  
  18695. # Don't try to exec as it changes $[0], causing all sort of problems
  18696. # (the dirname of $[0] is not the place where we might find the
  18697. # original and so on. Autoconf is especially sensitive to this).
  18698. . "./$as_me.lineno"
  18699. # Exit status is that of the last command.
  18700. exit
  18701. }
  18702.  
  18703.  
  18704. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18705. as_dirname=dirname
  18706. else
  18707. as_dirname=false
  18708. fi
  18709.  
  18710. ECHO_C= ECHO_N= ECHO_T=
  18711. case `echo -n x` in
  18712. -n*)
  18713. case `echo 'x\c'` in
  18714. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18715. *) ECHO_C='\c';;
  18716. esac;;
  18717. *)
  18718. ECHO_N='-n';;
  18719. esac
  18720. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18721. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18722. as_expr=expr
  18723. else
  18724. as_expr=false
  18725. fi
  18726.  
  18727. rm -f conf$$ conf$$.exe conf$$.file
  18728. if test -d conf$$.dir; then
  18729. rm -f conf$$.dir/conf$$.file
  18730. else
  18731. rm -f conf$$.dir
  18732. mkdir conf$$.dir 2>/dev/null
  18733. fi
  18734. if (echo >conf$$.file) 2>/dev/null; then
  18735. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18736. as_ln_s='ln -s'
  18737. # ... but there are two gotchas:
  18738. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18739. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18740. # In both cases, we have to default to `cp -p'.
  18741. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18742. as_ln_s='cp -p'
  18743. elif ln conf$$.file conf$$ 2>/dev/null; then
  18744. as_ln_s=ln
  18745. else
  18746. as_ln_s='cp -p'
  18747. fi
  18748. else
  18749. as_ln_s='cp -p'
  18750. fi
  18751. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18752. rmdir conf$$.dir 2>/dev/null
  18753.  
  18754. if mkdir -p . 2>/dev/null; then
  18755. as_mkdir_p=:
  18756. else
  18757. test -d ./-p && rmdir ./-p
  18758. as_mkdir_p=false
  18759. fi
  18760.  
  18761. if test -x / >/dev/null 2>&1; then
  18762. as_test_x='test -x'
  18763. else
  18764. if ls -dL / >/dev/null 2>&1; then
  18765. as_ls_L_option=L
  18766. else
  18767. as_ls_L_option=
  18768. fi
  18769. as_test_x='
  18770. eval sh -c '\''
  18771. if test -d "$1"; then
  18772. test -d "$1/.";
  18773. else
  18774. case $1 in
  18775. -*)set "./$1";;
  18776. esac;
  18777. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  18778. ???[sx]*):;;*)false;;esac;fi
  18779. '\'' sh
  18780. '
  18781. fi
  18782. as_executable_p=$as_test_x
  18783.  
  18784. # Sed expression to map a string onto a valid CPP name.
  18785. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18786.  
  18787. # Sed expression to map a string onto a valid variable name.
  18788. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18789.  
  18790.  
  18791. exec 6>&1
  18792.  
  18793. # Save the log message, to keep $[0] and so on meaningful, and to
  18794. # report actual input values of CONFIG_FILES etc. instead of their
  18795. # values after options handling.
  18796. ac_log="
  18797. This file was extended by clsync $as_me 0.3, which was
  18798. generated by GNU Autoconf 2.63. Invocation command line was
  18799.  
  18800. CONFIG_FILES = $CONFIG_FILES
  18801. CONFIG_HEADERS = $CONFIG_HEADERS
  18802. CONFIG_LINKS = $CONFIG_LINKS
  18803. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18804. $ $0 $@
  18805.  
  18806. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18807. "
  18808.  
  18809. _ACEOF
  18810.  
  18811. case $ac_config_files in *"
  18812. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18813. esac
  18814.  
  18815. case $ac_config_headers in *"
  18816. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18817. esac
  18818.  
  18819.  
  18820. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18821. # Files that config.status was made for.
  18822. config_files="$ac_config_files"
  18823. config_headers="$ac_config_headers"
  18824. config_commands="$ac_config_commands"
  18825.  
  18826. _ACEOF
  18827.  
  18828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18829. ac_cs_usage="\
  18830. \`$as_me' instantiates files from templates according to the
  18831. current configuration.
  18832.  
  18833. Usage: $0 [OPTION]... [FILE]...
  18834.  
  18835. -h, --help print this help, then exit
  18836. -V, --version print version number and configuration settings, then exit
  18837. -q, --quiet, --silent
  18838. do not print progress messages
  18839. -d, --debug don't remove temporary files
  18840. --recheck update $as_me by reconfiguring in the same conditions
  18841. --file=FILE[:TEMPLATE]
  18842. instantiate the configuration file FILE
  18843. --header=FILE[:TEMPLATE]
  18844. instantiate the configuration header FILE
  18845.  
  18846. Configuration files:
  18847. $config_files
  18848.  
  18849. Configuration headers:
  18850. $config_headers
  18851.  
  18852. Configuration commands:
  18853. $config_commands
  18854.  
  18855. Report bugs to <bug-autoconf@gnu.org>."
  18856.  
  18857. _ACEOF
  18858. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18859. ac_cs_version="\\
  18860. clsync config.status 0.3
  18861. configured by $0, generated by GNU Autoconf 2.63,
  18862. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  18863.  
  18864. Copyright (C) 2008 Free Software Foundation, Inc.
  18865. This config.status script is free software; the Free Software Foundation
  18866. gives unlimited permission to copy, distribute and modify it."
  18867.  
  18868. ac_pwd='$ac_pwd'
  18869. srcdir='$srcdir'
  18870. INSTALL='$INSTALL'
  18871. MKDIR_P='$MKDIR_P'
  18872. AWK='$AWK'
  18873. test -n "\$AWK" || AWK=awk
  18874. _ACEOF
  18875.  
  18876. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18877. # The default lists apply if the user does not specify any file.
  18878. ac_need_defaults=:
  18879. while test $# != 0
  18880. do
  18881. case $1 in
  18882. --*=*)
  18883. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18884. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18885. ac_shift=:
  18886. ;;
  18887. *)
  18888. ac_option=$1
  18889. ac_optarg=$2
  18890. ac_shift=shift
  18891. ;;
  18892. esac
  18893.  
  18894. case $ac_option in
  18895. # Handling of the options.
  18896. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18897. ac_cs_recheck=: ;;
  18898. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18899. $as_echo "$ac_cs_version"; exit ;;
  18900. --debug | --debu | --deb | --de | --d | -d )
  18901. debug=: ;;
  18902. --file | --fil | --fi | --f )
  18903. $ac_shift
  18904. case $ac_optarg in
  18905. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18906. esac
  18907. CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
  18908. ac_need_defaults=false;;
  18909. --header | --heade | --head | --hea )
  18910. $ac_shift
  18911. case $ac_optarg in
  18912. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18913. esac
  18914. CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
  18915. ac_need_defaults=false;;
  18916. --he | --h)
  18917. # Conflict between --help and --header
  18918. { $as_echo "$as_me: error: ambiguous option: $1
  18919. Try \`$0 --help' for more information." >&2
  18920. { (exit 1); exit 1; }; };;
  18921. --help | --hel | -h )
  18922. $as_echo "$ac_cs_usage"; exit ;;
  18923. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18924. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18925. ac_cs_silent=: ;;
  18926.  
  18927. # This is an error.
  18928. -*) { $as_echo "$as_me: error: unrecognized option: $1
  18929. Try \`$0 --help' for more information." >&2
  18930. { (exit 1); exit 1; }; } ;;
  18931.  
  18932. *) ac_config_targets="$ac_config_targets $1"
  18933. ac_need_defaults=false ;;
  18934.  
  18935. esac
  18936. shift
  18937. done
  18938.  
  18939. ac_configure_extra_args=
  18940.  
  18941. if $ac_cs_silent; then
  18942. exec 6>/dev/null
  18943. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18944. fi
  18945.  
  18946. _ACEOF
  18947. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18948. if \$ac_cs_recheck; then
  18949. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18950. shift
  18951. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18952. CONFIG_SHELL='$SHELL'
  18953. export CONFIG_SHELL
  18954. exec "\$@"
  18955. fi
  18956.  
  18957. _ACEOF
  18958. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18959. exec 5>>config.log
  18960. {
  18961. echo
  18962. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18963. ## Running $as_me. ##
  18964. _ASBOX
  18965. $as_echo "$ac_log"
  18966. } >&5
  18967.  
  18968. _ACEOF
  18969. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18970. #
  18971. # INIT-COMMANDS
  18972. #
  18973. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18974.  
  18975.  
  18976. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18977. # if CDPATH is set.
  18978. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18979.  
  18980. sed_quote_subst='$sed_quote_subst'
  18981. double_quote_subst='$double_quote_subst'
  18982. delay_variable_subst='$delay_variable_subst'
  18983. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  18984. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  18985. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  18986. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  18987. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  18988. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  18989. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18990. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  18991. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  18992. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  18993. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  18994. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  18995. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  18996. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  18997. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  18998. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  18999. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  19000. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  19001. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  19002. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  19003. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  19004. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  19005. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  19006. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  19007. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  19008. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  19009. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19010. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19011. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  19012. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  19013. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  19014. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  19015. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  19016. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  19017. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  19018. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19019. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19020. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19021. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  19022. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  19023. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  19024. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  19025. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  19026. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  19027. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  19028. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  19029. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  19030. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  19031. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  19032. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  19033. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19034. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  19035. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  19036. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  19037. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  19038. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  19039. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  19040. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  19041. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  19042. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  19043. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  19044. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  19045. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19046. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19047. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  19048. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  19049. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19050. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19051. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  19052. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19053. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19054. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19055. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19056. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19057. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19058. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  19059. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19060. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  19061. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19062. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  19063. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  19064. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  19065. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  19066. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  19067. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19068. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  19069. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  19070. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  19071. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  19072. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  19073. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19074. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  19075. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  19076. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19077. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19078. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  19079. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  19080. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  19081. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  19082. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19083. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  19084. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  19085. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19086. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19087. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19088. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19089. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19090. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  19091. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  19092. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  19093. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19094. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  19095. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  19096. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  19097. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  19098. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  19099. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  19100. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  19101.  
  19102. LTCC='$LTCC'
  19103. LTCFLAGS='$LTCFLAGS'
  19104. compiler='$compiler_DEFAULT'
  19105.  
  19106. # Quote evaled strings.
  19107. for var in SED \
  19108. GREP \
  19109. EGREP \
  19110. FGREP \
  19111. LD \
  19112. NM \
  19113. LN_S \
  19114. lt_SP2NL \
  19115. lt_NL2SP \
  19116. reload_flag \
  19117. OBJDUMP \
  19118. deplibs_check_method \
  19119. file_magic_cmd \
  19120. AR \
  19121. AR_FLAGS \
  19122. STRIP \
  19123. RANLIB \
  19124. CC \
  19125. CFLAGS \
  19126. compiler \
  19127. lt_cv_sys_global_symbol_pipe \
  19128. lt_cv_sys_global_symbol_to_cdecl \
  19129. lt_cv_sys_global_symbol_to_c_name_address \
  19130. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19131. SHELL \
  19132. ECHO \
  19133. lt_prog_compiler_no_builtin_flag \
  19134. lt_prog_compiler_wl \
  19135. lt_prog_compiler_pic \
  19136. lt_prog_compiler_static \
  19137. lt_cv_prog_compiler_c_o \
  19138. need_locks \
  19139. DSYMUTIL \
  19140. NMEDIT \
  19141. LIPO \
  19142. OTOOL \
  19143. OTOOL64 \
  19144. shrext_cmds \
  19145. export_dynamic_flag_spec \
  19146. whole_archive_flag_spec \
  19147. compiler_needs_object \
  19148. with_gnu_ld \
  19149. allow_undefined_flag \
  19150. no_undefined_flag \
  19151. hardcode_libdir_flag_spec \
  19152. hardcode_libdir_flag_spec_ld \
  19153. hardcode_libdir_separator \
  19154. fix_srcfile_path \
  19155. exclude_expsyms \
  19156. include_expsyms \
  19157. file_list_spec \
  19158. variables_saved_for_relink \
  19159. libname_spec \
  19160. library_names_spec \
  19161. soname_spec \
  19162. finish_eval \
  19163. old_striplib \
  19164. striplib; do
  19165. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  19166. *[\\\\\\\`\\"\\\$]*)
  19167. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19168. ;;
  19169. *)
  19170. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19171. ;;
  19172. esac
  19173. done
  19174.  
  19175. # Double-quote double-evaled strings.
  19176. for var in reload_cmds \
  19177. old_postinstall_cmds \
  19178. old_postuninstall_cmds \
  19179. old_archive_cmds \
  19180. extract_expsyms_cmds \
  19181. old_archive_from_new_cmds \
  19182. old_archive_from_expsyms_cmds \
  19183. archive_cmds \
  19184. archive_expsym_cmds \
  19185. module_cmds \
  19186. module_expsym_cmds \
  19187. export_symbols_cmds \
  19188. prelink_cmds \
  19189. postinstall_cmds \
  19190. postuninstall_cmds \
  19191. finish_cmds \
  19192. sys_lib_search_path_spec \
  19193. sys_lib_dlsearch_path_spec; do
  19194. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  19195. *[\\\\\\\`\\"\\\$]*)
  19196. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19197. ;;
  19198. *)
  19199. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19200. ;;
  19201. esac
  19202. done
  19203.  
  19204. # Fix-up fallback echo if it was mangled by the above quoting rules.
  19205. case \$lt_ECHO in
  19206. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  19207. ;;
  19208. esac
  19209.  
  19210. ac_aux_dir='$ac_aux_dir'
  19211. xsi_shell='$xsi_shell'
  19212. lt_shell_append='$lt_shell_append'
  19213.  
  19214. # See if we are running on zsh, and set the options which allow our
  19215. # commands through without removal of \ escapes INIT.
  19216. if test -n "\${ZSH_VERSION+set}" ; then
  19217. setopt NO_GLOB_SUBST
  19218. fi
  19219.  
  19220.  
  19221. PACKAGE='$PACKAGE'
  19222. VERSION='$VERSION'
  19223. TIMESTAMP='$TIMESTAMP'
  19224. RM='$RM'
  19225. ofile='$ofile'
  19226.  
  19227.  
  19228.  
  19229.  
  19230. _ACEOF
  19231.  
  19232. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19233.  
  19234. # Handling of arguments.
  19235. for ac_config_target in $ac_config_targets
  19236. do
  19237. case $ac_config_target in
  19238. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  19239. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19240. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19241. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19242. "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
  19243. "pkgconfig/libclsync.pc") CONFIG_FILES="$CONFIG_FILES pkgconfig/libclsync.pc" ;;
  19244.  
  19245. *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19246. $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19247. { (exit 1); exit 1; }; };;
  19248. esac
  19249. done
  19250.  
  19251.  
  19252. # If the user did not use the arguments to specify the items to instantiate,
  19253. # then the envvar interface is used. Set only those that are not.
  19254. # We use the long form for the default assignment because of an extremely
  19255. # bizarre bug on SunOS 4.1.3.
  19256. if $ac_need_defaults; then
  19257. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19258. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19259. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19260. fi
  19261.  
  19262. # Have a temporary directory for convenience. Make it in the build tree
  19263. # simply because there is no reason against having it here, and in addition,
  19264. # creating and moving files from /tmp can sometimes cause problems.
  19265. # Hook for its removal unless debugging.
  19266. # Note that there is a small window in which the directory will not be cleaned:
  19267. # after its creation but before its name has been assigned to `$tmp'.
  19268. $debug ||
  19269. {
  19270. tmp=
  19271. trap 'exit_status=$?
  19272. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  19273. ' 0
  19274. trap '{ (exit 1); exit 1; }' 1 2 13 15
  19275. }
  19276. # Create a (secure) tmp directory for tmp files.
  19277.  
  19278. {
  19279. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19280. test -n "$tmp" && test -d "$tmp"
  19281. } ||
  19282. {
  19283. tmp=./conf$$-$RANDOM
  19284. (umask 077 && mkdir "$tmp")
  19285. } ||
  19286. {
  19287. $as_echo "$as_me: cannot create a temporary directory in ." >&2
  19288. { (exit 1); exit 1; }
  19289. }
  19290.  
  19291. # Set up the scripts for CONFIG_FILES section.
  19292. # No need to generate them if there are no CONFIG_FILES.
  19293. # This happens for instance with `./config.status config.h'.
  19294. if test -n "$CONFIG_FILES"; then
  19295.  
  19296.  
  19297. 'c_cr='
  19298. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19299. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19300. ac_cs_awk_cr='\\r'
  19301. else
  19302. ac_cs_awk_cr=$ac_cr
  19303. fi
  19304.  
  19305. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  19306. _ACEOF
  19307.  
  19308.  
  19309. {
  19310. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19311. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19312. echo "_ACEOF"
  19313. } >conf$$subs.sh ||
  19314. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19315. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19316. { (exit 1); exit 1; }; }
  19317. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  19318. ac_delim='%!_!# '
  19319. for ac_last_try in false false false false false :; do
  19320. . ./conf$$subs.sh ||
  19321. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19322. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19323. { (exit 1); exit 1; }; }
  19324.  
  19325. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19326. if test $ac_delim_n = $ac_delim_num; then
  19327. break
  19328. elif $ac_last_try; then
  19329. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  19330. $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  19331. { (exit 1); exit 1; }; }
  19332. else
  19333. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19334. fi
  19335. done
  19336. rm -f conf$$subs.sh
  19337.  
  19338. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19339. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  19340. _ACEOF
  19341. sed -n '
  19342. h
  19343. s/^/S["/; s/!.*/"]=/
  19344. p
  19345. g
  19346. s/^[^!]*!//
  19347. :repl
  19348. t repl
  19349. s/'"$ac_delim"'$//
  19350. t delim
  19351. :nl
  19352. h
  19353. s/\(.\{148\}\).*/\1/
  19354. t more1
  19355. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19356. p
  19357. n
  19358. b repl
  19359. :more1
  19360. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19361. p
  19362. g
  19363. s/.\{148\}//
  19364. t nl
  19365. :delim
  19366. h
  19367. s/\(.\{148\}\).*/\1/
  19368. t more2
  19369. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19370. p
  19371. b
  19372. :more2
  19373. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19374. p
  19375. g
  19376. s/.\{148\}//
  19377. t delim
  19378. ' <conf$$subs.awk | sed '
  19379. /^[^""]/{
  19380. N
  19381. s/\n//
  19382. }
  19383. ' >>$CONFIG_STATUS || ac_write_fail=1
  19384. rm -f conf$$subs.awk
  19385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19386. _ACAWK
  19387. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  19388. for (key in S) S_is_set[key] = 1
  19389. FS = ""
  19390.  
  19391. }
  19392. {
  19393. line = $ 0
  19394. nfields = split(line, field, "@")
  19395. substed = 0
  19396. len = length(field[1])
  19397. for (i = 2; i < nfields; i++) {
  19398. key = field[i]
  19399. keylen = length(key)
  19400. if (S_is_set[key]) {
  19401. value = S[key]
  19402. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19403. len += length(value) + length(field[++i])
  19404. substed = 1
  19405. } else
  19406. len += 1 + keylen
  19407. }
  19408.  
  19409. print line
  19410. }
  19411.  
  19412. _ACAWK
  19413. _ACEOF
  19414. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19415. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19416. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19417. else
  19418. cat
  19419. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  19420. || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
  19421. $as_echo "$as_me: error: could not setup config files machinery" >&2;}
  19422. { (exit 1); exit 1; }; }
  19423. _ACEOF
  19424.  
  19425. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  19426. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19427. # trailing colons and then remove the whole line if VPATH becomes empty
  19428. # (actually we leave an empty line to preserve line numbers).
  19429. if test "x$srcdir" = x.; then
  19430. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19431. s/:*\$(srcdir):*/:/
  19432. s/:*\${srcdir}:*/:/
  19433. s/:*@srcdir@:*/:/
  19434. s/^\([^=]*=[ ]*\):*/\1/
  19435. s/:*$//
  19436. s/^[^=]*=[ ]*$//
  19437. }'
  19438. fi
  19439.  
  19440. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19441. fi # test -n "$CONFIG_FILES"
  19442.  
  19443. # Set up the scripts for CONFIG_HEADERS section.
  19444. # No need to generate them if there are no CONFIG_HEADERS.
  19445. # This happens for instance with `./config.status Makefile'.
  19446. if test -n "$CONFIG_HEADERS"; then
  19447. cat >"$tmp/defines.awk" <<\_ACAWK ||
  19448. BEGIN {
  19449. _ACEOF
  19450.  
  19451. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19452. # here-document in config.status, that substitutes the proper values into
  19453. # config.h.in to produce config.h.
  19454.  
  19455. # Create a delimiter string that does not exist in confdefs.h, to ease
  19456. # handling of long lines.
  19457. ac_delim='%!_!# '
  19458. for ac_last_try in false false :; do
  19459. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  19460. if test -z "$ac_t"; then
  19461. break
  19462. elif $ac_last_try; then
  19463. { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
  19464. $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
  19465. { (exit 1); exit 1; }; }
  19466. else
  19467. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19468. fi
  19469. done
  19470.  
  19471. # For the awk script, D is an array of macro values keyed by name,
  19472. # likewise P contains macro parameters if any. Preserve backslash
  19473. # newline sequences.
  19474.  
  19475. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19476. sed -n '
  19477. s/.\{148\}/&'"$ac_delim"'/g
  19478. t rset
  19479. :rset
  19480. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19481. t def
  19482. d
  19483. :def
  19484. s/\\$//
  19485. t bsnl
  19486. s/["\\]/\\&/g
  19487. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19488. D["\1"]=" \3"/p
  19489. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19490. d
  19491. :bsnl
  19492. s/["\\]/\\&/g
  19493. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19494. D["\1"]=" \3\\\\\\n"\\/p
  19495. t cont
  19496. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19497. t cont
  19498. d
  19499. :cont
  19500. n
  19501. s/.\{148\}/&'"$ac_delim"'/g
  19502. t clear
  19503. :clear
  19504. s/\\$//
  19505. t bsnlc
  19506. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19507. d
  19508. :bsnlc
  19509. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19510. b cont
  19511. ' <confdefs.h | sed '
  19512. s/'"$ac_delim"'/"\\\
  19513. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19514.  
  19515. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19516. for (key in D) D_is_set[key] = 1
  19517. FS = ""
  19518. }
  19519. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19520. line = \$ 0
  19521. split(line, arg, " ")
  19522. if (arg[1] == "#") {
  19523. defundef = arg[2]
  19524. mac1 = arg[3]
  19525. } else {
  19526. defundef = substr(arg[1], 2)
  19527. mac1 = arg[2]
  19528. }
  19529. split(mac1, mac2, "(") #)
  19530. macro = mac2[1]
  19531. prefix = substr(line, 1, index(line, defundef) - 1)
  19532. if (D_is_set[macro]) {
  19533. # Preserve the white space surrounding the "#".
  19534. print prefix "define", macro P[macro] D[macro]
  19535. next
  19536. } else {
  19537. # Replace #undef with comments. This is necessary, for example,
  19538. # in the case of _POSIX_SOURCE, which is predefined and required
  19539. # on some systems where configure will not decide to define it.
  19540. if (defundef == "undef") {
  19541. print "/*", prefix defundef, macro, "*/"
  19542. next
  19543. }
  19544. }
  19545. }
  19546. { print }
  19547. _ACAWK
  19548. _ACEOF
  19549. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19550. { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
  19551. $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
  19552. { (exit 1); exit 1; }; }
  19553. fi # test -n "$CONFIG_HEADERS"
  19554.  
  19555.  
  19556. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19557. shift
  19558. for ac_tag
  19559. do
  19560. case $ac_tag in
  19561. :[FHLC]) ac_mode=$ac_tag; continue;;
  19562. esac
  19563. case $ac_mode$ac_tag in
  19564. :[FHL]*:*);;
  19565. :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
  19566. $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
  19567. { (exit 1); exit 1; }; };;
  19568. :[FH]-) ac_tag=-:-;;
  19569. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19570. esac
  19571. ac_save_IFS=$IFS
  19572. IFS=:
  19573. set x $ac_tag
  19574. IFS=$ac_save_IFS
  19575. shift
  19576. ac_file=$1
  19577. shift
  19578.  
  19579. case $ac_mode in
  19580. :L) ac_source=$1;;
  19581. :[FH])
  19582. ac_file_inputs=
  19583. for ac_f
  19584. do
  19585. case $ac_f in
  19586. -) ac_f="$tmp/stdin";;
  19587. *) # Look for the file first in the build tree, then in the source tree
  19588. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19589. # because $ac_f cannot contain `:'.
  19590. test -f "$ac_f" ||
  19591. case $ac_f in
  19592. [\\/$]*) false;;
  19593. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19594. esac ||
  19595. { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  19596. $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  19597. { (exit 1); exit 1; }; };;
  19598. esac
  19599. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19600. ac_file_inputs="$ac_file_inputs '$ac_f'"
  19601. done
  19602.  
  19603. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19604. # use $as_me), people would be surprised to read:
  19605. # /* config.h. Generated by config.status. */
  19606. configure_input='Generated from '`
  19607. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19608. `' by configure.'
  19609. if test x"$ac_file" != x-; then
  19610. configure_input="$ac_file. $configure_input"
  19611. { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
  19612. $as_echo "$as_me: creating $ac_file" >&6;}
  19613. fi
  19614. # Neutralize special characters interpreted by sed in replacement strings.
  19615. case $configure_input in #(
  19616. *\&* | *\|* | *\\* )
  19617. ac_sed_conf_input=`$as_echo "$configure_input" |
  19618. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19619. *) ac_sed_conf_input=$configure_input;;
  19620. esac
  19621.  
  19622. case $ac_tag in
  19623. *:-:* | *:-) cat >"$tmp/stdin" \
  19624. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  19625. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  19626. { (exit 1); exit 1; }; } ;;
  19627. esac
  19628. ;;
  19629. esac
  19630.  
  19631. ac_dir=`$as_dirname -- "$ac_file" ||
  19632. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19633. X"$ac_file" : 'X\(//\)[^/]' \| \
  19634. X"$ac_file" : 'X\(//\)$' \| \
  19635. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19636. $as_echo X"$ac_file" |
  19637. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19638. s//\1/
  19639. q
  19640. }
  19641. /^X\(\/\/\)[^/].*/{
  19642. s//\1/
  19643. q
  19644. }
  19645. /^X\(\/\/\)$/{
  19646. s//\1/
  19647. q
  19648. }
  19649. /^X\(\/\).*/{
  19650. s//\1/
  19651. q
  19652. }
  19653. s/.*/./; q'`
  19654. { as_dir="$ac_dir"
  19655. case $as_dir in #(
  19656. -*) as_dir=./$as_dir;;
  19657. esac
  19658. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19659. as_dirs=
  19660. while :; do
  19661. case $as_dir in #(
  19662. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19663. *) as_qdir=$as_dir;;
  19664. esac
  19665. as_dirs="'$as_qdir' $as_dirs"
  19666. as_dir=`$as_dirname -- "$as_dir" ||
  19667. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19668. X"$as_dir" : 'X\(//\)[^/]' \| \
  19669. X"$as_dir" : 'X\(//\)$' \| \
  19670. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  19671. $as_echo X"$as_dir" |
  19672. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19673. s//\1/
  19674. q
  19675. }
  19676. /^X\(\/\/\)[^/].*/{
  19677. s//\1/
  19678. q
  19679. }
  19680. /^X\(\/\/\)$/{
  19681. s//\1/
  19682. q
  19683. }
  19684. /^X\(\/\).*/{
  19685. s//\1/
  19686. q
  19687. }
  19688. s/.*/./; q'`
  19689. test -d "$as_dir" && break
  19690. done
  19691. test -z "$as_dirs" || eval "mkdir $as_dirs"
  19692. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  19693. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  19694. { (exit 1); exit 1; }; }; }
  19695. ac_builddir=.
  19696.  
  19697. case "$ac_dir" in
  19698. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19699. *)
  19700. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19701. # A ".." for each directory in $ac_dir_suffix.
  19702. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19703. case $ac_top_builddir_sub in
  19704. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19705. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19706. esac ;;
  19707. esac
  19708. ac_abs_top_builddir=$ac_pwd
  19709. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19710. # for backward compatibility:
  19711. ac_top_builddir=$ac_top_build_prefix
  19712.  
  19713. case $srcdir in
  19714. .) # We are building in place.
  19715. ac_srcdir=.
  19716. ac_top_srcdir=$ac_top_builddir_sub
  19717. ac_abs_top_srcdir=$ac_pwd ;;
  19718. [\\/]* | ?:[\\/]* ) # Absolute name.
  19719. ac_srcdir=$srcdir$ac_dir_suffix;
  19720. ac_top_srcdir=$srcdir
  19721. ac_abs_top_srcdir=$srcdir ;;
  19722. *) # Relative name.
  19723. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19724. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19725. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19726. esac
  19727. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19728.  
  19729.  
  19730. case $ac_mode in
  19731. :F)
  19732. #
  19733. # CONFIG_FILE
  19734. #
  19735.  
  19736. case $INSTALL in
  19737. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19738. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19739. esac
  19740. ac_MKDIR_P=$MKDIR_P
  19741. case $MKDIR_P in
  19742. [\\/$]* | ?:[\\/]* ) ;;
  19743. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19744. esac
  19745. _ACEOF
  19746.  
  19747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19748. # If the template does not know about datarootdir, expand it.
  19749. # FIXME: This hack should be removed a few years after 2.60.
  19750. ac_datarootdir_hack=; ac_datarootdir_seen=
  19751.  
  19752. ac_sed_dataroot='
  19753. /datarootdir/ {
  19754. p
  19755. q
  19756. }
  19757. /@datadir@/p
  19758. /@docdir@/p
  19759. /@infodir@/p
  19760. /@localedir@/p
  19761. /@mandir@/p
  19762. '
  19763. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19764. *datarootdir*) ac_datarootdir_seen=yes;;
  19765. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19766. { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19767. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19768. _ACEOF
  19769. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19770. ac_datarootdir_hack='
  19771. s&@datadir@&$datadir&g
  19772. s&@docdir@&$docdir&g
  19773. s&@infodir@&$infodir&g
  19774. s&@localedir@&$localedir&g
  19775. s&@mandir@&$mandir&g
  19776. s&\\\${datarootdir}&$datarootdir&g' ;;
  19777. esac
  19778. _ACEOF
  19779.  
  19780. # Neutralize VPATH when `$srcdir' = `.'.
  19781. # Shell code in configure.ac might set extrasub.
  19782. # FIXME: do we really want to maintain this feature?
  19783. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19784. ac_sed_extra="$ac_vpsub
  19785. $extrasub
  19786. _ACEOF
  19787. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19788. :t
  19789. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19790. s|@configure_input@|$ac_sed_conf_input|;t t
  19791. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19792. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19793. s&@srcdir@&$ac_srcdir&;t t
  19794. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19795. s&@top_srcdir@&$ac_top_srcdir&;t t
  19796. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19797. s&@builddir@&$ac_builddir&;t t
  19798. s&@abs_builddir@&$ac_abs_builddir&;t t
  19799. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19800. s&@INSTALL@&$ac_INSTALL&;t t
  19801. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19802. $ac_datarootdir_hack
  19803. "
  19804. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  19805. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  19806. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  19807. { (exit 1); exit 1; }; }
  19808.  
  19809. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19810. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  19811. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  19812. { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19813. which seems to be undefined. Please make sure it is defined." >&5
  19814. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19815. which seems to be undefined. Please make sure it is defined." >&2;}
  19816.  
  19817. rm -f "$tmp/stdin"
  19818. case $ac_file in
  19819. -) cat "$tmp/out" && rm -f "$tmp/out";;
  19820. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  19821. esac \
  19822. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  19823. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  19824. { (exit 1); exit 1; }; }
  19825. ;;
  19826. :H)
  19827. #
  19828. # CONFIG_HEADER
  19829. #
  19830. if test x"$ac_file" != x-; then
  19831. {
  19832. $as_echo "/* $configure_input */" \
  19833. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  19834. } >"$tmp/config.h" \
  19835. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  19836. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  19837. { (exit 1); exit 1; }; }
  19838. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  19839. { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  19840. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19841. else
  19842. rm -f "$ac_file"
  19843. mv "$tmp/config.h" "$ac_file" \
  19844. || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
  19845. $as_echo "$as_me: error: could not create $ac_file" >&2;}
  19846. { (exit 1); exit 1; }; }
  19847. fi
  19848. else
  19849. $as_echo "/* $configure_input */" \
  19850. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  19851. || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
  19852. $as_echo "$as_me: error: could not create -" >&2;}
  19853. { (exit 1); exit 1; }; }
  19854. fi
  19855. # Compute "$ac_file"'s index in $config_headers.
  19856. _am_arg="$ac_file"
  19857. _am_stamp_count=1
  19858. for _am_header in $config_headers :; do
  19859. case $_am_header in
  19860. $_am_arg | $_am_arg:* )
  19861. break ;;
  19862. * )
  19863. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19864. esac
  19865. done
  19866. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19867. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19868. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19869. X"$_am_arg" : 'X\(//\)$' \| \
  19870. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19871. $as_echo X"$_am_arg" |
  19872. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19873. s//\1/
  19874. q
  19875. }
  19876. /^X\(\/\/\)[^/].*/{
  19877. s//\1/
  19878. q
  19879. }
  19880. /^X\(\/\/\)$/{
  19881. s//\1/
  19882. q
  19883. }
  19884. /^X\(\/\).*/{
  19885. s//\1/
  19886. q
  19887. }
  19888. s/.*/./; q'`/stamp-h$_am_stamp_count
  19889. ;;
  19890.  
  19891. :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
  19892. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19893. ;;
  19894. esac
  19895.  
  19896.  
  19897. case $ac_file$ac_mode in
  19898. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19899. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19900. # are listed without --file. Let's play safe and only enable the eval
  19901. # if we detect the quoting.
  19902. case $CONFIG_FILES in
  19903. *\'*) eval set x "$CONFIG_FILES" ;;
  19904. *) set x $CONFIG_FILES ;;
  19905. esac
  19906. shift
  19907. for mf
  19908. do
  19909. # Strip MF so we end up with the name of the file.
  19910. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19911. # Check whether this is an Automake generated Makefile or not.
  19912. # We used to match only the files named `Makefile.in', but
  19913. # some people rename them; so instead we look at the file content.
  19914. # Grep'ing the first line is not enough: some people post-process
  19915. # each Makefile.in and add a new line on top of each file to say so.
  19916. # Grep'ing the whole file is not good either: AIX grep has a line
  19917. # limit of 2048, but all sed's we know have understand at least 4000.
  19918. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19919. dirpart=`$as_dirname -- "$mf" ||
  19920. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19921. X"$mf" : 'X\(//\)[^/]' \| \
  19922. X"$mf" : 'X\(//\)$' \| \
  19923. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19924. $as_echo X"$mf" |
  19925. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19926. s//\1/
  19927. q
  19928. }
  19929. /^X\(\/\/\)[^/].*/{
  19930. s//\1/
  19931. q
  19932. }
  19933. /^X\(\/\/\)$/{
  19934. s//\1/
  19935. q
  19936. }
  19937. /^X\(\/\).*/{
  19938. s//\1/
  19939. q
  19940. }
  19941. s/.*/./; q'`
  19942. else
  19943. continue
  19944. fi
  19945. # Extract the definition of DEPDIR, am__include, and am__quote
  19946. # from the Makefile without running `make'.
  19947. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19948. test -z "$DEPDIR" && continue
  19949. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19950. test -z "am__include" && continue
  19951. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19952. # When using ansi2knr, U may be empty or an underscore; expand it
  19953. U=`sed -n 's/^U = //p' < "$mf"`
  19954. # Find all dependency output files, they are included files with
  19955. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19956. # simplest approach to changing $(DEPDIR) to its actual value in the
  19957. # expansion.
  19958. for file in `sed -n "
  19959. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19960. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  19961. # Make sure the directory exists.
  19962. test -f "$dirpart/$file" && continue
  19963. fdir=`$as_dirname -- "$file" ||
  19964. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19965. X"$file" : 'X\(//\)[^/]' \| \
  19966. X"$file" : 'X\(//\)$' \| \
  19967. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19968. $as_echo X"$file" |
  19969. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19970. s//\1/
  19971. q
  19972. }
  19973. /^X\(\/\/\)[^/].*/{
  19974. s//\1/
  19975. q
  19976. }
  19977. /^X\(\/\/\)$/{
  19978. s//\1/
  19979. q
  19980. }
  19981. /^X\(\/\).*/{
  19982. s//\1/
  19983. q
  19984. }
  19985. s/.*/./; q'`
  19986. { as_dir=$dirpart/$fdir
  19987. case $as_dir in #(
  19988. -*) as_dir=./$as_dir;;
  19989. esac
  19990. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  19991. as_dirs=
  19992. while :; do
  19993. case $as_dir in #(
  19994. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  19995. *) as_qdir=$as_dir;;
  19996. esac
  19997. as_dirs="'$as_qdir' $as_dirs"
  19998. as_dir=`$as_dirname -- "$as_dir" ||
  19999. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20000. X"$as_dir" : 'X\(//\)[^/]' \| \
  20001. X"$as_dir" : 'X\(//\)$' \| \
  20002. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  20003. $as_echo X"$as_dir" |
  20004. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  20005. s//\1/
  20006. q
  20007. }
  20008. /^X\(\/\/\)[^/].*/{
  20009. s//\1/
  20010. q
  20011. }
  20012. /^X\(\/\/\)$/{
  20013. s//\1/
  20014. q
  20015. }
  20016. /^X\(\/\).*/{
  20017. s//\1/
  20018. q
  20019. }
  20020. s/.*/./; q'`
  20021. test -d "$as_dir" && break
  20022. done
  20023. test -z "$as_dirs" || eval "mkdir $as_dirs"
  20024. } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  20025. $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
  20026. { (exit 1); exit 1; }; }; }
  20027. # echo "creating $dirpart/$file"
  20028. echo '# dummy' > "$dirpart/$file"
  20029. done
  20030. done
  20031. }
  20032. ;;
  20033. "libtool":C)
  20034.  
  20035. # See if we are running on zsh, and set the options which allow our
  20036. # commands through without removal of \ escapes.
  20037. if test -n "${ZSH_VERSION+set}" ; then
  20038. setopt NO_GLOB_SUBST
  20039. fi
  20040.  
  20041. cfgfile="${ofile}T"
  20042. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  20043. $RM "$cfgfile"
  20044.  
  20045. cat <<_LT_EOF >> "$cfgfile"
  20046. #! $SHELL
  20047.  
  20048. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  20049. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  20050. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  20051. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  20052. #
  20053. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  20054. # 2006, 2007, 2008 Free Software Foundation, Inc.
  20055. # Written by Gordon Matzigkeit, 1996
  20056. #
  20057. # This file is part of GNU Libtool.
  20058. #
  20059. # GNU Libtool is free software; you can redistribute it and/or
  20060. # modify it under the terms of the GNU General Public License as
  20061. # published by the Free Software Foundation; either version 2 of
  20062. # the License, or (at your option) any later version.
  20063. #
  20064. # As a special exception to the GNU General Public License,
  20065. # if you distribute this file as part of a program or library that
  20066. # is built using GNU Libtool, you may include this file under the
  20067. # same distribution terms that you use for the rest of that program.
  20068. #
  20069. # GNU Libtool is distributed in the hope that it will be useful,
  20070. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  20071. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20072. # GNU General Public License for more details.
  20073. #
  20074. # You should have received a copy of the GNU General Public License
  20075. # along with GNU Libtool; see the file COPYING. If not, a copy
  20076. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  20077. # obtained by writing to the Free Software Foundation, Inc.,
  20078. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  20079.  
  20080.  
  20081. # The names of the tagged configurations supported by this script.
  20082. available_tags=""
  20083.  
  20084. # ### BEGIN LIBTOOL CONFIG
  20085.  
  20086. # Which release of libtool.m4 was used?
  20087. macro_version=$macro_version
  20088. macro_revision=$macro_revision
  20089.  
  20090. # Whether or not to build shared libraries.
  20091. build_libtool_libs=$enable_shared
  20092.  
  20093. # Whether or not to build static libraries.
  20094. build_old_libs=$enable_static
  20095.  
  20096. # What type of objects to build.
  20097. pic_mode=$pic_mode
  20098.  
  20099. # Whether or not to optimize for fast installation.
  20100. fast_install=$enable_fast_install
  20101.  
  20102. # The host system.
  20103. host_alias=$host_alias
  20104. host=$host
  20105. host_os=$host_os
  20106.  
  20107. # The build system.
  20108. build_alias=$build_alias
  20109. build=$build
  20110. build_os=$build_os
  20111.  
  20112. # A sed program that does not truncate output.
  20113. SED=$lt_SED
  20114.  
  20115. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20116. Xsed="\$SED -e 1s/^X//"
  20117.  
  20118. # A grep program that handles long lines.
  20119. GREP=$lt_GREP
  20120.  
  20121. # An ERE matcher.
  20122. EGREP=$lt_EGREP
  20123.  
  20124. # A literal string matcher.
  20125. FGREP=$lt_FGREP
  20126.  
  20127. # A BSD- or MS-compatible name lister.
  20128. NM=$lt_NM
  20129.  
  20130. # Whether we need soft or hard links.
  20131. LN_S=$lt_LN_S
  20132.  
  20133. # What is the maximum length of a command?
  20134. max_cmd_len=$max_cmd_len
  20135.  
  20136. # Object file suffix (normally "o").
  20137. objext=$ac_objext
  20138.  
  20139. # Executable file suffix (normally "").
  20140. exeext=$exeext
  20141.  
  20142. # whether the shell understands "unset".
  20143. lt_unset=$lt_unset
  20144.  
  20145. # turn spaces into newlines.
  20146. SP2NL=$lt_lt_SP2NL
  20147.  
  20148. # turn newlines into spaces.
  20149. NL2SP=$lt_lt_NL2SP
  20150.  
  20151. # How to create reloadable object files.
  20152. reload_flag=$lt_reload_flag
  20153. reload_cmds=$lt_reload_cmds
  20154.  
  20155. # An object symbol dumper.
  20156. OBJDUMP=$lt_OBJDUMP
  20157.  
  20158. # Method to check whether dependent libraries are shared objects.
  20159. deplibs_check_method=$lt_deplibs_check_method
  20160.  
  20161. # Command to use when deplibs_check_method == "file_magic".
  20162. file_magic_cmd=$lt_file_magic_cmd
  20163.  
  20164. # The archiver.
  20165. AR=$lt_AR
  20166. AR_FLAGS=$lt_AR_FLAGS
  20167.  
  20168. # A symbol stripping program.
  20169. STRIP=$lt_STRIP
  20170.  
  20171. # Commands used to install an old-style archive.
  20172. RANLIB=$lt_RANLIB
  20173. old_postinstall_cmds=$lt_old_postinstall_cmds
  20174. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20175.  
  20176. # A C compiler.
  20177. LTCC=$lt_CC
  20178.  
  20179. # LTCC compiler flags.
  20180. LTCFLAGS=$lt_CFLAGS
  20181.  
  20182. # Take the output of nm and produce a listing of raw symbols and C names.
  20183. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20184.  
  20185. # Transform the output of nm in a proper C declaration.
  20186. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20187.  
  20188. # Transform the output of nm in a C name address pair.
  20189. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20190.  
  20191. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20192. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20193.  
  20194. # The name of the directory that contains temporary libtool files.
  20195. objdir=$objdir
  20196.  
  20197. # Shell to use when invoking shell scripts.
  20198. SHELL=$lt_SHELL
  20199.  
  20200. # An echo program that does not interpret backslashes.
  20201. ECHO=$lt_ECHO
  20202.  
  20203. # Used to examine libraries when file_magic_cmd begins with "file".
  20204. MAGIC_CMD=$MAGIC_CMD
  20205.  
  20206. # Must we lock files when doing compilation?
  20207. need_locks=$lt_need_locks
  20208.  
  20209. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20210. DSYMUTIL=$lt_DSYMUTIL
  20211.  
  20212. # Tool to change global to local symbols on Mac OS X.
  20213. NMEDIT=$lt_NMEDIT
  20214.  
  20215. # Tool to manipulate fat objects and archives on Mac OS X.
  20216. LIPO=$lt_LIPO
  20217.  
  20218. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20219. OTOOL=$lt_OTOOL
  20220.  
  20221. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20222. OTOOL64=$lt_OTOOL64
  20223.  
  20224. # Old archive suffix (normally "a").
  20225. libext=$libext
  20226.  
  20227. # Shared library suffix (normally ".so").
  20228. shrext_cmds=$lt_shrext_cmds
  20229.  
  20230. # The commands to extract the exported symbol list from a shared archive.
  20231. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20232.  
  20233. # Variables whose values should be saved in libtool wrapper scripts and
  20234. # restored at link time.
  20235. variables_saved_for_relink=$lt_variables_saved_for_relink
  20236.  
  20237. # Do we need the "lib" prefix for modules?
  20238. need_lib_prefix=$need_lib_prefix
  20239.  
  20240. # Do we need a version for libraries?
  20241. need_version=$need_version
  20242.  
  20243. # Library versioning type.
  20244. version_type=$version_type
  20245.  
  20246. # Shared library runtime path variable.
  20247. runpath_var=$runpath_var
  20248.  
  20249. # Shared library path variable.
  20250. shlibpath_var=$shlibpath_var
  20251.  
  20252. # Is shlibpath searched before the hard-coded library search path?
  20253. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20254.  
  20255. # Format of library name prefix.
  20256. libname_spec=$lt_libname_spec
  20257.  
  20258. # List of archive names. First name is the real one, the rest are links.
  20259. # The last name is the one that the linker finds with -lNAME
  20260. library_names_spec=$lt_library_names_spec
  20261.  
  20262. # The coded name of the library, if different from the real name.
  20263. soname_spec=$lt_soname_spec
  20264.  
  20265. # Command to use after installation of a shared archive.
  20266. postinstall_cmds=$lt_postinstall_cmds
  20267.  
  20268. # Command to use after uninstallation of a shared archive.
  20269. postuninstall_cmds=$lt_postuninstall_cmds
  20270.  
  20271. # Commands used to finish a libtool library installation in a directory.
  20272. finish_cmds=$lt_finish_cmds
  20273.  
  20274. # As "finish_cmds", except a single script fragment to be evaled but
  20275. # not shown.
  20276. finish_eval=$lt_finish_eval
  20277.  
  20278. # Whether we should hardcode library paths into libraries.
  20279. hardcode_into_libs=$hardcode_into_libs
  20280.  
  20281. # Compile-time system search path for libraries.
  20282. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20283.  
  20284. # Run-time system search path for libraries.
  20285. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20286.  
  20287. # Whether dlopen is supported.
  20288. dlopen_support=$enable_dlopen
  20289.  
  20290. # Whether dlopen of programs is supported.
  20291. dlopen_self=$enable_dlopen_self
  20292.  
  20293. # Whether dlopen of statically linked programs is supported.
  20294. dlopen_self_static=$enable_dlopen_self_static
  20295.  
  20296. # Commands to strip libraries.
  20297. old_striplib=$lt_old_striplib
  20298. striplib=$lt_striplib
  20299.  
  20300.  
  20301. # The linker used to build libraries.
  20302. LD=$lt_LD
  20303.  
  20304. # Commands used to build an old-style archive.
  20305. old_archive_cmds=$lt_old_archive_cmds
  20306.  
  20307. # A language specific compiler.
  20308. CC=$lt_compiler
  20309.  
  20310. # Is the compiler the GNU compiler?
  20311. with_gcc=$GCC
  20312.  
  20313. # Compiler flag to turn off builtin functions.
  20314. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20315.  
  20316. # How to pass a linker flag through the compiler.
  20317. wl=$lt_lt_prog_compiler_wl
  20318.  
  20319. # Additional compiler flags for building library objects.
  20320. pic_flag=$lt_lt_prog_compiler_pic
  20321.  
  20322. # Compiler flag to prevent dynamic linking.
  20323. link_static_flag=$lt_lt_prog_compiler_static
  20324.  
  20325. # Does compiler simultaneously support -c and -o options?
  20326. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20327.  
  20328. # Whether or not to add -lc for building shared libraries.
  20329. build_libtool_need_lc=$archive_cmds_need_lc
  20330.  
  20331. # Whether or not to disallow shared libs when runtime libs are static.
  20332. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20333.  
  20334. # Compiler flag to allow reflexive dlopens.
  20335. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20336.  
  20337. # Compiler flag to generate shared objects directly from archives.
  20338. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20339.  
  20340. # Whether the compiler copes with passing no objects directly.
  20341. compiler_needs_object=$lt_compiler_needs_object
  20342.  
  20343. # Create an old-style archive from a shared archive.
  20344. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20345.  
  20346. # Create a temporary old-style archive to link instead of a shared archive.
  20347. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20348.  
  20349. # Commands used to build a shared archive.
  20350. archive_cmds=$lt_archive_cmds
  20351. archive_expsym_cmds=$lt_archive_expsym_cmds
  20352.  
  20353. # Commands used to build a loadable module if different from building
  20354. # a shared archive.
  20355. module_cmds=$lt_module_cmds
  20356. module_expsym_cmds=$lt_module_expsym_cmds
  20357.  
  20358. # Whether we are building with GNU ld or not.
  20359. with_gnu_ld=$lt_with_gnu_ld
  20360.  
  20361. # Flag that allows shared libraries with undefined symbols to be built.
  20362. allow_undefined_flag=$lt_allow_undefined_flag
  20363.  
  20364. # Flag that enforces no undefined symbols.
  20365. no_undefined_flag=$lt_no_undefined_flag
  20366.  
  20367. # Flag to hardcode \$libdir into a binary during linking.
  20368. # This must work even if \$libdir does not exist
  20369. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20370.  
  20371. # If ld is used when linking, flag to hardcode \$libdir into a binary
  20372. # during linking. This must work even if \$libdir does not exist.
  20373. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  20374.  
  20375. # Whether we need a single "-rpath" flag with a separated argument.
  20376. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20377.  
  20378. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20379. # DIR into the resulting binary.
  20380. hardcode_direct=$hardcode_direct
  20381.  
  20382. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20383. # DIR into the resulting binary and the resulting library dependency is
  20384. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20385. # library is relocated.
  20386. hardcode_direct_absolute=$hardcode_direct_absolute
  20387.  
  20388. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20389. # into the resulting binary.
  20390. hardcode_minus_L=$hardcode_minus_L
  20391.  
  20392. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20393. # into the resulting binary.
  20394. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20395.  
  20396. # Set to "yes" if building a shared library automatically hardcodes DIR
  20397. # into the library and all subsequent libraries and executables linked
  20398. # against it.
  20399. hardcode_automatic=$hardcode_automatic
  20400.  
  20401. # Set to yes if linker adds runtime paths of dependent libraries
  20402. # to runtime path list.
  20403. inherit_rpath=$inherit_rpath
  20404.  
  20405. # Whether libtool must link a program against all its dependency libraries.
  20406. link_all_deplibs=$link_all_deplibs
  20407.  
  20408. # Fix the shell variable \$srcfile for the compiler.
  20409. fix_srcfile_path=$lt_fix_srcfile_path
  20410.  
  20411. # Set to "yes" if exported symbols are required.
  20412. always_export_symbols=$always_export_symbols
  20413.  
  20414. # The commands to list exported symbols.
  20415. export_symbols_cmds=$lt_export_symbols_cmds
  20416.  
  20417. # Symbols that should not be listed in the preloaded symbols.
  20418. exclude_expsyms=$lt_exclude_expsyms
  20419.  
  20420. # Symbols that must always be exported.
  20421. include_expsyms=$lt_include_expsyms
  20422.  
  20423. # Commands necessary for linking programs (against libraries) with templates.
  20424. prelink_cmds=$lt_prelink_cmds
  20425.  
  20426. # Specify filename containing input files.
  20427. file_list_spec=$lt_file_list_spec
  20428.  
  20429. # How to hardcode a shared library path into an executable.
  20430. hardcode_action=$hardcode_action
  20431.  
  20432. # ### END LIBTOOL CONFIG
  20433.  
  20434. _LT_EOF
  20435.  
  20436. case $host_os in
  20437. aix3*)
  20438. cat <<\_LT_EOF >> "$cfgfile"
  20439. # AIX sometimes has problems with the GCC collect2 program. For some
  20440. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20441. # vanish in a puff of smoke.
  20442. if test "X${COLLECT_NAMES+set}" != Xset; then
  20443. COLLECT_NAMES=
  20444. export COLLECT_NAMES
  20445. fi
  20446. _LT_EOF
  20447. ;;
  20448. esac
  20449.  
  20450.  
  20451. ltmain="$ac_aux_dir/ltmain.sh"
  20452.  
  20453.  
  20454. # We use sed instead of cat because bash on DJGPP gets confused if
  20455. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20456. # text mode, it properly converts lines to CR/LF. This bash problem
  20457. # is reportedly fixed, but why not run on old versions too?
  20458. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  20459. || (rm -f "$cfgfile"; exit 1)
  20460.  
  20461. case $xsi_shell in
  20462. yes)
  20463. cat << \_LT_EOF >> "$cfgfile"
  20464.  
  20465. # func_dirname file append nondir_replacement
  20466. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  20467. # otherwise set result to NONDIR_REPLACEMENT.
  20468. func_dirname ()
  20469. {
  20470. case ${1} in
  20471. */*) func_dirname_result="${1%/*}${2}" ;;
  20472. * ) func_dirname_result="${3}" ;;
  20473. esac
  20474. }
  20475.  
  20476. # func_basename file
  20477. func_basename ()
  20478. {
  20479. func_basename_result="${1##*/}"
  20480. }
  20481.  
  20482. # func_dirname_and_basename file append nondir_replacement
  20483. # perform func_basename and func_dirname in a single function
  20484. # call:
  20485. # dirname: Compute the dirname of FILE. If nonempty,
  20486. # add APPEND to the result, otherwise set result
  20487. # to NONDIR_REPLACEMENT.
  20488. # value returned in "$func_dirname_result"
  20489. # basename: Compute filename of FILE.
  20490. # value retuned in "$func_basename_result"
  20491. # Implementation must be kept synchronized with func_dirname
  20492. # and func_basename. For efficiency, we do not delegate to
  20493. # those functions but instead duplicate the functionality here.
  20494. func_dirname_and_basename ()
  20495. {
  20496. case ${1} in
  20497. */*) func_dirname_result="${1%/*}${2}" ;;
  20498. * ) func_dirname_result="${3}" ;;
  20499. esac
  20500. func_basename_result="${1##*/}"
  20501. }
  20502.  
  20503. # func_stripname prefix suffix name
  20504. # strip PREFIX and SUFFIX off of NAME.
  20505. # PREFIX and SUFFIX must not contain globbing or regex special
  20506. # characters, hashes, percent signs, but SUFFIX may contain a leading
  20507. # dot (in which case that matches only a dot).
  20508. func_stripname ()
  20509. {
  20510. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  20511. # positional parameters, so assign one to ordinary parameter first.
  20512. func_stripname_result=${3}
  20513. func_stripname_result=${func_stripname_result#"${1}"}
  20514. func_stripname_result=${func_stripname_result%"${2}"}
  20515. }
  20516.  
  20517. # func_opt_split
  20518. func_opt_split ()
  20519. {
  20520. func_opt_split_opt=${1%%=*}
  20521. func_opt_split_arg=${1#*=}
  20522. }
  20523.  
  20524. # func_lo2o object
  20525. func_lo2o ()
  20526. {
  20527. case ${1} in
  20528. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  20529. *) func_lo2o_result=${1} ;;
  20530. esac
  20531. }
  20532.  
  20533. # func_xform libobj-or-source
  20534. func_xform ()
  20535. {
  20536. func_xform_result=${1%.*}.lo
  20537. }
  20538.  
  20539. # func_arith arithmetic-term...
  20540. func_arith ()
  20541. {
  20542. func_arith_result=$(( $* ))
  20543. }
  20544.  
  20545. # func_len string
  20546. # STRING may not start with a hyphen.
  20547. func_len ()
  20548. {
  20549. func_len_result=${#1}
  20550. }
  20551.  
  20552. _LT_EOF
  20553. ;;
  20554. *) # Bourne compatible functions.
  20555. cat << \_LT_EOF >> "$cfgfile"
  20556.  
  20557. # func_dirname file append nondir_replacement
  20558. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  20559. # otherwise set result to NONDIR_REPLACEMENT.
  20560. func_dirname ()
  20561. {
  20562. # Extract subdirectory from the argument.
  20563. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  20564. if test "X$func_dirname_result" = "X${1}"; then
  20565. func_dirname_result="${3}"
  20566. else
  20567. func_dirname_result="$func_dirname_result${2}"
  20568. fi
  20569. }
  20570.  
  20571. # func_basename file
  20572. func_basename ()
  20573. {
  20574. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  20575. }
  20576.  
  20577.  
  20578. # func_stripname prefix suffix name
  20579. # strip PREFIX and SUFFIX off of NAME.
  20580. # PREFIX and SUFFIX must not contain globbing or regex special
  20581. # characters, hashes, percent signs, but SUFFIX may contain a leading
  20582. # dot (in which case that matches only a dot).
  20583. # func_strip_suffix prefix name
  20584. func_stripname ()
  20585. {
  20586. case ${2} in
  20587. .*) func_stripname_result=`$ECHO "X${3}" \
  20588. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  20589. *) func_stripname_result=`$ECHO "X${3}" \
  20590. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  20591. esac
  20592. }
  20593.  
  20594. # sed scripts:
  20595. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  20596. my_sed_long_arg='1s/^-[^=]*=//'
  20597.  
  20598. # func_opt_split
  20599. func_opt_split ()
  20600. {
  20601. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  20602. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  20603. }
  20604.  
  20605. # func_lo2o object
  20606. func_lo2o ()
  20607. {
  20608. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  20609. }
  20610.  
  20611. # func_xform libobj-or-source
  20612. func_xform ()
  20613. {
  20614. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  20615. }
  20616.  
  20617. # func_arith arithmetic-term...
  20618. func_arith ()
  20619. {
  20620. func_arith_result=`expr "$@"`
  20621. }
  20622.  
  20623. # func_len string
  20624. # STRING may not start with a hyphen.
  20625. func_len ()
  20626. {
  20627. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  20628. }
  20629.  
  20630. _LT_EOF
  20631. esac
  20632.  
  20633. case $lt_shell_append in
  20634. yes)
  20635. cat << \_LT_EOF >> "$cfgfile"
  20636.  
  20637. # func_append var value
  20638. # Append VALUE to the end of shell variable VAR.
  20639. func_append ()
  20640. {
  20641. eval "$1+=\$2"
  20642. }
  20643. _LT_EOF
  20644. ;;
  20645. *)
  20646. cat << \_LT_EOF >> "$cfgfile"
  20647.  
  20648. # func_append var value
  20649. # Append VALUE to the end of shell variable VAR.
  20650. func_append ()
  20651. {
  20652. eval "$1=\$$1\$2"
  20653. }
  20654.  
  20655. _LT_EOF
  20656. ;;
  20657. esac
  20658.  
  20659.  
  20660. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  20661. || (rm -f "$cfgfile"; exit 1)
  20662.  
  20663. mv -f "$cfgfile" "$ofile" ||
  20664. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20665. chmod +x "$ofile"
  20666.  
  20667. ;;
  20668.  
  20669. esac
  20670. done # for ac_tag
  20671.  
  20672.  
  20673. { (exit 0); exit 0; }
  20674. _ACEOF
  20675. chmod +x $CONFIG_STATUS
  20676. ac_clean_files=$ac_clean_files_save
  20677.  
  20678. test $ac_write_fail = 0 ||
  20679. { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
  20680. $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
  20681. { (exit 1); exit 1; }; }
  20682.  
  20683.  
  20684. # configure is writing to config.log, and then calls config.status.
  20685. # config.status does its own redirection, appending to config.log.
  20686. # Unfortunately, on DOS this fails, as config.log is still kept open
  20687. # by configure, so config.status won't be able to write to it; its
  20688. # output is simply discarded. So we exec the FD to /dev/null,
  20689. # effectively closing config.log, so it can be properly (re)opened and
  20690. # appended to by config.status. When coming back to configure, we
  20691. # need to make the FD available again.
  20692. if test "$no_create" != yes; then
  20693. ac_cs_success=:
  20694. ac_config_status_args=
  20695. test "$silent" = yes &&
  20696. ac_config_status_args="$ac_config_status_args --quiet"
  20697. exec 5>/dev/null
  20698. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20699. exec 5>>config.log
  20700. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20701. # would make configure fail if this is the last instruction.
  20702. $ac_cs_success || { (exit 1); exit 1; }
  20703. fi
  20704. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20705. { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20706. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20707. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement