PageRenderTime 74ms CodeModel.GetById 9ms app.highlight 53ms RepoModel.GetById 1ms app.codeStats 1ms

/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

Large files files are truncated, but you can click here to view the full file

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

Large files files are truncated, but you can click here to view the full file