PageRenderTime 61ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/erlmerge/config/configure

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