PageRenderTime 100ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 1ms

/UnitTest/RS/fec/configure

https://bitbucket.org/boblatino/isdbt-tb-remux
Shell | 4357 lines | 3547 code | 357 blank | 453 comment | 399 complexity | c58bec3f11d2c358b5d075445061a633 MD5 | raw file
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME=
  235. PACKAGE_TARNAME=
  236. PACKAGE_VERSION=
  237. PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="viterbi27.c"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SO_NAME VERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os SH_LIB REBIND MLIBS ARCH_OPTION LIBOBJS LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CPP_set=${CPP+set}
  676. ac_env_CPP_value=$CPP
  677. ac_cv_env_CPP_set=${CPP+set}
  678. ac_cv_env_CPP_value=$CPP
  679. #
  680. # Report the --help message.
  681. #
  682. if test "$ac_init_help" = "long"; then
  683. # Omit some internal or obsolete options to make the list less imposing.
  684. # This message is too long to be a string in the A/UX 3.1 sh.
  685. cat <<_ACEOF
  686. \`configure' configures this package to adapt to many kinds of systems.
  687. Usage: $0 [OPTION]... [VAR=VALUE]...
  688. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  689. VAR=VALUE. See below for descriptions of some of the useful variables.
  690. Defaults for the options are specified in brackets.
  691. Configuration:
  692. -h, --help display this help and exit
  693. --help=short display options specific to this package
  694. --help=recursive display the short help of all the included packages
  695. -V, --version display version information and exit
  696. -q, --quiet, --silent do not print \`checking...' messages
  697. --cache-file=FILE cache test results in FILE [disabled]
  698. -C, --config-cache alias for \`--cache-file=config.cache'
  699. -n, --no-create do not create output files
  700. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  701. _ACEOF
  702. cat <<_ACEOF
  703. Installation directories:
  704. --prefix=PREFIX install architecture-independent files in PREFIX
  705. [$ac_default_prefix]
  706. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  707. [PREFIX]
  708. By default, \`make install' will install all the files in
  709. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  710. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  711. for instance \`--prefix=\$HOME'.
  712. For better control, use the options below.
  713. Fine tuning of the installation directories:
  714. --bindir=DIR user executables [EPREFIX/bin]
  715. --sbindir=DIR system admin executables [EPREFIX/sbin]
  716. --libexecdir=DIR program executables [EPREFIX/libexec]
  717. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  718. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  719. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  720. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  721. --libdir=DIR object code libraries [EPREFIX/lib]
  722. --includedir=DIR C header files [PREFIX/include]
  723. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  724. --infodir=DIR info documentation [PREFIX/info]
  725. --mandir=DIR man documentation [PREFIX/man]
  726. _ACEOF
  727. cat <<\_ACEOF
  728. System types:
  729. --build=BUILD configure for building on BUILD [guessed]
  730. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  731. --target=TARGET configure for building compilers for TARGET [HOST]
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Some influential environment variables:
  737. CC C compiler command
  738. CFLAGS C compiler flags
  739. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  740. nonstandard directory <lib dir>
  741. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  742. headers in a nonstandard directory <include dir>
  743. CPP C preprocessor
  744. Use these variables to override the choices made by `configure' or to help
  745. it to find libraries and programs with nonstandard names/locations.
  746. _ACEOF
  747. fi
  748. if test "$ac_init_help" = "recursive"; then
  749. # If there are subdirs, report their specific --help.
  750. ac_popdir=`pwd`
  751. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  752. test -d $ac_dir || continue
  753. ac_builddir=.
  754. if test "$ac_dir" != .; then
  755. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  756. # A "../" for each directory in $ac_dir_suffix.
  757. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  758. else
  759. ac_dir_suffix= ac_top_builddir=
  760. fi
  761. case $srcdir in
  762. .) # No --srcdir option. We are building in place.
  763. ac_srcdir=.
  764. if test -z "$ac_top_builddir"; then
  765. ac_top_srcdir=.
  766. else
  767. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  768. fi ;;
  769. [\\/]* | ?:[\\/]* ) # Absolute path.
  770. ac_srcdir=$srcdir$ac_dir_suffix;
  771. ac_top_srcdir=$srcdir ;;
  772. *) # Relative path.
  773. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  774. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  775. esac
  776. # Do not use `cd foo && pwd` to compute absolute paths, because
  777. # the directories may not exist.
  778. case `pwd` in
  779. .) ac_abs_builddir="$ac_dir";;
  780. *)
  781. case "$ac_dir" in
  782. .) ac_abs_builddir=`pwd`;;
  783. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  784. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  785. esac;;
  786. esac
  787. case $ac_abs_builddir in
  788. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  789. *)
  790. case ${ac_top_builddir}. in
  791. .) ac_abs_top_builddir=$ac_abs_builddir;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_srcdir=$ac_srcdir;;
  798. *)
  799. case $ac_srcdir in
  800. .) ac_abs_srcdir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  802. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  807. *)
  808. case $ac_top_srcdir in
  809. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  812. esac;;
  813. esac
  814. cd $ac_dir
  815. # Check for guested configure; otherwise get Cygnus style configure.
  816. if test -f $ac_srcdir/configure.gnu; then
  817. echo
  818. $SHELL $ac_srcdir/configure.gnu --help=recursive
  819. elif test -f $ac_srcdir/configure; then
  820. echo
  821. $SHELL $ac_srcdir/configure --help=recursive
  822. elif test -f $ac_srcdir/configure.ac ||
  823. test -f $ac_srcdir/configure.in; then
  824. echo
  825. $ac_configure --help
  826. else
  827. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  828. fi
  829. cd $ac_popdir
  830. done
  831. fi
  832. test -n "$ac_init_help" && exit 0
  833. if $ac_init_version; then
  834. cat <<\_ACEOF
  835. Copyright (C) 2003 Free Software Foundation, Inc.
  836. This configure script is free software; the Free Software Foundation
  837. gives unlimited permission to copy, distribute and modify it.
  838. _ACEOF
  839. exit 0
  840. fi
  841. exec 5>config.log
  842. cat >&5 <<_ACEOF
  843. This file contains any messages produced by compilers while
  844. running configure, to aid debugging if configure makes a mistake.
  845. It was created by $as_me, which was
  846. generated by GNU Autoconf 2.59. Invocation command line was
  847. $ $0 $@
  848. _ACEOF
  849. {
  850. cat <<_ASUNAME
  851. ## --------- ##
  852. ## Platform. ##
  853. ## --------- ##
  854. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  855. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  856. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  857. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  858. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  859. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  860. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  861. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  862. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  863. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  864. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  865. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  866. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  867. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  868. _ASUNAME
  869. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  870. for as_dir in $PATH
  871. do
  872. IFS=$as_save_IFS
  873. test -z "$as_dir" && as_dir=.
  874. echo "PATH: $as_dir"
  875. done
  876. } >&5
  877. cat >&5 <<_ACEOF
  878. ## ----------- ##
  879. ## Core tests. ##
  880. ## ----------- ##
  881. _ACEOF
  882. # Keep a trace of the command line.
  883. # Strip out --no-create and --no-recursion so they do not pile up.
  884. # Strip out --silent because we don't want to record it for future runs.
  885. # Also quote any args containing shell meta-characters.
  886. # Make two passes to allow for proper duplicate-argument suppression.
  887. ac_configure_args=
  888. ac_configure_args0=
  889. ac_configure_args1=
  890. ac_sep=
  891. ac_must_keep_next=false
  892. for ac_pass in 1 2
  893. do
  894. for ac_arg
  895. do
  896. case $ac_arg in
  897. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  898. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  899. | -silent | --silent | --silen | --sile | --sil)
  900. continue ;;
  901. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  902. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  903. esac
  904. case $ac_pass in
  905. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  906. 2)
  907. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  908. if test $ac_must_keep_next = true; then
  909. ac_must_keep_next=false # Got value, back to normal.
  910. else
  911. case $ac_arg in
  912. *=* | --config-cache | -C | -disable-* | --disable-* \
  913. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  914. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  915. | -with-* | --with-* | -without-* | --without-* | --x)
  916. case "$ac_configure_args0 " in
  917. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  918. esac
  919. ;;
  920. -* ) ac_must_keep_next=true ;;
  921. esac
  922. fi
  923. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  924. # Get rid of the leading space.
  925. ac_sep=" "
  926. ;;
  927. esac
  928. done
  929. done
  930. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  931. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  932. # When interrupted or exit'd, cleanup temporary files, and complete
  933. # config.log. We remove comments because anyway the quotes in there
  934. # would cause problems or look ugly.
  935. # WARNING: Be sure not to use single quotes in there, as some shells,
  936. # such as our DU 5.0 friend, will then `close' the trap.
  937. trap 'exit_status=$?
  938. # Save into config.log some information that might help in debugging.
  939. {
  940. echo
  941. cat <<\_ASBOX
  942. ## ---------------- ##
  943. ## Cache variables. ##
  944. ## ---------------- ##
  945. _ASBOX
  946. echo
  947. # The following way of writing the cache mishandles newlines in values,
  948. {
  949. (set) 2>&1 |
  950. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  951. *ac_space=\ *)
  952. sed -n \
  953. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  954. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  955. ;;
  956. *)
  957. sed -n \
  958. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  959. ;;
  960. esac;
  961. }
  962. echo
  963. cat <<\_ASBOX
  964. ## ----------------- ##
  965. ## Output variables. ##
  966. ## ----------------- ##
  967. _ASBOX
  968. echo
  969. for ac_var in $ac_subst_vars
  970. do
  971. eval ac_val=$`echo $ac_var`
  972. echo "$ac_var='"'"'$ac_val'"'"'"
  973. done | sort
  974. echo
  975. if test -n "$ac_subst_files"; then
  976. cat <<\_ASBOX
  977. ## ------------- ##
  978. ## Output files. ##
  979. ## ------------- ##
  980. _ASBOX
  981. echo
  982. for ac_var in $ac_subst_files
  983. do
  984. eval ac_val=$`echo $ac_var`
  985. echo "$ac_var='"'"'$ac_val'"'"'"
  986. done | sort
  987. echo
  988. fi
  989. if test -s confdefs.h; then
  990. cat <<\_ASBOX
  991. ## ----------- ##
  992. ## confdefs.h. ##
  993. ## ----------- ##
  994. _ASBOX
  995. echo
  996. sed "/^$/d" confdefs.h | sort
  997. echo
  998. fi
  999. test "$ac_signal" != 0 &&
  1000. echo "$as_me: caught signal $ac_signal"
  1001. echo "$as_me: exit $exit_status"
  1002. } >&5
  1003. rm -f core *.core &&
  1004. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1005. exit $exit_status
  1006. ' 0
  1007. for ac_signal in 1 2 13 15; do
  1008. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1009. done
  1010. ac_signal=0
  1011. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1012. rm -rf conftest* confdefs.h
  1013. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1014. echo >confdefs.h
  1015. # Predefined preprocessor variables.
  1016. cat >>confdefs.h <<_ACEOF
  1017. #define PACKAGE_NAME "$PACKAGE_NAME"
  1018. _ACEOF
  1019. cat >>confdefs.h <<_ACEOF
  1020. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1021. _ACEOF
  1022. cat >>confdefs.h <<_ACEOF
  1023. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1024. _ACEOF
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_STRING "$PACKAGE_STRING"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1030. _ACEOF
  1031. # Let the site file select an alternate cache file if it wants to.
  1032. # Prefer explicitly selected file to automatically selected ones.
  1033. if test -z "$CONFIG_SITE"; then
  1034. if test "x$prefix" != xNONE; then
  1035. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1036. else
  1037. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1038. fi
  1039. fi
  1040. for ac_site_file in $CONFIG_SITE; do
  1041. if test -r "$ac_site_file"; then
  1042. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1043. echo "$as_me: loading site script $ac_site_file" >&6;}
  1044. sed 's/^/| /' "$ac_site_file" >&5
  1045. . "$ac_site_file"
  1046. fi
  1047. done
  1048. if test -r "$cache_file"; then
  1049. # Some versions of bash will fail to source /dev/null (special
  1050. # files actually), so we avoid doing that.
  1051. if test -f "$cache_file"; then
  1052. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1053. echo "$as_me: loading cache $cache_file" >&6;}
  1054. case $cache_file in
  1055. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1056. *) . ./$cache_file;;
  1057. esac
  1058. fi
  1059. else
  1060. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1061. echo "$as_me: creating cache $cache_file" >&6;}
  1062. >$cache_file
  1063. fi
  1064. # Check that the precious variables saved in the cache have kept the same
  1065. # value.
  1066. ac_cache_corrupted=false
  1067. for ac_var in `(set) 2>&1 |
  1068. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1069. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1070. eval ac_new_set=\$ac_env_${ac_var}_set
  1071. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1072. eval ac_new_val="\$ac_env_${ac_var}_value"
  1073. case $ac_old_set,$ac_new_set in
  1074. set,)
  1075. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1076. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1077. ac_cache_corrupted=: ;;
  1078. ,set)
  1079. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1080. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1081. ac_cache_corrupted=: ;;
  1082. ,);;
  1083. *)
  1084. if test "x$ac_old_val" != "x$ac_new_val"; then
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1086. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1087. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1088. echo "$as_me: former value: $ac_old_val" >&2;}
  1089. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1090. echo "$as_me: current value: $ac_new_val" >&2;}
  1091. ac_cache_corrupted=:
  1092. fi;;
  1093. esac
  1094. # Pass precious variables to config.status.
  1095. if test "$ac_new_set" = set; then
  1096. case $ac_new_val in
  1097. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1098. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1099. *) ac_arg=$ac_var=$ac_new_val ;;
  1100. esac
  1101. case " $ac_configure_args " in
  1102. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1103. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1104. esac
  1105. fi
  1106. done
  1107. if $ac_cache_corrupted; then
  1108. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1109. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1110. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1111. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1112. { (exit 1); exit 1; }; }
  1113. fi
  1114. ac_ext=c
  1115. ac_cpp='$CPP $CPPFLAGS'
  1116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1119. ac_config_headers="$ac_config_headers config.h"
  1120. SO_NAME=3
  1121. VERSION=3.0.0
  1122. ac_ext=c
  1123. ac_cpp='$CPP $CPPFLAGS'
  1124. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1125. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1126. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1127. if test -n "$ac_tool_prefix"; then
  1128. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1129. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1130. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1131. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1132. if test "${ac_cv_prog_CC+set}" = set; then
  1133. echo $ECHO_N "(cached) $ECHO_C" >&6
  1134. else
  1135. if test -n "$CC"; then
  1136. ac_cv_prog_CC="$CC" # Let the user override the test.
  1137. else
  1138. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1139. for as_dir in $PATH
  1140. do
  1141. IFS=$as_save_IFS
  1142. test -z "$as_dir" && as_dir=.
  1143. for ac_exec_ext in '' $ac_executable_extensions; do
  1144. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1145. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1146. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1147. break 2
  1148. fi
  1149. done
  1150. done
  1151. fi
  1152. fi
  1153. CC=$ac_cv_prog_CC
  1154. if test -n "$CC"; then
  1155. echo "$as_me:$LINENO: result: $CC" >&5
  1156. echo "${ECHO_T}$CC" >&6
  1157. else
  1158. echo "$as_me:$LINENO: result: no" >&5
  1159. echo "${ECHO_T}no" >&6
  1160. fi
  1161. fi
  1162. if test -z "$ac_cv_prog_CC"; then
  1163. ac_ct_CC=$CC
  1164. # Extract the first word of "gcc", so it can be a program name with args.
  1165. set dummy gcc; ac_word=$2
  1166. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1167. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1168. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1169. echo $ECHO_N "(cached) $ECHO_C" >&6
  1170. else
  1171. if test -n "$ac_ct_CC"; then
  1172. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1173. else
  1174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1175. for as_dir in $PATH
  1176. do
  1177. IFS=$as_save_IFS
  1178. test -z "$as_dir" && as_dir=.
  1179. for ac_exec_ext in '' $ac_executable_extensions; do
  1180. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1181. ac_cv_prog_ac_ct_CC="gcc"
  1182. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1183. break 2
  1184. fi
  1185. done
  1186. done
  1187. fi
  1188. fi
  1189. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1190. if test -n "$ac_ct_CC"; then
  1191. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1192. echo "${ECHO_T}$ac_ct_CC" >&6
  1193. else
  1194. echo "$as_me:$LINENO: result: no" >&5
  1195. echo "${ECHO_T}no" >&6
  1196. fi
  1197. CC=$ac_ct_CC
  1198. else
  1199. CC="$ac_cv_prog_CC"
  1200. fi
  1201. if test -z "$CC"; then
  1202. if test -n "$ac_tool_prefix"; then
  1203. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1204. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$CC"; then
  1211. ac_cv_prog_CC="$CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. CC=$ac_cv_prog_CC
  1229. if test -n "$CC"; then
  1230. echo "$as_me:$LINENO: result: $CC" >&5
  1231. echo "${ECHO_T}$CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. fi
  1237. if test -z "$ac_cv_prog_CC"; then
  1238. ac_ct_CC=$CC
  1239. # Extract the first word of "cc", so it can be a program name with args.
  1240. set dummy cc; ac_word=$2
  1241. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1242. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1243. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1244. echo $ECHO_N "(cached) $ECHO_C" >&6
  1245. else
  1246. if test -n "$ac_ct_CC"; then
  1247. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1248. else
  1249. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1250. for as_dir in $PATH
  1251. do
  1252. IFS=$as_save_IFS
  1253. test -z "$as_dir" && as_dir=.
  1254. for ac_exec_ext in '' $ac_executable_extensions; do
  1255. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1256. ac_cv_prog_ac_ct_CC="cc"
  1257. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1258. break 2
  1259. fi
  1260. done
  1261. done
  1262. fi
  1263. fi
  1264. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1265. if test -n "$ac_ct_CC"; then
  1266. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1267. echo "${ECHO_T}$ac_ct_CC" >&6
  1268. else
  1269. echo "$as_me:$LINENO: result: no" >&5
  1270. echo "${ECHO_T}no" >&6
  1271. fi
  1272. CC=$ac_ct_CC
  1273. else
  1274. CC="$ac_cv_prog_CC"
  1275. fi
  1276. fi
  1277. if test -z "$CC"; then
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$CC"; then
  1286. ac_cv_prog_CC="$CC" # Let the user override the test.
  1287. else
  1288. ac_prog_rejected=no
  1289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1290. for as_dir in $PATH
  1291. do
  1292. IFS=$as_save_IFS
  1293. test -z "$as_dir" && as_dir=.
  1294. for ac_exec_ext in '' $ac_executable_extensions; do
  1295. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1296. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1297. ac_prog_rejected=yes
  1298. continue
  1299. fi
  1300. ac_cv_prog_CC="cc"
  1301. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1302. break 2
  1303. fi
  1304. done
  1305. done
  1306. if test $ac_prog_rejected = yes; then
  1307. # We found a bogon in the path, so make sure we never use it.
  1308. set dummy $ac_cv_prog_CC
  1309. shift
  1310. if test $# != 0; then
  1311. # We chose a different compiler from the bogus one.
  1312. # However, it has the same basename, so the bogon will be chosen
  1313. # first if we set CC to just the basename; use the full file name.
  1314. shift
  1315. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1316. fi
  1317. fi
  1318. fi
  1319. fi
  1320. CC=$ac_cv_prog_CC
  1321. if test -n "$CC"; then
  1322. echo "$as_me:$LINENO: result: $CC" >&5
  1323. echo "${ECHO_T}$CC" >&6
  1324. else
  1325. echo "$as_me:$LINENO: result: no" >&5
  1326. echo "${ECHO_T}no" >&6
  1327. fi
  1328. fi
  1329. if test -z "$CC"; then
  1330. if test -n "$ac_tool_prefix"; then
  1331. for ac_prog in cl
  1332. do
  1333. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1334. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1335. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1336. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1337. if test "${ac_cv_prog_CC+set}" = set; then
  1338. echo $ECHO_N "(cached) $ECHO_C" >&6
  1339. else
  1340. if test -n "$CC"; then
  1341. ac_cv_prog_CC="$CC" # Let the user override the test.
  1342. else
  1343. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1344. for as_dir in $PATH
  1345. do
  1346. IFS=$as_save_IFS
  1347. test -z "$as_dir" && as_dir=.
  1348. for ac_exec_ext in '' $ac_executable_extensions; do
  1349. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1350. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1351. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1352. break 2
  1353. fi
  1354. done
  1355. done
  1356. fi
  1357. fi
  1358. CC=$ac_cv_prog_CC
  1359. if test -n "$CC"; then
  1360. echo "$as_me:$LINENO: result: $CC" >&5
  1361. echo "${ECHO_T}$CC" >&6
  1362. else
  1363. echo "$as_me:$LINENO: result: no" >&5
  1364. echo "${ECHO_T}no" >&6
  1365. fi
  1366. test -n "$CC" && break
  1367. done
  1368. fi
  1369. if test -z "$CC"; then
  1370. ac_ct_CC=$CC
  1371. for ac_prog in cl
  1372. do
  1373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1374. set dummy $ac_prog; ac_word=$2
  1375. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1376. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1377. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1378. echo $ECHO_N "(cached) $ECHO_C" >&6
  1379. else
  1380. if test -n "$ac_ct_CC"; then
  1381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1382. else
  1383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1384. for as_dir in $PATH
  1385. do
  1386. IFS=$as_save_IFS
  1387. test -z "$as_dir" && as_dir=.
  1388. for ac_exec_ext in '' $ac_executable_extensions; do
  1389. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1390. ac_cv_prog_ac_ct_CC="$ac_prog"
  1391. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1392. break 2
  1393. fi
  1394. done
  1395. done
  1396. fi
  1397. fi
  1398. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1399. if test -n "$ac_ct_CC"; then
  1400. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1401. echo "${ECHO_T}$ac_ct_CC" >&6
  1402. else
  1403. echo "$as_me:$LINENO: result: no" >&5
  1404. echo "${ECHO_T}no" >&6
  1405. fi
  1406. test -n "$ac_ct_CC" && break
  1407. done
  1408. CC=$ac_ct_CC
  1409. fi
  1410. fi
  1411. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1412. See \`config.log' for more details." >&5
  1413. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1414. See \`config.log' for more details." >&2;}
  1415. { (exit 1); exit 1; }; }
  1416. # Provide some information about the compiler.
  1417. echo "$as_me:$LINENO:" \
  1418. "checking for C compiler version" >&5
  1419. ac_compiler=`set X $ac_compile; echo $2`
  1420. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1421. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1422. ac_status=$?
  1423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1424. (exit $ac_status); }
  1425. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1426. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1427. ac_status=$?
  1428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1429. (exit $ac_status); }
  1430. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1431. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1432. ac_status=$?
  1433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1434. (exit $ac_status); }
  1435. cat >conftest.$ac_ext <<_ACEOF
  1436. /* confdefs.h. */
  1437. _ACEOF
  1438. cat confdefs.h >>conftest.$ac_ext
  1439. cat >>conftest.$ac_ext <<_ACEOF
  1440. /* end confdefs.h. */
  1441. int
  1442. main ()
  1443. {
  1444. ;
  1445. return 0;
  1446. }
  1447. _ACEOF
  1448. ac_clean_files_save=$ac_clean_files
  1449. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1450. # Try to create an executable without -o first, disregard a.out.
  1451. # It will help us diagnose broken compilers, and finding out an intuition
  1452. # of exeext.
  1453. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1454. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1455. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1456. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1457. (eval $ac_link_default) 2>&5
  1458. ac_status=$?
  1459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1460. (exit $ac_status); }; then
  1461. # Find the output, starting from the most likely. This scheme is
  1462. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1463. # resort.
  1464. # Be careful to initialize this variable, since it used to be cached.
  1465. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1466. ac_cv_exeext=
  1467. # b.out is created by i960 compilers.
  1468. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1469. do
  1470. test -f "$ac_file" || continue
  1471. case $ac_file in
  1472. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1473. ;;
  1474. conftest.$ac_ext )
  1475. # This is the source file.
  1476. ;;
  1477. [ab].out )
  1478. # We found the default executable, but exeext='' is most
  1479. # certainly right.
  1480. break;;
  1481. *.* )
  1482. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1483. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1484. # but it would be cool to find out if it's true. Does anybody
  1485. # maintain Libtool? --akim.
  1486. export ac_cv_exeext
  1487. break;;
  1488. * )
  1489. break;;
  1490. esac
  1491. done
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1496. See \`config.log' for more details." >&5
  1497. echo "$as_me: error: C compiler cannot create executables
  1498. See \`config.log' for more details." >&2;}
  1499. { (exit 77); exit 77; }; }
  1500. fi
  1501. ac_exeext=$ac_cv_exeext
  1502. echo "$as_me:$LINENO: result: $ac_file" >&5
  1503. echo "${ECHO_T}$ac_file" >&6
  1504. # Check the compiler produces executables we can run. If not, either
  1505. # the compiler is broken, or we cross compile.
  1506. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1507. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1508. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1509. # If not cross compiling, check that we can run a simple program.
  1510. if test "$cross_compiling" != yes; then
  1511. if { ac_try='./$ac_file'
  1512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1513. (eval $ac_try) 2>&5
  1514. ac_status=$?
  1515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1516. (exit $ac_status); }; }; then
  1517. cross_compiling=no
  1518. else
  1519. if test "$cross_compiling" = maybe; then
  1520. cross_compiling=yes
  1521. else
  1522. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1523. If you meant to cross compile, use \`--host'.
  1524. See \`config.log' for more details." >&5
  1525. echo "$as_me: error: cannot run C compiled programs.
  1526. If you meant to cross compile, use \`--host'.
  1527. See \`config.log' for more details." >&2;}
  1528. { (exit 1); exit 1; }; }
  1529. fi
  1530. fi
  1531. fi
  1532. echo "$as_me:$LINENO: result: yes" >&5
  1533. echo "${ECHO_T}yes" >&6
  1534. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1535. ac_clean_files=$ac_clean_files_save
  1536. # Check the compiler produces executables we can run. If not, either
  1537. # the compiler is broken, or we cross compile.
  1538. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1539. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1540. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1541. echo "${ECHO_T}$cross_compiling" >&6
  1542. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1543. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1544. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1545. (eval $ac_link) 2>&5
  1546. ac_status=$?
  1547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1548. (exit $ac_status); }; then
  1549. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1550. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1551. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1552. # `rm'.
  1553. for ac_file in conftest.exe conftest conftest.*; do
  1554. test -f "$ac_file" || continue
  1555. case $ac_file in
  1556. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1557. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1558. export ac_cv_exeext
  1559. break;;
  1560. * ) break;;
  1561. esac
  1562. done
  1563. else
  1564. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1565. See \`config.log' for more details." >&5
  1566. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1567. See \`config.log' for more details." >&2;}
  1568. { (exit 1); exit 1; }; }
  1569. fi
  1570. rm -f conftest$ac_cv_exeext
  1571. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1572. echo "${ECHO_T}$ac_cv_exeext" >&6
  1573. rm -f conftest.$ac_ext
  1574. EXEEXT=$ac_cv_exeext
  1575. ac_exeext=$EXEEXT
  1576. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1577. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1578. if test "${ac_cv_objext+set}" = set; then
  1579. echo $ECHO_N "(cached) $ECHO_C" >&6
  1580. else
  1581. cat >conftest.$ac_ext <<_ACEOF
  1582. /* confdefs.h. */
  1583. _ACEOF
  1584. cat confdefs.h >>conftest.$ac_ext
  1585. cat >>conftest.$ac_ext <<_ACEOF
  1586. /* end confdefs.h. */
  1587. int
  1588. main ()
  1589. {
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.o conftest.obj
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>&5
  1597. ac_status=$?
  1598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1599. (exit $ac_status); }; then
  1600. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1601. case $ac_file in
  1602. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1603. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1604. break;;
  1605. esac
  1606. done
  1607. else
  1608. echo "$as_me: failed program was:" >&5
  1609. sed 's/^/| /' conftest.$ac_ext >&5
  1610. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1611. See \`config.log' for more details." >&5
  1612. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1613. See \`config.log' for more details." >&2;}
  1614. { (exit 1); exit 1; }; }
  1615. fi
  1616. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1617. fi
  1618. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1619. echo "${ECHO_T}$ac_cv_objext" >&6
  1620. OBJEXT=$ac_cv_objext
  1621. ac_objext=$OBJEXT
  1622. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1623. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1624. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1625. echo $ECHO_N "(cached) $ECHO_C" >&6
  1626. else
  1627. cat >conftest.$ac_ext <<_ACEOF
  1628. /* confdefs.h. */
  1629. _ACEOF
  1630. cat confdefs.h >>conftest.$ac_ext
  1631. cat >>conftest.$ac_ext <<_ACEOF
  1632. /* end confdefs.h. */
  1633. int
  1634. main ()
  1635. {
  1636. #ifndef __GNUC__
  1637. choke me
  1638. #endif
  1639. ;
  1640. return 0;
  1641. }
  1642. _ACEOF
  1643. rm -f conftest.$ac_objext
  1644. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1645. (eval $ac_compile) 2>conftest.er1
  1646. ac_status=$?
  1647. grep -v '^ *+' conftest.er1 >conftest.err
  1648. rm -f conftest.er1
  1649. cat conftest.err >&5
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); } &&
  1652. { ac_try='test -z "$ac_c_werror_flag"
  1653. || test ! -s conftest.err'
  1654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1655. (eval $ac_try) 2>&5
  1656. ac_status=$?
  1657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1658. (exit $ac_status); }; } &&
  1659. { ac_try='test -s conftest.$ac_objext'
  1660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1661. (eval $ac_try) 2>&5
  1662. ac_status=$?
  1663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1664. (exit $ac_status); }; }; then
  1665. ac_compiler_gnu=yes
  1666. else
  1667. echo "$as_me: failed program was:" >&5
  1668. sed 's/^/| /' conftest.$ac_ext >&5
  1669. ac_compiler_gnu=no
  1670. fi
  1671. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1672. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1673. fi
  1674. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1675. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1676. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1677. ac_test_CFLAGS=${CFLAGS+set}
  1678. ac_save_CFLAGS=$CFLAGS
  1679. CFLAGS="-g"
  1680. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1681. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1682. if test "${ac_cv_prog_cc_g+set}" = set; then
  1683. echo $ECHO_N "(cached) $ECHO_C" >&6
  1684. else
  1685. cat >conftest.$ac_ext <<_ACEOF
  1686. /* confdefs.h. */
  1687. _ACEOF
  1688. cat confdefs.h >>conftest.$ac_ext
  1689. cat >>conftest.$ac_ext <<_ACEOF
  1690. /* end confdefs.h. */
  1691. int
  1692. main ()
  1693. {
  1694. ;
  1695. return 0;
  1696. }
  1697. _ACEOF
  1698. rm -f conftest.$ac_objext
  1699. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1700. (eval $ac_compile) 2>conftest.er1
  1701. ac_status=$?
  1702. grep -v '^ *+' conftest.er1 >conftest.err
  1703. rm -f conftest.er1
  1704. cat conftest.err >&5
  1705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1706. (exit $ac_status); } &&
  1707. { ac_try='test -z "$ac_c_werror_flag"
  1708. || test ! -s conftest.err'
  1709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1710. (eval $ac_try) 2>&5
  1711. ac_status=$?
  1712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1713. (exit $ac_status); }; } &&
  1714. { ac_try='test -s conftest.$ac_objext'
  1715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1716. (eval $ac_try) 2>&5
  1717. ac_status=$?
  1718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1719. (exit $ac_status); }; }; then
  1720. ac_cv_prog_cc_g=yes
  1721. else
  1722. echo "$as_me: failed program was:" >&5
  1723. sed 's/^/| /' conftest.$ac_ext >&5
  1724. ac_cv_prog_cc_g=no
  1725. fi
  1726. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1727. fi
  1728. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1729. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1730. if test "$ac_test_CFLAGS" = set; then
  1731. CFLAGS=$ac_save_CFLAGS
  1732. elif test $ac_cv_prog_cc_g = yes; then
  1733. if test "$GCC" = yes; then
  1734. CFLAGS="-g -O2"
  1735. else
  1736. CFLAGS="-g"
  1737. fi
  1738. else
  1739. if test "$GCC" = yes; then
  1740. CFLAGS="-O2"
  1741. else
  1742. CFLAGS=
  1743. fi
  1744. fi
  1745. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1746. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1747. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1748. echo $ECHO_N "(cached) $ECHO_C" >&6
  1749. else
  1750. ac_cv_prog_cc_stdc=no
  1751. ac_save_CC=$CC
  1752. cat >conftest.$ac_ext <<_ACEOF
  1753. /* confdefs.h. */
  1754. _ACEOF
  1755. cat confdefs.h >>conftest.$ac_ext
  1756. cat >>conftest.$ac_ext <<_ACEOF
  1757. /* end confdefs.h. */
  1758. #include <stdarg.h>
  1759. #include <stdio.h>
  1760. #include <sys/types.h>
  1761. #include <sys/stat.h>
  1762. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1763. struct buf { int x; };
  1764. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1765. static char *e (p, i)
  1766. char **p;
  1767. int i;
  1768. {
  1769. return p[i];
  1770. }
  1771. static char *f (char * (*g) (char **, int), char **p, ...)
  1772. {
  1773. char *s;
  1774. va_list v;
  1775. va_start (v,p);
  1776. s = g (p, va_arg (v,int));
  1777. va_end (v);
  1778. return s;
  1779. }
  1780. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1781. function prototypes and stuff, but not '\xHH' hex character constants.
  1782. These don't provoke an error unfortunately, instead are silently treated
  1783. as 'x'. The following induces an error, until -std1 is added to get
  1784. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1785. array size at least. It's necessary to write '\x00'==0 to get something
  1786. that's true only with -std1. */
  1787. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1788. int test (int i, double x);
  1789. struct s1 {int (*f) (int a);};
  1790. struct s2 {int (*f) (double a);};
  1791. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1792. int argc;
  1793. char **argv;
  1794. int
  1795. main ()
  1796. {
  1797. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1798. ;
  1799. return 0;
  1800. }
  1801. _ACEOF
  1802. # Don't try gcc -ansi; that turns off useful extensions and
  1803. # breaks some systems' header files.
  1804. # AIX -qlanglvl=ansi
  1805. # Ultrix and OSF/1 -std1
  1806. # HP-UX 10.20 and later -Ae
  1807. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1808. # SVR4 -Xc -D__EXTENSIONS__
  1809. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1810. do
  1811. CC="$ac_save_CC $ac_arg"
  1812. rm -f conftest.$ac_objext
  1813. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1814. (eval $ac_compile) 2>conftest.er1
  1815. ac_status=$?
  1816. grep -v '^ *+' conftest.er1 >conftest.err
  1817. rm -f conftest.er1
  1818. cat conftest.err >&5
  1819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1820. (exit $ac_status); } &&
  1821. { ac_try='test -z "$ac_c_werror_flag"
  1822. || test ! -s conftest.err'
  1823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1824. (eval $ac_try) 2>&5
  1825. ac_status=$?
  1826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1827. (exit $ac_status); }; } &&
  1828. { ac_try='test -s conftest.$ac_objext'
  1829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1830. (eval $ac_try) 2>&5
  1831. ac_status=$?
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); }; }; then
  1834. ac_cv_prog_cc_stdc=$ac_arg
  1835. break
  1836. else
  1837. echo "$as_me: failed program was:" >&5
  1838. sed 's/^/| /' conftest.$ac_ext >&5
  1839. fi
  1840. rm -f conftest.err conftest.$ac_objext
  1841. done
  1842. rm -f conftest.$ac_ext conftest.$ac_objext
  1843. CC=$ac_save_CC
  1844. fi
  1845. case "x$ac_cv_prog_cc_stdc" in
  1846. x|xno)
  1847. echo "$as_me:$LINENO: result: none needed" >&5
  1848. echo "${ECHO_T}none needed" >&6 ;;
  1849. *)
  1850. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1851. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1852. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1853. esac
  1854. # Some people use a C++ compiler to compile C. Since we use `exit',
  1855. # in C++ we need to declare it. In case someone uses the same compiler
  1856. # for both compiling C and C++ we need to have the C++ compiler decide
  1857. # the declaration of exit, since it's the most demanding environment.
  1858. cat >conftest.$ac_ext <<_ACEOF
  1859. #ifndef __cplusplus
  1860. choke me
  1861. #endif
  1862. _ACEOF
  1863. rm -f conftest.$ac_objext
  1864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1865. (eval $ac_compile) 2>conftest.er1
  1866. ac_status=$?
  1867. grep -v '^ *+' conftest.er1 >conftest.err
  1868. rm -f conftest.er1
  1869. cat conftest.err >&5
  1870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1871. (exit $ac_status); } &&
  1872. { ac_try='test -z "$ac_c_werror_flag"
  1873. || test ! -s conftest.err'
  1874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1875. (eval $ac_try) 2>&5
  1876. ac_status=$?
  1877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1878. (exit $ac_status); }; } &&
  1879. { ac_try='test -s conftest.$ac_objext'
  1880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1881. (eval $ac_try) 2>&5
  1882. ac_status=$?
  1883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1884. (exit $ac_status); }; }; then
  1885. for ac_declaration in \
  1886. '' \
  1887. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1888. 'extern "C" void std::exit (int); using std::exit;' \
  1889. 'extern "C" void exit (int) throw ();' \
  1890. 'extern "C" void exit (int);' \
  1891. 'void exit (int);'
  1892. do
  1893. cat >conftest.$ac_ext <<_ACEOF
  1894. /* confdefs.h. */
  1895. _ACEOF
  1896. cat confdefs.h >>conftest.$ac_ext
  1897. cat >>conftest.$ac_ext <<_ACEOF
  1898. /* end confdefs.h. */
  1899. $ac_declaration
  1900. #include <stdlib.h>
  1901. int
  1902. main ()
  1903. {
  1904. exit (42);
  1905. ;
  1906. return 0;
  1907. }
  1908. _ACEOF
  1909. rm -f conftest.$ac_objext
  1910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1911. (eval $ac_compile) 2>conftest.er1
  1912. ac_status=$?
  1913. grep -v '^ *+' conftest.er1 >conftest.err
  1914. rm -f conftest.er1
  1915. cat conftest.err >&5
  1916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1917. (exit $ac_status); } &&
  1918. { ac_try='test -z "$ac_c_werror_flag"
  1919. || test ! -s conftest.err'
  1920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1921. (eval $ac_try) 2>&5
  1922. ac_status=$?
  1923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1924. (exit $ac_status); }; } &&
  1925. { ac_try='test -s conftest.$ac_objext'
  1926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1927. (eval $ac_try) 2>&5
  1928. ac_status=$?
  1929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1930. (exit $ac_status); }; }; then
  1931. :
  1932. else
  1933. echo "$as_me: failed program was:" >&5
  1934. sed 's/^/| /' conftest.$ac_ext >&5
  1935. continue
  1936. fi
  1937. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1938. cat >conftest.$ac_ext <<_ACEOF
  1939. /* confdefs.h. */
  1940. _ACEOF
  1941. cat confdefs.h >>conftest.$ac_ext
  1942. cat >>conftest.$ac_ext <<_ACEOF
  1943. /* end confdefs.h. */
  1944. $ac_declaration
  1945. int
  1946. main ()
  1947. {
  1948. exit (42);
  1949. ;
  1950. return 0;
  1951. }
  1952. _ACEOF
  1953. rm -f conftest.$ac_objext
  1954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1955. (eval $ac_compile) 2>conftest.er1
  1956. ac_status=$?
  1957. grep -v '^ *+' conftest.er1 >conftest.err
  1958. rm -f conftest.er1
  1959. cat conftest.err >&5
  1960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1961. (exit $ac_status); } &&
  1962. { ac_try='test -z "$ac_c_werror_flag"
  1963. || test ! -s conftest.err'
  1964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1965. (eval $ac_try) 2>&5
  1966. ac_status=$?
  1967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1968. (exit $ac_status); }; } &&
  1969. { ac_try='test -s conftest.$ac_objext'
  1970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1971. (eval $ac_try) 2>&5
  1972. ac_status=$?
  1973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1974. (exit $ac_status); }; }; then
  1975. break
  1976. else
  1977. echo "$as_me: failed program was:" >&5
  1978. sed 's/^/| /' conftest.$ac_ext >&5
  1979. fi
  1980. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1981. done
  1982. rm -f conftest*
  1983. if test -n "$ac_declaration"; then
  1984. echo '#ifdef __cplusplus' >>confdefs.h
  1985. echo $ac_declaration >>confdefs.h
  1986. echo '#endif' >>confdefs.h
  1987. fi
  1988. else
  1989. echo "$as_me: failed program was:" >&5
  1990. sed 's/^/| /' conftest.$ac_ext >&5
  1991. fi
  1992. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. ac_ext=c
  1994. ac_cpp='$CPP $CPPFLAGS'
  1995. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1996. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1997. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1998. if test $GCC != "yes"
  1999. then
  2000. { { echo "$as_me:$LINENO: error: Need GNU C compiler" >&5
  2001. echo "$as_me: error: Need GNU C compiler" >&2;}
  2002. { (exit 1); exit 1; }; }
  2003. fi
  2004. echo "$as_me:$LINENO: checking for malloc in -lc" >&5
  2005. echo $ECHO_N "checking for malloc in -lc... $ECHO_C" >&6
  2006. if test "${ac_cv_lib_c_malloc+set}" = set; then
  2007. echo $ECHO_N "(cached) $ECHO_C" >&6
  2008. else
  2009. ac_check_lib_save_LIBS=$LIBS
  2010. LIBS="-lc $LIBS"
  2011. cat >conftest.$ac_ext <<_ACEOF
  2012. /* confdefs.h. */
  2013. _ACEOF
  2014. cat confdefs.h >>conftest.$ac_ext
  2015. cat >>conftest.$ac_ext <<_ACEOF
  2016. /* end confdefs.h. */
  2017. /* Override any gcc2 internal prototype to avoid an error. */
  2018. #ifdef __cplusplus
  2019. extern "C"
  2020. #endif
  2021. /* We use char because int might match the return type of a gcc2
  2022. builtin and then its argument prototype would still apply. */
  2023. char malloc ();
  2024. int
  2025. main ()
  2026. {
  2027. malloc ();
  2028. ;
  2029. return 0;
  2030. }
  2031. _ACEOF
  2032. rm -f conftest.$ac_objext conftest$ac_exeext
  2033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2034. (eval $ac_link) 2>conftest.er1
  2035. ac_status=$?
  2036. grep -v '^ *+' conftest.er1 >conftest.err
  2037. rm -f conftest.er1
  2038. cat conftest.err >&5
  2039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2040. (exit $ac_status); } &&
  2041. { ac_try='test -z "$ac_c_werror_flag"
  2042. || test ! -s conftest.err'
  2043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2044. (eval $ac_try) 2>&5
  2045. ac_status=$?
  2046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2047. (exit $ac_status); }; } &&
  2048. { ac_try='test -s conftest$ac_exeext'
  2049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2050. (eval $ac_try) 2>&5
  2051. ac_status=$?
  2052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2053. (exit $ac_status); }; }; then
  2054. ac_cv_lib_c_malloc=yes
  2055. else
  2056. echo "$as_me: failed program was:" >&5
  2057. sed 's/^/| /' conftest.$ac_ext >&5
  2058. ac_cv_lib_c_malloc=no
  2059. fi
  2060. rm -f conftest.err conftest.$ac_objext \
  2061. conftest$ac_exeext conftest.$ac_ext
  2062. LIBS=$ac_check_lib_save_LIBS
  2063. fi
  2064. echo "$as_me:$LINENO: result: $ac_cv_lib_c_malloc" >&5
  2065. echo "${ECHO_T}$ac_cv_lib_c_malloc" >&6
  2066. if test $ac_cv_lib_c_malloc = yes; then
  2067. cat >>confdefs.h <<_ACEOF
  2068. #define HAVE_LIBC 1
  2069. _ACEOF
  2070. LIBS="-lc $LIBS"
  2071. fi
  2072. ac_ext=c
  2073. ac_cpp='$CPP $CPPFLAGS'
  2074. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2075. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2076. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2077. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2078. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2079. # On Suns, sometimes $CPP names a directory.
  2080. if test -n "$CPP" && test -d "$CPP"; then
  2081. CPP=
  2082. fi
  2083. if test -z "$CPP"; then
  2084. if test "${ac_cv_prog_CPP+set}" = set; then
  2085. echo $ECHO_N "(cached) $ECHO_C" >&6
  2086. else
  2087. # Double quotes because CPP needs to be expanded
  2088. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2089. do
  2090. ac_preproc_ok=false
  2091. for ac_c_preproc_warn_flag in '' yes
  2092. do
  2093. # Use a header file that comes with gcc, so configuring glibc
  2094. # with a fresh cross-compiler works.
  2095. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2096. # <limits.h> exists even on freestanding compilers.
  2097. # On the NeXT, cc -E runs the code through the compiler's parser,
  2098. # not just through cpp. "Syntax error" is here to catch this case.
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. #ifdef __STDC__
  2106. # include <limits.h>
  2107. #else
  2108. # include <assert.h>
  2109. #endif
  2110. Syntax error
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. :
  2131. else
  2132. echo "$as_me: failed program was:" >&5
  2133. sed 's/^/| /' conftest.$ac_ext >&5
  2134. # Broken: fails on valid input.
  2135. continue
  2136. fi
  2137. rm -f conftest.err conftest.$ac_ext
  2138. # OK, works on sane cases. Now check whether non-existent headers
  2139. # can be detected and how.
  2140. cat >conftest.$ac_ext <<_ACEOF
  2141. /* confdefs.h. */
  2142. _ACEOF
  2143. cat confdefs.h >>conftest.$ac_ext
  2144. cat >>conftest.$ac_ext <<_ACEOF
  2145. /* end confdefs.h. */
  2146. #include <ac_nonexistent.h>
  2147. _ACEOF
  2148. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2149. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2150. ac_status=$?
  2151. grep -v '^ *+' conftest.er1 >conftest.err
  2152. rm -f conftest.er1
  2153. cat conftest.err >&5
  2154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2155. (exit $ac_status); } >/dev/null; then
  2156. if test -s conftest.err; then
  2157. ac_cpp_err=$ac_c_preproc_warn_flag
  2158. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2159. else
  2160. ac_cpp_err=
  2161. fi
  2162. else
  2163. ac_cpp_err=yes
  2164. fi
  2165. if test -z "$ac_cpp_err"; then
  2166. # Broken: success on invalid input.
  2167. continue
  2168. else
  2169. echo "$as_me: failed program was:" >&5
  2170. sed 's/^/| /' conftest.$ac_ext >&5
  2171. # Passes both tests.
  2172. ac_preproc_ok=:
  2173. break
  2174. fi
  2175. rm -f conftest.err conftest.$ac_ext
  2176. done
  2177. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2178. rm -f conftest.err conftest.$ac_ext
  2179. if $ac_preproc_ok; then
  2180. break
  2181. fi
  2182. done
  2183. ac_cv_prog_CPP=$CPP
  2184. fi
  2185. CPP=$ac_cv_prog_CPP
  2186. else
  2187. ac_cv_prog_CPP=$CPP
  2188. fi
  2189. echo "$as_me:$LINENO: result: $CPP" >&5
  2190. echo "${ECHO_T}$CPP" >&6
  2191. ac_preproc_ok=false
  2192. for ac_c_preproc_warn_flag in '' yes
  2193. do
  2194. # Use a header file that comes with gcc, so configuring glibc
  2195. # with a fresh cross-compiler works.
  2196. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2197. # <limits.h> exists even on freestanding compilers.
  2198. # On the NeXT, cc -E runs the code through the compiler's parser,
  2199. # not just through cpp. "Syntax error" is here to catch this case.
  2200. cat >conftest.$ac_ext <<_ACEOF
  2201. /* confdefs.h. */
  2202. _ACEOF
  2203. cat confdefs.h >>conftest.$ac_ext
  2204. cat >>conftest.$ac_ext <<_ACEOF
  2205. /* end confdefs.h. */
  2206. #ifdef __STDC__
  2207. # include <limits.h>
  2208. #else
  2209. # include <assert.h>
  2210. #endif
  2211. Syntax error
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. :
  2232. else
  2233. echo "$as_me: failed program was:" >&5
  2234. sed 's/^/| /' conftest.$ac_ext >&5
  2235. # Broken: fails on valid input.
  2236. continue
  2237. fi
  2238. rm -f conftest.err conftest.$ac_ext
  2239. # OK, works on sane cases. Now check whether non-existent headers
  2240. # can be detected and how.
  2241. cat >conftest.$ac_ext <<_ACEOF
  2242. /* confdefs.h. */
  2243. _ACEOF
  2244. cat confdefs.h >>conftest.$ac_ext
  2245. cat >>conftest.$ac_ext <<_ACEOF
  2246. /* end confdefs.h. */
  2247. #include <ac_nonexistent.h>
  2248. _ACEOF
  2249. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2250. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2251. ac_status=$?
  2252. grep -v '^ *+' conftest.er1 >conftest.err
  2253. rm -f conftest.er1
  2254. cat conftest.err >&5
  2255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2256. (exit $ac_status); } >/dev/null; then
  2257. if test -s conftest.err; then
  2258. ac_cpp_err=$ac_c_preproc_warn_flag
  2259. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2260. else
  2261. ac_cpp_err=
  2262. fi
  2263. else
  2264. ac_cpp_err=yes
  2265. fi
  2266. if test -z "$ac_cpp_err"; then
  2267. # Broken: success on invalid input.
  2268. continue
  2269. else
  2270. echo "$as_me: failed program was:" >&5
  2271. sed 's/^/| /' conftest.$ac_ext >&5
  2272. # Passes both tests.
  2273. ac_preproc_ok=:
  2274. break
  2275. fi
  2276. rm -f conftest.err conftest.$ac_ext
  2277. done
  2278. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2279. rm -f conftest.err conftest.$ac_ext
  2280. if $ac_preproc_ok; then
  2281. :
  2282. else
  2283. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2284. See \`config.log' for more details." >&5
  2285. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2286. See \`config.log' for more details." >&2;}
  2287. { (exit 1); exit 1; }; }
  2288. fi
  2289. ac_ext=c
  2290. ac_cpp='$CPP $CPPFLAGS'
  2291. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2292. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2293. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2294. echo "$as_me:$LINENO: checking for egrep" >&5
  2295. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2296. if test "${ac_cv_prog_egrep+set}" = set; then
  2297. echo $ECHO_N "(cached) $ECHO_C" >&6
  2298. else
  2299. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2300. then ac_cv_prog_egrep='grep -E'
  2301. else ac_cv_prog_egrep='egrep'
  2302. fi
  2303. fi
  2304. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2305. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2306. EGREP=$ac_cv_prog_egrep
  2307. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2308. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2309. if test "${ac_cv_header_stdc+set}" = set; then
  2310. echo $ECHO_N "(cached) $ECHO_C" >&6
  2311. else
  2312. cat >conftest.$ac_ext <<_ACEOF
  2313. /* confdefs.h. */
  2314. _ACEOF
  2315. cat confdefs.h >>conftest.$ac_ext
  2316. cat >>conftest.$ac_ext <<_ACEOF
  2317. /* end confdefs.h. */
  2318. #include <stdlib.h>
  2319. #include <stdarg.h>
  2320. #include <string.h>
  2321. #include <float.h>
  2322. int
  2323. main ()
  2324. {
  2325. ;
  2326. return 0;
  2327. }
  2328. _ACEOF
  2329. rm -f conftest.$ac_objext
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2331. (eval $ac_compile) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } &&
  2338. { ac_try='test -z "$ac_c_werror_flag"
  2339. || test ! -s conftest.err'
  2340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2341. (eval $ac_try) 2>&5
  2342. ac_status=$?
  2343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2344. (exit $ac_status); }; } &&
  2345. { ac_try='test -s conftest.$ac_objext'
  2346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2347. (eval $ac_try) 2>&5
  2348. ac_status=$?
  2349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2350. (exit $ac_status); }; }; then
  2351. ac_cv_header_stdc=yes
  2352. else
  2353. echo "$as_me: failed program was:" >&5
  2354. sed 's/^/| /' conftest.$ac_ext >&5
  2355. ac_cv_header_stdc=no
  2356. fi
  2357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2358. if test $ac_cv_header_stdc = yes; then
  2359. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2360. cat >conftest.$ac_ext <<_ACEOF
  2361. /* confdefs.h. */
  2362. _ACEOF
  2363. cat confdefs.h >>conftest.$ac_ext
  2364. cat >>conftest.$ac_ext <<_ACEOF
  2365. /* end confdefs.h. */
  2366. #include <string.h>
  2367. _ACEOF
  2368. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2369. $EGREP "memchr" >/dev/null 2>&1; then
  2370. :
  2371. else
  2372. ac_cv_header_stdc=no
  2373. fi
  2374. rm -f conftest*
  2375. fi
  2376. if test $ac_cv_header_stdc = yes; then
  2377. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2378. cat >conftest.$ac_ext <<_ACEOF
  2379. /* confdefs.h. */
  2380. _ACEOF
  2381. cat confdefs.h >>conftest.$ac_ext
  2382. cat >>conftest.$ac_ext <<_ACEOF
  2383. /* end confdefs.h. */
  2384. #include <stdlib.h>
  2385. _ACEOF
  2386. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2387. $EGREP "free" >/dev/null 2>&1; then
  2388. :
  2389. else
  2390. ac_cv_header_stdc=no
  2391. fi
  2392. rm -f conftest*
  2393. fi
  2394. if test $ac_cv_header_stdc = yes; then
  2395. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2396. if test "$cross_compiling" = yes; then
  2397. :
  2398. else
  2399. cat >conftest.$ac_ext <<_ACEOF
  2400. /* confdefs.h. */
  2401. _ACEOF
  2402. cat confdefs.h >>conftest.$ac_ext
  2403. cat >>conftest.$ac_ext <<_ACEOF
  2404. /* end confdefs.h. */
  2405. #include <ctype.h>
  2406. #if ((' ' & 0x0FF) == 0x020)
  2407. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2408. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2409. #else
  2410. # define ISLOWER(c) \
  2411. (('a' <= (c) && (c) <= 'i') \
  2412. || ('j' <= (c) && (c) <= 'r') \
  2413. || ('s' <= (c) && (c) <= 'z'))
  2414. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2415. #endif
  2416. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2417. int
  2418. main ()
  2419. {
  2420. int i;
  2421. for (i = 0; i < 256; i++)
  2422. if (XOR (islower (i), ISLOWER (i))
  2423. || toupper (i) != TOUPPER (i))
  2424. exit(2);
  2425. exit (0);
  2426. }
  2427. _ACEOF
  2428. rm -f conftest$ac_exeext
  2429. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2430. (eval $ac_link) 2>&5
  2431. ac_status=$?
  2432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2435. (eval $ac_try) 2>&5
  2436. ac_status=$?
  2437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2438. (exit $ac_status); }; }; then
  2439. :
  2440. else
  2441. echo "$as_me: program exited with status $ac_status" >&5
  2442. echo "$as_me: failed program was:" >&5
  2443. sed 's/^/| /' conftest.$ac_ext >&5
  2444. ( exit $ac_status )
  2445. ac_cv_header_stdc=no
  2446. fi
  2447. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2448. fi
  2449. fi
  2450. fi
  2451. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2452. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2453. if test $ac_cv_header_stdc = yes; then
  2454. cat >>confdefs.h <<\_ACEOF
  2455. #define STDC_HEADERS 1
  2456. _ACEOF
  2457. fi
  2458. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2459. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2460. inttypes.h stdint.h unistd.h
  2461. do
  2462. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2463. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2464. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2465. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2466. echo $ECHO_N "(cached) $ECHO_C" >&6
  2467. else
  2468. cat >conftest.$ac_ext <<_ACEOF
  2469. /* confdefs.h. */
  2470. _ACEOF
  2471. cat confdefs.h >>conftest.$ac_ext
  2472. cat >>conftest.$ac_ext <<_ACEOF
  2473. /* end confdefs.h. */
  2474. $ac_includes_default
  2475. #include <$ac_header>
  2476. _ACEOF
  2477. rm -f conftest.$ac_objext
  2478. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2479. (eval $ac_compile) 2>conftest.er1
  2480. ac_status=$?
  2481. grep -v '^ *+' conftest.er1 >conftest.err
  2482. rm -f conftest.er1
  2483. cat conftest.err >&5
  2484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2485. (exit $ac_status); } &&
  2486. { ac_try='test -z "$ac_c_werror_flag"
  2487. || test ! -s conftest.err'
  2488. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2489. (eval $ac_try) 2>&5
  2490. ac_status=$?
  2491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2492. (exit $ac_status); }; } &&
  2493. { ac_try='test -s conftest.$ac_objext'
  2494. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2495. (eval $ac_try) 2>&5
  2496. ac_status=$?
  2497. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2498. (exit $ac_status); }; }; then
  2499. eval "$as_ac_Header=yes"
  2500. else
  2501. echo "$as_me: failed program was:" >&5
  2502. sed 's/^/| /' conftest.$ac_ext >&5
  2503. eval "$as_ac_Header=no"
  2504. fi
  2505. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2506. fi
  2507. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2508. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2509. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2510. cat >>confdefs.h <<_ACEOF
  2511. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2512. _ACEOF
  2513. fi
  2514. done
  2515. for ac_header in getopt.h stdio.h stdlib.h memory.h string.h
  2516. do
  2517. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2518. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. fi
  2524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2525. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2526. else
  2527. # Is the header compilable?
  2528. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  2529. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  2530. cat >conftest.$ac_ext <<_ACEOF
  2531. /* confdefs.h. */
  2532. _ACEOF
  2533. cat confdefs.h >>conftest.$ac_ext
  2534. cat >>conftest.$ac_ext <<_ACEOF
  2535. /* end confdefs.h. */
  2536. $ac_includes_default
  2537. #include <$ac_header>
  2538. _ACEOF
  2539. rm -f conftest.$ac_objext
  2540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2541. (eval $ac_compile) 2>conftest.er1
  2542. ac_status=$?
  2543. grep -v '^ *+' conftest.er1 >conftest.err
  2544. rm -f conftest.er1
  2545. cat conftest.err >&5
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); } &&
  2548. { ac_try='test -z "$ac_c_werror_flag"
  2549. || test ! -s conftest.err'
  2550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2551. (eval $ac_try) 2>&5
  2552. ac_status=$?
  2553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2554. (exit $ac_status); }; } &&
  2555. { ac_try='test -s conftest.$ac_objext'
  2556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2557. (eval $ac_try) 2>&5
  2558. ac_status=$?
  2559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2560. (exit $ac_status); }; }; then
  2561. ac_header_compiler=yes
  2562. else
  2563. echo "$as_me: failed program was:" >&5
  2564. sed 's/^/| /' conftest.$ac_ext >&5
  2565. ac_header_compiler=no
  2566. fi
  2567. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2568. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2569. echo "${ECHO_T}$ac_header_compiler" >&6
  2570. # Is the header present?
  2571. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  2572. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  2573. cat >conftest.$ac_ext <<_ACEOF
  2574. /* confdefs.h. */
  2575. _ACEOF
  2576. cat confdefs.h >>conftest.$ac_ext
  2577. cat >>conftest.$ac_ext <<_ACEOF
  2578. /* end confdefs.h. */
  2579. #include <$ac_header>
  2580. _ACEOF
  2581. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2582. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2583. ac_status=$?
  2584. grep -v '^ *+' conftest.er1 >conftest.err
  2585. rm -f conftest.er1
  2586. cat conftest.err >&5
  2587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2588. (exit $ac_status); } >/dev/null; then
  2589. if test -s conftest.err; then
  2590. ac_cpp_err=$ac_c_preproc_warn_flag
  2591. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2592. else
  2593. ac_cpp_err=
  2594. fi
  2595. else
  2596. ac_cpp_err=yes
  2597. fi
  2598. if test -z "$ac_cpp_err"; then
  2599. ac_header_preproc=yes
  2600. else
  2601. echo "$as_me: failed program was:" >&5
  2602. sed 's/^/| /' conftest.$ac_ext >&5
  2603. ac_header_preproc=no
  2604. fi
  2605. rm -f conftest.err conftest.$ac_ext
  2606. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2607. echo "${ECHO_T}$ac_header_preproc" >&6
  2608. # So? What about this header?
  2609. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2610. yes:no: )
  2611. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  2612. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2613. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  2614. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  2615. ac_header_preproc=yes
  2616. ;;
  2617. no:yes:* )
  2618. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  2619. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  2620. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  2621. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  2622. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  2623. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  2624. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  2625. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  2626. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  2627. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  2628. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  2629. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  2630. (
  2631. cat <<\_ASBOX
  2632. ## ------------------------------------------ ##
  2633. ## Report this to the AC_PACKAGE_NAME lists. ##
  2634. ## ------------------------------------------ ##
  2635. _ASBOX
  2636. ) |
  2637. sed "s/^/$as_me: WARNING: /" >&2
  2638. ;;
  2639. esac
  2640. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2641. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2642. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2643. echo $ECHO_N "(cached) $ECHO_C" >&6
  2644. else
  2645. eval "$as_ac_Header=\$ac_header_preproc"
  2646. fi
  2647. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2648. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2649. fi
  2650. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2651. cat >>confdefs.h <<_ACEOF
  2652. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2653. _ACEOF
  2654. fi
  2655. done
  2656. if test -z "$HAVE_stdio.h"
  2657. then
  2658. { { echo "$as_me:$LINENO: error: Need stdio.h!" >&5
  2659. echo "$as_me: error: Need stdio.h!" >&2;}
  2660. { (exit 1); exit 1; }; }
  2661. fi
  2662. if test -z "$HAVE_stdlib.h"
  2663. then
  2664. { { echo "$as_me:$LINENO: error: Need stdlib.h!" >&5
  2665. echo "$as_me: error: Need stdlib.h!" >&2;}
  2666. { (exit 1); exit 1; }; }
  2667. fi
  2668. if test -z "$HAVE_stdlib.h"
  2669. then
  2670. { { echo "$as_me:$LINENO: error: Need memory.h!" >&5
  2671. echo "$as_me: error: Need memory.h!" >&2;}
  2672. { (exit 1); exit 1; }; }
  2673. fi
  2674. if test -z "$HAVE_string.h"
  2675. then
  2676. { { echo "$as_me:$LINENO: error: Need string.h" >&5
  2677. echo "$as_me: error: Need string.h" >&2;}
  2678. { (exit 1); exit 1; }; }
  2679. fi
  2680. ac_aux_dir=
  2681. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  2682. if test -f $ac_dir/install-sh; then
  2683. ac_aux_dir=$ac_dir
  2684. ac_install_sh="$ac_aux_dir/install-sh -c"
  2685. break
  2686. elif test -f $ac_dir/install.sh; then
  2687. ac_aux_dir=$ac_dir
  2688. ac_install_sh="$ac_aux_dir/install.sh -c"
  2689. break
  2690. elif test -f $ac_dir/shtool; then
  2691. ac_aux_dir=$ac_dir
  2692. ac_install_sh="$ac_aux_dir/shtool install -c"
  2693. break
  2694. fi
  2695. done
  2696. if test -z "$ac_aux_dir"; then
  2697. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  2698. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  2699. { (exit 1); exit 1; }; }
  2700. fi
  2701. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  2702. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  2703. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  2704. # Make sure we can run config.sub.
  2705. $ac_config_sub sun4 >/dev/null 2>&1 ||
  2706. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  2707. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  2708. { (exit 1); exit 1; }; }
  2709. echo "$as_me:$LINENO: checking build system type" >&5
  2710. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  2711. if test "${ac_cv_build+set}" = set; then
  2712. echo $ECHO_N "(cached) $ECHO_C" >&6
  2713. else
  2714. ac_cv_build_alias=$build_alias
  2715. test -z "$ac_cv_build_alias" &&
  2716. ac_cv_build_alias=`$ac_config_guess`
  2717. test -z "$ac_cv_build_alias" &&
  2718. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  2719. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  2720. { (exit 1); exit 1; }; }
  2721. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  2722. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  2723. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  2724. { (exit 1); exit 1; }; }
  2725. fi
  2726. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  2727. echo "${ECHO_T}$ac_cv_build" >&6
  2728. build=$ac_cv_build
  2729. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2730. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2731. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2732. echo "$as_me:$LINENO: checking host system type" >&5
  2733. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  2734. if test "${ac_cv_host+set}" = set; then
  2735. echo $ECHO_N "(cached) $ECHO_C" >&6
  2736. else
  2737. ac_cv_host_alias=$host_alias
  2738. test -z "$ac_cv_host_alias" &&
  2739. ac_cv_host_alias=$ac_cv_build_alias
  2740. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  2741. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  2742. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  2743. { (exit 1); exit 1; }; }
  2744. fi
  2745. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  2746. echo "${ECHO_T}$ac_cv_host" >&6
  2747. host=$ac_cv_host
  2748. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2749. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2750. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2751. echo "$as_me:$LINENO: checking target system type" >&5
  2752. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  2753. if test "${ac_cv_target+set}" = set; then
  2754. echo $ECHO_N "(cached) $ECHO_C" >&6
  2755. else
  2756. ac_cv_target_alias=$target_alias
  2757. test "x$ac_cv_target_alias" = "x" &&
  2758. ac_cv_target_alias=$ac_cv_host_alias
  2759. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  2760. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  2761. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  2762. { (exit 1); exit 1; }; }
  2763. fi
  2764. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  2765. echo "${ECHO_T}$ac_cv_target" >&6
  2766. target=$ac_cv_target
  2767. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  2768. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  2769. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  2770. # The aliases save the names the user supplied, while $host etc.
  2771. # will get canonicalized.
  2772. test -n "$target_alias" &&
  2773. test "$program_prefix$program_suffix$program_transform_name" = \
  2774. NONENONEs,x,x, &&
  2775. program_prefix=${target_alias}-
  2776. case $target_cpu in
  2777. i386|i486|i586|i686)
  2778. ARCH_OPTION="-march=$target_cpu"
  2779. MLIBS="viterbi27_mmx.o mmxbfly27.o viterbi27_sse.o ssebfly27.o viterbi27_sse2.o sse2bfly27.o \
  2780. viterbi29_mmx.o mmxbfly29.o viterbi29_sse.o ssebfly29.o viterbi29_sse2.o sse2bfly29.o \
  2781. viterbi39_sse2.o viterbi39_sse.o viterbi39_mmx.o \
  2782. viterbi615_mmx.o viterbi615_sse.o viterbi615_sse2.o \
  2783. dotprod_mmx.o dotprod_mmx_assist.o \
  2784. dotprod_sse2.o dotprod_sse2_assist.o \
  2785. peakval_mmx.o peakval_mmx_assist.o \
  2786. peakval_sse.o peakval_sse_assist.o \
  2787. peakval_sse2.o peakval_sse2_assist.o \
  2788. sumsq.o sumsq_port.o \
  2789. sumsq_sse2.o sumsq_sse2_assist.o \
  2790. sumsq_mmx.o sumsq_mmx_assist.o \
  2791. cpu_features.o cpu_mode_x86.o"
  2792. ;;
  2793. powerpc*)
  2794. ARCH_OPTION="-fno-common -faltivec"
  2795. MLIBS="viterbi27_av.o viterbi29_av.o viterbi39_av.o viterbi615_av.o \
  2796. encode_rs_av.o \
  2797. dotprod_av.o sumsq_av.o peakval_av.o cpu_mode_ppc.o"
  2798. ;;
  2799. *)
  2800. MLIBS=
  2801. esac
  2802. case $target_os in
  2803. darwin*)
  2804. SH_LIB=libfec.dylib
  2805. REBIND=""
  2806. ;;
  2807. *)
  2808. SH_LIB=libfec.so
  2809. REBIND=ldconfig
  2810. ;;
  2811. esac
  2812. for ac_func in getopt_long memset memmove
  2813. do
  2814. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  2815. echo "$as_me:$LINENO: checking for $ac_func" >&5
  2816. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  2817. if eval "test \"\${$as_ac_var+set}\" = set"; then
  2818. echo $ECHO_N "(cached) $ECHO_C" >&6
  2819. else
  2820. cat >conftest.$ac_ext <<_ACEOF
  2821. /* confdefs.h. */
  2822. _ACEOF
  2823. cat confdefs.h >>conftest.$ac_ext
  2824. cat >>conftest.$ac_ext <<_ACEOF
  2825. /* end confdefs.h. */
  2826. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  2827. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2828. #define $ac_func innocuous_$ac_func
  2829. /* System header to define __stub macros and hopefully few prototypes,
  2830. which can conflict with char $ac_func (); below.
  2831. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2832. <limits.h> exists even on freestanding compilers. */
  2833. #ifdef __STDC__
  2834. # include <limits.h>
  2835. #else
  2836. # include <assert.h>
  2837. #endif
  2838. #undef $ac_func
  2839. /* Override any gcc2 internal prototype to avoid an error. */
  2840. #ifdef __cplusplus
  2841. extern "C"
  2842. {
  2843. #endif
  2844. /* We use char because int might match the return type of a gcc2
  2845. builtin and then its argument prototype would still apply. */
  2846. char $ac_func ();
  2847. /* The GNU C library defines this for functions which it implements
  2848. to always fail with ENOSYS. Some functions are actually named
  2849. something starting with __ and the normal name is an alias. */
  2850. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  2851. choke me
  2852. #else
  2853. char (*f) () = $ac_func;
  2854. #endif
  2855. #ifdef __cplusplus
  2856. }
  2857. #endif
  2858. int
  2859. main ()
  2860. {
  2861. return f != $ac_func;
  2862. ;
  2863. return 0;
  2864. }
  2865. _ACEOF
  2866. rm -f conftest.$ac_objext conftest$ac_exeext
  2867. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2868. (eval $ac_link) 2>conftest.er1
  2869. ac_status=$?
  2870. grep -v '^ *+' conftest.er1 >conftest.err
  2871. rm -f conftest.er1
  2872. cat conftest.err >&5
  2873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2874. (exit $ac_status); } &&
  2875. { ac_try='test -z "$ac_c_werror_flag"
  2876. || test ! -s conftest.err'
  2877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2878. (eval $ac_try) 2>&5
  2879. ac_status=$?
  2880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2881. (exit $ac_status); }; } &&
  2882. { ac_try='test -s conftest$ac_exeext'
  2883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2884. (eval $ac_try) 2>&5
  2885. ac_status=$?
  2886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2887. (exit $ac_status); }; }; then
  2888. eval "$as_ac_var=yes"
  2889. else
  2890. echo "$as_me: failed program was:" >&5
  2891. sed 's/^/| /' conftest.$ac_ext >&5
  2892. eval "$as_ac_var=no"
  2893. fi
  2894. rm -f conftest.err conftest.$ac_objext \
  2895. conftest$ac_exeext conftest.$ac_ext
  2896. fi
  2897. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  2898. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  2899. if test `eval echo '${'$as_ac_var'}'` = yes; then
  2900. cat >>confdefs.h <<_ACEOF
  2901. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  2902. _ACEOF
  2903. fi
  2904. done
  2905. ac_config_files="$ac_config_files makefile"
  2906. cat >confcache <<\_ACEOF
  2907. # This file is a shell script that caches the results of configure
  2908. # tests run on this system so they can be shared between configure
  2909. # scripts and configure runs, see configure's option --config-cache.
  2910. # It is not useful on other systems. If it contains results you don't
  2911. # want to keep, you may remove or edit it.
  2912. #
  2913. # config.status only pays attention to the cache file if you give it
  2914. # the --recheck option to rerun configure.
  2915. #
  2916. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2917. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2918. # following values.
  2919. _ACEOF
  2920. # The following way of writing the cache mishandles newlines in values,
  2921. # but we know of no workaround that is simple, portable, and efficient.
  2922. # So, don't put newlines in cache variables' values.
  2923. # Ultrix sh set writes to stderr and can't be redirected directly,
  2924. # and sets the high bit in the cache file unless we assign to the vars.
  2925. {
  2926. (set) 2>&1 |
  2927. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2928. *ac_space=\ *)
  2929. # `set' does not quote correctly, so add quotes (double-quote
  2930. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2931. sed -n \
  2932. "s/'/'\\\\''/g;
  2933. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2934. ;;
  2935. *)
  2936. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2937. sed -n \
  2938. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2939. ;;
  2940. esac;
  2941. } |
  2942. sed '
  2943. t clear
  2944. : clear
  2945. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2946. t end
  2947. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2948. : end' >>confcache
  2949. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2950. if test -w $cache_file; then
  2951. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  2952. cat confcache >$cache_file
  2953. else
  2954. echo "not updating unwritable cache $cache_file"
  2955. fi
  2956. fi
  2957. rm -f confcache
  2958. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  2959. # Let make expand exec_prefix.
  2960. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  2961. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  2962. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  2963. # trailing colons and then remove the whole line if VPATH becomes empty
  2964. # (actually we leave an empty line to preserve line numbers).
  2965. if test "x$srcdir" = x.; then
  2966. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  2967. s/:*\$(srcdir):*/:/;
  2968. s/:*\${srcdir}:*/:/;
  2969. s/:*@srcdir@:*/:/;
  2970. s/^\([^=]*=[ ]*\):*/\1/;
  2971. s/:*$//;
  2972. s/^[^=]*=[ ]*$//;
  2973. }'
  2974. fi
  2975. DEFS=-DHAVE_CONFIG_H
  2976. ac_libobjs=
  2977. ac_ltlibobjs=
  2978. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  2979. # 1. Remove the extension, and $U if already installed.
  2980. ac_i=`echo "$ac_i" |
  2981. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  2982. # 2. Add them.
  2983. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  2984. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  2985. done
  2986. LIBOBJS=$ac_libobjs
  2987. LTLIBOBJS=$ac_ltlibobjs
  2988. : ${CONFIG_STATUS=./config.status}
  2989. ac_clean_files_save=$ac_clean_files
  2990. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  2991. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  2992. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  2993. cat >$CONFIG_STATUS <<_ACEOF
  2994. #! $SHELL
  2995. # Generated by $as_me.
  2996. # Run this file to recreate the current configuration.
  2997. # Compiler output produced by configure, useful for debugging
  2998. # configure, is in config.log if it exists.
  2999. debug=false
  3000. ac_cs_recheck=false
  3001. ac_cs_silent=false
  3002. SHELL=\${CONFIG_SHELL-$SHELL}
  3003. _ACEOF
  3004. cat >>$CONFIG_STATUS <<\_ACEOF
  3005. ## --------------------- ##
  3006. ## M4sh Initialization. ##
  3007. ## --------------------- ##
  3008. # Be Bourne compatible
  3009. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  3010. emulate sh
  3011. NULLCMD=:
  3012. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  3013. # is contrary to our usage. Disable this feature.
  3014. alias -g '${1+"$@"}'='"$@"'
  3015. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  3016. set -o posix
  3017. fi
  3018. DUALCASE=1; export DUALCASE # for MKS sh
  3019. # Support unset when possible.
  3020. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  3021. as_unset=unset
  3022. else
  3023. as_unset=false
  3024. fi
  3025. # Work around bugs in pre-3.0 UWIN ksh.
  3026. $as_unset ENV MAIL MAILPATH
  3027. PS1='$ '
  3028. PS2='> '
  3029. PS4='+ '
  3030. # NLS nuisances.
  3031. for as_var in \
  3032. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  3033. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  3034. LC_TELEPHONE LC_TIME
  3035. do
  3036. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  3037. eval $as_var=C; export $as_var
  3038. else
  3039. $as_unset $as_var
  3040. fi
  3041. done
  3042. # Required to use basename.
  3043. if expr a : '\(a\)' >/dev/null 2>&1; then
  3044. as_expr=expr
  3045. else
  3046. as_expr=false
  3047. fi
  3048. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  3049. as_basename=basename
  3050. else
  3051. as_basename=false
  3052. fi
  3053. # Name of the executable.
  3054. as_me=`$as_basename "$0" ||
  3055. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  3056. X"$0" : 'X\(//\)$' \| \
  3057. X"$0" : 'X\(/\)$' \| \
  3058. . : '\(.\)' 2>/dev/null ||
  3059. echo X/"$0" |
  3060. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  3061. /^X\/\(\/\/\)$/{ s//\1/; q; }
  3062. /^X\/\(\/\).*/{ s//\1/; q; }
  3063. s/.*/./; q'`
  3064. # PATH needs CR, and LINENO needs CR and PATH.
  3065. # Avoid depending upon Character Ranges.
  3066. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  3067. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  3068. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  3069. as_cr_digits='0123456789'
  3070. as_cr_alnum=$as_cr_Letters$as_cr_digits
  3071. # The user is always right.
  3072. if test "${PATH_SEPARATOR+set}" != set; then
  3073. echo "#! /bin/sh" >conf$$.sh
  3074. echo "exit 0" >>conf$$.sh
  3075. chmod +x conf$$.sh
  3076. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  3077. PATH_SEPARATOR=';'
  3078. else
  3079. PATH_SEPARATOR=:
  3080. fi
  3081. rm -f conf$$.sh
  3082. fi
  3083. as_lineno_1=$LINENO
  3084. as_lineno_2=$LINENO
  3085. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3086. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3087. test "x$as_lineno_3" = "x$as_lineno_2" || {
  3088. # Find who we are. Look in the path if we contain no path at all
  3089. # relative or not.
  3090. case $0 in
  3091. *[\\/]* ) as_myself=$0 ;;
  3092. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3093. for as_dir in $PATH
  3094. do
  3095. IFS=$as_save_IFS
  3096. test -z "$as_dir" && as_dir=.
  3097. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  3098. done
  3099. ;;
  3100. esac
  3101. # We did not find ourselves, most probably we were run as `sh COMMAND'
  3102. # in which case we are not to be found in the path.
  3103. if test "x$as_myself" = x; then
  3104. as_myself=$0
  3105. fi
  3106. if test ! -f "$as_myself"; then
  3107. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  3108. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  3109. { (exit 1); exit 1; }; }
  3110. fi
  3111. case $CONFIG_SHELL in
  3112. '')
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for as_base in sh bash ksh sh5; do
  3119. case $as_dir in
  3120. /*)
  3121. if ("$as_dir/$as_base" -c '
  3122. as_lineno_1=$LINENO
  3123. as_lineno_2=$LINENO
  3124. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  3125. test "x$as_lineno_1" != "x$as_lineno_2" &&
  3126. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  3127. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  3128. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  3129. CONFIG_SHELL=$as_dir/$as_base
  3130. export CONFIG_SHELL
  3131. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  3132. fi;;
  3133. esac
  3134. done
  3135. done
  3136. ;;
  3137. esac
  3138. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  3139. # uniformly replaced by the line number. The first 'sed' inserts a
  3140. # line-number line before each line; the second 'sed' does the real
  3141. # work. The second script uses 'N' to pair each line-number line
  3142. # with the numbered line, and appends trailing '-' during
  3143. # substitution so that $LINENO is not a special case at line end.
  3144. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  3145. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  3146. sed '=' <$as_myself |
  3147. sed '
  3148. N
  3149. s,$,-,
  3150. : loop
  3151. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  3152. t loop
  3153. s,-$,,
  3154. s,^['$as_cr_digits']*\n,,
  3155. ' >$as_me.lineno &&
  3156. chmod +x $as_me.lineno ||
  3157. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  3158. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  3159. { (exit 1); exit 1; }; }
  3160. # Don't try to exec as it changes $[0], causing all sort of problems
  3161. # (the dirname of $[0] is not the place where we might find the
  3162. # original and so on. Autoconf is especially sensible to this).
  3163. . ./$as_me.lineno
  3164. # Exit status is that of the last command.
  3165. exit
  3166. }
  3167. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  3168. *c*,-n*) ECHO_N= ECHO_C='
  3169. ' ECHO_T=' ' ;;
  3170. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  3171. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  3172. esac
  3173. if expr a : '\(a\)' >/dev/null 2>&1; then
  3174. as_expr=expr
  3175. else
  3176. as_expr=false
  3177. fi
  3178. rm -f conf$$ conf$$.exe conf$$.file
  3179. echo >conf$$.file
  3180. if ln -s conf$$.file conf$$ 2>/dev/null; then
  3181. # We could just check for DJGPP; but this test a) works b) is more generic
  3182. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  3183. if test -f conf$$.exe; then
  3184. # Don't use ln at all; we don't have any links
  3185. as_ln_s='cp -p'
  3186. else
  3187. as_ln_s='ln -s'
  3188. fi
  3189. elif ln conf$$.file conf$$ 2>/dev/null; then
  3190. as_ln_s=ln
  3191. else
  3192. as_ln_s='cp -p'
  3193. fi
  3194. rm -f conf$$ conf$$.exe conf$$.file
  3195. if mkdir -p . 2>/dev/null; then
  3196. as_mkdir_p=:
  3197. else
  3198. test -d ./-p && rmdir ./-p
  3199. as_mkdir_p=false
  3200. fi
  3201. as_executable_p="test -f"
  3202. # Sed expression to map a string onto a valid CPP name.
  3203. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  3204. # Sed expression to map a string onto a valid variable name.
  3205. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  3206. # IFS
  3207. # We need space, tab and new line, in precisely that order.
  3208. as_nl='
  3209. '
  3210. IFS=" $as_nl"
  3211. # CDPATH.
  3212. $as_unset CDPATH
  3213. exec 6>&1
  3214. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  3215. # report actual input values of CONFIG_FILES etc. instead of their
  3216. # values after options handling. Logging --version etc. is OK.
  3217. exec 5>>config.log
  3218. {
  3219. echo
  3220. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  3221. ## Running $as_me. ##
  3222. _ASBOX
  3223. } >&5
  3224. cat >&5 <<_CSEOF
  3225. This file was extended by $as_me, which was
  3226. generated by GNU Autoconf 2.59. Invocation command line was
  3227. CONFIG_FILES = $CONFIG_FILES
  3228. CONFIG_HEADERS = $CONFIG_HEADERS
  3229. CONFIG_LINKS = $CONFIG_LINKS
  3230. CONFIG_COMMANDS = $CONFIG_COMMANDS
  3231. $ $0 $@
  3232. _CSEOF
  3233. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  3234. echo >&5
  3235. _ACEOF
  3236. # Files that config.status was made for.
  3237. if test -n "$ac_config_files"; then
  3238. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  3239. fi
  3240. if test -n "$ac_config_headers"; then
  3241. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  3242. fi
  3243. if test -n "$ac_config_links"; then
  3244. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  3245. fi
  3246. if test -n "$ac_config_commands"; then
  3247. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  3248. fi
  3249. cat >>$CONFIG_STATUS <<\_ACEOF
  3250. ac_cs_usage="\
  3251. \`$as_me' instantiates files from templates according to the
  3252. current configuration.
  3253. Usage: $0 [OPTIONS] [FILE]...
  3254. -h, --help print this help, then exit
  3255. -V, --version print version number, then exit
  3256. -q, --quiet do not print progress messages
  3257. -d, --debug don't remove temporary files
  3258. --recheck update $as_me by reconfiguring in the same conditions
  3259. --file=FILE[:TEMPLATE]
  3260. instantiate the configuration file FILE
  3261. --header=FILE[:TEMPLATE]
  3262. instantiate the configuration header FILE
  3263. Configuration files:
  3264. $config_files
  3265. Configuration headers:
  3266. $config_headers
  3267. Report bugs to <bug-autoconf@gnu.org>."
  3268. _ACEOF
  3269. cat >>$CONFIG_STATUS <<_ACEOF
  3270. ac_cs_version="\\
  3271. config.status
  3272. configured by $0, generated by GNU Autoconf 2.59,
  3273. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  3274. Copyright (C) 2003 Free Software Foundation, Inc.
  3275. This config.status script is free software; the Free Software Foundation
  3276. gives unlimited permission to copy, distribute and modify it."
  3277. srcdir=$srcdir
  3278. _ACEOF
  3279. cat >>$CONFIG_STATUS <<\_ACEOF
  3280. # If no file are specified by the user, then we need to provide default
  3281. # value. By we need to know if files were specified by the user.
  3282. ac_need_defaults=:
  3283. while test $# != 0
  3284. do
  3285. case $1 in
  3286. --*=*)
  3287. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  3288. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  3289. ac_shift=:
  3290. ;;
  3291. -*)
  3292. ac_option=$1
  3293. ac_optarg=$2
  3294. ac_shift=shift
  3295. ;;
  3296. *) # This is not an option, so the user has probably given explicit
  3297. # arguments.
  3298. ac_option=$1
  3299. ac_need_defaults=false;;
  3300. esac
  3301. case $ac_option in
  3302. # Handling of the options.
  3303. _ACEOF
  3304. cat >>$CONFIG_STATUS <<\_ACEOF
  3305. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  3306. ac_cs_recheck=: ;;
  3307. --version | --vers* | -V )
  3308. echo "$ac_cs_version"; exit 0 ;;
  3309. --he | --h)
  3310. # Conflict between --help and --header
  3311. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  3312. Try \`$0 --help' for more information." >&5
  3313. echo "$as_me: error: ambiguous option: $1
  3314. Try \`$0 --help' for more information." >&2;}
  3315. { (exit 1); exit 1; }; };;
  3316. --help | --hel | -h )
  3317. echo "$ac_cs_usage"; exit 0 ;;
  3318. --debug | --d* | -d )
  3319. debug=: ;;
  3320. --file | --fil | --fi | --f )
  3321. $ac_shift
  3322. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  3323. ac_need_defaults=false;;
  3324. --header | --heade | --head | --hea )
  3325. $ac_shift
  3326. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  3327. ac_need_defaults=false;;
  3328. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  3329. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  3330. ac_cs_silent=: ;;
  3331. # This is an error.
  3332. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  3333. Try \`$0 --help' for more information." >&5
  3334. echo "$as_me: error: unrecognized option: $1
  3335. Try \`$0 --help' for more information." >&2;}
  3336. { (exit 1); exit 1; }; } ;;
  3337. *) ac_config_targets="$ac_config_targets $1" ;;
  3338. esac
  3339. shift
  3340. done
  3341. ac_configure_extra_args=
  3342. if $ac_cs_silent; then
  3343. exec 6>/dev/null
  3344. ac_configure_extra_args="$ac_configure_extra_args --silent"
  3345. fi
  3346. _ACEOF
  3347. cat >>$CONFIG_STATUS <<_ACEOF
  3348. if \$ac_cs_recheck; then
  3349. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  3350. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  3351. fi
  3352. _ACEOF
  3353. cat >>$CONFIG_STATUS <<\_ACEOF
  3354. for ac_config_target in $ac_config_targets
  3355. do
  3356. case "$ac_config_target" in
  3357. # Handling of arguments.
  3358. "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
  3359. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  3360. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  3361. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  3362. { (exit 1); exit 1; }; };;
  3363. esac
  3364. done
  3365. # If the user did not use the arguments to specify the items to instantiate,
  3366. # then the envvar interface is used. Set only those that are not.
  3367. # We use the long form for the default assignment because of an extremely
  3368. # bizarre bug on SunOS 4.1.3.
  3369. if $ac_need_defaults; then
  3370. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  3371. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  3372. fi
  3373. # Have a temporary directory for convenience. Make it in the build tree
  3374. # simply because there is no reason to put it here, and in addition,
  3375. # creating and moving files from /tmp can sometimes cause problems.
  3376. # Create a temporary directory, and hook for its removal unless debugging.
  3377. $debug ||
  3378. {
  3379. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  3380. trap '{ (exit 1); exit 1; }' 1 2 13 15
  3381. }
  3382. # Create a (secure) tmp directory for tmp files.
  3383. {
  3384. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  3385. test -n "$tmp" && test -d "$tmp"
  3386. } ||
  3387. {
  3388. tmp=./confstat$$-$RANDOM
  3389. (umask 077 && mkdir $tmp)
  3390. } ||
  3391. {
  3392. echo "$me: cannot create a temporary directory in ." >&2
  3393. { (exit 1); exit 1; }
  3394. }
  3395. _ACEOF
  3396. cat >>$CONFIG_STATUS <<_ACEOF
  3397. #
  3398. # CONFIG_FILES section.
  3399. #
  3400. # No need to generate the scripts if there are no CONFIG_FILES.
  3401. # This happens for instance when ./config.status config.h
  3402. if test -n "\$CONFIG_FILES"; then
  3403. # Protect against being on the right side of a sed subst in config.status.
  3404. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  3405. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  3406. s,@SHELL@,$SHELL,;t t
  3407. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  3408. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  3409. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  3410. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  3411. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  3412. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  3413. s,@exec_prefix@,$exec_prefix,;t t
  3414. s,@prefix@,$prefix,;t t
  3415. s,@program_transform_name@,$program_transform_name,;t t
  3416. s,@bindir@,$bindir,;t t
  3417. s,@sbindir@,$sbindir,;t t
  3418. s,@libexecdir@,$libexecdir,;t t
  3419. s,@datadir@,$datadir,;t t
  3420. s,@sysconfdir@,$sysconfdir,;t t
  3421. s,@sharedstatedir@,$sharedstatedir,;t t
  3422. s,@localstatedir@,$localstatedir,;t t
  3423. s,@libdir@,$libdir,;t t
  3424. s,@includedir@,$includedir,;t t
  3425. s,@oldincludedir@,$oldincludedir,;t t
  3426. s,@infodir@,$infodir,;t t
  3427. s,@mandir@,$mandir,;t t
  3428. s,@build_alias@,$build_alias,;t t
  3429. s,@host_alias@,$host_alias,;t t
  3430. s,@target_alias@,$target_alias,;t t
  3431. s,@DEFS@,$DEFS,;t t
  3432. s,@ECHO_C@,$ECHO_C,;t t
  3433. s,@ECHO_N@,$ECHO_N,;t t
  3434. s,@ECHO_T@,$ECHO_T,;t t
  3435. s,@LIBS@,$LIBS,;t t
  3436. s,@SO_NAME@,$SO_NAME,;t t
  3437. s,@VERSION@,$VERSION,;t t
  3438. s,@CC@,$CC,;t t
  3439. s,@CFLAGS@,$CFLAGS,;t t
  3440. s,@LDFLAGS@,$LDFLAGS,;t t
  3441. s,@CPPFLAGS@,$CPPFLAGS,;t t
  3442. s,@ac_ct_CC@,$ac_ct_CC,;t t
  3443. s,@EXEEXT@,$EXEEXT,;t t
  3444. s,@OBJEXT@,$OBJEXT,;t t
  3445. s,@CPP@,$CPP,;t t
  3446. s,@EGREP@,$EGREP,;t t
  3447. s,@build@,$build,;t t
  3448. s,@build_cpu@,$build_cpu,;t t
  3449. s,@build_vendor@,$build_vendor,;t t
  3450. s,@build_os@,$build_os,;t t
  3451. s,@host@,$host,;t t
  3452. s,@host_cpu@,$host_cpu,;t t
  3453. s,@host_vendor@,$host_vendor,;t t
  3454. s,@host_os@,$host_os,;t t
  3455. s,@target@,$target,;t t
  3456. s,@target_cpu@,$target_cpu,;t t
  3457. s,@target_vendor@,$target_vendor,;t t
  3458. s,@target_os@,$target_os,;t t
  3459. s,@SH_LIB@,$SH_LIB,;t t
  3460. s,@REBIND@,$REBIND,;t t
  3461. s,@MLIBS@,$MLIBS,;t t
  3462. s,@ARCH_OPTION@,$ARCH_OPTION,;t t
  3463. s,@LIBOBJS@,$LIBOBJS,;t t
  3464. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  3465. CEOF
  3466. _ACEOF
  3467. cat >>$CONFIG_STATUS <<\_ACEOF
  3468. # Split the substitutions into bite-sized pieces for seds with
  3469. # small command number limits, like on Digital OSF/1 and HP-UX.
  3470. ac_max_sed_lines=48
  3471. ac_sed_frag=1 # Number of current file.
  3472. ac_beg=1 # First line for current file.
  3473. ac_end=$ac_max_sed_lines # Line after last line for current file.
  3474. ac_more_lines=:
  3475. ac_sed_cmds=
  3476. while $ac_more_lines; do
  3477. if test $ac_beg -gt 1; then
  3478. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3479. else
  3480. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  3481. fi
  3482. if test ! -s $tmp/subs.frag; then
  3483. ac_more_lines=false
  3484. else
  3485. # The purpose of the label and of the branching condition is to
  3486. # speed up the sed processing (if there are no `@' at all, there
  3487. # is no need to browse any of the substitutions).
  3488. # These are the two extra sed commands mentioned above.
  3489. (echo ':t
  3490. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  3491. if test -z "$ac_sed_cmds"; then
  3492. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  3493. else
  3494. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  3495. fi
  3496. ac_sed_frag=`expr $ac_sed_frag + 1`
  3497. ac_beg=$ac_end
  3498. ac_end=`expr $ac_end + $ac_max_sed_lines`
  3499. fi
  3500. done
  3501. if test -z "$ac_sed_cmds"; then
  3502. ac_sed_cmds=cat
  3503. fi
  3504. fi # test -n "$CONFIG_FILES"
  3505. _ACEOF
  3506. cat >>$CONFIG_STATUS <<\_ACEOF
  3507. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  3508. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3509. case $ac_file in
  3510. - | *:- | *:-:* ) # input from stdin
  3511. cat >$tmp/stdin
  3512. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3513. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3514. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3515. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3516. * ) ac_file_in=$ac_file.in ;;
  3517. esac
  3518. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  3519. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  3520. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3521. X"$ac_file" : 'X\(//\)[^/]' \| \
  3522. X"$ac_file" : 'X\(//\)$' \| \
  3523. X"$ac_file" : 'X\(/\)' \| \
  3524. . : '\(.\)' 2>/dev/null ||
  3525. echo X"$ac_file" |
  3526. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3527. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3528. /^X\(\/\/\)$/{ s//\1/; q; }
  3529. /^X\(\/\).*/{ s//\1/; q; }
  3530. s/.*/./; q'`
  3531. { if $as_mkdir_p; then
  3532. mkdir -p "$ac_dir"
  3533. else
  3534. as_dir="$ac_dir"
  3535. as_dirs=
  3536. while test ! -d "$as_dir"; do
  3537. as_dirs="$as_dir $as_dirs"
  3538. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  3539. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3540. X"$as_dir" : 'X\(//\)[^/]' \| \
  3541. X"$as_dir" : 'X\(//\)$' \| \
  3542. X"$as_dir" : 'X\(/\)' \| \
  3543. . : '\(.\)' 2>/dev/null ||
  3544. echo X"$as_dir" |
  3545. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3546. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3547. /^X\(\/\/\)$/{ s//\1/; q; }
  3548. /^X\(\/\).*/{ s//\1/; q; }
  3549. s/.*/./; q'`
  3550. done
  3551. test ! -n "$as_dirs" || mkdir $as_dirs
  3552. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  3553. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  3554. { (exit 1); exit 1; }; }; }
  3555. ac_builddir=.
  3556. if test "$ac_dir" != .; then
  3557. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  3558. # A "../" for each directory in $ac_dir_suffix.
  3559. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  3560. else
  3561. ac_dir_suffix= ac_top_builddir=
  3562. fi
  3563. case $srcdir in
  3564. .) # No --srcdir option. We are building in place.
  3565. ac_srcdir=.
  3566. if test -z "$ac_top_builddir"; then
  3567. ac_top_srcdir=.
  3568. else
  3569. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  3570. fi ;;
  3571. [\\/]* | ?:[\\/]* ) # Absolute path.
  3572. ac_srcdir=$srcdir$ac_dir_suffix;
  3573. ac_top_srcdir=$srcdir ;;
  3574. *) # Relative path.
  3575. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  3576. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  3577. esac
  3578. # Do not use `cd foo && pwd` to compute absolute paths, because
  3579. # the directories may not exist.
  3580. case `pwd` in
  3581. .) ac_abs_builddir="$ac_dir";;
  3582. *)
  3583. case "$ac_dir" in
  3584. .) ac_abs_builddir=`pwd`;;
  3585. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  3586. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  3587. esac;;
  3588. esac
  3589. case $ac_abs_builddir in
  3590. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  3591. *)
  3592. case ${ac_top_builddir}. in
  3593. .) ac_abs_top_builddir=$ac_abs_builddir;;
  3594. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  3595. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  3596. esac;;
  3597. esac
  3598. case $ac_abs_builddir in
  3599. .) ac_abs_srcdir=$ac_srcdir;;
  3600. *)
  3601. case $ac_srcdir in
  3602. .) ac_abs_srcdir=$ac_abs_builddir;;
  3603. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  3604. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  3605. esac;;
  3606. esac
  3607. case $ac_abs_builddir in
  3608. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  3609. *)
  3610. case $ac_top_srcdir in
  3611. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  3612. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  3613. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  3614. esac;;
  3615. esac
  3616. if test x"$ac_file" != x-; then
  3617. { echo "$as_me:$LINENO: creating $ac_file" >&5
  3618. echo "$as_me: creating $ac_file" >&6;}
  3619. rm -f "$ac_file"
  3620. fi
  3621. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3622. # use $as_me), people would be surprised to read:
  3623. # /* config.h. Generated by config.status. */
  3624. if test x"$ac_file" = x-; then
  3625. configure_input=
  3626. else
  3627. configure_input="$ac_file. "
  3628. fi
  3629. configure_input=$configure_input"Generated from `echo $ac_file_in |
  3630. sed 's,.*/,,'` by configure."
  3631. # First look for the input files in the build tree, otherwise in the
  3632. # src tree.
  3633. ac_file_inputs=`IFS=:
  3634. for f in $ac_file_in; do
  3635. case $f in
  3636. -) echo $tmp/stdin ;;
  3637. [\\/$]*)
  3638. # Absolute (can't be DOS-style, as IFS=:)
  3639. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3640. echo "$as_me: error: cannot find input file: $f" >&2;}
  3641. { (exit 1); exit 1; }; }
  3642. echo "$f";;
  3643. *) # Relative
  3644. if test -f "$f"; then
  3645. # Build tree
  3646. echo "$f"
  3647. elif test -f "$srcdir/$f"; then
  3648. # Source tree
  3649. echo "$srcdir/$f"
  3650. else
  3651. # /dev/null tree
  3652. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3653. echo "$as_me: error: cannot find input file: $f" >&2;}
  3654. { (exit 1); exit 1; }; }
  3655. fi;;
  3656. esac
  3657. done` || { (exit 1); exit 1; }
  3658. _ACEOF
  3659. cat >>$CONFIG_STATUS <<_ACEOF
  3660. sed "$ac_vpsub
  3661. $extrasub
  3662. _ACEOF
  3663. cat >>$CONFIG_STATUS <<\_ACEOF
  3664. :t
  3665. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  3666. s,@configure_input@,$configure_input,;t t
  3667. s,@srcdir@,$ac_srcdir,;t t
  3668. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  3669. s,@top_srcdir@,$ac_top_srcdir,;t t
  3670. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  3671. s,@builddir@,$ac_builddir,;t t
  3672. s,@abs_builddir@,$ac_abs_builddir,;t t
  3673. s,@top_builddir@,$ac_top_builddir,;t t
  3674. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  3675. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  3676. rm -f $tmp/stdin
  3677. if test x"$ac_file" != x-; then
  3678. mv $tmp/out $ac_file
  3679. else
  3680. cat $tmp/out
  3681. rm -f $tmp/out
  3682. fi
  3683. done
  3684. _ACEOF
  3685. cat >>$CONFIG_STATUS <<\_ACEOF
  3686. #
  3687. # CONFIG_HEADER section.
  3688. #
  3689. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  3690. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  3691. #
  3692. # ac_d sets the value in "#define NAME VALUE" lines.
  3693. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  3694. ac_dB='[ ].*$,\1#\2'
  3695. ac_dC=' '
  3696. ac_dD=',;t'
  3697. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  3698. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  3699. ac_uB='$,\1#\2define\3'
  3700. ac_uC=' '
  3701. ac_uD=',;t'
  3702. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  3703. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  3704. case $ac_file in
  3705. - | *:- | *:-:* ) # input from stdin
  3706. cat >$tmp/stdin
  3707. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3708. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3709. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  3710. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  3711. * ) ac_file_in=$ac_file.in ;;
  3712. esac
  3713. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  3714. echo "$as_me: creating $ac_file" >&6;}
  3715. # First look for the input files in the build tree, otherwise in the
  3716. # src tree.
  3717. ac_file_inputs=`IFS=:
  3718. for f in $ac_file_in; do
  3719. case $f in
  3720. -) echo $tmp/stdin ;;
  3721. [\\/$]*)
  3722. # Absolute (can't be DOS-style, as IFS=:)
  3723. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3724. echo "$as_me: error: cannot find input file: $f" >&2;}
  3725. { (exit 1); exit 1; }; }
  3726. # Do quote $f, to prevent DOS paths from being IFS'd.
  3727. echo "$f";;
  3728. *) # Relative
  3729. if test -f "$f"; then
  3730. # Build tree
  3731. echo "$f"
  3732. elif test -f "$srcdir/$f"; then
  3733. # Source tree
  3734. echo "$srcdir/$f"
  3735. else
  3736. # /dev/null tree
  3737. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  3738. echo "$as_me: error: cannot find input file: $f" >&2;}
  3739. { (exit 1); exit 1; }; }
  3740. fi;;
  3741. esac
  3742. done` || { (exit 1); exit 1; }
  3743. # Remove the trailing spaces.
  3744. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  3745. _ACEOF
  3746. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  3747. # `conftest.undefs', that substitutes the proper values into
  3748. # config.h.in to produce config.h. The first handles `#define'
  3749. # templates, and the second `#undef' templates.
  3750. # And first: Protect against being on the right side of a sed subst in
  3751. # config.status. Protect against being in an unquoted here document
  3752. # in config.status.
  3753. rm -f conftest.defines conftest.undefs
  3754. # Using a here document instead of a string reduces the quoting nightmare.
  3755. # Putting comments in sed scripts is not portable.
  3756. #
  3757. # `end' is used to avoid that the second main sed command (meant for
  3758. # 0-ary CPP macros) applies to n-ary macro definitions.
  3759. # See the Autoconf documentation for `clear'.
  3760. cat >confdef2sed.sed <<\_ACEOF
  3761. s/[\\&,]/\\&/g
  3762. s,[\\$`],\\&,g
  3763. t clear
  3764. : clear
  3765. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  3766. t end
  3767. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  3768. : end
  3769. _ACEOF
  3770. # If some macros were called several times there might be several times
  3771. # the same #defines, which is useless. Nevertheless, we may not want to
  3772. # sort them, since we want the *last* AC-DEFINE to be honored.
  3773. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  3774. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  3775. rm -f confdef2sed.sed
  3776. # This sed command replaces #undef with comments. This is necessary, for
  3777. # example, in the case of _POSIX_SOURCE, which is predefined and required
  3778. # on some systems where configure will not decide to define it.
  3779. cat >>conftest.undefs <<\_ACEOF
  3780. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  3781. _ACEOF
  3782. # Break up conftest.defines because some shells have a limit on the size
  3783. # of here documents, and old seds have small limits too (100 cmds).
  3784. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  3785. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  3786. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  3787. echo ' :' >>$CONFIG_STATUS
  3788. rm -f conftest.tail
  3789. while grep . conftest.defines >/dev/null
  3790. do
  3791. # Write a limited-size here document to $tmp/defines.sed.
  3792. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  3793. # Speed up: don't consider the non `#define' lines.
  3794. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  3795. # Work around the forget-to-reset-the-flag bug.
  3796. echo 't clr' >>$CONFIG_STATUS
  3797. echo ': clr' >>$CONFIG_STATUS
  3798. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  3799. echo 'CEOF
  3800. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  3801. rm -f $tmp/in
  3802. mv $tmp/out $tmp/in
  3803. ' >>$CONFIG_STATUS
  3804. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  3805. rm -f conftest.defines
  3806. mv conftest.tail conftest.defines
  3807. done
  3808. rm -f conftest.defines
  3809. echo ' fi # grep' >>$CONFIG_STATUS
  3810. echo >>$CONFIG_STATUS
  3811. # Break up conftest.undefs because some shells have a limit on the size
  3812. # of here documents, and old seds have small limits too (100 cmds).
  3813. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  3814. rm -f conftest.tail
  3815. while grep . conftest.undefs >/dev/null
  3816. do
  3817. # Write a limited-size here document to $tmp/undefs.sed.
  3818. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  3819. # Speed up: don't consider the non `#undef'
  3820. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  3821. # Work around the forget-to-reset-the-flag bug.
  3822. echo 't clr' >>$CONFIG_STATUS
  3823. echo ': clr' >>$CONFIG_STATUS
  3824. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  3825. echo 'CEOF
  3826. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  3827. rm -f $tmp/in
  3828. mv $tmp/out $tmp/in
  3829. ' >>$CONFIG_STATUS
  3830. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  3831. rm -f conftest.undefs
  3832. mv conftest.tail conftest.undefs
  3833. done
  3834. rm -f conftest.undefs
  3835. cat >>$CONFIG_STATUS <<\_ACEOF
  3836. # Let's still pretend it is `configure' which instantiates (i.e., don't
  3837. # use $as_me), people would be surprised to read:
  3838. # /* config.h. Generated by config.status. */
  3839. if test x"$ac_file" = x-; then
  3840. echo "/* Generated by configure. */" >$tmp/config.h
  3841. else
  3842. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  3843. fi
  3844. cat $tmp/in >>$tmp/config.h
  3845. rm -f $tmp/in
  3846. if test x"$ac_file" != x-; then
  3847. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  3848. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  3849. echo "$as_me: $ac_file is unchanged" >&6;}
  3850. else
  3851. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  3852. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3853. X"$ac_file" : 'X\(//\)[^/]' \| \
  3854. X"$ac_file" : 'X\(//\)$' \| \
  3855. X"$ac_file" : 'X\(/\)' \| \
  3856. . : '\(.\)' 2>/dev/null ||
  3857. echo X"$ac_file" |
  3858. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3859. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3860. /^X\(\/\/\)$/{ s//\1/; q; }
  3861. /^X\(\/\).*/{ s//\1/; q; }
  3862. s/.*/./; q'`
  3863. { if $as_mkdir_p; then
  3864. mkdir -p "$ac_dir"
  3865. else
  3866. as_dir="$ac_dir"
  3867. as_dirs=
  3868. while test ! -d "$as_dir"; do
  3869. as_dirs="$as_dir $as_dirs"
  3870. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  3871. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  3872. X"$as_dir" : 'X\(//\)[^/]' \| \
  3873. X"$as_dir" : 'X\(//\)$' \| \
  3874. X"$as_dir" : 'X\(/\)' \| \
  3875. . : '\(.\)' 2>/dev/null ||
  3876. echo X"$as_dir" |
  3877. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  3878. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  3879. /^X\(\/\/\)$/{ s//\1/; q; }
  3880. /^X\(\/\).*/{ s//\1/; q; }
  3881. s/.*/./; q'`
  3882. done
  3883. test ! -n "$as_dirs" || mkdir $as_dirs
  3884. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  3885. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  3886. { (exit 1); exit 1; }; }; }
  3887. rm -f $ac_file
  3888. mv $tmp/config.h $ac_file
  3889. fi
  3890. else
  3891. cat $tmp/config.h
  3892. rm -f $tmp/config.h
  3893. fi
  3894. done
  3895. _ACEOF
  3896. cat >>$CONFIG_STATUS <<\_ACEOF
  3897. { (exit 0); exit 0; }
  3898. _ACEOF
  3899. chmod +x $CONFIG_STATUS
  3900. ac_clean_files=$ac_clean_files_save
  3901. # configure is writing to config.log, and then calls config.status.
  3902. # config.status does its own redirection, appending to config.log.
  3903. # Unfortunately, on DOS this fails, as config.log is still kept open
  3904. # by configure, so config.status won't be able to write to it; its
  3905. # output is simply discarded. So we exec the FD to /dev/null,
  3906. # effectively closing config.log, so it can be properly (re)opened and
  3907. # appended to by config.status. When coming back to configure, we
  3908. # need to make the FD available again.
  3909. if test "$no_create" != yes; then
  3910. ac_cs_success=:
  3911. ac_config_status_args=
  3912. test "$silent" = yes &&
  3913. ac_config_status_args="$ac_config_status_args --quiet"
  3914. exec 5>/dev/null
  3915. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  3916. exec 5>>config.log
  3917. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  3918. # would make configure fail if this is the last instruction.
  3919. $ac_cs_success || { (exit 1); exit 1; }
  3920. fi