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

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/nss/tests/pkcs11/netscape/trivial/configure	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,1906 @@
     1.4 +#! /bin/sh
     1.5 +
     1.6 +# Guess values for system-dependent variables and create Makefiles.
     1.7 +# Generated automatically using autoconf version 2.13 
     1.8 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
     1.9 +#
    1.10 +# This configure script is free software; the Free Software Foundation
    1.11 +# gives unlimited permission to copy, distribute and modify it.
    1.12 +
    1.13 +# Defaults:
    1.14 +ac_help=
    1.15 +ac_default_prefix=/usr/local
    1.16 +# Any additions from configure.in:
    1.17 +ac_help="$ac_help
    1.18 +  --with-nspr[=path]      specify location of NSPR"
    1.19 +ac_help="$ac_help
    1.20 +  --with-nss-dist[=path]  specify path to NSS dist directory"
    1.21 +ac_help="$ac_help
    1.22 +  --with-nss-hdrs[=path]  or, specify path to installed NSS headers"
    1.23 +ac_help="$ac_help
    1.24 +  --with-rsa-hdrs[=path]  if not using NSS, specify path to RSA headers"
    1.25 +ac_help="$ac_help
    1.26 +  --disable-debug         default is enabled"
    1.27 +
    1.28 +# Initialize some variables set by options.
    1.29 +# The variables have the same names as the options, with
    1.30 +# dashes changed to underlines.
    1.31 +build=NONE
    1.32 +cache_file=./config.cache
    1.33 +exec_prefix=NONE
    1.34 +host=NONE
    1.35 +no_create=
    1.36 +nonopt=NONE
    1.37 +no_recursion=
    1.38 +prefix=NONE
    1.39 +program_prefix=NONE
    1.40 +program_suffix=NONE
    1.41 +program_transform_name=s,x,x,
    1.42 +silent=
    1.43 +site=
    1.44 +srcdir=
    1.45 +target=NONE
    1.46 +verbose=
    1.47 +x_includes=NONE
    1.48 +x_libraries=NONE
    1.49 +bindir='${exec_prefix}/bin'
    1.50 +sbindir='${exec_prefix}/sbin'
    1.51 +libexecdir='${exec_prefix}/libexec'
    1.52 +datadir='${prefix}/share'
    1.53 +sysconfdir='${prefix}/etc'
    1.54 +sharedstatedir='${prefix}/com'
    1.55 +localstatedir='${prefix}/var'
    1.56 +libdir='${exec_prefix}/lib'
    1.57 +includedir='${prefix}/include'
    1.58 +oldincludedir='/usr/include'
    1.59 +infodir='${prefix}/info'
    1.60 +mandir='${prefix}/man'
    1.61 +
    1.62 +# Initialize some other variables.
    1.63 +subdirs=
    1.64 +MFLAGS= MAKEFLAGS=
    1.65 +SHELL=${CONFIG_SHELL-/bin/sh}
    1.66 +# Maximum number of lines to put in a shell here document.
    1.67 +ac_max_here_lines=12
    1.68 +
    1.69 +ac_prev=
    1.70 +for ac_option
    1.71 +do
    1.72 +
    1.73 +  # If the previous option needs an argument, assign it.
    1.74 +  if test -n "$ac_prev"; then
    1.75 +    eval "$ac_prev=\$ac_option"
    1.76 +    ac_prev=
    1.77 +    continue
    1.78 +  fi
    1.79 +
    1.80 +  case "$ac_option" in
    1.81 +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    1.82 +  *) ac_optarg= ;;
    1.83 +  esac
    1.84 +
    1.85 +  # Accept the important Cygnus configure options, so we can diagnose typos.
    1.86 +
    1.87 +  case "$ac_option" in
    1.88 +
    1.89 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
    1.90 +    ac_prev=bindir ;;
    1.91 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
    1.92 +    bindir="$ac_optarg" ;;
    1.93 +
    1.94 +  -build | --build | --buil | --bui | --bu)
    1.95 +    ac_prev=build ;;
    1.96 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
    1.97 +    build="$ac_optarg" ;;
    1.98 +
    1.99 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
   1.100 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
   1.101 +    ac_prev=cache_file ;;
   1.102 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
   1.103 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
   1.104 +    cache_file="$ac_optarg" ;;
   1.105 +
   1.106 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
   1.107 +    ac_prev=datadir ;;
   1.108 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
   1.109 +  | --da=*)
   1.110 +    datadir="$ac_optarg" ;;
   1.111 +
   1.112 +  -disable-* | --disable-*)
   1.113 +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
   1.114 +    # Reject names that are not valid shell variable names.
   1.115 +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
   1.116 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   1.117 +    fi
   1.118 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   1.119 +    eval "enable_${ac_feature}=no" ;;
   1.120 +
   1.121 +  -enable-* | --enable-*)
   1.122 +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
   1.123 +    # Reject names that are not valid shell variable names.
   1.124 +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
   1.125 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
   1.126 +    fi
   1.127 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
   1.128 +    case "$ac_option" in
   1.129 +      *=*) ;;
   1.130 +      *) ac_optarg=yes ;;
   1.131 +    esac
   1.132 +    eval "enable_${ac_feature}='$ac_optarg'" ;;
   1.133 +
   1.134 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
   1.135 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
   1.136 +  | --exec | --exe | --ex)
   1.137 +    ac_prev=exec_prefix ;;
   1.138 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
   1.139 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
   1.140 +  | --exec=* | --exe=* | --ex=*)
   1.141 +    exec_prefix="$ac_optarg" ;;
   1.142 +
   1.143 +  -gas | --gas | --ga | --g)
   1.144 +    # Obsolete; use --with-gas.
   1.145 +    with_gas=yes ;;
   1.146 +
   1.147 +  -help | --help | --hel | --he)
   1.148 +    # Omit some internal or obsolete options to make the list less imposing.
   1.149 +    # This message is too long to be a string in the A/UX 3.1 sh.
   1.150 +    cat << EOF
   1.151 +Usage: configure [options] [host]
   1.152 +Options: [defaults in brackets after descriptions]
   1.153 +Configuration:
   1.154 +  --cache-file=FILE       cache test results in FILE
   1.155 +  --help                  print this message
   1.156 +  --no-create             do not create output files
   1.157 +  --quiet, --silent       do not print \`checking...' messages
   1.158 +  --version               print the version of autoconf that created configure
   1.159 +Directory and file names:
   1.160 +  --prefix=PREFIX         install architecture-independent files in PREFIX
   1.161 +                          [$ac_default_prefix]
   1.162 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
   1.163 +                          [same as prefix]
   1.164 +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
   1.165 +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
   1.166 +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
   1.167 +  --datadir=DIR           read-only architecture-independent data in DIR
   1.168 +                          [PREFIX/share]
   1.169 +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
   1.170 +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
   1.171 +                          [PREFIX/com]
   1.172 +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
   1.173 +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
   1.174 +  --includedir=DIR        C header files in DIR [PREFIX/include]
   1.175 +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
   1.176 +  --infodir=DIR           info documentation in DIR [PREFIX/info]
   1.177 +  --mandir=DIR            man documentation in DIR [PREFIX/man]
   1.178 +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
   1.179 +  --program-prefix=PREFIX prepend PREFIX to installed program names
   1.180 +  --program-suffix=SUFFIX append SUFFIX to installed program names
   1.181 +  --program-transform-name=PROGRAM
   1.182 +                          run sed PROGRAM on installed program names
   1.183 +EOF
   1.184 +    cat << EOF
   1.185 +Host type:
   1.186 +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
   1.187 +  --host=HOST             configure for HOST [guessed]
   1.188 +  --target=TARGET         configure for TARGET [TARGET=HOST]
   1.189 +Features and packages:
   1.190 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
   1.191 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
   1.192 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
   1.193 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
   1.194 +  --x-includes=DIR        X include files are in DIR
   1.195 +  --x-libraries=DIR       X library files are in DIR
   1.196 +EOF
   1.197 +    if test -n "$ac_help"; then
   1.198 +      echo "--enable and --with options recognized:$ac_help"
   1.199 +    fi
   1.200 +    exit 0 ;;
   1.201 +
   1.202 +  -host | --host | --hos | --ho)
   1.203 +    ac_prev=host ;;
   1.204 +  -host=* | --host=* | --hos=* | --ho=*)
   1.205 +    host="$ac_optarg" ;;
   1.206 +
   1.207 +  -includedir | --includedir | --includedi | --included | --include \
   1.208 +  | --includ | --inclu | --incl | --inc)
   1.209 +    ac_prev=includedir ;;
   1.210 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
   1.211 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
   1.212 +    includedir="$ac_optarg" ;;
   1.213 +
   1.214 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
   1.215 +    ac_prev=infodir ;;
   1.216 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
   1.217 +    infodir="$ac_optarg" ;;
   1.218 +
   1.219 +  -libdir | --libdir | --libdi | --libd)
   1.220 +    ac_prev=libdir ;;
   1.221 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
   1.222 +    libdir="$ac_optarg" ;;
   1.223 +
   1.224 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
   1.225 +  | --libexe | --libex | --libe)
   1.226 +    ac_prev=libexecdir ;;
   1.227 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
   1.228 +  | --libexe=* | --libex=* | --libe=*)
   1.229 +    libexecdir="$ac_optarg" ;;
   1.230 +
   1.231 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
   1.232 +  | --localstate | --localstat | --localsta | --localst \
   1.233 +  | --locals | --local | --loca | --loc | --lo)
   1.234 +    ac_prev=localstatedir ;;
   1.235 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
   1.236 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
   1.237 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
   1.238 +    localstatedir="$ac_optarg" ;;
   1.239 +
   1.240 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
   1.241 +    ac_prev=mandir ;;
   1.242 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
   1.243 +    mandir="$ac_optarg" ;;
   1.244 +
   1.245 +  -nfp | --nfp | --nf)
   1.246 +    # Obsolete; use --without-fp.
   1.247 +    with_fp=no ;;
   1.248 +
   1.249 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1.250 +  | --no-cr | --no-c)
   1.251 +    no_create=yes ;;
   1.252 +
   1.253 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1.254 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
   1.255 +    no_recursion=yes ;;
   1.256 +
   1.257 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
   1.258 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
   1.259 +  | --oldin | --oldi | --old | --ol | --o)
   1.260 +    ac_prev=oldincludedir ;;
   1.261 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
   1.262 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
   1.263 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
   1.264 +    oldincludedir="$ac_optarg" ;;
   1.265 +
   1.266 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
   1.267 +    ac_prev=prefix ;;
   1.268 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
   1.269 +    prefix="$ac_optarg" ;;
   1.270 +
   1.271 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
   1.272 +  | --program-pre | --program-pr | --program-p)
   1.273 +    ac_prev=program_prefix ;;
   1.274 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
   1.275 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
   1.276 +    program_prefix="$ac_optarg" ;;
   1.277 +
   1.278 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
   1.279 +  | --program-suf | --program-su | --program-s)
   1.280 +    ac_prev=program_suffix ;;
   1.281 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
   1.282 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
   1.283 +    program_suffix="$ac_optarg" ;;
   1.284 +
   1.285 +  -program-transform-name | --program-transform-name \
   1.286 +  | --program-transform-nam | --program-transform-na \
   1.287 +  | --program-transform-n | --program-transform- \
   1.288 +  | --program-transform | --program-transfor \
   1.289 +  | --program-transfo | --program-transf \
   1.290 +  | --program-trans | --program-tran \
   1.291 +  | --progr-tra | --program-tr | --program-t)
   1.292 +    ac_prev=program_transform_name ;;
   1.293 +  -program-transform-name=* | --program-transform-name=* \
   1.294 +  | --program-transform-nam=* | --program-transform-na=* \
   1.295 +  | --program-transform-n=* | --program-transform-=* \
   1.296 +  | --program-transform=* | --program-transfor=* \
   1.297 +  | --program-transfo=* | --program-transf=* \
   1.298 +  | --program-trans=* | --program-tran=* \
   1.299 +  | --progr-tra=* | --program-tr=* | --program-t=*)
   1.300 +    program_transform_name="$ac_optarg" ;;
   1.301 +
   1.302 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
   1.303 +  | -silent | --silent | --silen | --sile | --sil)
   1.304 +    silent=yes ;;
   1.305 +
   1.306 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
   1.307 +    ac_prev=sbindir ;;
   1.308 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
   1.309 +  | --sbi=* | --sb=*)
   1.310 +    sbindir="$ac_optarg" ;;
   1.311 +
   1.312 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
   1.313 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
   1.314 +  | --sharedst | --shareds | --shared | --share | --shar \
   1.315 +  | --sha | --sh)
   1.316 +    ac_prev=sharedstatedir ;;
   1.317 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
   1.318 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
   1.319 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
   1.320 +  | --sha=* | --sh=*)
   1.321 +    sharedstatedir="$ac_optarg" ;;
   1.322 +
   1.323 +  -site | --site | --sit)
   1.324 +    ac_prev=site ;;
   1.325 +  -site=* | --site=* | --sit=*)
   1.326 +    site="$ac_optarg" ;;
   1.327 +
   1.328 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
   1.329 +    ac_prev=srcdir ;;
   1.330 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
   1.331 +    srcdir="$ac_optarg" ;;
   1.332 +
   1.333 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
   1.334 +  | --syscon | --sysco | --sysc | --sys | --sy)
   1.335 +    ac_prev=sysconfdir ;;
   1.336 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
   1.337 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
   1.338 +    sysconfdir="$ac_optarg" ;;
   1.339 +
   1.340 +  -target | --target | --targe | --targ | --tar | --ta | --t)
   1.341 +    ac_prev=target ;;
   1.342 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
   1.343 +    target="$ac_optarg" ;;
   1.344 +
   1.345 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
   1.346 +    verbose=yes ;;
   1.347 +
   1.348 +  -version | --version | --versio | --versi | --vers)
   1.349 +    echo "configure generated by autoconf version 2.13"
   1.350 +    exit 0 ;;
   1.351 +
   1.352 +  -with-* | --with-*)
   1.353 +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
   1.354 +    # Reject names that are not valid shell variable names.
   1.355 +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
   1.356 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   1.357 +    fi
   1.358 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
   1.359 +    case "$ac_option" in
   1.360 +      *=*) ;;
   1.361 +      *) ac_optarg=yes ;;
   1.362 +    esac
   1.363 +    eval "with_${ac_package}='$ac_optarg'" ;;
   1.364 +
   1.365 +  -without-* | --without-*)
   1.366 +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
   1.367 +    # Reject names that are not valid shell variable names.
   1.368 +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
   1.369 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
   1.370 +    fi
   1.371 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
   1.372 +    eval "with_${ac_package}=no" ;;
   1.373 +
   1.374 +  --x)
   1.375 +    # Obsolete; use --with-x.
   1.376 +    with_x=yes ;;
   1.377 +
   1.378 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
   1.379 +  | --x-incl | --x-inc | --x-in | --x-i)
   1.380 +    ac_prev=x_includes ;;
   1.381 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
   1.382 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
   1.383 +    x_includes="$ac_optarg" ;;
   1.384 +
   1.385 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
   1.386 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
   1.387 +    ac_prev=x_libraries ;;
   1.388 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
   1.389 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
   1.390 +    x_libraries="$ac_optarg" ;;
   1.391 +
   1.392 +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
   1.393 +    ;;
   1.394 +
   1.395 +  *)
   1.396 +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
   1.397 +      echo "configure: warning: $ac_option: invalid host type" 1>&2
   1.398 +    fi
   1.399 +    if test "x$nonopt" != xNONE; then
   1.400 +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
   1.401 +    fi
   1.402 +    nonopt="$ac_option"
   1.403 +    ;;
   1.404 +
   1.405 +  esac
   1.406 +done
   1.407 +
   1.408 +if test -n "$ac_prev"; then
   1.409 +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
   1.410 +fi
   1.411 +
   1.412 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
   1.413 +
   1.414 +# File descriptor usage:
   1.415 +# 0 standard input
   1.416 +# 1 file creation
   1.417 +# 2 errors and warnings
   1.418 +# 3 some systems may open it to /dev/tty
   1.419 +# 4 used on the Kubota Titan
   1.420 +# 6 checking for... messages and results
   1.421 +# 5 compiler messages saved in config.log
   1.422 +if test "$silent" = yes; then
   1.423 +  exec 6>/dev/null
   1.424 +else
   1.425 +  exec 6>&1
   1.426 +fi
   1.427 +exec 5>./config.log
   1.428 +
   1.429 +echo "\
   1.430 +This file contains any messages produced by compilers while
   1.431 +running configure, to aid debugging if configure makes a mistake.
   1.432 +" 1>&5
   1.433 +
   1.434 +# Strip out --no-create and --no-recursion so they do not pile up.
   1.435 +# Also quote any args containing shell metacharacters.
   1.436 +ac_configure_args=
   1.437 +for ac_arg
   1.438 +do
   1.439 +  case "$ac_arg" in
   1.440 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
   1.441 +  | --no-cr | --no-c) ;;
   1.442 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
   1.443 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
   1.444 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
   1.445 +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
   1.446 +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
   1.447 +  esac
   1.448 +done
   1.449 +
   1.450 +# NLS nuisances.
   1.451 +# Only set these to C if already set.  These must not be set unconditionally
   1.452 +# because not all systems understand e.g. LANG=C (notably SCO).
   1.453 +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
   1.454 +# Non-C LC_CTYPE values break the ctype check.
   1.455 +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
   1.456 +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
   1.457 +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
   1.458 +if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
   1.459 +
   1.460 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
   1.461 +rm -rf conftest* confdefs.h
   1.462 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
   1.463 +echo > confdefs.h
   1.464 +
   1.465 +# A filename unique to this package, relative to the directory that
   1.466 +# configure is in, which we can look for to find out if srcdir is correct.
   1.467 +ac_unique_file=trivial.c
   1.468 +
   1.469 +# Find the source files, if location was not specified.
   1.470 +if test -z "$srcdir"; then
   1.471 +  ac_srcdir_defaulted=yes
   1.472 +  # Try the directory containing this script, then its parent.
   1.473 +  ac_prog=$0
   1.474 +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
   1.475 +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
   1.476 +  srcdir=$ac_confdir
   1.477 +  if test ! -r $srcdir/$ac_unique_file; then
   1.478 +    srcdir=..
   1.479 +  fi
   1.480 +else
   1.481 +  ac_srcdir_defaulted=no
   1.482 +fi
   1.483 +if test ! -r $srcdir/$ac_unique_file; then
   1.484 +  if test "$ac_srcdir_defaulted" = yes; then
   1.485 +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
   1.486 +  else
   1.487 +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
   1.488 +  fi
   1.489 +fi
   1.490 +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
   1.491 +
   1.492 +# Prefer explicitly selected file to automatically selected ones.
   1.493 +if test -z "$CONFIG_SITE"; then
   1.494 +  if test "x$prefix" != xNONE; then
   1.495 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
   1.496 +  else
   1.497 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
   1.498 +  fi
   1.499 +fi
   1.500 +for ac_site_file in $CONFIG_SITE; do
   1.501 +  if test -r "$ac_site_file"; then
   1.502 +    echo "loading site script $ac_site_file"
   1.503 +    . "$ac_site_file"
   1.504 +  fi
   1.505 +done
   1.506 +
   1.507 +if test -r "$cache_file"; then
   1.508 +  echo "loading cache $cache_file"
   1.509 +  . $cache_file
   1.510 +else
   1.511 +  echo "creating cache $cache_file"
   1.512 +  > $cache_file
   1.513 +fi
   1.514 +
   1.515 +ac_ext=c
   1.516 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.517 +ac_cpp='$CPP $CPPFLAGS'
   1.518 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.519 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.520 +cross_compiling=$ac_cv_prog_cc_cross
   1.521 +
   1.522 +ac_exeext=
   1.523 +ac_objext=o
   1.524 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
   1.525 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
   1.526 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
   1.527 +    ac_n= ac_c='
   1.528 +' ac_t='	'
   1.529 +  else
   1.530 +    ac_n=-n ac_c= ac_t=
   1.531 +  fi
   1.532 +else
   1.533 +  ac_n= ac_c='\c' ac_t=
   1.534 +fi
   1.535 +
   1.536 +
   1.537 +
   1.538 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
   1.539 +echo "configure:537: checking whether ${MAKE-make} sets \${MAKE}" >&5
   1.540 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
   1.541 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
   1.542 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.543 +else
   1.544 +  cat > conftestmake <<\EOF
   1.545 +all:
   1.546 +	@echo 'ac_maketemp="${MAKE}"'
   1.547 +EOF
   1.548 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
   1.549 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
   1.550 +if test -n "$ac_maketemp"; then
   1.551 +  eval ac_cv_prog_make_${ac_make}_set=yes
   1.552 +else
   1.553 +  eval ac_cv_prog_make_${ac_make}_set=no
   1.554 +fi
   1.555 +rm -f conftestmake
   1.556 +fi
   1.557 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
   1.558 +  echo "$ac_t""yes" 1>&6
   1.559 +  SET_MAKE=
   1.560 +else
   1.561 +  echo "$ac_t""no" 1>&6
   1.562 +  SET_MAKE="MAKE=${MAKE-make}"
   1.563 +fi
   1.564 +
   1.565 +
   1.566 +# Check whether --with-nspr or --without-nspr was given.
   1.567 +if test "${with_nspr+set}" = set; then
   1.568 +  withval="$with_nspr"
   1.569 +   case "$withval" in
   1.570 +  no)
   1.571 +    { echo "configure: error: NSPR is required" 1>&2; exit 1; };;
   1.572 +  yes)
   1.573 +    NSPR_INCLUDE="$includedir"
   1.574 +    NSPR_LIBPATH="$libdir"
   1.575 +    ;;
   1.576 +  *)
   1.577 +    NSPR_INCLUDE="$withval/include"
   1.578 +    NSPR_LIBPATH="$withval/lib"
   1.579 +    ;;
   1.580 +  esac 
   1.581 +else
   1.582 +   NSPR_INCLUDE="$includedir"
   1.583 +  NSPR_LIBPATH="$libdir" 
   1.584 +
   1.585 +fi
   1.586 +
   1.587 +
   1.588 +NSPR_CFLAGS="-I$NSPR_INCLUDE"
   1.589 +NSPR_LDFLAGS="-L$NSPR_LIBPATH -lnspr4 -lplc4 -lplds4"
   1.590 +
   1.591 +
   1.592 +# Check whether --with-nss-dist or --without-nss-dist was given.
   1.593 +if test "${with_nss_dist+set}" = set; then
   1.594 +  withval="$with_nss_dist"
   1.595 +   case "$withval" in
   1.596 +  no)
   1.597 +    NSS_CFLAGS=""
   1.598 +    nss="0"
   1.599 +    ;;
   1.600 +  yes)
   1.601 +    { echo "configure: error: You have to specify a path for --with-nss-dist" 1>&2; exit 1; }
   1.602 +    ;;
   1.603 +  *)
   1.604 +    NSS_CFLAGS="-I$withval/private/security -I$withval/public/security"
   1.605 +    nss="1"
   1.606 +    ;;
   1.607 +  esac 
   1.608 +fi
   1.609 +
   1.610 +
   1.611 +# Check whether --with-nss-hdrs or --without-nss-hdrs was given.
   1.612 +if test "${with_nss_hdrs+set}" = set; then
   1.613 +  withval="$with_nss_hdrs"
   1.614 +   if test "x$nss" != "x"; then
   1.615 +    { echo "configure: error: Only specify --with-nss-hdrs or --with-nss-dist" 1>&2; exit 1; }
   1.616 +  fi
   1.617 +  case "$withval" in
   1.618 +  no)
   1.619 +    NSS_CFLAGS=""
   1.620 +    nss="0"
   1.621 +    ;;
   1.622 +  yes)
   1.623 +    NSS_CFLAGS="-I$includedir"
   1.624 +    nss="1"
   1.625 +    ;;
   1.626 +  *)
   1.627 +    NSS_CFLAGS="-I$withval"
   1.628 +    nss="1"
   1.629 +    ;;
   1.630 +  esac 
   1.631 +fi
   1.632 +
   1.633 +
   1.634 +# Check whether --with-rsa-hdrs or --without-rsa-hdrs was given.
   1.635 +if test "${with_rsa_hdrs+set}" = set; then
   1.636 +  withval="$with_rsa_hdrs"
   1.637 +   if test "x$nss" != "x"; then
   1.638 +    { echo "configure: error: Only specify --with-nss-{hdrs" 1>&2; exit 1; }
   1.639 +  fi
   1.640 +  case "$withval" in
   1.641 +  no)
   1.642 +    rsa="0"
   1.643 +    ;;
   1.644 +  yes)
   1.645 +    RSA_INCLUDE="$includedir"
   1.646 +    rsa="1"
   1.647 +    ;;
   1.648 +  *)
   1.649 +    RSA_INCLUDE="$withval"
   1.650 +    rsa="1"
   1.651 +    ;;
   1.652 +  esac 
   1.653 +fi
   1.654 +
   1.655 +
   1.656 +if test "x$nss" = "x"; then
   1.657 +  if test "x$rsa" = "x"; then
   1.658 +    RSA_INCLUDE="$includedir"
   1.659 +  fi
   1.660 +  RSA_CFLAGS="-I$RSA_INCLUDE"
   1.661 +fi
   1.662 +
   1.663 +if test "x$nss" = "x1"; then
   1.664 +  cat >> confdefs.h <<\EOF
   1.665 +#define WITH_NSS 1
   1.666 +EOF
   1.667 +
   1.668 +fi
   1.669 +
   1.670 +
   1.671 +
   1.672 +if test "x$rsa" = "x1"; then
   1.673 +  RSA_CFLAGS-"-I$RSA_INCLUDE"
   1.674 +fi
   1.675 +
   1.676 +# Check whether --enable-debug or --disable-debug was given.
   1.677 +if test "${enable_debug+set}" = set; then
   1.678 +  enableval="$enable_debug"
   1.679 +   case "$enableval" in
   1.680 +  no)
   1.681 +    DEBUG_CFLAGS="";;
   1.682 +  yes)
   1.683 +    DEBUG_CFLAGS="-DDEBUG";;
   1.684 +  *)
   1.685 +    DEBUG_CFLAGS="-DDEBUG";;
   1.686 +  esac 
   1.687 +else
   1.688 +  DEBUG_CFLAGS="-DDEBUG"
   1.689 +fi
   1.690 +
   1.691 +
   1.692 +# Extract the first word of "gcc", so it can be a program name with args.
   1.693 +set dummy gcc; ac_word=$2
   1.694 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.695 +echo "configure:693: checking for $ac_word" >&5
   1.696 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.697 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.698 +else
   1.699 +  if test -n "$CC"; then
   1.700 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.701 +else
   1.702 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.703 +  ac_dummy="$PATH"
   1.704 +  for ac_dir in $ac_dummy; do
   1.705 +    test -z "$ac_dir" && ac_dir=.
   1.706 +    if test -f $ac_dir/$ac_word; then
   1.707 +      ac_cv_prog_CC="gcc"
   1.708 +      break
   1.709 +    fi
   1.710 +  done
   1.711 +  IFS="$ac_save_ifs"
   1.712 +fi
   1.713 +fi
   1.714 +CC="$ac_cv_prog_CC"
   1.715 +if test -n "$CC"; then
   1.716 +  echo "$ac_t""$CC" 1>&6
   1.717 +else
   1.718 +  echo "$ac_t""no" 1>&6
   1.719 +fi
   1.720 +
   1.721 +if test -z "$CC"; then
   1.722 +  # Extract the first word of "cc", so it can be a program name with args.
   1.723 +set dummy cc; ac_word=$2
   1.724 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.725 +echo "configure:723: checking for $ac_word" >&5
   1.726 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.727 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.728 +else
   1.729 +  if test -n "$CC"; then
   1.730 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.731 +else
   1.732 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.733 +  ac_prog_rejected=no
   1.734 +  ac_dummy="$PATH"
   1.735 +  for ac_dir in $ac_dummy; do
   1.736 +    test -z "$ac_dir" && ac_dir=.
   1.737 +    if test -f $ac_dir/$ac_word; then
   1.738 +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
   1.739 +        ac_prog_rejected=yes
   1.740 +	continue
   1.741 +      fi
   1.742 +      ac_cv_prog_CC="cc"
   1.743 +      break
   1.744 +    fi
   1.745 +  done
   1.746 +  IFS="$ac_save_ifs"
   1.747 +if test $ac_prog_rejected = yes; then
   1.748 +  # We found a bogon in the path, so make sure we never use it.
   1.749 +  set dummy $ac_cv_prog_CC
   1.750 +  shift
   1.751 +  if test $# -gt 0; then
   1.752 +    # We chose a different compiler from the bogus one.
   1.753 +    # However, it has the same basename, so the bogon will be chosen
   1.754 +    # first if we set CC to just the basename; use the full file name.
   1.755 +    shift
   1.756 +    set dummy "$ac_dir/$ac_word" "$@"
   1.757 +    shift
   1.758 +    ac_cv_prog_CC="$@"
   1.759 +  fi
   1.760 +fi
   1.761 +fi
   1.762 +fi
   1.763 +CC="$ac_cv_prog_CC"
   1.764 +if test -n "$CC"; then
   1.765 +  echo "$ac_t""$CC" 1>&6
   1.766 +else
   1.767 +  echo "$ac_t""no" 1>&6
   1.768 +fi
   1.769 +
   1.770 +  if test -z "$CC"; then
   1.771 +    case "`uname -s`" in
   1.772 +    *win32* | *WIN32*)
   1.773 +      # Extract the first word of "cl", so it can be a program name with args.
   1.774 +set dummy cl; ac_word=$2
   1.775 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
   1.776 +echo "configure:774: checking for $ac_word" >&5
   1.777 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   1.778 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.779 +else
   1.780 +  if test -n "$CC"; then
   1.781 +  ac_cv_prog_CC="$CC" # Let the user override the test.
   1.782 +else
   1.783 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
   1.784 +  ac_dummy="$PATH"
   1.785 +  for ac_dir in $ac_dummy; do
   1.786 +    test -z "$ac_dir" && ac_dir=.
   1.787 +    if test -f $ac_dir/$ac_word; then
   1.788 +      ac_cv_prog_CC="cl"
   1.789 +      break
   1.790 +    fi
   1.791 +  done
   1.792 +  IFS="$ac_save_ifs"
   1.793 +fi
   1.794 +fi
   1.795 +CC="$ac_cv_prog_CC"
   1.796 +if test -n "$CC"; then
   1.797 +  echo "$ac_t""$CC" 1>&6
   1.798 +else
   1.799 +  echo "$ac_t""no" 1>&6
   1.800 +fi
   1.801 + ;;
   1.802 +    esac
   1.803 +  fi
   1.804 +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
   1.805 +fi
   1.806 +
   1.807 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
   1.808 +echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
   1.809 +
   1.810 +ac_ext=c
   1.811 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.812 +ac_cpp='$CPP $CPPFLAGS'
   1.813 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.814 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.815 +cross_compiling=$ac_cv_prog_cc_cross
   1.816 +
   1.817 +cat > conftest.$ac_ext << EOF
   1.818 +
   1.819 +#line 817 "configure"
   1.820 +#include "confdefs.h"
   1.821 +
   1.822 +main(){return(0);}
   1.823 +EOF
   1.824 +if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   1.825 +  ac_cv_prog_cc_works=yes
   1.826 +  # If we can't run a trivial program, we are probably using a cross compiler.
   1.827 +  if (./conftest; exit) 2>/dev/null; then
   1.828 +    ac_cv_prog_cc_cross=no
   1.829 +  else
   1.830 +    ac_cv_prog_cc_cross=yes
   1.831 +  fi
   1.832 +else
   1.833 +  echo "configure: failed program was:" >&5
   1.834 +  cat conftest.$ac_ext >&5
   1.835 +  ac_cv_prog_cc_works=no
   1.836 +fi
   1.837 +rm -fr conftest*
   1.838 +ac_ext=c
   1.839 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
   1.840 +ac_cpp='$CPP $CPPFLAGS'
   1.841 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
   1.842 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
   1.843 +cross_compiling=$ac_cv_prog_cc_cross
   1.844 +
   1.845 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
   1.846 +if test $ac_cv_prog_cc_works = no; then
   1.847 +  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
   1.848 +fi
   1.849 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
   1.850 +echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
   1.851 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
   1.852 +cross_compiling=$ac_cv_prog_cc_cross
   1.853 +
   1.854 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
   1.855 +echo "configure:853: checking whether we are using GNU C" >&5
   1.856 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   1.857 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.858 +else
   1.859 +  cat > conftest.c <<EOF
   1.860 +#ifdef __GNUC__
   1.861 +  yes;
   1.862 +#endif
   1.863 +EOF
   1.864 +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
   1.865 +  ac_cv_prog_gcc=yes
   1.866 +else
   1.867 +  ac_cv_prog_gcc=no
   1.868 +fi
   1.869 +fi
   1.870 +
   1.871 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
   1.872 +
   1.873 +if test $ac_cv_prog_gcc = yes; then
   1.874 +  GCC=yes
   1.875 +else
   1.876 +  GCC=
   1.877 +fi
   1.878 +
   1.879 +ac_test_CFLAGS="${CFLAGS+set}"
   1.880 +ac_save_CFLAGS="$CFLAGS"
   1.881 +CFLAGS=
   1.882 +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
   1.883 +echo "configure:881: checking whether ${CC-cc} accepts -g" >&5
   1.884 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   1.885 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.886 +else
   1.887 +  echo 'void f(){}' > conftest.c
   1.888 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
   1.889 +  ac_cv_prog_cc_g=yes
   1.890 +else
   1.891 +  ac_cv_prog_cc_g=no
   1.892 +fi
   1.893 +rm -f conftest*
   1.894 +
   1.895 +fi
   1.896 +
   1.897 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
   1.898 +if test "$ac_test_CFLAGS" = set; then
   1.899 +  CFLAGS="$ac_save_CFLAGS"
   1.900 +elif test $ac_cv_prog_cc_g = yes; then
   1.901 +  if test "$GCC" = yes; then
   1.902 +    CFLAGS="-g -O2"
   1.903 +  else
   1.904 +    CFLAGS="-g"
   1.905 +  fi
   1.906 +else
   1.907 +  if test "$GCC" = yes; then
   1.908 +    CFLAGS="-O2"
   1.909 +  else
   1.910 +    CFLAGS=
   1.911 +  fi
   1.912 +fi
   1.913 +
   1.914 +echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
   1.915 +echo "configure:913: checking how to run the C preprocessor" >&5
   1.916 +# On Suns, sometimes $CPP names a directory.
   1.917 +if test -n "$CPP" && test -d "$CPP"; then
   1.918 +  CPP=
   1.919 +fi
   1.920 +if test -z "$CPP"; then
   1.921 +if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
   1.922 +  echo $ac_n "(cached) $ac_c" 1>&6
   1.923 +else
   1.924 +    # This must be in double quotes, not single quotes, because CPP may get
   1.925 +  # substituted into the Makefile and "${CC-cc}" will confuse make.
   1.926 +  CPP="${CC-cc} -E"
   1.927 +  # On the NeXT, cc -E runs the code through the compiler's parser,
   1.928 +  # not just through cpp.
   1.929 +  cat > conftest.$ac_ext <<EOF
   1.930 +#line 928 "configure"
   1.931 +#include "confdefs.h"
   1.932 +#include <assert.h>
   1.933 +Syntax Error
   1.934 +EOF
   1.935 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   1.936 +{ (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   1.937 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
   1.938 +if test -z "$ac_err"; then
   1.939 +  :
   1.940 +else
   1.941 +  echo "$ac_err" >&5
   1.942 +  echo "configure: failed program was:" >&5
   1.943 +  cat conftest.$ac_ext >&5
   1.944 +  rm -rf conftest*
   1.945 +  CPP="${CC-cc} -E -traditional-cpp"
   1.946 +  cat > conftest.$ac_ext <<EOF
   1.947 +#line 945 "configure"
   1.948 +#include "confdefs.h"
   1.949 +#include <assert.h>
   1.950 +Syntax Error
   1.951 +EOF
   1.952 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   1.953 +{ (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   1.954 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
   1.955 +if test -z "$ac_err"; then
   1.956 +  :
   1.957 +else
   1.958 +  echo "$ac_err" >&5
   1.959 +  echo "configure: failed program was:" >&5
   1.960 +  cat conftest.$ac_ext >&5
   1.961 +  rm -rf conftest*
   1.962 +  CPP="${CC-cc} -nologo -E"
   1.963 +  cat > conftest.$ac_ext <<EOF
   1.964 +#line 962 "configure"
   1.965 +#include "confdefs.h"
   1.966 +#include <assert.h>
   1.967 +Syntax Error
   1.968 +EOF
   1.969 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
   1.970 +{ (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
   1.971 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
   1.972 +if test -z "$ac_err"; then
   1.973 +  :
   1.974 +else
   1.975 +  echo "$ac_err" >&5
   1.976 +  echo "configure: failed program was:" >&5
   1.977 +  cat conftest.$ac_ext >&5
   1.978 +  rm -rf conftest*
   1.979 +  CPP=/lib/cpp
   1.980 +fi
   1.981 +rm -f conftest*
   1.982 +fi
   1.983 +rm -f conftest*
   1.984 +fi
   1.985 +rm -f conftest*
   1.986 +  ac_cv_prog_CPP="$CPP"
   1.987 +fi
   1.988 +  CPP="$ac_cv_prog_CPP"
   1.989 +else
   1.990 +  ac_cv_prog_CPP="$CPP"
   1.991 +fi
   1.992 +echo "$ac_t""$CPP" 1>&6
   1.993 +
   1.994 +ac_aux_dir=
   1.995 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
   1.996 +  if test -f $ac_dir/install-sh; then
   1.997 +    ac_aux_dir=$ac_dir
   1.998 +    ac_install_sh="$ac_aux_dir/install-sh -c"
   1.999 +    break
  1.1000 +  elif test -f $ac_dir/install.sh; then
  1.1001 +    ac_aux_dir=$ac_dir
  1.1002 +    ac_install_sh="$ac_aux_dir/install.sh -c"
  1.1003 +    break
  1.1004 +  fi
  1.1005 +done
  1.1006 +if test -z "$ac_aux_dir"; then
  1.1007 +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1.1008 +fi
  1.1009 +ac_config_guess=$ac_aux_dir/config.guess
  1.1010 +ac_config_sub=$ac_aux_dir/config.sub
  1.1011 +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1.1012 +
  1.1013 +# Find a good install program.  We prefer a C program (faster),
  1.1014 +# so one script is as good as another.  But avoid the broken or
  1.1015 +# incompatible versions:
  1.1016 +# SysV /etc/install, /usr/sbin/install
  1.1017 +# SunOS /usr/etc/install
  1.1018 +# IRIX /sbin/install
  1.1019 +# AIX /bin/install
  1.1020 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1.1021 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1.1022 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1.1023 +# ./install, which can be erroneously created by make from ./install.sh.
  1.1024 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  1.1025 +echo "configure:1023: checking for a BSD compatible install" >&5
  1.1026 +if test -z "$INSTALL"; then
  1.1027 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  1.1028 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1029 +else
  1.1030 +    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  1.1031 +  for ac_dir in $PATH; do
  1.1032 +    # Account for people who put trailing slashes in PATH elements.
  1.1033 +    case "$ac_dir/" in
  1.1034 +    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  1.1035 +    *)
  1.1036 +      # OSF1 and SCO ODT 3.0 have their own names for install.
  1.1037 +      # Don't use installbsd from OSF since it installs stuff as root
  1.1038 +      # by default.
  1.1039 +      for ac_prog in ginstall scoinst install; do
  1.1040 +        if test -f $ac_dir/$ac_prog; then
  1.1041 +	  if test $ac_prog = install &&
  1.1042 +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  1.1043 +	    # AIX install.  It has an incompatible calling convention.
  1.1044 +	    :
  1.1045 +	  else
  1.1046 +	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  1.1047 +	    break 2
  1.1048 +	  fi
  1.1049 +	fi
  1.1050 +      done
  1.1051 +      ;;
  1.1052 +    esac
  1.1053 +  done
  1.1054 +  IFS="$ac_save_IFS"
  1.1055 +
  1.1056 +fi
  1.1057 +  if test "${ac_cv_path_install+set}" = set; then
  1.1058 +    INSTALL="$ac_cv_path_install"
  1.1059 +  else
  1.1060 +    # As a last resort, use the slow shell script.  We don't cache a
  1.1061 +    # path for INSTALL within a source directory, because that will
  1.1062 +    # break other packages using the cache if that directory is
  1.1063 +    # removed, or if the path is relative.
  1.1064 +    INSTALL="$ac_install_sh"
  1.1065 +  fi
  1.1066 +fi
  1.1067 +echo "$ac_t""$INSTALL" 1>&6
  1.1068 +
  1.1069 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1.1070 +# It thinks the first close brace ends the variable substitution.
  1.1071 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1.1072 +
  1.1073 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  1.1074 +
  1.1075 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1.1076 +
  1.1077 +# Extract the first word of "ranlib", so it can be a program name with args.
  1.1078 +set dummy ranlib; ac_word=$2
  1.1079 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1080 +echo "configure:1078: checking for $ac_word" >&5
  1.1081 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  1.1082 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1083 +else
  1.1084 +  if test -n "$RANLIB"; then
  1.1085 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1.1086 +else
  1.1087 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1088 +  ac_dummy="$PATH"
  1.1089 +  for ac_dir in $ac_dummy; do
  1.1090 +    test -z "$ac_dir" && ac_dir=.
  1.1091 +    if test -f $ac_dir/$ac_word; then
  1.1092 +      ac_cv_prog_RANLIB="ranlib"
  1.1093 +      break
  1.1094 +    fi
  1.1095 +  done
  1.1096 +  IFS="$ac_save_ifs"
  1.1097 +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  1.1098 +fi
  1.1099 +fi
  1.1100 +RANLIB="$ac_cv_prog_RANLIB"
  1.1101 +if test -n "$RANLIB"; then
  1.1102 +  echo "$ac_t""$RANLIB" 1>&6
  1.1103 +else
  1.1104 +  echo "$ac_t""no" 1>&6
  1.1105 +fi
  1.1106 +
  1.1107 +# Extract the first word of "ar", so it can be a program name with args.
  1.1108 +set dummy ar; ac_word=$2
  1.1109 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1110 +echo "configure:1108: checking for $ac_word" >&5
  1.1111 +if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  1.1112 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1113 +else
  1.1114 +  if test -n "$AR"; then
  1.1115 +  ac_cv_prog_AR="$AR" # Let the user override the test.
  1.1116 +else
  1.1117 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1118 +  ac_dummy="$PATH"
  1.1119 +  for ac_dir in $ac_dummy; do
  1.1120 +    test -z "$ac_dir" && ac_dir=.
  1.1121 +    if test -f $ac_dir/$ac_word; then
  1.1122 +      ac_cv_prog_AR="ar"
  1.1123 +      break
  1.1124 +    fi
  1.1125 +  done
  1.1126 +  IFS="$ac_save_ifs"
  1.1127 +fi
  1.1128 +fi
  1.1129 +AR="$ac_cv_prog_AR"
  1.1130 +if test -n "$AR"; then
  1.1131 +  echo "$ac_t""$AR" 1>&6
  1.1132 +else
  1.1133 +  echo "$ac_t""no" 1>&6
  1.1134 +fi
  1.1135 +
  1.1136 +# Extract the first word of "ld", so it can be a program name with args.
  1.1137 +set dummy ld; ac_word=$2
  1.1138 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1139 +echo "configure:1137: checking for $ac_word" >&5
  1.1140 +if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
  1.1141 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1142 +else
  1.1143 +  if test -n "$LD"; then
  1.1144 +  ac_cv_prog_LD="$LD" # Let the user override the test.
  1.1145 +else
  1.1146 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1147 +  ac_dummy="$PATH"
  1.1148 +  for ac_dir in $ac_dummy; do
  1.1149 +    test -z "$ac_dir" && ac_dir=.
  1.1150 +    if test -f $ac_dir/$ac_word; then
  1.1151 +      ac_cv_prog_LD="ld"
  1.1152 +      break
  1.1153 +    fi
  1.1154 +  done
  1.1155 +  IFS="$ac_save_ifs"
  1.1156 +fi
  1.1157 +fi
  1.1158 +LD="$ac_cv_prog_LD"
  1.1159 +if test -n "$LD"; then
  1.1160 +  echo "$ac_t""$LD" 1>&6
  1.1161 +else
  1.1162 +  echo "$ac_t""no" 1>&6
  1.1163 +fi
  1.1164 +
  1.1165 +# Extract the first word of "rm", so it can be a program name with args.
  1.1166 +set dummy rm; ac_word=$2
  1.1167 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1168 +echo "configure:1166: checking for $ac_word" >&5
  1.1169 +if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then
  1.1170 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1171 +else
  1.1172 +  if test -n "$RM"; then
  1.1173 +  ac_cv_prog_RM="$RM" # Let the user override the test.
  1.1174 +else
  1.1175 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1176 +  ac_dummy="$PATH"
  1.1177 +  for ac_dir in $ac_dummy; do
  1.1178 +    test -z "$ac_dir" && ac_dir=.
  1.1179 +    if test -f $ac_dir/$ac_word; then
  1.1180 +      ac_cv_prog_RM="rm"
  1.1181 +      break
  1.1182 +    fi
  1.1183 +  done
  1.1184 +  IFS="$ac_save_ifs"
  1.1185 +fi
  1.1186 +fi
  1.1187 +RM="$ac_cv_prog_RM"
  1.1188 +if test -n "$RM"; then
  1.1189 +  echo "$ac_t""$RM" 1>&6
  1.1190 +else
  1.1191 +  echo "$ac_t""no" 1>&6
  1.1192 +fi
  1.1193 +
  1.1194 +# Extract the first word of "tar", so it can be a program name with args.
  1.1195 +set dummy tar; ac_word=$2
  1.1196 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  1.1197 +echo "configure:1195: checking for $ac_word" >&5
  1.1198 +if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then
  1.1199 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1200 +else
  1.1201 +  if test -n "$TAR"; then
  1.1202 +  ac_cv_prog_TAR="$TAR" # Let the user override the test.
  1.1203 +else
  1.1204 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  1.1205 +  ac_dummy="$PATH"
  1.1206 +  for ac_dir in $ac_dummy; do
  1.1207 +    test -z "$ac_dir" && ac_dir=.
  1.1208 +    if test -f $ac_dir/$ac_word; then
  1.1209 +      ac_cv_prog_TAR="tar"
  1.1210 +      break
  1.1211 +    fi
  1.1212 +  done
  1.1213 +  IFS="$ac_save_ifs"
  1.1214 +fi
  1.1215 +fi
  1.1216 +TAR="$ac_cv_prog_TAR"
  1.1217 +if test -n "$TAR"; then
  1.1218 +  echo "$ac_t""$TAR" 1>&6
  1.1219 +else
  1.1220 +  echo "$ac_t""no" 1>&6
  1.1221 +fi
  1.1222 +
  1.1223 +
  1.1224 +
  1.1225 +CPPFLAGS="$CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $RSA_CFLAGS $DEBUG_CFLAGS"
  1.1226 +LIBS="$NSPR_LDFLAGS $LIBS"
  1.1227 +
  1.1228 +
  1.1229 +
  1.1230 +echo $ac_n "checking for PR_Init in -lnspr4""... $ac_c" 1>&6
  1.1231 +echo "configure:1229: checking for PR_Init in -lnspr4" >&5
  1.1232 +ac_lib_var=`echo nspr4'_'PR_Init | sed 'y%./+-%__p_%'`
  1.1233 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1.1234 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1235 +else
  1.1236 +  ac_save_LIBS="$LIBS"
  1.1237 +LIBS="-lnspr4  $LIBS"
  1.1238 +cat > conftest.$ac_ext <<EOF
  1.1239 +#line 1237 "configure"
  1.1240 +#include "confdefs.h"
  1.1241 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.1242 +/* We use char because int might match the return type of a gcc2
  1.1243 +    builtin and then its argument prototype would still apply.  */
  1.1244 +char PR_Init();
  1.1245 +
  1.1246 +int main() {
  1.1247 +PR_Init()
  1.1248 +; return 0; }
  1.1249 +EOF
  1.1250 +if { (eval echo configure:1248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1251 +  rm -rf conftest*
  1.1252 +  eval "ac_cv_lib_$ac_lib_var=yes"
  1.1253 +else
  1.1254 +  echo "configure: failed program was:" >&5
  1.1255 +  cat conftest.$ac_ext >&5
  1.1256 +  rm -rf conftest*
  1.1257 +  eval "ac_cv_lib_$ac_lib_var=no"
  1.1258 +fi
  1.1259 +rm -f conftest*
  1.1260 +LIBS="$ac_save_LIBS"
  1.1261 +
  1.1262 +fi
  1.1263 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  1.1264 +  echo "$ac_t""yes" 1>&6
  1.1265 +    ac_tr_lib=HAVE_LIB`echo nspr4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  1.1266 +    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  1.1267 +  cat >> confdefs.h <<EOF
  1.1268 +#define $ac_tr_lib 1
  1.1269 +EOF
  1.1270 +
  1.1271 +  LIBS="-lnspr4 $LIBS"
  1.1272 +
  1.1273 +else
  1.1274 +  echo "$ac_t""no" 1>&6
  1.1275 +fi
  1.1276 +
  1.1277 +
  1.1278 +for ac_hdr in nspr.h
  1.1279 +do
  1.1280 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1.1281 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1.1282 +echo "configure:1280: checking for $ac_hdr" >&5
  1.1283 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1.1284 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1285 +else
  1.1286 +  cat > conftest.$ac_ext <<EOF
  1.1287 +#line 1285 "configure"
  1.1288 +#include "confdefs.h"
  1.1289 +#include <$ac_hdr>
  1.1290 +EOF
  1.1291 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1.1292 +{ (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1.1293 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1.1294 +if test -z "$ac_err"; then
  1.1295 +  rm -rf conftest*
  1.1296 +  eval "ac_cv_header_$ac_safe=yes"
  1.1297 +else
  1.1298 +  echo "$ac_err" >&5
  1.1299 +  echo "configure: failed program was:" >&5
  1.1300 +  cat conftest.$ac_ext >&5
  1.1301 +  rm -rf conftest*
  1.1302 +  eval "ac_cv_header_$ac_safe=no"
  1.1303 +fi
  1.1304 +rm -f conftest*
  1.1305 +fi
  1.1306 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1.1307 +  echo "$ac_t""yes" 1>&6
  1.1308 +    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1.1309 +  cat >> confdefs.h <<EOF
  1.1310 +#define $ac_tr_hdr 1
  1.1311 +EOF
  1.1312 + 
  1.1313 +else
  1.1314 +  echo "$ac_t""no" 1>&6
  1.1315 +fi
  1.1316 +done
  1.1317 +
  1.1318 +
  1.1319 +
  1.1320 +if test "x$nss" = "x1"; then
  1.1321 +  for ac_hdr in ck.h
  1.1322 +do
  1.1323 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1.1324 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1.1325 +echo "configure:1323: checking for $ac_hdr" >&5
  1.1326 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1.1327 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1328 +else
  1.1329 +  cat > conftest.$ac_ext <<EOF
  1.1330 +#line 1328 "configure"
  1.1331 +#include "confdefs.h"
  1.1332 +#include <$ac_hdr>
  1.1333 +EOF
  1.1334 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1.1335 +{ (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1.1336 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1.1337 +if test -z "$ac_err"; then
  1.1338 +  rm -rf conftest*
  1.1339 +  eval "ac_cv_header_$ac_safe=yes"
  1.1340 +else
  1.1341 +  echo "$ac_err" >&5
  1.1342 +  echo "configure: failed program was:" >&5
  1.1343 +  cat conftest.$ac_ext >&5
  1.1344 +  rm -rf conftest*
  1.1345 +  eval "ac_cv_header_$ac_safe=no"
  1.1346 +fi
  1.1347 +rm -f conftest*
  1.1348 +fi
  1.1349 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1.1350 +  echo "$ac_t""yes" 1>&6
  1.1351 +    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1.1352 +  cat >> confdefs.h <<EOF
  1.1353 +#define $ac_tr_hdr 1
  1.1354 +EOF
  1.1355 + 
  1.1356 +else
  1.1357 +  echo "$ac_t""no" 1>&6
  1.1358 +fi
  1.1359 +done
  1.1360 +
  1.1361 +fi
  1.1362 +
  1.1363 +if test "x$rsa" = "x1"; then
  1.1364 +  for ac_hdr in pkcs11t.h pkcs11.h
  1.1365 +do
  1.1366 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1.1367 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1.1368 +echo "configure:1366: checking for $ac_hdr" >&5
  1.1369 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1.1370 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1371 +else
  1.1372 +  cat > conftest.$ac_ext <<EOF
  1.1373 +#line 1371 "configure"
  1.1374 +#include "confdefs.h"
  1.1375 +#include <$ac_hdr>
  1.1376 +EOF
  1.1377 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  1.1378 +{ (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1.1379 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1.1380 +if test -z "$ac_err"; then
  1.1381 +  rm -rf conftest*
  1.1382 +  eval "ac_cv_header_$ac_safe=yes"
  1.1383 +else
  1.1384 +  echo "$ac_err" >&5
  1.1385 +  echo "configure: failed program was:" >&5
  1.1386 +  cat conftest.$ac_ext >&5
  1.1387 +  rm -rf conftest*
  1.1388 +  eval "ac_cv_header_$ac_safe=no"
  1.1389 +fi
  1.1390 +rm -f conftest*
  1.1391 +fi
  1.1392 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  1.1393 +  echo "$ac_t""yes" 1>&6
  1.1394 +    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  1.1395 +  cat >> confdefs.h <<EOF
  1.1396 +#define $ac_tr_hdr 1
  1.1397 +EOF
  1.1398 + 
  1.1399 +else
  1.1400 +  echo "$ac_t""no" 1>&6
  1.1401 +fi
  1.1402 +done
  1.1403 +
  1.1404 +fi
  1.1405 +
  1.1406 +
  1.1407 +
  1.1408 +echo $ac_n "checking for working const""... $ac_c" 1>&6
  1.1409 +echo "configure:1407: checking for working const" >&5
  1.1410 +if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  1.1411 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1412 +else
  1.1413 +  cat > conftest.$ac_ext <<EOF
  1.1414 +#line 1412 "configure"
  1.1415 +#include "confdefs.h"
  1.1416 +
  1.1417 +int main() {
  1.1418 +
  1.1419 +/* Ultrix mips cc rejects this.  */
  1.1420 +typedef int charset[2]; const charset x;
  1.1421 +/* SunOS 4.1.1 cc rejects this.  */
  1.1422 +char const *const *ccp;
  1.1423 +char **p;
  1.1424 +/* NEC SVR4.0.2 mips cc rejects this.  */
  1.1425 +struct point {int x, y;};
  1.1426 +static struct point const zero = {0,0};
  1.1427 +/* AIX XL C 1.02.0.0 rejects this.
  1.1428 +   It does not let you subtract one const X* pointer from another in an arm
  1.1429 +   of an if-expression whose if-part is not a constant expression */
  1.1430 +const char *g = "string";
  1.1431 +ccp = &g + (g ? g-g : 0);
  1.1432 +/* HPUX 7.0 cc rejects these. */
  1.1433 +++ccp;
  1.1434 +p = (char**) ccp;
  1.1435 +ccp = (char const *const *) p;
  1.1436 +{ /* SCO 3.2v4 cc rejects this.  */
  1.1437 +  char *t;
  1.1438 +  char const *s = 0 ? (char *) 0 : (char const *) 0;
  1.1439 +
  1.1440 +  *t++ = 0;
  1.1441 +}
  1.1442 +{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  1.1443 +  int x[] = {25, 17};
  1.1444 +  const int *foo = &x[0];
  1.1445 +  ++foo;
  1.1446 +}
  1.1447 +{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  1.1448 +  typedef const int *iptr;
  1.1449 +  iptr p = 0;
  1.1450 +  ++p;
  1.1451 +}
  1.1452 +{ /* AIX XL C 1.02.0.0 rejects this saying
  1.1453 +     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  1.1454 +  struct s { int j; const int *ap[3]; };
  1.1455 +  struct s *b; b->j = 5;
  1.1456 +}
  1.1457 +{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  1.1458 +  const int foo = 10;
  1.1459 +}
  1.1460 +
  1.1461 +; return 0; }
  1.1462 +EOF
  1.1463 +if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1.1464 +  rm -rf conftest*
  1.1465 +  ac_cv_c_const=yes
  1.1466 +else
  1.1467 +  echo "configure: failed program was:" >&5
  1.1468 +  cat conftest.$ac_ext >&5
  1.1469 +  rm -rf conftest*
  1.1470 +  ac_cv_c_const=no
  1.1471 +fi
  1.1472 +rm -f conftest*
  1.1473 +fi
  1.1474 +
  1.1475 +echo "$ac_t""$ac_cv_c_const" 1>&6
  1.1476 +if test $ac_cv_c_const = no; then
  1.1477 +  cat >> confdefs.h <<\EOF
  1.1478 +#define const 
  1.1479 +EOF
  1.1480 +
  1.1481 +fi
  1.1482 +
  1.1483 +
  1.1484 +
  1.1485 +for ac_func in memset strlen
  1.1486 +do
  1.1487 +echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  1.1488 +echo "configure:1486: checking for $ac_func" >&5
  1.1489 +if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  1.1490 +  echo $ac_n "(cached) $ac_c" 1>&6
  1.1491 +else
  1.1492 +  cat > conftest.$ac_ext <<EOF
  1.1493 +#line 1491 "configure"
  1.1494 +#include "confdefs.h"
  1.1495 +/* System header to define __stub macros and hopefully few prototypes,
  1.1496 +    which can conflict with char $ac_func(); below.  */
  1.1497 +#include <assert.h>
  1.1498 +/* Override any gcc2 internal prototype to avoid an error.  */
  1.1499 +/* We use char because int might match the return type of a gcc2
  1.1500 +    builtin and then its argument prototype would still apply.  */
  1.1501 +char $ac_func();
  1.1502 +
  1.1503 +int main() {
  1.1504 +
  1.1505 +/* The GNU C library defines this for functions which it implements
  1.1506 +    to always fail with ENOSYS.  Some functions are actually named
  1.1507 +    something starting with __ and the normal name is an alias.  */
  1.1508 +#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  1.1509 +choke me
  1.1510 +#else
  1.1511 +$ac_func();
  1.1512 +#endif
  1.1513 +
  1.1514 +; return 0; }
  1.1515 +EOF
  1.1516 +if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1.1517 +  rm -rf conftest*
  1.1518 +  eval "ac_cv_func_$ac_func=yes"
  1.1519 +else
  1.1520 +  echo "configure: failed program was:" >&5
  1.1521 +  cat conftest.$ac_ext >&5
  1.1522 +  rm -rf conftest*
  1.1523 +  eval "ac_cv_func_$ac_func=no"
  1.1524 +fi
  1.1525 +rm -f conftest*
  1.1526 +fi
  1.1527 +
  1.1528 +if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  1.1529 +  echo "$ac_t""yes" 1>&6
  1.1530 +    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  1.1531 +  cat >> confdefs.h <<EOF
  1.1532 +#define $ac_tr_func 1
  1.1533 +EOF
  1.1534 + 
  1.1535 +else
  1.1536 +  echo "$ac_t""no" 1>&6
  1.1537 +fi
  1.1538 +done
  1.1539 +
  1.1540 +
  1.1541 +trap '' 1 2 15
  1.1542 +cat > confcache <<\EOF
  1.1543 +# This file is a shell script that caches the results of configure
  1.1544 +# tests run on this system so they can be shared between configure
  1.1545 +# scripts and configure runs.  It is not useful on other systems.
  1.1546 +# If it contains results you don't want to keep, you may remove or edit it.
  1.1547 +#
  1.1548 +# By default, configure uses ./config.cache as the cache file,
  1.1549 +# creating it if it does not exist already.  You can give configure
  1.1550 +# the --cache-file=FILE option to use a different cache file; that is
  1.1551 +# what configure does when it calls configure scripts in
  1.1552 +# subdirectories, so they share the cache.
  1.1553 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
  1.1554 +# config.status only pays attention to the cache file if you give it the
  1.1555 +# --recheck option to rerun configure.
  1.1556 +#
  1.1557 +EOF
  1.1558 +# The following way of writing the cache mishandles newlines in values,
  1.1559 +# but we know of no workaround that is simple, portable, and efficient.
  1.1560 +# So, don't put newlines in cache variables' values.
  1.1561 +# Ultrix sh set writes to stderr and can't be redirected directly,
  1.1562 +# and sets the high bit in the cache file unless we assign to the vars.
  1.1563 +(set) 2>&1 |
  1.1564 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
  1.1565 +  *ac_space=\ *)
  1.1566 +    # `set' does not quote correctly, so add quotes (double-quote substitution
  1.1567 +    # turns \\\\ into \\, and sed turns \\ into \).
  1.1568 +    sed -n \
  1.1569 +      -e "s/'/'\\\\''/g" \
  1.1570 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  1.1571 +    ;;
  1.1572 +  *)
  1.1573 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
  1.1574 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  1.1575 +    ;;
  1.1576 +  esac >> confcache
  1.1577 +if cmp -s $cache_file confcache; then
  1.1578 +  :
  1.1579 +else
  1.1580 +  if test -w $cache_file; then
  1.1581 +    echo "updating cache $cache_file"
  1.1582 +    cat confcache > $cache_file
  1.1583 +  else
  1.1584 +    echo "not updating unwritable cache $cache_file"
  1.1585 +  fi
  1.1586 +fi
  1.1587 +rm -f confcache
  1.1588 +
  1.1589 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  1.1590 +
  1.1591 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  1.1592 +# Let make expand exec_prefix.
  1.1593 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  1.1594 +
  1.1595 +# Any assignment to VPATH causes Sun make to only execute
  1.1596 +# the first set of double-colon rules, so remove it if not needed.
  1.1597 +# If there is a colon in the path, we need to keep it.
  1.1598 +if test "x$srcdir" = x.; then
  1.1599 +  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
  1.1600 +fi
  1.1601 +
  1.1602 +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  1.1603 +
  1.1604 +DEFS=-DHAVE_CONFIG_H
  1.1605 +
  1.1606 +# Without the "./", some shells look in PATH for config.status.
  1.1607 +: ${CONFIG_STATUS=./config.status}
  1.1608 +
  1.1609 +echo creating $CONFIG_STATUS
  1.1610 +rm -f $CONFIG_STATUS
  1.1611 +cat > $CONFIG_STATUS <<EOF
  1.1612 +#! /bin/sh
  1.1613 +# Generated automatically by configure.
  1.1614 +# Run this file to recreate the current configuration.
  1.1615 +# This directory was configured as follows,
  1.1616 +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1.1617 +#
  1.1618 +# $0 $ac_configure_args
  1.1619 +#
  1.1620 +# Compiler output produced by configure, useful for debugging
  1.1621 +# configure, is in ./config.log if it exists.
  1.1622 +
  1.1623 +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  1.1624 +for ac_option
  1.1625 +do
  1.1626 +  case "\$ac_option" in
  1.1627 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  1.1628 +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  1.1629 +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  1.1630 +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  1.1631 +    echo "$CONFIG_STATUS generated by autoconf version 2.13"
  1.1632 +    exit 0 ;;
  1.1633 +  -help | --help | --hel | --he | --h)
  1.1634 +    echo "\$ac_cs_usage"; exit 0 ;;
  1.1635 +  *) echo "\$ac_cs_usage"; exit 1 ;;
  1.1636 +  esac
  1.1637 +done
  1.1638 +
  1.1639 +ac_given_srcdir=$srcdir
  1.1640 +ac_given_INSTALL="$INSTALL"
  1.1641 +
  1.1642 +trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  1.1643 +EOF
  1.1644 +cat >> $CONFIG_STATUS <<EOF
  1.1645 +
  1.1646 +# Protect against being on the right side of a sed subst in config.status.
  1.1647 +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  1.1648 + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  1.1649 +$ac_vpsub
  1.1650 +$extrasub
  1.1651 +s%@SHELL@%$SHELL%g
  1.1652 +s%@CFLAGS@%$CFLAGS%g
  1.1653 +s%@CPPFLAGS@%$CPPFLAGS%g
  1.1654 +s%@CXXFLAGS@%$CXXFLAGS%g
  1.1655 +s%@FFLAGS@%$FFLAGS%g
  1.1656 +s%@DEFS@%$DEFS%g
  1.1657 +s%@LDFLAGS@%$LDFLAGS%g
  1.1658 +s%@LIBS@%$LIBS%g
  1.1659 +s%@exec_prefix@%$exec_prefix%g
  1.1660 +s%@prefix@%$prefix%g
  1.1661 +s%@program_transform_name@%$program_transform_name%g
  1.1662 +s%@bindir@%$bindir%g
  1.1663 +s%@sbindir@%$sbindir%g
  1.1664 +s%@libexecdir@%$libexecdir%g
  1.1665 +s%@datadir@%$datadir%g
  1.1666 +s%@sysconfdir@%$sysconfdir%g
  1.1667 +s%@sharedstatedir@%$sharedstatedir%g
  1.1668 +s%@localstatedir@%$localstatedir%g
  1.1669 +s%@libdir@%$libdir%g
  1.1670 +s%@includedir@%$includedir%g
  1.1671 +s%@oldincludedir@%$oldincludedir%g
  1.1672 +s%@infodir@%$infodir%g
  1.1673 +s%@mandir@%$mandir%g
  1.1674 +s%@SET_MAKE@%$SET_MAKE%g
  1.1675 +s%@WITH_NSS@%$WITH_NSS%g
  1.1676 +s%@CC@%$CC%g
  1.1677 +s%@CPP@%$CPP%g
  1.1678 +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  1.1679 +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  1.1680 +s%@INSTALL_DATA@%$INSTALL_DATA%g
  1.1681 +s%@RANLIB@%$RANLIB%g
  1.1682 +s%@AR@%$AR%g
  1.1683 +s%@LD@%$LD%g
  1.1684 +s%@RM@%$RM%g
  1.1685 +s%@TAR@%$TAR%g
  1.1686 +s%@CC INSTALL RANLIB AR LD RM TAR@%$CC INSTALL RANLIB AR LD RM TAR%g
  1.1687 +s%@HAVE_NSPR_H@%$HAVE_NSPR_H%g
  1.1688 +s%@HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H@%$HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H%g
  1.1689 +s%@const@%$const%g
  1.1690 +s%@HAVE_MEMSET HAVE_STRLEN@%$HAVE_MEMSET HAVE_STRLEN%g
  1.1691 +
  1.1692 +CEOF
  1.1693 +EOF
  1.1694 +
  1.1695 +cat >> $CONFIG_STATUS <<\EOF
  1.1696 +
  1.1697 +# Split the substitutions into bite-sized pieces for seds with
  1.1698 +# small command number limits, like on Digital OSF/1 and HP-UX.
  1.1699 +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  1.1700 +ac_file=1 # Number of current file.
  1.1701 +ac_beg=1 # First line for current file.
  1.1702 +ac_end=$ac_max_sed_cmds # Line after last line for current file.
  1.1703 +ac_more_lines=:
  1.1704 +ac_sed_cmds=""
  1.1705 +while $ac_more_lines; do
  1.1706 +  if test $ac_beg -gt 1; then
  1.1707 +    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  1.1708 +  else
  1.1709 +    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  1.1710 +  fi
  1.1711 +  if test ! -s conftest.s$ac_file; then
  1.1712 +    ac_more_lines=false
  1.1713 +    rm -f conftest.s$ac_file
  1.1714 +  else
  1.1715 +    if test -z "$ac_sed_cmds"; then
  1.1716 +      ac_sed_cmds="sed -f conftest.s$ac_file"
  1.1717 +    else
  1.1718 +      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  1.1719 +    fi
  1.1720 +    ac_file=`expr $ac_file + 1`
  1.1721 +    ac_beg=$ac_end
  1.1722 +    ac_end=`expr $ac_end + $ac_max_sed_cmds`
  1.1723 +  fi
  1.1724 +done
  1.1725 +if test -z "$ac_sed_cmds"; then
  1.1726 +  ac_sed_cmds=cat
  1.1727 +fi
  1.1728 +EOF
  1.1729 +
  1.1730 +cat >> $CONFIG_STATUS <<EOF
  1.1731 +
  1.1732 +CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
  1.1733 +EOF
  1.1734 +cat >> $CONFIG_STATUS <<\EOF
  1.1735 +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  1.1736 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1.1737 +  case "$ac_file" in
  1.1738 +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1.1739 +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1.1740 +  *) ac_file_in="${ac_file}.in" ;;
  1.1741 +  esac
  1.1742 +
  1.1743 +  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  1.1744 +
  1.1745 +  # Remove last slash and all that follows it.  Not all systems have dirname.
  1.1746 +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1.1747 +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1.1748 +    # The file is in a subdirectory.
  1.1749 +    test ! -d "$ac_dir" && mkdir "$ac_dir"
  1.1750 +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  1.1751 +    # A "../" for each directory in $ac_dir_suffix.
  1.1752 +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  1.1753 +  else
  1.1754 +    ac_dir_suffix= ac_dots=
  1.1755 +  fi
  1.1756 +
  1.1757 +  case "$ac_given_srcdir" in
  1.1758 +  .)  srcdir=.
  1.1759 +      if test -z "$ac_dots"; then top_srcdir=.
  1.1760 +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  1.1761 +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  1.1762 +  *) # Relative path.
  1.1763 +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  1.1764 +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
  1.1765 +  esac
  1.1766 +
  1.1767 +  case "$ac_given_INSTALL" in
  1.1768 +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
  1.1769 +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  1.1770 +  esac
  1.1771 +
  1.1772 +  echo creating "$ac_file"
  1.1773 +  rm -f "$ac_file"
  1.1774 +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  1.1775 +  case "$ac_file" in
  1.1776 +  *Makefile*) ac_comsub="1i\\
  1.1777 +# $configure_input" ;;
  1.1778 +  *) ac_comsub= ;;
  1.1779 +  esac
  1.1780 +
  1.1781 +  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1.1782 +  sed -e "$ac_comsub
  1.1783 +s%@configure_input@%$configure_input%g
  1.1784 +s%@srcdir@%$srcdir%g
  1.1785 +s%@top_srcdir@%$top_srcdir%g
  1.1786 +s%@INSTALL@%$INSTALL%g
  1.1787 +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  1.1788 +fi; done
  1.1789 +rm -f conftest.s*
  1.1790 +
  1.1791 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  1.1792 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
  1.1793 +#
  1.1794 +# ac_d sets the value in "#define NAME VALUE" lines.
  1.1795 +ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
  1.1796 +ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
  1.1797 +ac_dC='\3'
  1.1798 +ac_dD='%g'
  1.1799 +# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  1.1800 +ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
  1.1801 +ac_uB='\([ 	]\)%\1#\2define\3'
  1.1802 +ac_uC=' '
  1.1803 +ac_uD='\4%g'
  1.1804 +# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  1.1805 +ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
  1.1806 +ac_eB='$%\1#\2define\3'
  1.1807 +ac_eC=' '
  1.1808 +ac_eD='%g'
  1.1809 +
  1.1810 +if test "${CONFIG_HEADERS+set}" != set; then
  1.1811 +EOF
  1.1812 +cat >> $CONFIG_STATUS <<EOF
  1.1813 +  CONFIG_HEADERS="config.h"
  1.1814 +EOF
  1.1815 +cat >> $CONFIG_STATUS <<\EOF
  1.1816 +fi
  1.1817 +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  1.1818 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  1.1819 +  case "$ac_file" in
  1.1820 +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  1.1821 +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  1.1822 +  *) ac_file_in="${ac_file}.in" ;;
  1.1823 +  esac
  1.1824 +
  1.1825 +  echo creating $ac_file
  1.1826 +
  1.1827 +  rm -f conftest.frag conftest.in conftest.out
  1.1828 +  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  1.1829 +  cat $ac_file_inputs > conftest.in
  1.1830 +
  1.1831 +EOF
  1.1832 +
  1.1833 +# Transform confdefs.h into a sed script conftest.vals that substitutes
  1.1834 +# the proper values into config.h.in to produce config.h.  And first:
  1.1835 +# Protect against being on the right side of a sed subst in config.status.
  1.1836 +# Protect against being in an unquoted here document in config.status.
  1.1837 +rm -f conftest.vals
  1.1838 +cat > conftest.hdr <<\EOF
  1.1839 +s/[\\&%]/\\&/g
  1.1840 +s%[\\$`]%\\&%g
  1.1841 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  1.1842 +s%ac_d%ac_u%gp
  1.1843 +s%ac_u%ac_e%gp
  1.1844 +EOF
  1.1845 +sed -n -f conftest.hdr confdefs.h > conftest.vals
  1.1846 +rm -f conftest.hdr
  1.1847 +
  1.1848 +# This sed command replaces #undef with comments.  This is necessary, for
  1.1849 +# example, in the case of _POSIX_SOURCE, which is predefined and required
  1.1850 +# on some systems where configure will not decide to define it.
  1.1851 +cat >> conftest.vals <<\EOF
  1.1852 +s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  1.1853 +EOF
  1.1854 +
  1.1855 +# Break up conftest.vals because some shells have a limit on
  1.1856 +# the size of here documents, and old seds have small limits too.
  1.1857 +
  1.1858 +rm -f conftest.tail
  1.1859 +while :
  1.1860 +do
  1.1861 +  ac_lines=`grep -c . conftest.vals`
  1.1862 +  # grep -c gives empty output for an empty file on some AIX systems.
  1.1863 +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  1.1864 +  # Write a limited-size here document to conftest.frag.
  1.1865 +  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  1.1866 +  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  1.1867 +  echo 'CEOF
  1.1868 +  sed -f conftest.frag conftest.in > conftest.out
  1.1869 +  rm -f conftest.in
  1.1870 +  mv conftest.out conftest.in
  1.1871 +' >> $CONFIG_STATUS
  1.1872 +  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  1.1873 +  rm -f conftest.vals
  1.1874 +  mv conftest.tail conftest.vals
  1.1875 +done
  1.1876 +rm -f conftest.vals
  1.1877 +
  1.1878 +cat >> $CONFIG_STATUS <<\EOF
  1.1879 +  rm -f conftest.frag conftest.h
  1.1880 +  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  1.1881 +  cat conftest.in >> conftest.h
  1.1882 +  rm -f conftest.in
  1.1883 +  if cmp -s $ac_file conftest.h 2>/dev/null; then
  1.1884 +    echo "$ac_file is unchanged"
  1.1885 +    rm -f conftest.h
  1.1886 +  else
  1.1887 +    # Remove last slash and all that follows it.  Not all systems have dirname.
  1.1888 +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  1.1889 +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  1.1890 +      # The file is in a subdirectory.
  1.1891 +      test ! -d "$ac_dir" && mkdir "$ac_dir"
  1.1892 +    fi
  1.1893 +    rm -f $ac_file
  1.1894 +    mv conftest.h $ac_file
  1.1895 +  fi
  1.1896 +fi; done
  1.1897 +
  1.1898 +EOF
  1.1899 +cat >> $CONFIG_STATUS <<EOF
  1.1900 +
  1.1901 +EOF
  1.1902 +cat >> $CONFIG_STATUS <<\EOF
  1.1903 +echo timestamp > stamp-h
  1.1904 +exit 0
  1.1905 +EOF
  1.1906 +chmod +x $CONFIG_STATUS
  1.1907 +rm -fr confdefs* $ac_clean_files
  1.1908 +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  1.1909 +

mercurial