michael@0: #! /bin/sh michael@0: michael@0: # Guess values for system-dependent variables and create Makefiles. michael@0: # Generated automatically using autoconf version 2.13 michael@0: # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. michael@0: # michael@0: # This configure script is free software; the Free Software Foundation michael@0: # gives unlimited permission to copy, distribute and modify it. michael@0: michael@0: # Defaults: michael@0: ac_help= michael@0: ac_default_prefix=/usr/local michael@0: # Any additions from configure.in: michael@0: ac_help="$ac_help michael@0: --with-nspr[=path] specify location of NSPR" michael@0: ac_help="$ac_help michael@0: --with-nss-dist[=path] specify path to NSS dist directory" michael@0: ac_help="$ac_help michael@0: --with-nss-hdrs[=path] or, specify path to installed NSS headers" michael@0: ac_help="$ac_help michael@0: --with-rsa-hdrs[=path] if not using NSS, specify path to RSA headers" michael@0: ac_help="$ac_help michael@0: --disable-debug default is enabled" michael@0: michael@0: # Initialize some variables set by options. michael@0: # The variables have the same names as the options, with michael@0: # dashes changed to underlines. michael@0: build=NONE michael@0: cache_file=./config.cache michael@0: exec_prefix=NONE michael@0: host=NONE michael@0: no_create= michael@0: nonopt=NONE michael@0: no_recursion= michael@0: prefix=NONE michael@0: program_prefix=NONE michael@0: program_suffix=NONE michael@0: program_transform_name=s,x,x, michael@0: silent= michael@0: site= michael@0: srcdir= michael@0: target=NONE michael@0: verbose= michael@0: x_includes=NONE michael@0: x_libraries=NONE michael@0: bindir='${exec_prefix}/bin' michael@0: sbindir='${exec_prefix}/sbin' michael@0: libexecdir='${exec_prefix}/libexec' michael@0: datadir='${prefix}/share' michael@0: sysconfdir='${prefix}/etc' michael@0: sharedstatedir='${prefix}/com' michael@0: localstatedir='${prefix}/var' michael@0: libdir='${exec_prefix}/lib' michael@0: includedir='${prefix}/include' michael@0: oldincludedir='/usr/include' michael@0: infodir='${prefix}/info' michael@0: mandir='${prefix}/man' michael@0: michael@0: # Initialize some other variables. michael@0: subdirs= michael@0: MFLAGS= MAKEFLAGS= michael@0: SHELL=${CONFIG_SHELL-/bin/sh} michael@0: # Maximum number of lines to put in a shell here document. michael@0: ac_max_here_lines=12 michael@0: michael@0: ac_prev= michael@0: for ac_option michael@0: do michael@0: michael@0: # If the previous option needs an argument, assign it. michael@0: if test -n "$ac_prev"; then michael@0: eval "$ac_prev=\$ac_option" michael@0: ac_prev= michael@0: continue michael@0: fi michael@0: michael@0: case "$ac_option" in michael@0: -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; michael@0: *) ac_optarg= ;; michael@0: esac michael@0: michael@0: # Accept the important Cygnus configure options, so we can diagnose typos. michael@0: michael@0: case "$ac_option" in michael@0: michael@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) michael@0: ac_prev=bindir ;; michael@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) michael@0: bindir="$ac_optarg" ;; michael@0: michael@0: -build | --build | --buil | --bui | --bu) michael@0: ac_prev=build ;; michael@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) michael@0: build="$ac_optarg" ;; michael@0: michael@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ michael@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) michael@0: ac_prev=cache_file ;; michael@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ michael@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) michael@0: cache_file="$ac_optarg" ;; michael@0: michael@0: -datadir | --datadir | --datadi | --datad | --data | --dat | --da) michael@0: ac_prev=datadir ;; michael@0: -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ michael@0: | --da=*) michael@0: datadir="$ac_optarg" ;; michael@0: michael@0: -disable-* | --disable-*) michael@0: ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` michael@0: # Reject names that are not valid shell variable names. michael@0: if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then michael@0: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } michael@0: fi michael@0: ac_feature=`echo $ac_feature| sed 's/-/_/g'` michael@0: eval "enable_${ac_feature}=no" ;; michael@0: michael@0: -enable-* | --enable-*) michael@0: ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` michael@0: # Reject names that are not valid shell variable names. michael@0: if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then michael@0: { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } michael@0: fi michael@0: ac_feature=`echo $ac_feature| sed 's/-/_/g'` michael@0: case "$ac_option" in michael@0: *=*) ;; michael@0: *) ac_optarg=yes ;; michael@0: esac michael@0: eval "enable_${ac_feature}='$ac_optarg'" ;; michael@0: michael@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ michael@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ michael@0: | --exec | --exe | --ex) michael@0: ac_prev=exec_prefix ;; michael@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ michael@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ michael@0: | --exec=* | --exe=* | --ex=*) michael@0: exec_prefix="$ac_optarg" ;; michael@0: michael@0: -gas | --gas | --ga | --g) michael@0: # Obsolete; use --with-gas. michael@0: with_gas=yes ;; michael@0: michael@0: -help | --help | --hel | --he) michael@0: # Omit some internal or obsolete options to make the list less imposing. michael@0: # This message is too long to be a string in the A/UX 3.1 sh. michael@0: cat << EOF michael@0: Usage: configure [options] [host] michael@0: Options: [defaults in brackets after descriptions] michael@0: Configuration: michael@0: --cache-file=FILE cache test results in FILE michael@0: --help print this message michael@0: --no-create do not create output files michael@0: --quiet, --silent do not print \`checking...' messages michael@0: --version print the version of autoconf that created configure michael@0: Directory and file names: michael@0: --prefix=PREFIX install architecture-independent files in PREFIX michael@0: [$ac_default_prefix] michael@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX michael@0: [same as prefix] michael@0: --bindir=DIR user executables in DIR [EPREFIX/bin] michael@0: --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] michael@0: --libexecdir=DIR program executables in DIR [EPREFIX/libexec] michael@0: --datadir=DIR read-only architecture-independent data in DIR michael@0: [PREFIX/share] michael@0: --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] michael@0: --sharedstatedir=DIR modifiable architecture-independent data in DIR michael@0: [PREFIX/com] michael@0: --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] michael@0: --libdir=DIR object code libraries in DIR [EPREFIX/lib] michael@0: --includedir=DIR C header files in DIR [PREFIX/include] michael@0: --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] michael@0: --infodir=DIR info documentation in DIR [PREFIX/info] michael@0: --mandir=DIR man documentation in DIR [PREFIX/man] michael@0: --srcdir=DIR find the sources in DIR [configure dir or ..] michael@0: --program-prefix=PREFIX prepend PREFIX to installed program names michael@0: --program-suffix=SUFFIX append SUFFIX to installed program names michael@0: --program-transform-name=PROGRAM michael@0: run sed PROGRAM on installed program names michael@0: EOF michael@0: cat << EOF michael@0: Host type: michael@0: --build=BUILD configure for building on BUILD [BUILD=HOST] michael@0: --host=HOST configure for HOST [guessed] michael@0: --target=TARGET configure for TARGET [TARGET=HOST] michael@0: Features and packages: michael@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) michael@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] michael@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] michael@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) michael@0: --x-includes=DIR X include files are in DIR michael@0: --x-libraries=DIR X library files are in DIR michael@0: EOF michael@0: if test -n "$ac_help"; then michael@0: echo "--enable and --with options recognized:$ac_help" michael@0: fi michael@0: exit 0 ;; michael@0: michael@0: -host | --host | --hos | --ho) michael@0: ac_prev=host ;; michael@0: -host=* | --host=* | --hos=* | --ho=*) michael@0: host="$ac_optarg" ;; michael@0: michael@0: -includedir | --includedir | --includedi | --included | --include \ michael@0: | --includ | --inclu | --incl | --inc) michael@0: ac_prev=includedir ;; michael@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ michael@0: | --includ=* | --inclu=* | --incl=* | --inc=*) michael@0: includedir="$ac_optarg" ;; michael@0: michael@0: -infodir | --infodir | --infodi | --infod | --info | --inf) michael@0: ac_prev=infodir ;; michael@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) michael@0: infodir="$ac_optarg" ;; michael@0: michael@0: -libdir | --libdir | --libdi | --libd) michael@0: ac_prev=libdir ;; michael@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) michael@0: libdir="$ac_optarg" ;; michael@0: michael@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ michael@0: | --libexe | --libex | --libe) michael@0: ac_prev=libexecdir ;; michael@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ michael@0: | --libexe=* | --libex=* | --libe=*) michael@0: libexecdir="$ac_optarg" ;; michael@0: michael@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ michael@0: | --localstate | --localstat | --localsta | --localst \ michael@0: | --locals | --local | --loca | --loc | --lo) michael@0: ac_prev=localstatedir ;; michael@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ michael@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* \ michael@0: | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) michael@0: localstatedir="$ac_optarg" ;; michael@0: michael@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) michael@0: ac_prev=mandir ;; michael@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) michael@0: mandir="$ac_optarg" ;; michael@0: michael@0: -nfp | --nfp | --nf) michael@0: # Obsolete; use --without-fp. michael@0: with_fp=no ;; michael@0: michael@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ michael@0: | --no-cr | --no-c) michael@0: no_create=yes ;; michael@0: michael@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ michael@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) michael@0: no_recursion=yes ;; michael@0: michael@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ michael@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ michael@0: | --oldin | --oldi | --old | --ol | --o) michael@0: ac_prev=oldincludedir ;; michael@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ michael@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ michael@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) michael@0: oldincludedir="$ac_optarg" ;; michael@0: michael@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) michael@0: ac_prev=prefix ;; michael@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) michael@0: prefix="$ac_optarg" ;; michael@0: michael@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ michael@0: | --program-pre | --program-pr | --program-p) michael@0: ac_prev=program_prefix ;; michael@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ michael@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) michael@0: program_prefix="$ac_optarg" ;; michael@0: michael@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ michael@0: | --program-suf | --program-su | --program-s) michael@0: ac_prev=program_suffix ;; michael@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ michael@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) michael@0: program_suffix="$ac_optarg" ;; michael@0: michael@0: -program-transform-name | --program-transform-name \ michael@0: | --program-transform-nam | --program-transform-na \ michael@0: | --program-transform-n | --program-transform- \ michael@0: | --program-transform | --program-transfor \ michael@0: | --program-transfo | --program-transf \ michael@0: | --program-trans | --program-tran \ michael@0: | --progr-tra | --program-tr | --program-t) michael@0: ac_prev=program_transform_name ;; michael@0: -program-transform-name=* | --program-transform-name=* \ michael@0: | --program-transform-nam=* | --program-transform-na=* \ michael@0: | --program-transform-n=* | --program-transform-=* \ michael@0: | --program-transform=* | --program-transfor=* \ michael@0: | --program-transfo=* | --program-transf=* \ michael@0: | --program-trans=* | --program-tran=* \ michael@0: | --progr-tra=* | --program-tr=* | --program-t=*) michael@0: program_transform_name="$ac_optarg" ;; michael@0: michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: silent=yes ;; michael@0: michael@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) michael@0: ac_prev=sbindir ;; michael@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ michael@0: | --sbi=* | --sb=*) michael@0: sbindir="$ac_optarg" ;; michael@0: michael@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ michael@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ michael@0: | --sharedst | --shareds | --shared | --share | --shar \ michael@0: | --sha | --sh) michael@0: ac_prev=sharedstatedir ;; michael@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ michael@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ michael@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ michael@0: | --sha=* | --sh=*) michael@0: sharedstatedir="$ac_optarg" ;; michael@0: michael@0: -site | --site | --sit) michael@0: ac_prev=site ;; michael@0: -site=* | --site=* | --sit=*) michael@0: site="$ac_optarg" ;; michael@0: michael@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) michael@0: ac_prev=srcdir ;; michael@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) michael@0: srcdir="$ac_optarg" ;; michael@0: michael@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ michael@0: | --syscon | --sysco | --sysc | --sys | --sy) michael@0: ac_prev=sysconfdir ;; michael@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ michael@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) michael@0: sysconfdir="$ac_optarg" ;; michael@0: michael@0: -target | --target | --targe | --targ | --tar | --ta | --t) michael@0: ac_prev=target ;; michael@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) michael@0: target="$ac_optarg" ;; michael@0: michael@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) michael@0: verbose=yes ;; michael@0: michael@0: -version | --version | --versio | --versi | --vers) michael@0: echo "configure generated by autoconf version 2.13" michael@0: exit 0 ;; michael@0: michael@0: -with-* | --with-*) michael@0: ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` michael@0: # Reject names that are not valid shell variable names. michael@0: if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then michael@0: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } michael@0: fi michael@0: ac_package=`echo $ac_package| sed 's/-/_/g'` michael@0: case "$ac_option" in michael@0: *=*) ;; michael@0: *) ac_optarg=yes ;; michael@0: esac michael@0: eval "with_${ac_package}='$ac_optarg'" ;; michael@0: michael@0: -without-* | --without-*) michael@0: ac_package=`echo $ac_option|sed -e 's/-*without-//'` michael@0: # Reject names that are not valid shell variable names. michael@0: if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then michael@0: { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } michael@0: fi michael@0: ac_package=`echo $ac_package| sed 's/-/_/g'` michael@0: eval "with_${ac_package}=no" ;; michael@0: michael@0: --x) michael@0: # Obsolete; use --with-x. michael@0: with_x=yes ;; michael@0: michael@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ michael@0: | --x-incl | --x-inc | --x-in | --x-i) michael@0: ac_prev=x_includes ;; michael@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ michael@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) michael@0: x_includes="$ac_optarg" ;; michael@0: michael@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ michael@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) michael@0: ac_prev=x_libraries ;; michael@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ michael@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) michael@0: x_libraries="$ac_optarg" ;; michael@0: michael@0: -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } michael@0: ;; michael@0: michael@0: *) michael@0: if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then michael@0: echo "configure: warning: $ac_option: invalid host type" 1>&2 michael@0: fi michael@0: if test "x$nonopt" != xNONE; then michael@0: { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } michael@0: fi michael@0: nonopt="$ac_option" michael@0: ;; michael@0: michael@0: esac michael@0: done michael@0: michael@0: if test -n "$ac_prev"; then michael@0: { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } michael@0: fi michael@0: michael@0: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 michael@0: michael@0: # File descriptor usage: michael@0: # 0 standard input michael@0: # 1 file creation michael@0: # 2 errors and warnings michael@0: # 3 some systems may open it to /dev/tty michael@0: # 4 used on the Kubota Titan michael@0: # 6 checking for... messages and results michael@0: # 5 compiler messages saved in config.log michael@0: if test "$silent" = yes; then michael@0: exec 6>/dev/null michael@0: else michael@0: exec 6>&1 michael@0: fi michael@0: exec 5>./config.log michael@0: michael@0: echo "\ michael@0: This file contains any messages produced by compilers while michael@0: running configure, to aid debugging if configure makes a mistake. michael@0: " 1>&5 michael@0: michael@0: # Strip out --no-create and --no-recursion so they do not pile up. michael@0: # Also quote any args containing shell metacharacters. michael@0: ac_configure_args= michael@0: for ac_arg michael@0: do michael@0: case "$ac_arg" in michael@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ michael@0: | --no-cr | --no-c) ;; michael@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ michael@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; michael@0: *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) michael@0: ac_configure_args="$ac_configure_args '$ac_arg'" ;; michael@0: *) ac_configure_args="$ac_configure_args $ac_arg" ;; michael@0: esac michael@0: done michael@0: michael@0: # NLS nuisances. michael@0: # Only set these to C if already set. These must not be set unconditionally michael@0: # because not all systems understand e.g. LANG=C (notably SCO). michael@0: # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! michael@0: # Non-C LC_CTYPE values break the ctype check. michael@0: if test "${LANG+set}" = set; then LANG=C; export LANG; fi michael@0: if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi michael@0: if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi michael@0: if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi michael@0: michael@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. michael@0: rm -rf conftest* confdefs.h michael@0: # AIX cpp loses on an empty file, so make sure it contains at least a newline. michael@0: echo > confdefs.h michael@0: michael@0: # A filename unique to this package, relative to the directory that michael@0: # configure is in, which we can look for to find out if srcdir is correct. michael@0: ac_unique_file=trivial.c michael@0: michael@0: # Find the source files, if location was not specified. michael@0: if test -z "$srcdir"; then michael@0: ac_srcdir_defaulted=yes michael@0: # Try the directory containing this script, then its parent. michael@0: ac_prog=$0 michael@0: ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` michael@0: test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. michael@0: srcdir=$ac_confdir michael@0: if test ! -r $srcdir/$ac_unique_file; then michael@0: srcdir=.. michael@0: fi michael@0: else michael@0: ac_srcdir_defaulted=no michael@0: fi michael@0: if test ! -r $srcdir/$ac_unique_file; then michael@0: if test "$ac_srcdir_defaulted" = yes; then michael@0: { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } michael@0: else michael@0: { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } michael@0: fi michael@0: fi michael@0: srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` michael@0: michael@0: # Prefer explicitly selected file to automatically selected ones. michael@0: if test -z "$CONFIG_SITE"; then michael@0: if test "x$prefix" != xNONE; then michael@0: CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" michael@0: else michael@0: CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" michael@0: fi michael@0: fi michael@0: for ac_site_file in $CONFIG_SITE; do michael@0: if test -r "$ac_site_file"; then michael@0: echo "loading site script $ac_site_file" michael@0: . "$ac_site_file" michael@0: fi michael@0: done michael@0: michael@0: if test -r "$cache_file"; then michael@0: echo "loading cache $cache_file" michael@0: . $cache_file michael@0: else michael@0: echo "creating cache $cache_file" michael@0: > $cache_file michael@0: fi michael@0: michael@0: ac_ext=c michael@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' michael@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' michael@0: cross_compiling=$ac_cv_prog_cc_cross michael@0: michael@0: ac_exeext= michael@0: ac_objext=o michael@0: if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then michael@0: # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. michael@0: if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then michael@0: ac_n= ac_c=' michael@0: ' ac_t=' ' michael@0: else michael@0: ac_n=-n ac_c= ac_t= michael@0: fi michael@0: else michael@0: ac_n= ac_c='\c' ac_t= michael@0: fi michael@0: michael@0: michael@0: michael@0: echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 michael@0: echo "configure:537: checking whether ${MAKE-make} sets \${MAKE}" >&5 michael@0: set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` michael@0: if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftestmake <<\EOF michael@0: all: michael@0: @echo 'ac_maketemp="${MAKE}"' michael@0: EOF michael@0: # GNU make sometimes prints "make[1]: Entering...", which would confuse us. michael@0: eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` michael@0: if test -n "$ac_maketemp"; then michael@0: eval ac_cv_prog_make_${ac_make}_set=yes michael@0: else michael@0: eval ac_cv_prog_make_${ac_make}_set=no michael@0: fi michael@0: rm -f conftestmake michael@0: fi michael@0: if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: SET_MAKE= michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: SET_MAKE="MAKE=${MAKE-make}" michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-nspr or --without-nspr was given. michael@0: if test "${with_nspr+set}" = set; then michael@0: withval="$with_nspr" michael@0: case "$withval" in michael@0: no) michael@0: { echo "configure: error: NSPR is required" 1>&2; exit 1; };; michael@0: yes) michael@0: NSPR_INCLUDE="$includedir" michael@0: NSPR_LIBPATH="$libdir" michael@0: ;; michael@0: *) michael@0: NSPR_INCLUDE="$withval/include" michael@0: NSPR_LIBPATH="$withval/lib" michael@0: ;; michael@0: esac michael@0: else michael@0: NSPR_INCLUDE="$includedir" michael@0: NSPR_LIBPATH="$libdir" michael@0: michael@0: fi michael@0: michael@0: michael@0: NSPR_CFLAGS="-I$NSPR_INCLUDE" michael@0: NSPR_LDFLAGS="-L$NSPR_LIBPATH -lnspr4 -lplc4 -lplds4" michael@0: michael@0: michael@0: # Check whether --with-nss-dist or --without-nss-dist was given. michael@0: if test "${with_nss_dist+set}" = set; then michael@0: withval="$with_nss_dist" michael@0: case "$withval" in michael@0: no) michael@0: NSS_CFLAGS="" michael@0: nss="0" michael@0: ;; michael@0: yes) michael@0: { echo "configure: error: You have to specify a path for --with-nss-dist" 1>&2; exit 1; } michael@0: ;; michael@0: *) michael@0: NSS_CFLAGS="-I$withval/private/security -I$withval/public/security" michael@0: nss="1" michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-nss-hdrs or --without-nss-hdrs was given. michael@0: if test "${with_nss_hdrs+set}" = set; then michael@0: withval="$with_nss_hdrs" michael@0: if test "x$nss" != "x"; then michael@0: { echo "configure: error: Only specify --with-nss-hdrs or --with-nss-dist" 1>&2; exit 1; } michael@0: fi michael@0: case "$withval" in michael@0: no) michael@0: NSS_CFLAGS="" michael@0: nss="0" michael@0: ;; michael@0: yes) michael@0: NSS_CFLAGS="-I$includedir" michael@0: nss="1" michael@0: ;; michael@0: *) michael@0: NSS_CFLAGS="-I$withval" michael@0: nss="1" michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-rsa-hdrs or --without-rsa-hdrs was given. michael@0: if test "${with_rsa_hdrs+set}" = set; then michael@0: withval="$with_rsa_hdrs" michael@0: if test "x$nss" != "x"; then michael@0: { echo "configure: error: Only specify --with-nss-{hdrs" 1>&2; exit 1; } michael@0: fi michael@0: case "$withval" in michael@0: no) michael@0: rsa="0" michael@0: ;; michael@0: yes) michael@0: RSA_INCLUDE="$includedir" michael@0: rsa="1" michael@0: ;; michael@0: *) michael@0: RSA_INCLUDE="$withval" michael@0: rsa="1" michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: if test "x$nss" = "x"; then michael@0: if test "x$rsa" = "x"; then michael@0: RSA_INCLUDE="$includedir" michael@0: fi michael@0: RSA_CFLAGS="-I$RSA_INCLUDE" michael@0: fi michael@0: michael@0: if test "x$nss" = "x1"; then michael@0: cat >> confdefs.h <<\EOF michael@0: #define WITH_NSS 1 michael@0: EOF michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: if test "x$rsa" = "x1"; then michael@0: RSA_CFLAGS-"-I$RSA_INCLUDE" michael@0: fi michael@0: michael@0: # Check whether --enable-debug or --disable-debug was given. michael@0: if test "${enable_debug+set}" = set; then michael@0: enableval="$enable_debug" michael@0: case "$enableval" in michael@0: no) michael@0: DEBUG_CFLAGS="";; michael@0: yes) michael@0: DEBUG_CFLAGS="-DDEBUG";; michael@0: *) michael@0: DEBUG_CFLAGS="-DDEBUG";; michael@0: esac michael@0: else michael@0: DEBUG_CFLAGS="-DDEBUG" michael@0: fi michael@0: michael@0: michael@0: # Extract the first word of "gcc", so it can be a program name with args. michael@0: set dummy gcc; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:693: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_CC="gcc" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: CC="$ac_cv_prog_CC" michael@0: if test -n "$CC"; then michael@0: echo "$ac_t""$CC" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: if test -z "$CC"; then michael@0: # Extract the first word of "cc", so it can be a program name with args. michael@0: set dummy cc; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:723: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_prog_rejected=no michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then michael@0: ac_prog_rejected=yes michael@0: continue michael@0: fi michael@0: ac_cv_prog_CC="cc" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: if test $ac_prog_rejected = yes; then michael@0: # We found a bogon in the path, so make sure we never use it. michael@0: set dummy $ac_cv_prog_CC michael@0: shift michael@0: if test $# -gt 0; then michael@0: # We chose a different compiler from the bogus one. michael@0: # However, it has the same basename, so the bogon will be chosen michael@0: # first if we set CC to just the basename; use the full file name. michael@0: shift michael@0: set dummy "$ac_dir/$ac_word" "$@" michael@0: shift michael@0: ac_cv_prog_CC="$@" michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: CC="$ac_cv_prog_CC" michael@0: if test -n "$CC"; then michael@0: echo "$ac_t""$CC" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: if test -z "$CC"; then michael@0: case "`uname -s`" in michael@0: *win32* | *WIN32*) michael@0: # Extract the first word of "cl", so it can be a program name with args. michael@0: set dummy cl; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:774: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_CC="cl" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: CC="$ac_cv_prog_CC" michael@0: if test -n "$CC"; then michael@0: echo "$ac_t""$CC" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: ;; michael@0: esac michael@0: fi michael@0: test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } michael@0: fi michael@0: michael@0: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 michael@0: echo "configure:806: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 michael@0: michael@0: ac_ext=c michael@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' michael@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' michael@0: cross_compiling=$ac_cv_prog_cc_cross michael@0: michael@0: cat > conftest.$ac_ext << EOF michael@0: michael@0: #line 817 "configure" michael@0: #include "confdefs.h" michael@0: michael@0: main(){return(0);} michael@0: EOF michael@0: if { (eval echo configure:822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then michael@0: ac_cv_prog_cc_works=yes michael@0: # If we can't run a trivial program, we are probably using a cross compiler. michael@0: if (./conftest; exit) 2>/dev/null; then michael@0: ac_cv_prog_cc_cross=no michael@0: else michael@0: ac_cv_prog_cc_cross=yes michael@0: fi michael@0: else michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: ac_cv_prog_cc_works=no michael@0: fi michael@0: rm -fr conftest* michael@0: ac_ext=c michael@0: # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' michael@0: ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' michael@0: cross_compiling=$ac_cv_prog_cc_cross michael@0: michael@0: echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 michael@0: if test $ac_cv_prog_cc_works = no; then michael@0: { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } michael@0: fi michael@0: echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 michael@0: echo "configure:848: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 michael@0: echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 michael@0: cross_compiling=$ac_cv_prog_cc_cross michael@0: michael@0: echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 michael@0: echo "configure:853: checking whether we are using GNU C" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then michael@0: ac_cv_prog_gcc=yes michael@0: else michael@0: ac_cv_prog_gcc=no michael@0: fi michael@0: fi michael@0: michael@0: echo "$ac_t""$ac_cv_prog_gcc" 1>&6 michael@0: michael@0: if test $ac_cv_prog_gcc = yes; then michael@0: GCC=yes michael@0: else michael@0: GCC= michael@0: fi michael@0: michael@0: ac_test_CFLAGS="${CFLAGS+set}" michael@0: ac_save_CFLAGS="$CFLAGS" michael@0: CFLAGS= michael@0: echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 michael@0: echo "configure:881: checking whether ${CC-cc} accepts -g" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: echo 'void f(){}' > conftest.c michael@0: if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then michael@0: ac_cv_prog_cc_g=yes michael@0: else michael@0: ac_cv_prog_cc_g=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 michael@0: if test "$ac_test_CFLAGS" = set; then michael@0: CFLAGS="$ac_save_CFLAGS" michael@0: elif test $ac_cv_prog_cc_g = yes; then michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-g -O2" michael@0: else michael@0: CFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-O2" michael@0: else michael@0: CFLAGS= michael@0: fi michael@0: fi michael@0: michael@0: echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 michael@0: echo "configure:913: checking how to run the C preprocessor" >&5 michael@0: # On Suns, sometimes $CPP names a directory. michael@0: if test -n "$CPP" && test -d "$CPP"; then michael@0: CPP= michael@0: fi michael@0: if test -z "$CPP"; then michael@0: if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: # This must be in double quotes, not single quotes, because CPP may get michael@0: # substituted into the Makefile and "${CC-cc}" will confuse make. michael@0: CPP="${CC-cc} -E" michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. michael@0: cat > conftest.$ac_ext < michael@0: Syntax Error michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: : michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: CPP="${CC-cc} -E -traditional-cpp" michael@0: cat > conftest.$ac_ext < michael@0: Syntax Error michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:951: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: : michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: CPP="${CC-cc} -nologo -E" michael@0: cat > conftest.$ac_ext < michael@0: Syntax Error michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:968: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: : michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: CPP=/lib/cpp michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: rm -f conftest* michael@0: ac_cv_prog_CPP="$CPP" michael@0: fi michael@0: CPP="$ac_cv_prog_CPP" michael@0: else michael@0: ac_cv_prog_CPP="$CPP" michael@0: fi michael@0: echo "$ac_t""$CPP" 1>&6 michael@0: michael@0: ac_aux_dir= michael@0: for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do michael@0: if test -f $ac_dir/install-sh; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install-sh -c" michael@0: break michael@0: elif test -f $ac_dir/install.sh; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install.sh -c" michael@0: break michael@0: fi michael@0: done michael@0: if test -z "$ac_aux_dir"; then michael@0: { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } michael@0: fi michael@0: ac_config_guess=$ac_aux_dir/config.guess michael@0: ac_config_sub=$ac_aux_dir/config.sub michael@0: ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. michael@0: michael@0: # Find a good install program. We prefer a C program (faster), michael@0: # so one script is as good as another. But avoid the broken or michael@0: # incompatible versions: michael@0: # SysV /etc/install, /usr/sbin/install michael@0: # SunOS /usr/etc/install michael@0: # IRIX /sbin/install michael@0: # AIX /bin/install michael@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag michael@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args michael@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" michael@0: # ./install, which can be erroneously created by make from ./install.sh. michael@0: echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 michael@0: echo "configure:1023: checking for a BSD compatible install" >&5 michael@0: if test -z "$INSTALL"; then michael@0: if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" michael@0: for ac_dir in $PATH; do michael@0: # Account for people who put trailing slashes in PATH elements. michael@0: case "$ac_dir/" in michael@0: /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; michael@0: *) michael@0: # OSF1 and SCO ODT 3.0 have their own names for install. michael@0: # Don't use installbsd from OSF since it installs stuff as root michael@0: # by default. michael@0: for ac_prog in ginstall scoinst install; do michael@0: if test -f $ac_dir/$ac_prog; then michael@0: if test $ac_prog = install && michael@0: grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then michael@0: # AIX install. It has an incompatible calling convention. michael@0: : michael@0: else michael@0: ac_cv_path_install="$ac_dir/$ac_prog -c" michael@0: break 2 michael@0: fi michael@0: fi michael@0: done michael@0: ;; michael@0: esac michael@0: done michael@0: IFS="$ac_save_IFS" michael@0: michael@0: fi michael@0: if test "${ac_cv_path_install+set}" = set; then michael@0: INSTALL="$ac_cv_path_install" michael@0: else michael@0: # As a last resort, use the slow shell script. We don't cache a michael@0: # path for INSTALL within a source directory, because that will michael@0: # break other packages using the cache if that directory is michael@0: # removed, or if the path is relative. michael@0: INSTALL="$ac_install_sh" michael@0: fi michael@0: fi michael@0: echo "$ac_t""$INSTALL" 1>&6 michael@0: michael@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. michael@0: # It thinks the first close brace ends the variable substitution. michael@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' michael@0: michael@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' michael@0: michael@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' michael@0: michael@0: # Extract the first word of "ranlib", so it can be a program name with args. michael@0: set dummy ranlib; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:1078: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$RANLIB"; then michael@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_RANLIB="ranlib" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" michael@0: fi michael@0: fi michael@0: RANLIB="$ac_cv_prog_RANLIB" michael@0: if test -n "$RANLIB"; then michael@0: echo "$ac_t""$RANLIB" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: # Extract the first word of "ar", so it can be a program name with args. michael@0: set dummy ar; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:1108: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$AR"; then michael@0: ac_cv_prog_AR="$AR" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_AR="ar" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: AR="$ac_cv_prog_AR" michael@0: if test -n "$AR"; then michael@0: echo "$ac_t""$AR" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: # Extract the first word of "ld", so it can be a program name with args. michael@0: set dummy ld; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:1137: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$LD"; then michael@0: ac_cv_prog_LD="$LD" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_LD="ld" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: LD="$ac_cv_prog_LD" michael@0: if test -n "$LD"; then michael@0: echo "$ac_t""$LD" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: # Extract the first word of "rm", so it can be a program name with args. michael@0: set dummy rm; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:1166: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_RM'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$RM"; then michael@0: ac_cv_prog_RM="$RM" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_RM="rm" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: RM="$ac_cv_prog_RM" michael@0: if test -n "$RM"; then michael@0: echo "$ac_t""$RM" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: # Extract the first word of "tar", so it can be a program name with args. michael@0: set dummy tar; ac_word=$2 michael@0: echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 michael@0: echo "configure:1195: checking for $ac_word" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_prog_TAR'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: if test -n "$TAR"; then michael@0: ac_cv_prog_TAR="$TAR" # Let the user override the test. michael@0: else michael@0: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" michael@0: ac_dummy="$PATH" michael@0: for ac_dir in $ac_dummy; do michael@0: test -z "$ac_dir" && ac_dir=. michael@0: if test -f $ac_dir/$ac_word; then michael@0: ac_cv_prog_TAR="tar" michael@0: break michael@0: fi michael@0: done michael@0: IFS="$ac_save_ifs" michael@0: fi michael@0: fi michael@0: TAR="$ac_cv_prog_TAR" michael@0: if test -n "$TAR"; then michael@0: echo "$ac_t""$TAR" 1>&6 michael@0: else michael@0: echo "$ac_t""no" 1>&6 michael@0: fi michael@0: michael@0: michael@0: michael@0: CPPFLAGS="$CFLAGS $NSPR_CFLAGS $NSS_CFLAGS $RSA_CFLAGS $DEBUG_CFLAGS" michael@0: LIBS="$NSPR_LDFLAGS $LIBS" michael@0: michael@0: michael@0: michael@0: echo $ac_n "checking for PR_Init in -lnspr4""... $ac_c" 1>&6 michael@0: echo "configure:1229: checking for PR_Init in -lnspr4" >&5 michael@0: ac_lib_var=`echo nspr4'_'PR_Init | sed 'y%./+-%__p_%'` michael@0: if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: ac_save_LIBS="$LIBS" michael@0: LIBS="-lnspr4 $LIBS" michael@0: cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then michael@0: rm -rf conftest* michael@0: eval "ac_cv_lib_$ac_lib_var=yes" michael@0: else michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: eval "ac_cv_lib_$ac_lib_var=no" michael@0: fi michael@0: rm -f conftest* michael@0: LIBS="$ac_save_LIBS" michael@0: michael@0: fi michael@0: if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: ac_tr_lib=HAVE_LIB`echo nspr4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \ michael@0: -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'` michael@0: cat >> confdefs.h <&6 michael@0: fi michael@0: michael@0: michael@0: for ac_hdr in nspr.h michael@0: do michael@0: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` michael@0: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 michael@0: echo "configure:1280: checking for $ac_hdr" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.$ac_ext < michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:1290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=yes" michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=no" michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` michael@0: cat >> confdefs.h <&6 michael@0: fi michael@0: done michael@0: michael@0: michael@0: michael@0: if test "x$nss" = "x1"; then michael@0: for ac_hdr in ck.h michael@0: do michael@0: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` michael@0: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 michael@0: echo "configure:1323: checking for $ac_hdr" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.$ac_ext < michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:1333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=yes" michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=no" michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` michael@0: cat >> confdefs.h <&6 michael@0: fi michael@0: done michael@0: michael@0: fi michael@0: michael@0: if test "x$rsa" = "x1"; then michael@0: for ac_hdr in pkcs11t.h pkcs11.h michael@0: do michael@0: ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` michael@0: echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 michael@0: echo "configure:1366: checking for $ac_hdr" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.$ac_ext < michael@0: EOF michael@0: ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" michael@0: { (eval echo configure:1376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } michael@0: ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` michael@0: if test -z "$ac_err"; then michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=yes" michael@0: else michael@0: echo "$ac_err" >&5 michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: eval "ac_cv_header_$ac_safe=no" michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` michael@0: cat >> confdefs.h <&6 michael@0: fi michael@0: done michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: echo $ac_n "checking for working const""... $ac_c" 1>&6 michael@0: echo "configure:1407: checking for working const" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.$ac_ext <j = 5; michael@0: } michael@0: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ michael@0: const int foo = 10; michael@0: } michael@0: michael@0: ; return 0; } michael@0: EOF michael@0: if { (eval echo configure:1461: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then michael@0: rm -rf conftest* michael@0: ac_cv_c_const=yes michael@0: else michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: ac_cv_c_const=no michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: michael@0: echo "$ac_t""$ac_cv_c_const" 1>&6 michael@0: if test $ac_cv_c_const = no; then michael@0: cat >> confdefs.h <<\EOF michael@0: #define const michael@0: EOF michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: for ac_func in memset strlen michael@0: do michael@0: echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 michael@0: echo "configure:1486: checking for $ac_func" >&5 michael@0: if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then michael@0: echo $ac_n "(cached) $ac_c" 1>&6 michael@0: else michael@0: cat > conftest.$ac_ext < michael@0: /* Override any gcc2 internal prototype to avoid an error. */ michael@0: /* We use char because int might match the return type of a gcc2 michael@0: builtin and then its argument prototype would still apply. */ michael@0: char $ac_func(); michael@0: michael@0: int main() { michael@0: michael@0: /* The GNU C library defines this for functions which it implements michael@0: to always fail with ENOSYS. Some functions are actually named michael@0: something starting with __ and the normal name is an alias. */ michael@0: #if defined (__stub_$ac_func) || defined (__stub___$ac_func) michael@0: choke me michael@0: #else michael@0: $ac_func(); michael@0: #endif michael@0: michael@0: ; return 0; } michael@0: EOF michael@0: if { (eval echo configure:1514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then michael@0: rm -rf conftest* michael@0: eval "ac_cv_func_$ac_func=yes" michael@0: else michael@0: echo "configure: failed program was:" >&5 michael@0: cat conftest.$ac_ext >&5 michael@0: rm -rf conftest* michael@0: eval "ac_cv_func_$ac_func=no" michael@0: fi michael@0: rm -f conftest* michael@0: fi michael@0: michael@0: if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then michael@0: echo "$ac_t""yes" 1>&6 michael@0: ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` michael@0: cat >> confdefs.h <&6 michael@0: fi michael@0: done michael@0: michael@0: michael@0: trap '' 1 2 15 michael@0: cat > confcache <<\EOF michael@0: # This file is a shell script that caches the results of configure michael@0: # tests run on this system so they can be shared between configure michael@0: # scripts and configure runs. It is not useful on other systems. michael@0: # If it contains results you don't want to keep, you may remove or edit it. michael@0: # michael@0: # By default, configure uses ./config.cache as the cache file, michael@0: # creating it if it does not exist already. You can give configure michael@0: # the --cache-file=FILE option to use a different cache file; that is michael@0: # what configure does when it calls configure scripts in michael@0: # subdirectories, so they share the cache. michael@0: # Giving --cache-file=/dev/null disables caching, for debugging configure. michael@0: # config.status only pays attention to the cache file if you give it the michael@0: # --recheck option to rerun configure. michael@0: # michael@0: EOF michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: # but we know of no workaround that is simple, portable, and efficient. michael@0: # So, don't put newlines in cache variables' values. michael@0: # Ultrix sh set writes to stderr and can't be redirected directly, michael@0: # and sets the high bit in the cache file unless we assign to the vars. michael@0: (set) 2>&1 | michael@0: case `(ac_space=' '; set | grep ac_space) 2>&1` in michael@0: *ac_space=\ *) michael@0: # `set' does not quote correctly, so add quotes (double-quote substitution michael@0: # turns \\\\ into \\, and sed turns \\ into \). michael@0: sed -n \ michael@0: -e "s/'/'\\\\''/g" \ michael@0: -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" michael@0: ;; michael@0: *) michael@0: # `set' quotes correctly as required by POSIX, so do not add quotes. michael@0: sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' michael@0: ;; michael@0: esac >> confcache michael@0: if cmp -s $cache_file confcache; then michael@0: : michael@0: else michael@0: if test -w $cache_file; then michael@0: echo "updating cache $cache_file" michael@0: cat confcache > $cache_file michael@0: else michael@0: echo "not updating unwritable cache $cache_file" michael@0: fi michael@0: fi michael@0: rm -f confcache michael@0: michael@0: trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 michael@0: michael@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix michael@0: # Let make expand exec_prefix. michael@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' michael@0: michael@0: # Any assignment to VPATH causes Sun make to only execute michael@0: # the first set of double-colon rules, so remove it if not needed. michael@0: # If there is a colon in the path, we need to keep it. michael@0: if test "x$srcdir" = x.; then michael@0: ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' michael@0: fi michael@0: michael@0: trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 michael@0: michael@0: DEFS=-DHAVE_CONFIG_H michael@0: michael@0: # Without the "./", some shells look in PATH for config.status. michael@0: : ${CONFIG_STATUS=./config.status} michael@0: michael@0: echo creating $CONFIG_STATUS michael@0: rm -f $CONFIG_STATUS michael@0: cat > $CONFIG_STATUS </dev/null | sed 1q`: michael@0: # michael@0: # $0 $ac_configure_args michael@0: # michael@0: # Compiler output produced by configure, useful for debugging michael@0: # configure, is in ./config.log if it exists. michael@0: michael@0: ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" michael@0: for ac_option michael@0: do michael@0: case "\$ac_option" in michael@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) michael@0: echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" michael@0: exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; michael@0: -version | --version | --versio | --versi | --vers | --ver | --ve | --v) michael@0: echo "$CONFIG_STATUS generated by autoconf version 2.13" michael@0: exit 0 ;; michael@0: -help | --help | --hel | --he | --h) michael@0: echo "\$ac_cs_usage"; exit 0 ;; michael@0: *) echo "\$ac_cs_usage"; exit 1 ;; michael@0: esac michael@0: done michael@0: michael@0: ac_given_srcdir=$srcdir michael@0: ac_given_INSTALL="$INSTALL" michael@0: michael@0: trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 michael@0: EOF michael@0: cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF michael@0: $ac_vpsub michael@0: $extrasub michael@0: s%@SHELL@%$SHELL%g michael@0: s%@CFLAGS@%$CFLAGS%g michael@0: s%@CPPFLAGS@%$CPPFLAGS%g michael@0: s%@CXXFLAGS@%$CXXFLAGS%g michael@0: s%@FFLAGS@%$FFLAGS%g michael@0: s%@DEFS@%$DEFS%g michael@0: s%@LDFLAGS@%$LDFLAGS%g michael@0: s%@LIBS@%$LIBS%g michael@0: s%@exec_prefix@%$exec_prefix%g michael@0: s%@prefix@%$prefix%g michael@0: s%@program_transform_name@%$program_transform_name%g michael@0: s%@bindir@%$bindir%g michael@0: s%@sbindir@%$sbindir%g michael@0: s%@libexecdir@%$libexecdir%g michael@0: s%@datadir@%$datadir%g michael@0: s%@sysconfdir@%$sysconfdir%g michael@0: s%@sharedstatedir@%$sharedstatedir%g michael@0: s%@localstatedir@%$localstatedir%g michael@0: s%@libdir@%$libdir%g michael@0: s%@includedir@%$includedir%g michael@0: s%@oldincludedir@%$oldincludedir%g michael@0: s%@infodir@%$infodir%g michael@0: s%@mandir@%$mandir%g michael@0: s%@SET_MAKE@%$SET_MAKE%g michael@0: s%@WITH_NSS@%$WITH_NSS%g michael@0: s%@CC@%$CC%g michael@0: s%@CPP@%$CPP%g michael@0: s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g michael@0: s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g michael@0: s%@INSTALL_DATA@%$INSTALL_DATA%g michael@0: s%@RANLIB@%$RANLIB%g michael@0: s%@AR@%$AR%g michael@0: s%@LD@%$LD%g michael@0: s%@RM@%$RM%g michael@0: s%@TAR@%$TAR%g michael@0: s%@CC INSTALL RANLIB AR LD RM TAR@%$CC INSTALL RANLIB AR LD RM TAR%g michael@0: s%@HAVE_NSPR_H@%$HAVE_NSPR_H%g michael@0: s%@HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H@%$HAVE_CK_H HAVE_PKCS11T_H HAVE_PKCS11_H%g michael@0: s%@const@%$const%g michael@0: s%@HAVE_MEMSET HAVE_STRLEN@%$HAVE_MEMSET HAVE_STRLEN%g michael@0: michael@0: CEOF michael@0: EOF michael@0: michael@0: cat >> $CONFIG_STATUS <<\EOF michael@0: michael@0: # Split the substitutions into bite-sized pieces for seds with michael@0: # small command number limits, like on Digital OSF/1 and HP-UX. michael@0: ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. michael@0: ac_file=1 # Number of current file. michael@0: ac_beg=1 # First line for current file. michael@0: ac_end=$ac_max_sed_cmds # Line after last line for current file. michael@0: ac_more_lines=: michael@0: ac_sed_cmds="" michael@0: while $ac_more_lines; do michael@0: if test $ac_beg -gt 1; then michael@0: sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file michael@0: else michael@0: sed "${ac_end}q" conftest.subs > conftest.s$ac_file michael@0: fi michael@0: if test ! -s conftest.s$ac_file; then michael@0: ac_more_lines=false michael@0: rm -f conftest.s$ac_file michael@0: else michael@0: if test -z "$ac_sed_cmds"; then michael@0: ac_sed_cmds="sed -f conftest.s$ac_file" michael@0: else michael@0: ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" michael@0: fi michael@0: ac_file=`expr $ac_file + 1` michael@0: ac_beg=$ac_end michael@0: ac_end=`expr $ac_end + $ac_max_sed_cmds` michael@0: fi michael@0: done michael@0: if test -z "$ac_sed_cmds"; then michael@0: ac_sed_cmds=cat michael@0: fi michael@0: EOF michael@0: michael@0: cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF michael@0: for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then michael@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". michael@0: case "$ac_file" in michael@0: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` michael@0: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; michael@0: *) ac_file_in="${ac_file}.in" ;; michael@0: esac michael@0: michael@0: # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. michael@0: michael@0: # Remove last slash and all that follows it. Not all systems have dirname. michael@0: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` michael@0: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then michael@0: # The file is in a subdirectory. michael@0: test ! -d "$ac_dir" && mkdir "$ac_dir" michael@0: ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" michael@0: # A "../" for each directory in $ac_dir_suffix. michael@0: ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` michael@0: else michael@0: ac_dir_suffix= ac_dots= michael@0: fi michael@0: michael@0: case "$ac_given_srcdir" in michael@0: .) srcdir=. michael@0: if test -z "$ac_dots"; then top_srcdir=. michael@0: else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; michael@0: /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; michael@0: *) # Relative path. michael@0: srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" michael@0: top_srcdir="$ac_dots$ac_given_srcdir" ;; michael@0: esac michael@0: michael@0: case "$ac_given_INSTALL" in michael@0: [/$]*) INSTALL="$ac_given_INSTALL" ;; michael@0: *) INSTALL="$ac_dots$ac_given_INSTALL" ;; michael@0: esac michael@0: michael@0: echo creating "$ac_file" michael@0: rm -f "$ac_file" michael@0: configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." michael@0: case "$ac_file" in michael@0: *Makefile*) ac_comsub="1i\\ michael@0: # $configure_input" ;; michael@0: *) ac_comsub= ;; michael@0: esac michael@0: michael@0: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` michael@0: sed -e "$ac_comsub michael@0: s%@configure_input@%$configure_input%g michael@0: s%@srcdir@%$srcdir%g michael@0: s%@top_srcdir@%$top_srcdir%g michael@0: s%@INSTALL@%$INSTALL%g michael@0: " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file michael@0: fi; done michael@0: rm -f conftest.s* michael@0: michael@0: # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where michael@0: # NAME is the cpp macro being defined and VALUE is the value it is being given. michael@0: # michael@0: # ac_d sets the value in "#define NAME VALUE" lines. michael@0: ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' michael@0: ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' michael@0: ac_dC='\3' michael@0: ac_dD='%g' michael@0: # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". michael@0: ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' michael@0: ac_uB='\([ ]\)%\1#\2define\3' michael@0: ac_uC=' ' michael@0: ac_uD='\4%g' michael@0: # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". michael@0: ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' michael@0: ac_eB='$%\1#\2define\3' michael@0: ac_eC=' ' michael@0: ac_eD='%g' michael@0: michael@0: if test "${CONFIG_HEADERS+set}" != set; then michael@0: EOF michael@0: cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF michael@0: fi michael@0: for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then michael@0: # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". michael@0: case "$ac_file" in michael@0: *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` michael@0: ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; michael@0: *) ac_file_in="${ac_file}.in" ;; michael@0: esac michael@0: michael@0: echo creating $ac_file michael@0: michael@0: rm -f conftest.frag conftest.in conftest.out michael@0: ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` michael@0: cat $ac_file_inputs > conftest.in michael@0: michael@0: EOF michael@0: michael@0: # Transform confdefs.h into a sed script conftest.vals that substitutes michael@0: # the proper values into config.h.in to produce config.h. And first: michael@0: # Protect against being on the right side of a sed subst in config.status. michael@0: # Protect against being in an unquoted here document in config.status. michael@0: rm -f conftest.vals michael@0: cat > conftest.hdr <<\EOF michael@0: s/[\\&%]/\\&/g michael@0: s%[\\$`]%\\&%g michael@0: s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp michael@0: s%ac_d%ac_u%gp michael@0: s%ac_u%ac_e%gp michael@0: EOF michael@0: sed -n -f conftest.hdr confdefs.h > conftest.vals michael@0: rm -f conftest.hdr michael@0: michael@0: # This sed command replaces #undef with comments. This is necessary, for michael@0: # example, in the case of _POSIX_SOURCE, which is predefined and required michael@0: # on some systems where configure will not decide to define it. michael@0: cat >> conftest.vals <<\EOF michael@0: s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% michael@0: EOF michael@0: michael@0: # Break up conftest.vals because some shells have a limit on michael@0: # the size of here documents, and old seds have small limits too. michael@0: michael@0: rm -f conftest.tail michael@0: while : michael@0: do michael@0: ac_lines=`grep -c . conftest.vals` michael@0: # grep -c gives empty output for an empty file on some AIX systems. michael@0: if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi michael@0: # Write a limited-size here document to conftest.frag. michael@0: echo ' cat > conftest.frag <> $CONFIG_STATUS michael@0: sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS michael@0: echo 'CEOF michael@0: sed -f conftest.frag conftest.in > conftest.out michael@0: rm -f conftest.in michael@0: mv conftest.out conftest.in michael@0: ' >> $CONFIG_STATUS michael@0: sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail michael@0: rm -f conftest.vals michael@0: mv conftest.tail conftest.vals michael@0: done michael@0: rm -f conftest.vals michael@0: michael@0: cat >> $CONFIG_STATUS <<\EOF michael@0: rm -f conftest.frag conftest.h michael@0: echo "/* $ac_file. Generated automatically by configure. */" > conftest.h michael@0: cat conftest.in >> conftest.h michael@0: rm -f conftest.in michael@0: if cmp -s $ac_file conftest.h 2>/dev/null; then michael@0: echo "$ac_file is unchanged" michael@0: rm -f conftest.h michael@0: else michael@0: # Remove last slash and all that follows it. Not all systems have dirname. michael@0: ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` michael@0: if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then michael@0: # The file is in a subdirectory. michael@0: test ! -d "$ac_dir" && mkdir "$ac_dir" michael@0: fi michael@0: rm -f $ac_file michael@0: mv conftest.h $ac_file michael@0: fi michael@0: fi; done michael@0: michael@0: EOF michael@0: cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF michael@0: echo timestamp > stamp-h michael@0: exit 0 michael@0: EOF michael@0: chmod +x $CONFIG_STATUS michael@0: rm -fr confdefs* $ac_clean_files michael@0: test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 michael@0: