PageRenderTime 41ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/security/nss/tests/pkcs11/netscape/trivial/configure

http://github.com/zpao/v8monkey
Shell | 1906 lines | 1573 code | 150 blank | 183 comment | 220 complexity | a118aebe4e2f55782a125e4908faba76 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, AGPL-1.0, LGPL-2.1, BSD-3-Clause, GPL-2.0, JSON, Apache-2.0, 0BSD
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated automatically using autoconf version 2.13
  4. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  5. #
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. # Defaults:
  9. ac_help=
  10. ac_default_prefix=/usr/local
  11. # Any additions from configure.in:
  12. ac_help="$ac_help
  13. --with-nspr[=path] specify location of NSPR"
  14. ac_help="$ac_help
  15. --with-nss-dist[=path] specify path to NSS dist directory"
  16. ac_help="$ac_help
  17. --with-nss-hdrs[=path] or, specify path to installed NSS headers"
  18. ac_help="$ac_help
  19. --with-rsa-hdrs[=path] if not using NSS, specify path to RSA headers"
  20. ac_help="$ac_help
  21. --disable-debug default is enabled"
  22. # Initialize some variables set by options.
  23. # The variables have the same names as the options, with
  24. # dashes changed to underlines.
  25. build=NONE
  26. cache_file=./config.cache
  27. exec_prefix=NONE
  28. host=NONE
  29. no_create=
  30. nonopt=NONE
  31. no_recursion=
  32. prefix=NONE
  33. program_prefix=NONE
  34. program_suffix=NONE
  35. program_transform_name=s,x,x,
  36. silent=
  37. site=
  38. srcdir=
  39. target=NONE
  40. verbose=
  41. x_includes=NONE
  42. x_libraries=NONE
  43. bindir='${exec_prefix}/bin'
  44. sbindir='${exec_prefix}/sbin'
  45. libexecdir='${exec_prefix}/libexec'
  46. datadir='${prefix}/share'
  47. sysconfdir='${prefix}/etc'
  48. sharedstatedir='${prefix}/com'
  49. localstatedir='${prefix}/var'
  50. libdir='${exec_prefix}/lib'
  51. includedir='${prefix}/include'
  52. oldincludedir='/usr/include'
  53. infodir='${prefix}/info'
  54. mandir='${prefix}/man'
  55. # Initialize some other variables.
  56. subdirs=
  57. MFLAGS= MAKEFLAGS=
  58. SHELL=${CONFIG_SHELL-/bin/sh}
  59. # Maximum number of lines to put in a shell here document.
  60. ac_max_here_lines=12
  61. ac_prev=
  62. for ac_option
  63. do
  64. # If the previous option needs an argument, assign it.
  65. if test -n "$ac_prev"; then
  66. eval "$ac_prev=\$ac_option"
  67. ac_prev=
  68. continue
  69. fi
  70. case "$ac_option" in
  71. -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  72. *) ac_optarg= ;;
  73. esac
  74. # Accept the important Cygnus configure options, so we can diagnose typos.
  75. case "$ac_option" in
  76. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  77. ac_prev=bindir ;;
  78. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  79. bindir="$ac_optarg" ;;
  80. -build | --build | --buil | --bui | --bu)
  81. ac_prev=build ;;
  82. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  83. build="$ac_optarg" ;;
  84. -cache-file | --cache-file | --cache-fil | --cache-fi \
  85. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  86. ac_prev=cache_file ;;
  87. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  88. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  89. cache_file="$ac_optarg" ;;
  90. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  91. ac_prev=datadir ;;
  92. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  93. | --da=*)
  94. datadir="$ac_optarg" ;;
  95. -disable-* | --disable-*)
  96. ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  97. # Reject names that are not valid shell variable names.
  98. if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  99. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  100. fi
  101. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  102. eval "enable_${ac_feature}=no" ;;
  103. -enable-* | --enable-*)
  104. ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  105. # Reject names that are not valid shell variable names.
  106. if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  107. { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  108. fi
  109. ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  110. case "$ac_option" in
  111. *=*) ;;
  112. *) ac_optarg=yes ;;
  113. esac
  114. eval "enable_${ac_feature}='$ac_optarg'" ;;
  115. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  116. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  117. | --exec | --exe | --ex)
  118. ac_prev=exec_prefix ;;
  119. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  120. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  121. | --exec=* | --exe=* | --ex=*)
  122. exec_prefix="$ac_optarg" ;;
  123. -gas | --gas | --ga | --g)
  124. # Obsolete; use --with-gas.
  125. with_gas=yes ;;
  126. -help | --help | --hel | --he)
  127. # Omit some internal or obsolete options to make the list less imposing.
  128. # This message is too long to be a string in the A/UX 3.1 sh.
  129. cat << EOF
  130. Usage: configure [options] [host]
  131. Options: [defaults in brackets after descriptions]
  132. Configuration:
  133. --cache-file=FILE cache test results in FILE
  134. --help print this message
  135. --no-create do not create output files
  136. --quiet, --silent do not print \`checking...' messages
  137. --version print the version of autoconf that created configure
  138. Directory and file names:
  139. --prefix=PREFIX install architecture-independent files in PREFIX
  140. [$ac_default_prefix]
  141. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  142. [same as prefix]
  143. --bindir=DIR user executables in DIR [EPREFIX/bin]
  144. --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  145. --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  146. --datadir=DIR read-only architecture-independent data in DIR
  147. [PREFIX/share]
  148. --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  149. --sharedstatedir=DIR modifiable architecture-independent data in DIR
  150. [PREFIX/com]
  151. --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  152. --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  153. --includedir=DIR C header files in DIR [PREFIX/include]
  154. --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  155. --infodir=DIR info documentation in DIR [PREFIX/info]
  156. --mandir=DIR man documentation in DIR [PREFIX/man]
  157. --srcdir=DIR find the sources in DIR [configure dir or ..]
  158. --program-prefix=PREFIX prepend PREFIX to installed program names
  159. --program-suffix=SUFFIX append SUFFIX to installed program names
  160. --program-transform-name=PROGRAM
  161. run sed PROGRAM on installed program names
  162. EOF
  163. cat << EOF
  164. Host type:
  165. --build=BUILD configure for building on BUILD [BUILD=HOST]
  166. --host=HOST configure for HOST [guessed]
  167. --target=TARGET configure for TARGET [TARGET=HOST]
  168. Features and packages:
  169. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  170. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  171. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  172. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  173. --x-includes=DIR X include files are in DIR
  174. --x-libraries=DIR X library files are in DIR
  175. EOF
  176. if test -n "$ac_help"; then
  177. echo "--enable and --with options recognized:$ac_help"
  178. fi
  179. exit 0 ;;
  180. -host | --host | --hos | --ho)
  181. ac_prev=host ;;
  182. -host=* | --host=* | --hos=* | --ho=*)
  183. host="$ac_optarg" ;;
  184. -includedir | --includedir | --includedi | --included | --include \
  185. | --includ | --inclu | --incl | --inc)
  186. ac_prev=includedir ;;
  187. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  188. | --includ=* | --inclu=* | --incl=* | --inc=*)
  189. includedir="$ac_optarg" ;;
  190. -infodir | --infodir | --infodi | --infod | --info | --inf)
  191. ac_prev=infodir ;;
  192. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  193. infodir="$ac_optarg" ;;
  194. -libdir | --libdir | --libdi | --libd)
  195. ac_prev=libdir ;;
  196. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  197. libdir="$ac_optarg" ;;
  198. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  199. | --libexe | --libex | --libe)
  200. ac_prev=libexecdir ;;
  201. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  202. | --libexe=* | --libex=* | --libe=*)
  203. libexecdir="$ac_optarg" ;;
  204. -localstatedir | --localstatedir | --localstatedi | --localstated \
  205. | --localstate | --localstat | --localsta | --localst \
  206. | --locals | --local | --loca | --loc | --lo)
  207. ac_prev=localstatedir ;;
  208. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  209. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  210. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  211. localstatedir="$ac_optarg" ;;
  212. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  213. ac_prev=mandir ;;
  214. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  215. mandir="$ac_optarg" ;;
  216. -nfp | --nfp | --nf)
  217. # Obsolete; use --without-fp.
  218. with_fp=no ;;
  219. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  220. | --no-cr | --no-c)
  221. no_create=yes ;;
  222. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  223. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  224. no_recursion=yes ;;
  225. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  226. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  227. | --oldin | --oldi | --old | --ol | --o)
  228. ac_prev=oldincludedir ;;
  229. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  230. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  231. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  232. oldincludedir="$ac_optarg" ;;
  233. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  234. ac_prev=prefix ;;
  235. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  236. prefix="$ac_optarg" ;;
  237. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  238. | --program-pre | --program-pr | --program-p)
  239. ac_prev=program_prefix ;;
  240. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  241. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  242. program_prefix="$ac_optarg" ;;
  243. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  244. | --program-suf | --program-su | --program-s)
  245. ac_prev=program_suffix ;;
  246. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  247. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  248. program_suffix="$ac_optarg" ;;
  249. -program-transform-name | --program-transform-name \
  250. | --program-transform-nam | --program-transform-na \
  251. | --program-transform-n | --program-transform- \
  252. | --program-transform | --program-transfor \
  253. | --program-transfo | --program-transf \
  254. | --program-trans | --program-tran \
  255. | --progr-tra | --program-tr | --program-t)
  256. ac_prev=program_transform_name ;;
  257. -program-transform-name=* | --program-transform-name=* \
  258. | --program-transform-nam=* | --program-transform-na=* \
  259. | --program-transform-n=* | --program-transform-=* \
  260. | --program-transform=* | --program-transfor=* \
  261. | --program-transfo=* | --program-transf=* \
  262. | --program-trans=* | --program-tran=* \
  263. | --progr-tra=* | --program-tr=* | --program-t=*)
  264. program_transform_name="$ac_optarg" ;;
  265. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  266. | -silent | --silent | --silen | --sile | --sil)
  267. silent=yes ;;
  268. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  269. ac_prev=sbindir ;;
  270. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  271. | --sbi=* | --sb=*)
  272. sbindir="$ac_optarg" ;;
  273. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  274. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  275. | --sharedst | --shareds | --shared | --share | --shar \
  276. | --sha | --sh)
  277. ac_prev=sharedstatedir ;;
  278. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  279. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  280. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  281. | --sha=* | --sh=*)
  282. sharedstatedir="$ac_optarg" ;;
  283. -site | --site | --sit)
  284. ac_prev=site ;;
  285. -site=* | --site=* | --sit=*)
  286. site="$ac_optarg" ;;
  287. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  288. ac_prev=srcdir ;;
  289. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  290. srcdir="$ac_optarg" ;;
  291. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  292. | --syscon | --sysco | --sysc | --sys | --sy)
  293. ac_prev=sysconfdir ;;
  294. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  295. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  296. sysconfdir="$ac_optarg" ;;
  297. -target | --target | --targe | --targ | --tar | --ta | --t)
  298. ac_prev=target ;;
  299. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  300. target="$ac_optarg" ;;
  301. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  302. verbose=yes ;;
  303. -version | --version | --versio | --versi | --vers)
  304. echo "configure generated by autoconf version 2.13"
  305. exit 0 ;;
  306. -with-* | --with-*)
  307. ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  308. # Reject names that are not valid shell variable names.
  309. if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  310. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  311. fi
  312. ac_package=`echo $ac_package| sed 's/-/_/g'`
  313. case "$ac_option" in
  314. *=*) ;;
  315. *) ac_optarg=yes ;;
  316. esac
  317. eval "with_${ac_package}='$ac_optarg'" ;;
  318. -without-* | --without-*)
  319. ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  320. # Reject names that are not valid shell variable names.
  321. if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  322. { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  323. fi
  324. ac_package=`echo $ac_package| sed 's/-/_/g'`
  325. eval "with_${ac_package}=no" ;;
  326. --x)
  327. # Obsolete; use --with-x.
  328. with_x=yes ;;
  329. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  330. | --x-incl | --x-inc | --x-in | --x-i)
  331. ac_prev=x_includes ;;
  332. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  333. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  334. x_includes="$ac_optarg" ;;
  335. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  336. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  337. ac_prev=x_libraries ;;
  338. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  339. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  340. x_libraries="$ac_optarg" ;;
  341. -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  342. ;;
  343. *)
  344. if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  345. echo "configure: warning: $ac_option: invalid host type" 1>&2
  346. fi
  347. if test "x$nonopt" != xNONE; then
  348. { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  349. fi
  350. nonopt="$ac_option"
  351. ;;
  352. esac
  353. done
  354. if test -n "$ac_prev"; then
  355. { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  356. fi
  357. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  358. # File descriptor usage:
  359. # 0 standard input
  360. # 1 file creation
  361. # 2 errors and warnings
  362. # 3 some systems may open it to /dev/tty
  363. # 4 used on the Kubota Titan
  364. # 6 checking for... messages and results
  365. # 5 compiler messages saved in config.log
  366. if test "$silent" = yes; then
  367. exec 6>/dev/null
  368. else
  369. exec 6>&1
  370. fi
  371. exec 5>./config.log
  372. echo "\
  373. This file contains any messages produced by compilers while
  374. running configure, to aid debugging if configure makes a mistake.
  375. " 1>&5
  376. # Strip out --no-create and --no-recursion so they do not pile up.
  377. # Also quote any args containing shell metacharacters.
  378. ac_configure_args=
  379. for ac_arg
  380. do
  381. case "$ac_arg" in
  382. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  383. | --no-cr | --no-c) ;;
  384. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  385. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  386. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  387. ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  388. *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  389. esac
  390. done
  391. # NLS nuisances.
  392. # Only set these to C if already set. These must not be set unconditionally
  393. # because not all systems understand e.g. LANG=C (notably SCO).
  394. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  395. # Non-C LC_CTYPE values break the ctype check.
  396. if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  397. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  398. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  399. if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  400. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  401. rm -rf conftest* confdefs.h
  402. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  403. echo > confdefs.h
  404. # A filename unique to this package, relative to the directory that
  405. # configure is in, which we can look for to find out if srcdir is correct.
  406. ac_unique_file=trivial.c
  407. # Find the source files, if location was not specified.
  408. if test -z "$srcdir"; then
  409. ac_srcdir_defaulted=yes
  410. # Try the directory containing this script, then its parent.
  411. ac_prog=$0
  412. ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  413. test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  414. srcdir=$ac_confdir
  415. if test ! -r $srcdir/$ac_unique_file; then
  416. srcdir=..
  417. fi
  418. else
  419. ac_srcdir_defaulted=no
  420. fi
  421. if test ! -r $srcdir/$ac_unique_file; then
  422. if test "$ac_srcdir_defaulted" = yes; then
  423. { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  424. else
  425. { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  426. fi
  427. fi
  428. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  429. # Prefer explicitly selected file to automatically selected ones.
  430. if test -z "$CONFIG_SITE"; then
  431. if test "x$prefix" != xNONE; then
  432. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  433. else
  434. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  435. fi
  436. fi
  437. for ac_site_file in $CONFIG_SITE; do
  438. if test -r "$ac_site_file"; then
  439. echo "loading site script $ac_site_file"
  440. . "$ac_site_file"
  441. fi
  442. done
  443. if test -r "$cache_file"; then
  444. echo "loading cache $cache_file"
  445. . $cache_file
  446. else
  447. echo "creating cache $cache_file"
  448. > $cache_file
  449. fi
  450. ac_ext=c
  451. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  452. ac_cpp='$CPP $CPPFLAGS'
  453. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  454. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  455. cross_compiling=$ac_cv_prog_cc_cross
  456. ac_exeext=
  457. ac_objext=o
  458. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  459. # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  460. if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  461. ac_n= ac_c='
  462. ' ac_t=' '
  463. else
  464. ac_n=-n ac_c= ac_t=
  465. fi
  466. else
  467. ac_n= ac_c='\c' ac_t=
  468. fi
  469. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  470. echo "configure:537: checking whether ${MAKE-make} sets \${MAKE}" >&5
  471. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  472. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  473. echo $ac_n "(cached) $ac_c" 1>&6
  474. else
  475. cat > conftestmake <<\EOF
  476. all:
  477. @echo 'ac_maketemp="${MAKE}"'
  478. EOF
  479. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  480. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  481. if test -n "$ac_maketemp"; then
  482. eval ac_cv_prog_make_${ac_make}_set=yes
  483. else
  484. eval ac_cv_prog_make_${ac_make}_set=no
  485. fi
  486. rm -f conftestmake
  487. fi
  488. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  489. echo "$ac_t""yes" 1>&6
  490. SET_MAKE=
  491. else
  492. echo "$ac_t""no" 1>&6
  493. SET_MAKE="MAKE=${MAKE-make}"
  494. fi
  495. # Check whether --with-nspr or --without-nspr was given.
  496. if test "${with_nspr+set}" = set; then
  497. withval="$with_nspr"
  498. case "$withval" in
  499. no)
  500. { echo "configure: error: NSPR is required" 1>&2; exit 1; };;
  501. yes)
  502. NSPR_INCLUDE="$includedir"
  503. NSPR_LIBPATH="$libdir"
  504. ;;
  505. *)
  506. NSPR_INCLUDE="$withval/include"
  507. NSPR_LIBPATH="$withval/lib"
  508. ;;
  509. esac
  510. else
  511. NSPR_INCLUDE="$includedir"
  512. NSPR_LIBPATH="$libdir"
  513. fi
  514. NSPR_CFLAGS="-I$NSPR_INCLUDE"
  515. NSPR_LDFLAGS="-L$NSPR_LIBPATH -lnspr4 -lplc4 -lplds4"
  516. # Check whether --with-nss-dist or --without-nss-dist was given.
  517. if test "${with_nss_dist+set}" = set; then
  518. withval="$with_nss_dist"
  519. case "$withval" in
  520. no)
  521. NSS_CFLAGS=""
  522. nss="0"
  523. ;;
  524. yes)
  525. { echo "configure: error: You have to specify a path for --with-nss-dist" 1>&2; exit 1; }
  526. ;;
  527. *)
  528. NSS_CFLAGS="-I$withval/private/security -I$withval/public/security"
  529. nss="1"
  530. ;;
  531. esac
  532. fi
  533. # Check whether --with-nss-hdrs or --without-nss-hdrs was given.
  534. if test "${with_nss_hdrs+set}" = set; then
  535. withval="$with_nss_hdrs"
  536. if test "x$nss" != "x"; then
  537. { echo "configure: error: Only specify --with-nss-hdrs or --with-nss-dist" 1>&2; exit 1; }
  538. fi
  539. case "$withval" in
  540. no)
  541. NSS_CFLAGS=""
  542. nss="0"
  543. ;;
  544. yes)
  545. NSS_CFLAGS="-I$includedir"
  546. nss="1"
  547. ;;
  548. *)
  549. NSS_CFLAGS="-I$withval"
  550. nss="1"
  551. ;;
  552. esac
  553. fi
  554. # Check whether --with-rsa-hdrs or --without-rsa-hdrs was given.
  555. if test "${with_rsa_hdrs+set}" = set; then
  556. withval="$with_rsa_hdrs"
  557. if test "x$nss" != "x"; then
  558. { echo "configure: error: Only specify --with-nss-{hdrs" 1>&2; exit 1; }
  559. fi
  560. case "$withval" in
  561. no)
  562. rsa="0"
  563. ;;
  564. yes)
  565. RSA_INCLUDE="$includedir"
  566. rsa="1"
  567. ;;
  568. *)
  569. RSA_INCLUDE="$withval"
  570. rsa="1"
  571. ;;
  572. esac
  573. fi
  574. if test "x$nss" = "x"; then
  575. if test "x$rsa" = "x"; then
  576. RSA_INCLUDE="$includedir"
  577. fi
  578. RSA_CFLAGS="-I$RSA_INCLUDE"
  579. fi
  580. if test "x$nss" = "x1"; then
  581. cat >> confdefs.h <<\EOF
  582. #define WITH_NSS 1
  583. EOF
  584. fi
  585. if test "x$rsa" = "x1"; then
  586. RSA_CFLAGS-"-I$RSA_INCLUDE"
  587. fi
  588. # Check whether --enable-debug or --disable-debug was given.
  589. if test "${enable_debug+set}" = set; then
  590. enableval="$enable_debug"
  591. case "$enableval" in
  592. no)
  593. DEBUG_CFLAGS="";;
  594. yes)
  595. DEBUG_CFLAGS="-DDEBUG";;
  596. *)
  597. DEBUG_CFLAGS="-DDEBUG";;
  598. esac
  599. else
  600. DEBUG_CFLAGS="-DDEBUG"
  601. fi
  602. # Extract the first word of "gcc", so it can be a program name with args.
  603. set dummy gcc; ac_word=$2
  604. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  605. echo "configure:693: checking for $ac_word" >&5
  606. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  607. echo $ac_n "(cached) $ac_c" 1>&6
  608. else
  609. if test -n "$CC"; then
  610. ac_cv_prog_CC="$CC" # Let the user override the test.
  611. else
  612. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  613. ac_dummy="$PATH"
  614. for ac_dir in $ac_dummy; do
  615. test -z "$ac_dir" && ac_dir=.
  616. if test -f $ac_dir/$ac_word; then
  617. ac_cv_prog_CC="gcc"
  618. break
  619. fi
  620. done
  621. IFS="$ac_save_ifs"
  622. fi
  623. fi
  624. CC="$ac_cv_prog_CC"
  625. if test -n "$CC"; then
  626. echo "$ac_t""$CC" 1>&6
  627. else
  628. echo "$ac_t""no" 1>&6
  629. fi
  630. if test -z "$CC"; then
  631. # Extract the first word of "cc", so it can be a program name with args.
  632. set dummy cc; ac_word=$2
  633. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  634. echo "configure:723: checking for $ac_word" >&5
  635. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  636. echo $ac_n "(cached) $ac_c" 1>&6
  637. else
  638. if test -n "$CC"; then
  639. ac_cv_prog_CC="$CC" # Let the user override the test.
  640. else
  641. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  642. ac_prog_rejected=no
  643. ac_dummy="$PATH"
  644. for ac_dir in $ac_dummy; do
  645. test -z "$ac_dir" && ac_dir=.
  646. if test -f $ac_dir/$ac_word; then
  647. if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  648. ac_prog_rejected=yes
  649. continue
  650. fi
  651. ac_cv_prog_CC="cc"
  652. break
  653. fi
  654. done
  655. IFS="$ac_save_ifs"
  656. if test $ac_prog_rejected = yes; then
  657. # We found a bogon in the path, so make sure we never use it.
  658. set dummy $ac_cv_prog_CC
  659. shift
  660. if test $# -gt 0; then
  661. # We chose a different compiler from the bogus one.
  662. # However, it has the same basename, so the bogon will be chosen
  663. # first if we set CC to just the basename; use the full file name.
  664. shift
  665. set dummy "$ac_dir/$ac_word" "$@"
  666. shift
  667. ac_cv_prog_CC="$@"
  668. fi
  669. fi
  670. fi
  671. fi
  672. CC="$ac_cv_prog_CC"
  673. if test -n "$CC"; then
  674. echo "$ac_t""$CC" 1>&6
  675. else
  676. echo "$ac_t""no" 1>&6
  677. fi
  678. if test -z "$CC"; then
  679. case "`uname -s`" in
  680. *win32* | *WIN32*)
  681. # Extract the first word of "cl", so it can be a program name with args.
  682. set dummy cl; ac_word=$2
  683. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  684. echo "configure:774: checking for $ac_word" >&5
  685. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  686. echo $ac_n "(cached) $ac_c" 1>&6
  687. else
  688. if test -n "$CC"; then
  689. ac_cv_prog_CC="$CC" # Let the user override the test.
  690. else
  691. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  692. ac_dummy="$PATH"
  693. for ac_dir in $ac_dummy; do
  694. test -z "$ac_dir" && ac_dir=.
  695. if test -f $ac_dir/$ac_word; then
  696. ac_cv_prog_CC="cl"
  697. break
  698. fi
  699. done
  700. IFS="$ac_save_ifs"
  701. fi
  702. fi
  703. CC="$ac_cv_prog_CC"
  704. if test -n "$CC"; then
  705. echo "$ac_t""$CC" 1>&6
  706. else
  707. echo "$ac_t""no" 1>&6
  708. fi
  709. ;;
  710. esac
  711. fi
  712. test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  713. fi
  714. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  715. echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  716. ac_ext=c
  717. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  718. ac_cpp='$CPP $CPPFLAGS'
  719. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  720. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  721. cross_compiling=$ac_cv_prog_cc_cross
  722. cat > conftest.$ac_ext << EOF
  723. #line 817 "configure"
  724. #include "confdefs.h"
  725. main(){return(0);}
  726. EOF
  727. if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  728. ac_cv_prog_cc_works=yes
  729. # If we can't run a trivial program, we are probably using a cross compiler.
  730. if (./conftest; exit) 2>/dev/null; then
  731. ac_cv_prog_cc_cross=no
  732. else
  733. ac_cv_prog_cc_cross=yes
  734. fi
  735. else
  736. echo "configure: failed program was:" >&5
  737. cat conftest.$ac_ext >&5
  738. ac_cv_prog_cc_works=no
  739. fi
  740. rm -fr conftest*
  741. ac_ext=c
  742. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  743. ac_cpp='$CPP $CPPFLAGS'
  744. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  745. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  746. cross_compiling=$ac_cv_prog_cc_cross
  747. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  748. if test $ac_cv_prog_cc_works = no; then
  749. { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  750. fi
  751. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  752. echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  753. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  754. cross_compiling=$ac_cv_prog_cc_cross
  755. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  756. echo "configure:853: checking whether we are using GNU C" >&5
  757. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  758. echo $ac_n "(cached) $ac_c" 1>&6
  759. else
  760. cat > conftest.c <<EOF
  761. #ifdef __GNUC__
  762. yes;
  763. #endif
  764. EOF
  765. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  766. ac_cv_prog_gcc=yes
  767. else
  768. ac_cv_prog_gcc=no
  769. fi
  770. fi
  771. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  772. if test $ac_cv_prog_gcc = yes; then
  773. GCC=yes
  774. else
  775. GCC=
  776. fi
  777. ac_test_CFLAGS="${CFLAGS+set}"
  778. ac_save_CFLAGS="$CFLAGS"
  779. CFLAGS=
  780. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  781. echo "configure:881: checking whether ${CC-cc} accepts -g" >&5
  782. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  783. echo $ac_n "(cached) $ac_c" 1>&6
  784. else
  785. echo 'void f(){}' > conftest.c
  786. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  787. ac_cv_prog_cc_g=yes
  788. else
  789. ac_cv_prog_cc_g=no
  790. fi
  791. rm -f conftest*
  792. fi
  793. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  794. if test "$ac_test_CFLAGS" = set; then
  795. CFLAGS="$ac_save_CFLAGS"
  796. elif test $ac_cv_prog_cc_g = yes; then
  797. if test "$GCC" = yes; then
  798. CFLAGS="-g -O2"
  799. else
  800. CFLAGS="-g"
  801. fi
  802. else
  803. if test "$GCC" = yes; then
  804. CFLAGS="-O2"
  805. else
  806. CFLAGS=
  807. fi
  808. fi
  809. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  810. echo "configure:913: checking how to run the C preprocessor" >&5
  811. # On Suns, sometimes $CPP names a directory.
  812. if test -n "$CPP" && test -d "$CPP"; then
  813. CPP=
  814. fi
  815. if test -z "$CPP"; then
  816. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  817. echo $ac_n "(cached) $ac_c" 1>&6
  818. else
  819. # This must be in double quotes, not single quotes, because CPP may get
  820. # substituted into the Makefile and "${CC-cc}" will confuse make.
  821. CPP="${CC-cc} -E"
  822. # On the NeXT, cc -E runs the code through the compiler's parser,
  823. # not just through cpp.
  824. cat > conftest.$ac_ext <<EOF
  825. #line 928 "configure"
  826. #include "confdefs.h"
  827. #include <assert.h>
  828. Syntax Error
  829. EOF
  830. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  831. { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  832. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  833. if test -z "$ac_err"; then
  834. :
  835. else
  836. echo "$ac_err" >&5
  837. echo "configure: failed program was:" >&5
  838. cat conftest.$ac_ext >&5
  839. rm -rf conftest*
  840. CPP="${CC-cc} -E -traditional-cpp"
  841. cat > conftest.$ac_ext <<EOF
  842. #line 945 "configure"
  843. #include "confdefs.h"
  844. #include <assert.h>
  845. Syntax Error
  846. EOF
  847. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  848. { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  849. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  850. if test -z "$ac_err"; then
  851. :
  852. else
  853. echo "$ac_err" >&5
  854. echo "configure: failed program was:" >&5
  855. cat conftest.$ac_ext >&5
  856. rm -rf conftest*
  857. CPP="${CC-cc} -nologo -E"
  858. cat > conftest.$ac_ext <<EOF
  859. #line 962 "configure"
  860. #include "confdefs.h"
  861. #include <assert.h>
  862. Syntax Error
  863. EOF
  864. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  865. { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  866. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  867. if test -z "$ac_err"; then
  868. :
  869. else
  870. echo "$ac_err" >&5
  871. echo "configure: failed program was:" >&5
  872. cat conftest.$ac_ext >&5
  873. rm -rf conftest*
  874. CPP=/lib/cpp
  875. fi
  876. rm -f conftest*
  877. fi
  878. rm -f conftest*
  879. fi
  880. rm -f conftest*
  881. ac_cv_prog_CPP="$CPP"
  882. fi
  883. CPP="$ac_cv_prog_CPP"
  884. else
  885. ac_cv_prog_CPP="$CPP"
  886. fi
  887. echo "$ac_t""$CPP" 1>&6
  888. ac_aux_dir=
  889. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  890. if test -f $ac_dir/install-sh; then
  891. ac_aux_dir=$ac_dir
  892. ac_install_sh="$ac_aux_dir/install-sh -c"
  893. break
  894. elif test -f $ac_dir/install.sh; then
  895. ac_aux_dir=$ac_dir
  896. ac_install_sh="$ac_aux_dir/install.sh -c"
  897. break
  898. fi
  899. done
  900. if test -z "$ac_aux_dir"; then
  901. { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  902. fi
  903. ac_config_guess=$ac_aux_dir/config.guess
  904. ac_config_sub=$ac_aux_dir/config.sub
  905. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  906. # Find a good install program. We prefer a C program (faster),
  907. # so one script is as good as another. But avoid the broken or
  908. # incompatible versions:
  909. # SysV /etc/install, /usr/sbin/install
  910. # SunOS /usr/etc/install
  911. # IRIX /sbin/install
  912. # AIX /bin/install
  913. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  914. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  915. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  916. # ./install, which can be erroneously created by make from ./install.sh.
  917. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  918. echo "configure:1023: checking for a BSD compatible install" >&5
  919. if test -z "$INSTALL"; then
  920. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  921. echo $ac_n "(cached) $ac_c" 1>&6
  922. else
  923. IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  924. for ac_dir in $PATH; do
  925. # Account for people who put trailing slashes in PATH elements.
  926. case "$ac_dir/" in
  927. /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  928. *)
  929. # OSF1 and SCO ODT 3.0 have their own names for install.
  930. # Don't use installbsd from OSF since it installs stuff as root
  931. # by default.
  932. for ac_prog in ginstall scoinst install; do
  933. if test -f $ac_dir/$ac_prog; then
  934. if test $ac_prog = install &&
  935. grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  936. # AIX install. It has an incompatible calling convention.
  937. :
  938. else
  939. ac_cv_path_install="$ac_dir/$ac_prog -c"
  940. break 2
  941. fi
  942. fi
  943. done
  944. ;;
  945. esac
  946. done
  947. IFS="$ac_save_IFS"
  948. fi
  949. if test "${ac_cv_path_install+set}" = set; then
  950. INSTALL="$ac_cv_path_install"
  951. else
  952. # As a last resort, use the slow shell script. We don't cache a
  953. # path for INSTALL within a source directory, because that will
  954. # break other packages using the cache if that directory is
  955. # removed, or if the path is relative.
  956. INSTALL="$ac_install_sh"
  957. fi
  958. fi
  959. echo "$ac_t""$INSTALL" 1>&6
  960. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  961. # It thinks the first close brace ends the variable substitution.
  962. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  963. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  964. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  965. # Extract the first word of "ranlib", so it can be a program name with args.
  966. set dummy ranlib; ac_word=$2
  967. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  968. echo "configure:1078: checking for $ac_word" >&5
  969. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  970. echo $ac_n "(cached) $ac_c" 1>&6
  971. else
  972. if test -n "$RANLIB"; then
  973. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  974. else
  975. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  976. ac_dummy="$PATH"
  977. for ac_dir in $ac_dummy; do
  978. test -z "$ac_dir" && ac_dir=.
  979. if test -f $ac_dir/$ac_word; then
  980. ac_cv_prog_RANLIB="ranlib"
  981. break
  982. fi
  983. done
  984. IFS="$ac_save_ifs"
  985. test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  986. fi
  987. fi
  988. RANLIB="$ac_cv_prog_RANLIB"
  989. if test -n "$RANLIB"; then
  990. echo "$ac_t""$RANLIB" 1>&6
  991. else
  992. echo "$ac_t""no" 1>&6
  993. fi
  994. # Extract the first word of "ar", so it can be a program name with args.
  995. set dummy ar; ac_word=$2
  996. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  997. echo "configure:1108: checking for $ac_word" >&5
  998. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  999. echo $ac_n "(cached) $ac_c" 1>&6
  1000. else
  1001. if test -n "$AR"; then
  1002. ac_cv_prog_AR="$AR" # Let the user override the test.
  1003. else
  1004. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1005. ac_dummy="$PATH"
  1006. for ac_dir in $ac_dummy; do
  1007. test -z "$ac_dir" && ac_dir=.
  1008. if test -f $ac_dir/$ac_word; then
  1009. ac_cv_prog_AR="ar"
  1010. break
  1011. fi
  1012. done
  1013. IFS="$ac_save_ifs"
  1014. fi
  1015. fi
  1016. AR="$ac_cv_prog_AR"
  1017. if test -n "$AR"; then
  1018. echo "$ac_t""$AR" 1>&6
  1019. else
  1020. echo "$ac_t""no" 1>&6
  1021. fi
  1022. # Extract the first word of "ld", so it can be a program name with args.
  1023. set dummy ld; ac_word=$2
  1024. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1025. echo "configure:1137: checking for $ac_word" >&5
  1026. if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  1027. echo $ac_n "(cached) $ac_c" 1>&6
  1028. else
  1029. if test -n "$LD"; then
  1030. ac_cv_prog_LD="$LD" # Let the user override the test.
  1031. else
  1032. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1033. ac_dummy="$PATH"
  1034. for ac_dir in $ac_dummy; do
  1035. test -z "$ac_dir" && ac_dir=.
  1036. if test -f $ac_dir/$ac_word; then
  1037. ac_cv_prog_LD="ld"
  1038. break
  1039. fi
  1040. done
  1041. IFS="$ac_save_ifs"
  1042. fi
  1043. fi
  1044. LD="$ac_cv_prog_LD"
  1045. if test -n "$LD"; then
  1046. echo "$ac_t""$LD" 1>&6
  1047. else
  1048. echo "$ac_t""no" 1>&6
  1049. fi
  1050. # Extract the first word of "rm", so it can be a program name with args.
  1051. set dummy rm; ac_word=$2
  1052. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1053. echo "configure:1166: checking for $ac_word" >&5
  1054. if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
  1055. echo $ac_n "(cached) $ac_c" 1>&6
  1056. else
  1057. if test -n "$RM"; then
  1058. ac_cv_prog_RM="$RM" # Let the user override the test.
  1059. else
  1060. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1061. ac_dummy="$PATH"
  1062. for ac_dir in $ac_dummy; do
  1063. test -z "$ac_dir" && ac_dir=.
  1064. if test -f $ac_dir/$ac_word; then
  1065. ac_cv_prog_RM="rm"
  1066. break
  1067. fi
  1068. done
  1069. IFS="$ac_save_ifs"
  1070. fi
  1071. fi
  1072. RM="$ac_cv_prog_RM"
  1073. if test -n "$RM"; then
  1074. echo "$ac_t""$RM" 1>&6
  1075. else
  1076. echo "$ac_t""no" 1>&6
  1077. fi
  1078. # Extract the first word of "tar", so it can be a program name with args.
  1079. set dummy tar; ac_word=$2
  1080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1081. echo "configure:1195: checking for $ac_word" >&5
  1082. if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
  1083. echo $ac_n "(cached) $ac_c" 1>&6
  1084. else
  1085. if test -n "$TAR"; then
  1086. ac_cv_prog_TAR="$TAR" # Let the user override the test.
  1087. else
  1088. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  1089. ac_dummy="$PATH"
  1090. for ac_dir in $ac_dummy; do
  1091. test -z "$ac_dir" && ac_dir=.
  1092. if test -f $ac_dir/$ac_word; then
  1093. ac_cv_prog_TAR="tar"
  1094. break
  1095. fi
  1096. done
  1097. IFS="$ac_save_ifs"
  1098. fi
  1099. fi
  1100. TAR="$ac_cv_prog_TAR"
  1101. if test -n "$TAR"; then
  1102. echo "$ac_t""$TAR" 1>&6
  1103. else
  1104. echo "$ac_t""no" 1>&6
  1105. fi
  1106. CPPFLAGS="$CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $RSA_CFLAGS $DEBUG_CFLAGS"
  1107. LIBS="$NSPR_LDFLAGS $LIBS"
  1108. echo $ac_n "checking for PR_Init in -lnspr4""... $ac_c" 1>&6
  1109. echo "configure:1229: checking for PR_Init in -lnspr4" >&5
  1110. ac_lib_var=`echo nspr4'_'PR_Init | sed 'y%./+-%__p_%'`
  1111. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1112. echo $ac_n "(cached) $ac_c" 1>&6
  1113. else
  1114. ac_save_LIBS="$LIBS"
  1115. LIBS="-lnspr4 $LIBS"
  1116. cat > conftest.$ac_ext <<EOF
  1117. #line 1237 "configure"
  1118. #include "confdefs.h"
  1119. /* Override any gcc2 internal prototype to avoid an error. */
  1120. /* We use char because int might match the return type of a gcc2
  1121. builtin and then its argument prototype would still apply. */
  1122. char PR_Init();
  1123. int main() {
  1124. PR_Init()
  1125. ; return 0; }
  1126. EOF
  1127. if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1128. rm -rf conftest*
  1129. eval "ac_cv_lib_$ac_lib_var=yes"
  1130. else
  1131. echo "configure: failed program was:" >&5
  1132. cat conftest.$ac_ext >&5
  1133. rm -rf conftest*
  1134. eval "ac_cv_lib_$ac_lib_var=no"
  1135. fi
  1136. rm -f conftest*
  1137. LIBS="$ac_save_LIBS"
  1138. fi
  1139. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1140. echo "$ac_t""yes" 1>&6
  1141. ac_tr_lib=HAVE_LIB`echo nspr4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1142. -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1143. cat >> confdefs.h <<EOF
  1144. #define $ac_tr_lib 1
  1145. EOF
  1146. LIBS="-lnspr4 $LIBS"
  1147. else
  1148. echo "$ac_t""no" 1>&6
  1149. fi
  1150. for ac_hdr in nspr.h
  1151. do
  1152. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1153. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1154. echo "configure:1280: checking for $ac_hdr" >&5
  1155. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1156. echo $ac_n "(cached) $ac_c" 1>&6
  1157. else
  1158. cat > conftest.$ac_ext <<EOF
  1159. #line 1285 "configure"
  1160. #include "confdefs.h"
  1161. #include <$ac_hdr>
  1162. EOF
  1163. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1164. { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1165. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1166. if test -z "$ac_err"; then
  1167. rm -rf conftest*
  1168. eval "ac_cv_header_$ac_safe=yes"
  1169. else
  1170. echo "$ac_err" >&5
  1171. echo "configure: failed program was:" >&5
  1172. cat conftest.$ac_ext >&5
  1173. rm -rf conftest*
  1174. eval "ac_cv_header_$ac_safe=no"
  1175. fi
  1176. rm -f conftest*
  1177. fi
  1178. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1179. echo "$ac_t""yes" 1>&6
  1180. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1181. cat >> confdefs.h <<EOF
  1182. #define $ac_tr_hdr 1
  1183. EOF
  1184. else
  1185. echo "$ac_t""no" 1>&6
  1186. fi
  1187. done
  1188. if test "x$nss" = "x1"; then
  1189. for ac_hdr in ck.h
  1190. do
  1191. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1192. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1193. echo "configure:1323: checking for $ac_hdr" >&5
  1194. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1195. echo $ac_n "(cached) $ac_c" 1>&6
  1196. else
  1197. cat > conftest.$ac_ext <<EOF
  1198. #line 1328 "configure"
  1199. #include "confdefs.h"
  1200. #include <$ac_hdr>
  1201. EOF
  1202. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1203. { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1204. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1205. if test -z "$ac_err"; then
  1206. rm -rf conftest*
  1207. eval "ac_cv_header_$ac_safe=yes"
  1208. else
  1209. echo "$ac_err" >&5
  1210. echo "configure: failed program was:" >&5
  1211. cat conftest.$ac_ext >&5
  1212. rm -rf conftest*
  1213. eval "ac_cv_header_$ac_safe=no"
  1214. fi
  1215. rm -f conftest*
  1216. fi
  1217. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1218. echo "$ac_t""yes" 1>&6
  1219. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1220. cat >> confdefs.h <<EOF
  1221. #define $ac_tr_hdr 1
  1222. EOF
  1223. else
  1224. echo "$ac_t""no" 1>&6
  1225. fi
  1226. done
  1227. fi
  1228. if test "x$rsa" = "x1"; then
  1229. for ac_hdr in pkcs11t.h pkcs11.h
  1230. do
  1231. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1232. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1233. echo "configure:1366: checking for $ac_hdr" >&5
  1234. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1235. echo $ac_n "(cached) $ac_c" 1>&6
  1236. else
  1237. cat > conftest.$ac_ext <<EOF
  1238. #line 1371 "configure"
  1239. #include "confdefs.h"
  1240. #include <$ac_hdr>
  1241. EOF
  1242. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1243. { (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1244. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1245. if test -z "$ac_err"; then
  1246. rm -rf conftest*
  1247. eval "ac_cv_header_$ac_safe=yes"
  1248. else
  1249. echo "$ac_err" >&5
  1250. echo "configure: failed program was:" >&5
  1251. cat conftest.$ac_ext >&5
  1252. rm -rf conftest*
  1253. eval "ac_cv_header_$ac_safe=no"
  1254. fi
  1255. rm -f conftest*
  1256. fi
  1257. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1258. echo "$ac_t""yes" 1>&6
  1259. ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1260. cat >> confdefs.h <<EOF
  1261. #define $ac_tr_hdr 1
  1262. EOF
  1263. else
  1264. echo "$ac_t""no" 1>&6
  1265. fi
  1266. done
  1267. fi
  1268. echo $ac_n "checking for working const""... $ac_c" 1>&6
  1269. echo "configure:1407: checking for working const" >&5
  1270. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1271. echo $ac_n "(cached) $ac_c" 1>&6
  1272. else
  1273. cat > conftest.$ac_ext <<EOF
  1274. #line 1412 "configure"
  1275. #include "confdefs.h"
  1276. int main() {
  1277. /* Ultrix mips cc rejects this. */
  1278. typedef int charset[2]; const charset x;
  1279. /* SunOS 4.1.1 cc rejects this. */
  1280. char const *const *ccp;
  1281. char **p;
  1282. /* NEC SVR4.0.2 mips cc rejects this. */
  1283. struct point {int x, y;};
  1284. static struct point const zero = {0,0};
  1285. /* AIX XL C 1.02.0.0 rejects this.
  1286. It does not let you subtract one const X* pointer from another in an arm
  1287. of an if-expression whose if-part is not a constant expression */
  1288. const char *g = "string";
  1289. ccp = &g + (g ? g-g : 0);
  1290. /* HPUX 7.0 cc rejects these. */
  1291. ++ccp;
  1292. p = (char**) ccp;
  1293. ccp = (char const *const *) p;
  1294. { /* SCO 3.2v4 cc rejects this. */
  1295. char *t;
  1296. char const *s = 0 ? (char *) 0 : (char const *) 0;
  1297. *t++ = 0;
  1298. }
  1299. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  1300. int x[] = {25, 17};
  1301. const int *foo = &x[0];
  1302. ++foo;
  1303. }
  1304. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1305. typedef const int *iptr;
  1306. iptr p = 0;
  1307. ++p;
  1308. }
  1309. { /* AIX XL C 1.02.0.0 rejects this saying
  1310. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1311. struct s { int j; const int *ap[3]; };
  1312. struct s *b; b->j = 5;
  1313. }
  1314. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1315. const int foo = 10;
  1316. }
  1317. ; return 0; }
  1318. EOF
  1319. if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1320. rm -rf conftest*
  1321. ac_cv_c_const=yes
  1322. else
  1323. echo "configure: failed program was:" >&5
  1324. cat conftest.$ac_ext >&5
  1325. rm -rf conftest*
  1326. ac_cv_c_const=no
  1327. fi
  1328. rm -f conftest*
  1329. fi
  1330. echo "$ac_t""$ac_cv_c_const" 1>&6
  1331. if test $ac_cv_c_const = no; then
  1332. cat >> confdefs.h <<\EOF
  1333. #define const
  1334. EOF
  1335. fi
  1336. for ac_func in memset strlen
  1337. do
  1338. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1339. echo "configure:1486: checking for $ac_func" >&5
  1340. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1341. echo $ac_n "(cached) $ac_c" 1>&6
  1342. else
  1343. cat > conftest.$ac_ext <<EOF
  1344. #line 1491 "configure"
  1345. #include "confdefs.h"
  1346. /* System header to define __stub macros and hopefully few prototypes,
  1347. which can conflict with char $ac_func(); below. */
  1348. #include <assert.h>
  1349. /* Override any gcc2 internal prototype to avoid an error. */
  1350. /* We use char because int might match the return type of a gcc2
  1351. builtin and then its argument prototype would still apply. */
  1352. char $ac_func();
  1353. int main() {
  1354. /* The GNU C library defines this for functions which it implements
  1355. to always fail with ENOSYS. Some functions are actually named
  1356. something starting with __ and the normal name is an alias. */
  1357. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1358. choke me
  1359. #else
  1360. $ac_func();
  1361. #endif
  1362. ; return 0; }
  1363. EOF
  1364. if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1365. rm -rf conftest*
  1366. eval "ac_cv_func_$ac_func=yes"
  1367. else
  1368. echo "configure: failed program was:" >&5
  1369. cat conftest.$ac_ext >&5
  1370. rm -rf conftest*
  1371. eval "ac_cv_func_$ac_func=no"
  1372. fi
  1373. rm -f conftest*
  1374. fi
  1375. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1376. echo "$ac_t""yes" 1>&6
  1377. ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1378. cat >> confdefs.h <<EOF
  1379. #define $ac_tr_func 1
  1380. EOF
  1381. else
  1382. echo "$ac_t""no" 1>&6
  1383. fi
  1384. done
  1385. trap '' 1 2 15
  1386. cat > confcache <<\EOF
  1387. # This file is a shell script that caches the results of configure
  1388. # tests run on this system so they can be shared between configure
  1389. # scripts and configure runs. It is not useful on other systems.
  1390. # If it contains results you don't want to keep, you may remove or edit it.
  1391. #
  1392. # By default, configure uses ./config.cache as the cache file,
  1393. # creating it if it does not exist already. You can give configure
  1394. # the --cache-file=FILE option to use a different cache file; that is
  1395. # what configure does when it calls configure scripts in
  1396. # subdirectories, so they share the cache.
  1397. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  1398. # config.status only pays attention to the cache file if you give it the
  1399. # --recheck option to rerun configure.
  1400. #
  1401. EOF
  1402. # The following way of writing the cache mishandles newlines in values,
  1403. # but we know of no workaround that is simple, portable, and efficient.
  1404. # So, don't put newlines in cache variables' values.
  1405. # Ultrix sh set writes to stderr and can't be redirected directly,
  1406. # and sets the high bit in the cache file unless we assign to the vars.
  1407. (set) 2>&1 |
  1408. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1409. *ac_space=\ *)
  1410. # `set' does not quote correctly, so add quotes (double-quote substitution
  1411. # turns \\\\ into \\, and sed turns \\ into \).
  1412. sed -n \
  1413. -e "s/'/'\\\\''/g" \
  1414. -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1415. ;;
  1416. *)
  1417. # `set' quotes correctly as required by POSIX, so do not add quotes.
  1418. sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1419. ;;
  1420. esac >> confcache
  1421. if cmp -s $cache_file confcache; then
  1422. :
  1423. else
  1424. if test -w $cache_file; then
  1425. echo "updating cache $cache_file"
  1426. cat confcache > $cache_file
  1427. else
  1428. echo "not updating unwritable cache $cache_file"
  1429. fi
  1430. fi
  1431. rm -f confcache
  1432. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1433. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1434. # Let make expand exec_prefix.
  1435. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1436. # Any assignment to VPATH causes Sun make to only execute
  1437. # the first set of double-colon rules, so remove it if not needed.
  1438. # If there is a colon in the path, we need to keep it.
  1439. if test "x$srcdir" = x.; then
  1440. ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  1441. fi
  1442. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1443. DEFS=-DHAVE_CONFIG_H
  1444. # Without the "./", some shells look in PATH for config.status.
  1445. : ${CONFIG_STATUS=./config.status}
  1446. echo creating $CONFIG_STATUS
  1447. rm -f $CONFIG_STATUS
  1448. cat > $CONFIG_STATUS <<EOF
  1449. #! /bin/sh
  1450. # Generated automatically by configure.
  1451. # Run this file to recreate the current configuration.
  1452. # This directory was configured as follows,
  1453. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1454. #
  1455. # $0 $ac_configure_args
  1456. #
  1457. # Compiler output produced by configure, useful for debugging
  1458. # configure, is in ./config.log if it exists.
  1459. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1460. for ac_option
  1461. do
  1462. case "\$ac_option" in
  1463. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1464. echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1465. exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1466. -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1467. echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1468. exit 0 ;;
  1469. -help | --help | --hel | --he | --h)
  1470. echo "\$ac_cs_usage"; exit 0 ;;
  1471. *) echo "\$ac_cs_usage"; exit 1 ;;
  1472. esac
  1473. done
  1474. ac_given_srcdir=$srcdir
  1475. ac_given_INSTALL="$INSTALL"
  1476. trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1477. EOF
  1478. cat >> $CONFIG_STATUS <<EOF
  1479. # Protect against being on the right side of a sed subst in config.status.
  1480. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1481. s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1482. $ac_vpsub
  1483. $extrasub
  1484. s%@SHELL@%$SHELL%g
  1485. s%@CFLAGS@%$CFLAGS%g
  1486. s%@CPPFLAGS@%$CPPFLAGS%g
  1487. s%@CXXFLAGS@%$CXXFLAGS%g
  1488. s%@FFLAGS@%$FFLAGS%g
  1489. s%@DEFS@%$DEFS%g
  1490. s%@LDFLAGS@%$LDFLAGS%g
  1491. s%@LIBS@%$LIBS%g
  1492. s%@exec_prefix@%$exec_prefix%g
  1493. s%@prefix@%$prefix%g
  1494. s%@program_transform_name@%$program_transform_name%g
  1495. s%@bindir@%$bindir%g
  1496. s%@sbindir@%$sbindir%g
  1497. s%@libexecdir@%$libexecdir%g
  1498. s%@datadir@%$datadir%g
  1499. s%@sysconfdir@%$sysconfdir%g
  1500. s%@sharedstatedir@%$sharedstatedir%g
  1501. s%@localstatedir@%$localstatedir%g
  1502. s%@libdir@%$libdir%g
  1503. s%@includedir@%$includedir%g
  1504. s%@oldincludedir@%$oldincludedir%g
  1505. s%@infodir@%$infodir%g
  1506. s%@mandir@%$mandir%g
  1507. s%@SET_MAKE@%$SET_MAKE%g
  1508. s%@WITH_NSS@%$WITH_NSS%g
  1509. s%@CC@%$CC%g
  1510. s%@CPP@%$CPP%g
  1511. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1512. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1513. s%@INSTALL_DATA@%$INSTALL_DATA%g
  1514. s%@RANLIB@%$RANLIB%g
  1515. s%@AR@%$AR%g
  1516. s%@LD@%$LD%g
  1517. s%@RM@%$RM%g
  1518. s%@TAR@%$TAR%g
  1519. s%@CC INSTALL RANLIB AR LD RM TAR@%$CC INSTALL RANLIB AR LD RM TAR%g
  1520. s%@HAVE_NSPR_H@%$HAVE_NSPR_H%g
  1521. s%@HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H@%$HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H%g
  1522. s%@const@%$const%g
  1523. s%@HAVE_MEMSET HAVE_STRLEN@%$HAVE_MEMSET HAVE_STRLEN%g
  1524. CEOF
  1525. EOF
  1526. cat >> $CONFIG_STATUS <<\EOF
  1527. # Split the substitutions into bite-sized pieces for seds with
  1528. # small command number limits, like on Digital OSF/1 and HP-UX.
  1529. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1530. ac_file=1 # Number of current file.
  1531. ac_beg=1 # First line for current file.
  1532. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1533. ac_more_lines=:
  1534. ac_sed_cmds=""
  1535. while $ac_more_lines; do
  1536. if test $ac_beg -gt 1; then
  1537. sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1538. else
  1539. sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1540. fi
  1541. if test ! -s conftest.s$ac_file; then
  1542. ac_more_lines=false
  1543. rm -f conftest.s$ac_file
  1544. else
  1545. if test -z "$ac_sed_cmds"; then
  1546. ac_sed_cmds="sed -f conftest.s$ac_file"
  1547. else
  1548. ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1549. fi
  1550. ac_file=`expr $ac_file + 1`
  1551. ac_beg=$ac_end
  1552. ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1553. fi
  1554. done
  1555. if test -z "$ac_sed_cmds"; then
  1556. ac_sed_cmds=cat
  1557. fi
  1558. EOF
  1559. cat >> $CONFIG_STATUS <<EOF
  1560. CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1561. EOF
  1562. cat >> $CONFIG_STATUS <<\EOF
  1563. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1564. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1565. case "$ac_file" in
  1566. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1567. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1568. *) ac_file_in="${ac_file}.in" ;;
  1569. esac
  1570. # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1571. # Remove last slash and all that follows it. Not all systems have dirname.
  1572. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1573. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1574. # The file is in a subdirectory.
  1575. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1576. ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1577. # A "../" for each directory in $ac_dir_suffix.
  1578. ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1579. else
  1580. ac_dir_suffix= ac_dots=
  1581. fi
  1582. case "$ac_given_srcdir" in
  1583. .) srcdir=.
  1584. if test -z "$ac_dots"; then top_srcdir=.
  1585. else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1586. /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1587. *) # Relative path.
  1588. srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1589. top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1590. esac
  1591. case "$ac_given_INSTALL" in
  1592. [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1593. *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1594. esac
  1595. echo creating "$ac_file"
  1596. rm -f "$ac_file"
  1597. configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1598. case "$ac_file" in
  1599. *Makefile*) ac_comsub="1i\\
  1600. # $configure_input" ;;
  1601. *) ac_comsub= ;;
  1602. esac
  1603. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1604. sed -e "$ac_comsub
  1605. s%@configure_input@%$configure_input%g
  1606. s%@srcdir@%$srcdir%g
  1607. s%@top_srcdir@%$top_srcdir%g
  1608. s%@INSTALL@%$INSTALL%g
  1609. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1610. fi; done
  1611. rm -f conftest.s*
  1612. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1613. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  1614. #
  1615. # ac_d sets the value in "#define NAME VALUE" lines.
  1616. ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  1617. ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  1618. ac_dC='\3'
  1619. ac_dD='%g'
  1620. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1621. ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1622. ac_uB='\([ ]\)%\1#\2define\3'
  1623. ac_uC=' '
  1624. ac_uD='\4%g'
  1625. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1626. ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  1627. ac_eB='$%\1#\2define\3'
  1628. ac_eC=' '
  1629. ac_eD='%g'
  1630. if test "${CONFIG_HEADERS+set}" != set; then
  1631. EOF
  1632. cat >> $CONFIG_STATUS <<EOF
  1633. CONFIG_HEADERS="config.h"
  1634. EOF
  1635. cat >> $CONFIG_STATUS <<\EOF
  1636. fi
  1637. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1638. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1639. case "$ac_file" in
  1640. *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1641. ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1642. *) ac_file_in="${ac_file}.in" ;;
  1643. esac
  1644. echo creating $ac_file
  1645. rm -f conftest.frag conftest.in conftest.out
  1646. ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1647. cat $ac_file_inputs > conftest.in
  1648. EOF
  1649. # Transform confdefs.h into a sed script conftest.vals that substitutes
  1650. # the proper values into config.h.in to produce config.h. And first:
  1651. # Protect against being on the right side of a sed subst in config.status.
  1652. # Protect against being in an unquoted here document in config.status.
  1653. rm -f conftest.vals
  1654. cat > conftest.hdr <<\EOF
  1655. s/[\\&%]/\\&/g
  1656. s%[\\$`]%\\&%g
  1657. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1658. s%ac_d%ac_u%gp
  1659. s%ac_u%ac_e%gp
  1660. EOF
  1661. sed -n -f conftest.hdr confdefs.h > conftest.vals
  1662. rm -f conftest.hdr
  1663. # This sed command replaces #undef with comments. This is necessary, for
  1664. # example, in the case of _POSIX_SOURCE, which is predefined and required
  1665. # on some systems where configure will not decide to define it.
  1666. cat >> conftest.vals <<\EOF
  1667. s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1668. EOF
  1669. # Break up conftest.vals because some shells have a limit on
  1670. # the size of here documents, and old seds have small limits too.
  1671. rm -f conftest.tail
  1672. while :
  1673. do
  1674. ac_lines=`grep -c . conftest.vals`
  1675. # grep -c gives empty output for an empty file on some AIX systems.
  1676. if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1677. # Write a limited-size here document to conftest.frag.
  1678. echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1679. sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1680. echo 'CEOF
  1681. sed -f conftest.frag conftest.in > conftest.out
  1682. rm -f conftest.in
  1683. mv conftest.out conftest.in
  1684. ' >> $CONFIG_STATUS
  1685. sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1686. rm -f conftest.vals
  1687. mv conftest.tail conftest.vals
  1688. done
  1689. rm -f conftest.vals
  1690. cat >> $CONFIG_STATUS <<\EOF
  1691. rm -f conftest.frag conftest.h
  1692. echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  1693. cat conftest.in >> conftest.h
  1694. rm -f conftest.in
  1695. if cmp -s $ac_file conftest.h 2>/dev/null; then
  1696. echo "$ac_file is unchanged"
  1697. rm -f conftest.h
  1698. else
  1699. # Remove last slash and all that follows it. Not all systems have dirname.
  1700. ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1701. if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1702. # The file is in a subdirectory.
  1703. test ! -d "$ac_dir" && mkdir "$ac_dir"
  1704. fi
  1705. rm -f $ac_file
  1706. mv conftest.h $ac_file
  1707. fi
  1708. fi; done
  1709. EOF
  1710. cat >> $CONFIG_STATUS <<EOF
  1711. EOF
  1712. cat >> $CONFIG_STATUS <<\EOF
  1713. echo timestamp > stamp-h
  1714. exit 0
  1715. EOF
  1716. chmod +x $CONFIG_STATUS
  1717. rm -fr confdefs* $ac_clean_files
  1718. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1